diff --git a/CHANGELOG.md b/CHANGELOG.md index 5080741..f1ed2c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# v24.0.0 + +## Features +- Support for Keyfactor Command REST API endpoints up to 24.4 +- Support for v1 and v2 REST API endpoints + +## Fixes +- fix: Fixes an issue where API calls are hardcoded to `/KeyfactorAPI`. Now, the API clients can point to API subpaths defined in your authentication configuration. + +## Breaking Changes +- chore: Support for v1 and v2 REST endpoints results in new structure for calling APIs. The base API client exposes a `V1` and `V2` API client. Package names are different as a result. +- chore: Changes in the OpenAPI specification results in different method and class names. Please refer to the [v1](./v24/api/keyfactor/v1/README.md#documentation-for-api-endpoints) and [v2](./v24/api/keyfactor/v2/README.md#documentation-for-api-endpoints) documentation for which class / method to use. + # v2.0.0 ## Features @@ -9,4 +22,4 @@ - fix: `NewAPIClient` returns `(*APIClient, error)` # v1.0.0 -- Initial release \ No newline at end of file +- Initial release diff --git a/README.md b/README.md index 83f63c2..e32d6fb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +# New SDK Version Available! + +**This README corresponds to v1 of the Go Client SDK!** + +All instructions in this document are relevant to v1 of the SDK. For information on the latest available SDK (and how to install it), please review the README for that SDK version. + +As of writing, the latest available SDK is [version 24](./v24). + # Go API client for keyfactor This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded diff --git a/v24/README.md b/v24/README.md new file mode 100644 index 0000000..b28312a --- /dev/null +++ b/v24/README.md @@ -0,0 +1,98 @@ +# Go API client for Keyfactor Command + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded +interface allows for the execution of calls against the current Keyfactor API instance. + +This API client was generated against Command version 24.4.2. + +Please reference the [Keyfactor Command API Change Log](https://software.keyfactor.com/Core-OnPrem/Current/Content/WebAPI/ChangeLogs/APIChangeLog.htm) for information about API endpoint support for your specific version of Keyfactor Command. + +## Support for Keyfactor Command Go Client SDK + +Keyfactor Command Go Client SDK is open source and supported on best effort level for this tool/library/client. +This means customers can report Bugs, Feature Requests, Documentation amendment or questions as well as requests for +customer information required for setup that needs Keyfactor access to obtain. Such requests do not follow normal SLA +commitments for response or resolution. If you have a support issue, please open a support ticket via the Keyfactor +Support Portal at https://support.keyfactor.com/ + +###### To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab. + +--- + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using +the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + + +## Installation + +Install the following dependencies: + +```shell +go get "github.com/Keyfactor/keyfactor-go-client-sdk/v24" +``` + +Put the package under your project folder and add the following in import: + +```golang +package main + +import "github.com/Keyfactor/keyfactor-go-client-sdk/api/keyfactor/v24" +``` + +## Configuration + +Configuration of the API client is done through the [github.com/Keyfactor/keyfactor-auth-client-go/auth_providers](https://github.com/Keyfactor/keyfactor-auth-client-go) Go package. + +Here is an example of configuring your API client: + +```go +import ( + "context" + "os" + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" + "github.com/Keyfactor/keyfactor-go-client-sdk/v24" +) + +hostname := os.Getenv(auth_providers.EnvKeyfactorHostName) +apiPath := os.Getenv(auth_providers.EnvKeyfactorAPIPath) + +clientId := os.Getenv(auth_providers.EnvKeyfactorClientID) +clientSecret := os.Getenv(auth_providers.EnvKeyfactorClientSecret) +tokenUrl := os.Getenv(auth_providers.EnvKeyfactorAuthTokenURL) + +oAuthNoParamsConfig := auth_providers.CommandConfigOauth{} +oAuthNoParamsConfig.CommandAuthConfig. + WithCommandHostName(hostname). + WithCommandAPIPath(apiPath). + WithSkipVerify(false). + WithClientTimeout(10) +oAuthNoParamsConfig. + WithClientId(clientId). + WithClientSecret(clientSecret). + WithTokenUrl(tokenUrl). + Authenticate() + +// Configure API client +client, err := keyfactor.NewAPIClient(oAuthNoParamsConfig.GetServerConfig()) +ctx := context.Background() + +// api := client.V1.ExampleApi // Access V1 API Service +// req := api.NewExampleRequest(ctx) // Generate request +// resp, http, err := req.Execute() // Execute request + +// api := client.V2.ExampleApi // Access V2 API Service +// req := api.NewExampleRequest(ctx) // Generate request +// resp, http, err := req.Execute() // Execute request + + +``` + +## Documentation for API Endpoints + +All documentation for the APIs can be found in its respective API directory: + +- [v1 API Documentation](./api/keyfactor/v1/README.md) +- [v2 API Documentation](./api/keyfactor/v2/README.md) + diff --git a/v24/api/keyfactor/v1/.gitignore b/v24/api/keyfactor/v1/.gitignore new file mode 100644 index 0000000..258440b --- /dev/null +++ b/v24/api/keyfactor/v1/.gitignore @@ -0,0 +1,866 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof + +.idea +.openapi-generator +.DS_Store +*.yaml + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### ASPNETCore template +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/ + +### Go template +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + +### Windows template +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### Csharp template +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser + +# User-specific files (MonoDevelop/Xamarin Studio) + +# Mono auto generated files +mono_crash.* + +# Build results +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results + +# NUnit +nunit-*.xml + +# Build Results of an ATL Project + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_h.h +*.iobj +*.ipdb +*_wpftmp.csproj +*.tlog + +# Chutzpah Test files + +# Visual C++ cache files + +# Visual Studio profiler + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace + +# Guidance Automation Toolkit + +# ReSharper is a .NET coding add-in + +# TeamCity is a build add-in + +# DotCover is a Code Coverage Tool + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results + +# NCrunch + +# MightyMoose + +# Web workbench (sass) + +# Installshield output folder + +# DocProject is a documentation generator add-in + +# Click-Once directory + +# Publish Web Output +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted + +# NuGet Packages +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files + +# Microsoft Azure Build Output + +# Microsoft Azure Emulator + +# Windows Store app package directories and files +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.ndf + +# Business Intelligence projects +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes + +# GhostDoc plugin setting file + +# Node.js Tools for Visual Studio + +# Visual Studio 6 build log + +# Visual Studio 6 workspace options file + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output + +# Paket dependency manager + +# FAKE - F# Make + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs + +# JetBrains Rider + +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Python template +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + diff --git a/v24/api/keyfactor/v1/.openapi-generator-ignore b/v24/api/keyfactor/v1/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/v24/api/keyfactor/v1/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/v24/api/keyfactor/v1/README.md b/v24/api/keyfactor/v1/README.md new file mode 100644 index 0000000..7ae198b --- /dev/null +++ b/v24/api/keyfactor/v1/README.md @@ -0,0 +1,958 @@ +# Go API client for Keyfactor Command (API Version V1) + +

This page provides a utility through which the Keyfactor API endpoints can be called and results returned. + It is intended to be used primarily for validation, testing and workflow development. + It also serves secondarily as documentation for the API.

+

If you would like to view documentation containing details on the Keyfactor API and endpoints, + please refer to the Web API section of the Keyfactor Command documentation.

+ +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- Keyfactor Command API Version: 24.4.2 +- API version: 1 +- Package version: 1.0.0 +- OpenAPI Generator Version: 7.12.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +For more information on the Keyfactor Command API Documentation, please visit [here](https://software.keyfactor.com/Core-OnPrem/Current/Content/WebAPI/Overview.htm). + +For more information on OpenAPI Generator, please visit [its documentation](https://openapi-generator.tech/). + +## Installation + +Install the following dependencies: + +```shell +go get "github.com/Keyfactor/keyfactor-go-client-sdk/v24" +``` + +Put the package under your project folder and add the following in import: + +```golang +import "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v1" +``` + +## Configuration + +Configuration of the API client is done through the [github.com/Keyfactor/keyfactor-auth-client-go/auth_providers](https://github.com/Keyfactor/keyfactor-auth-client-go) Go package. + +Here is an example of configuring your API client: + +```go +import ( + "os" + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" + "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v1" +) + +hostname := os.Getenv(auth_providers.EnvKeyfactorHostName) +apiPath := os.Getenv(auth_providers.EnvKeyfactorAPIPath) + +clientId := os.Getenv(auth_providers.EnvKeyfactorClientID) +clientSecret := os.Getenv(auth_providers.EnvKeyfactorClientSecret) +tokenUrl := os.Getenv(auth_providers.EnvKeyfactorAuthTokenURL) + +oAuthNoParamsConfig := auth_providers.CommandConfigOauth{} +oAuthNoParamsConfig.CommandAuthConfig. + WithCommandHostName(hostname). + WithCommandAPIPath(apiPath). + WithSkipVerify(false). + WithClientTimeout(10) +oAuthNoParamsConfig. + WithClientId(clientId). + WithClientSecret(clientSecret). + WithTokenUrl(tokenUrl). + Authenticate() + +// Configure API client +client, err := keyfactor.NewAPIClient(oAuthNoParamsConfig.GetServerConfig()) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://keyfactor.example.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AgentApi* | [**CreateAgentsApprove**](docs/AgentApi.md#createagentsapprove) | **Post** /Agents/Approve | Approve a list of agents +*AgentApi* | [**CreateAgentsByIdFetchLogs**](docs/AgentApi.md#createagentsbyidfetchlogs) | **Post** /Agents/{id}/FetchLogs | Schedules a job on the agent to retrieve log files +*AgentApi* | [**CreateAgentsByIdReset**](docs/AgentApi.md#createagentsbyidreset) | **Post** /Agents/{id}/Reset | Reset an agent to a new state +*AgentApi* | [**CreateAgentsDisapprove**](docs/AgentApi.md#createagentsdisapprove) | **Post** /Agents/Disapprove | Disapprove a list of agents +*AgentApi* | [**CreateAgentsReset**](docs/AgentApi.md#createagentsreset) | **Post** /Agents/Reset | Reset a list of agents +*AgentApi* | [**CreateAgentsSetAuthCertificateReenrollment**](docs/AgentApi.md#createagentssetauthcertificatereenrollment) | **Post** /Agents/SetAuthCertificateReenrollment | Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. +*AgentApi* | [**DeleteAgentsById**](docs/AgentApi.md#deleteagentsbyid) | **Delete** /Agents/{id} | Delete a single agent, specified by ID +*AgentApi* | [**GetAgents**](docs/AgentApi.md#getagents) | **Get** /Agents | Returns all agents according to the provided filter and output parameters +*AgentApi* | [**GetAgentsById**](docs/AgentApi.md#getagentsbyid) | **Get** /Agents/{id} | Returns details for a single agent, specified by ID +*AgentBlueprintApi* | [**CreateAgentBluePrintApplyBlueprint**](docs/AgentBlueprintApi.md#createagentblueprintapplyblueprint) | **Post** /AgentBluePrint/ApplyBlueprint | Applies the selected agent blueprint to the provided agents +*AgentBlueprintApi* | [**CreateAgentBluePrintGenerateBluePrint**](docs/AgentBlueprintApi.md#createagentblueprintgenerateblueprint) | **Post** /AgentBluePrint/GenerateBluePrint | Generates an agent blueprint from the provided agents +*AgentBlueprintApi* | [**DeleteAgentBluePrintById**](docs/AgentBlueprintApi.md#deleteagentblueprintbyid) | **Delete** /AgentBluePrint/{id} | Deletes an agent blueprint by its Keyfactor identifier +*AgentBlueprintApi* | [**GetAgentBluePrint**](docs/AgentBlueprintApi.md#getagentblueprint) | **Get** /AgentBluePrint | Returns all agent blueprints according to the provided filter and output parameters +*AgentBlueprintApi* | [**GetAgentBluePrintById**](docs/AgentBlueprintApi.md#getagentblueprintbyid) | **Get** /AgentBluePrint/{id} | Returns an agent blueprint according to the provided filter and output parameters +*AgentBlueprintApi* | [**GetAgentBluePrintByIdJobs**](docs/AgentBlueprintApi.md#getagentblueprintbyidjobs) | **Get** /AgentBluePrint/{id}/Jobs | Gets the agent blueprint scheduled jobs +*AgentBlueprintApi* | [**GetAgentBluePrintByIdStores**](docs/AgentBlueprintApi.md#getagentblueprintbyidstores) | **Get** /AgentBluePrint/{id}/Stores | Gets the agent blueprint certificate stores +*AgentPoolApi* | [**CreateAgentPools**](docs/AgentPoolApi.md#createagentpools) | **Post** /AgentPools | Creates an agent pool with the provided properties +*AgentPoolApi* | [**DeleteAgentPoolsById**](docs/AgentPoolApi.md#deleteagentpoolsbyid) | **Delete** /AgentPools/{id} | Deletes the agent pool associated with the provided id +*AgentPoolApi* | [**GetAgentPools**](docs/AgentPoolApi.md#getagentpools) | **Get** /AgentPools | Returns all agent pools according to the provided filter and output parameters +*AgentPoolApi* | [**GetAgentPoolsAgents**](docs/AgentPoolApi.md#getagentpoolsagents) | **Get** /AgentPools/Agents | Returns all agents for the default agent pool +*AgentPoolApi* | [**GetAgentPoolsById**](docs/AgentPoolApi.md#getagentpoolsbyid) | **Get** /AgentPools/{id} | Returns a single agent pool associated with the provided id +*AgentPoolApi* | [**UpdateAgentPools**](docs/AgentPoolApi.md#updateagentpools) | **Put** /AgentPools | Updates an existing agent pool with the provided properties +*AppSettingApi* | [**GetAppSetting**](docs/AppSettingApi.md#getappsetting) | **Get** /AppSetting | Get available application settings +*AppSettingApi* | [**GetAppSettingById**](docs/AppSettingApi.md#getappsettingbyid) | **Get** /AppSetting/{id} | Get application setting by id +*AppSettingApi* | [**UpdateAppSetting**](docs/AppSettingApi.md#updateappsetting) | **Put** /AppSetting | Bulk update available application settings +*AppSettingApi* | [**UpdateAppSettingByIdSet**](docs/AppSettingApi.md#updateappsettingbyidset) | **Put** /AppSetting/{id}/Set | Update one application setting by id +*AppSettingApi* | [**UpdateAppSettingNameSet**](docs/AppSettingApi.md#updateappsettingnameset) | **Put** /AppSetting/{name}/Set | Update one application setting by short name +*AuditLogApi* | [**GetAudit**](docs/AuditLogApi.md#getaudit) | **Get** /Audit | Returns all audit log entries according to the provided filter and output parameters +*AuditLogApi* | [**GetAuditById**](docs/AuditLogApi.md#getauditbyid) | **Get** /Audit/{id} | Returns the audit log entry associated with the provided identifier +*AuditLogApi* | [**GetAuditByIdValidate**](docs/AuditLogApi.md#getauditbyidvalidate) | **Get** /Audit/{id}/Validate | Validates the audit log entry associated with the provided keyfactor id +*AuditLogApi* | [**GetAuditDownload**](docs/AuditLogApi.md#getauditdownload) | **Get** /Audit/Download | Returns a Comma Separated file containing the audit log entries according to the provided filter +*AuditLogApi* | [**GetAuditRelatedEntities**](docs/AuditLogApi.md#getauditrelatedentities) | **Get** /Audit/RelatedEntities | Returns the audit log entry associated with the provided keyfactor id +*CAConnectorApi* | [**CreateCertificateAuthorityCAConnectors**](docs/CAConnectorApi.md#createcertificateauthoritycaconnectors) | **Post** /CertificateAuthority/CAConnectors | Creates a new CA Connector object +*CAConnectorApi* | [**DeleteCertificateAuthorityCAConnectorsById**](docs/CAConnectorApi.md#deletecertificateauthoritycaconnectorsbyid) | **Delete** /CertificateAuthority/CAConnectors/{id} | Deletes a CA Connector with the specific ID +*CAConnectorApi* | [**GetCertificateAuthorityCAConnectors**](docs/CAConnectorApi.md#getcertificateauthoritycaconnectors) | **Get** /CertificateAuthority/CAConnectors | Returns all CA Connectors +*CAConnectorApi* | [**GetCertificateAuthorityCAConnectorsById**](docs/CAConnectorApi.md#getcertificateauthoritycaconnectorsbyid) | **Get** /CertificateAuthority/CAConnectors/{id} | Returns a CA Connector with the specific ID +*CAConnectorApi* | [**UpdateCertificateAuthorityCAConnectorsById**](docs/CAConnectorApi.md#updatecertificateauthoritycaconnectorsbyid) | **Put** /CertificateAuthority/CAConnectors/{id} | Updates an existing CA Connector +*CSRGenerationApi* | [**CreateCSRGenerationGenerate**](docs/CSRGenerationApi.md#createcsrgenerationgenerate) | **Post** /CSRGeneration/Generate | Generates a CSR according the properties provided +*CSRGenerationApi* | [**DeleteCSRGenerationPending**](docs/CSRGenerationApi.md#deletecsrgenerationpending) | **Delete** /CSRGeneration/Pending | Deletes the CSRs associated with the provided identifiers +*CSRGenerationApi* | [**DeleteCSRGenerationPendingById**](docs/CSRGenerationApi.md#deletecsrgenerationpendingbyid) | **Delete** /CSRGeneration/Pending/{id} | Deletes a CSR associated with the provided identifier +*CSRGenerationApi* | [**GetCSRGenerationPending**](docs/CSRGenerationApi.md#getcsrgenerationpending) | **Get** /CSRGeneration/Pending | Returns a list of the currently pending CSRs according to the provided query +*CSRGenerationApi* | [**GetCSRGenerationPendingById**](docs/CSRGenerationApi.md#getcsrgenerationpendingbyid) | **Get** /CSRGeneration/Pending/{id} | Returns a previously generated CSR associated with the provided identifier +*CertificateApi* | [**CreateCertificatesAnalyze**](docs/CertificateApi.md#createcertificatesanalyze) | **Post** /Certificates/Analyze | Returns the public information of the certificate +*CertificateApi* | [**CreateCertificatesDownload**](docs/CertificateApi.md#createcertificatesdownload) | **Post** /Certificates/Download | Downloads the persisted certificate associated with the provided query +*CertificateApi* | [**CreateCertificatesImport**](docs/CertificateApi.md#createcertificatesimport) | **Post** /Certificates/Import | Imports the provided certificate into the Keyfactor instance, including any provided associated data +*CertificateApi* | [**CreateCertificatesRecover**](docs/CertificateApi.md#createcertificatesrecover) | **Post** /Certificates/Recover | Recovers the persisted certificate associated with the provided query +*CertificateApi* | [**CreateCertificatesRevoke**](docs/CertificateApi.md#createcertificatesrevoke) | **Post** /Certificates/Revoke | Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation +*CertificateApi* | [**DeleteCertificates**](docs/CertificateApi.md#deletecertificates) | **Delete** /Certificates | Deletes multiple persisted certificates by their unique ids +*CertificateApi* | [**DeleteCertificatesById**](docs/CertificateApi.md#deletecertificatesbyid) | **Delete** /Certificates/{id} | Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it +*CertificateApi* | [**DeleteCertificatesPrivateKey**](docs/CertificateApi.md#deletecertificatesprivatekey) | **Delete** /Certificates/PrivateKey | Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates +*CertificateApi* | [**DeleteCertificatesPrivateKeyById**](docs/CertificateApi.md#deletecertificatesprivatekeybyid) | **Delete** /Certificates/PrivateKey/{id} | Deletes the persisted private keys of the certificate associated with the provided identifier +*CertificateApi* | [**DeleteCertificatesQuery**](docs/CertificateApi.md#deletecertificatesquery) | **Delete** /Certificates/Query | Deletes multiple persisted certificate entities selected by a given query +*CertificateApi* | [**GetCertificates**](docs/CertificateApi.md#getcertificates) | **Get** /Certificates | Returns all certificates according to the provided filter and output parameters +*CertificateApi* | [**GetCertificatesById**](docs/CertificateApi.md#getcertificatesbyid) | **Get** /Certificates/{id} | Returns a single certificate that matches the id +*CertificateApi* | [**GetCertificatesByIdHistory**](docs/CertificateApi.md#getcertificatesbyidhistory) | **Get** /Certificates/{id}/History | Gets the history of operations on a certificate +*CertificateApi* | [**GetCertificatesByIdSecurity**](docs/CertificateApi.md#getcertificatesbyidsecurity) | **Get** /Certificates/{id}/Security | Gets the list of Security Identities and which permissions they have on the given certificate. +*CertificateApi* | [**GetCertificatesByIdValidate**](docs/CertificateApi.md#getcertificatesbyidvalidate) | **Get** /Certificates/{id}/Validate | Validates the certificate chain can be built. +*CertificateApi* | [**GetCertificatesCSV**](docs/CertificateApi.md#getcertificatescsv) | **Get** /Certificates/CSV | Returns a comma-delimited CSV file containing all certificates in the database +*CertificateApi* | [**GetCertificatesIdentityAuditById**](docs/CertificateApi.md#getcertificatesidentityauditbyid) | **Get** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate +*CertificateApi* | [**GetCertificatesLocationsById**](docs/CertificateApi.md#getcertificateslocationsbyid) | **Get** /Certificates/Locations/{id} | Returns a list of locations the certificate is in +*CertificateApi* | [**GetCertificatesMetadataCompare**](docs/CertificateApi.md#getcertificatesmetadatacompare) | **Get** /Certificates/Metadata/Compare | Compares the metadata value provided with the metadata value associated with the specified certificate +*CertificateApi* | [**UpdateCertificatesByIdOwner**](docs/CertificateApi.md#updatecertificatesbyidowner) | **Put** /Certificates/{id}/Owner | Changes the certificate's owner. Users must be in the current owner's role and the new owner's role +*CertificateApi* | [**UpdateCertificatesMetadata**](docs/CertificateApi.md#updatecertificatesmetadata) | **Put** /Certificates/Metadata | Updates the metadata for the certificate associated with the identifier provided +*CertificateApi* | [**UpdateCertificatesMetadataAll**](docs/CertificateApi.md#updatecertificatesmetadataall) | **Put** /Certificates/Metadata/All | Updates the metadata for certificates associated with the certificate identifiers or query provided +*CertificateAuthorityApi* | [**CreateCertificateAuthority**](docs/CertificateAuthorityApi.md#createcertificateauthority) | **Post** /CertificateAuthority | Creates a new CertificateAuthority object +*CertificateAuthorityApi* | [**CreateCertificateAuthorityAlertRecipientsCAHealthRecipients**](docs/CertificateAuthorityApi.md#createcertificateauthorityalertrecipientscahealthrecipients) | **Post** /CertificateAuthority/AlertRecipients/CAHealthRecipients | Creates CA health monitoring recipients for the provided list of email addresses\" +*CertificateAuthorityApi* | [**CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients**](docs/CertificateAuthorityApi.md#createcertificateauthorityalertrecipientscathresholdrecipients) | **Post** /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Creates CA threshold alert recipients for the provided list of emails +*CertificateAuthorityApi* | [**CreateCertificateAuthorityImport**](docs/CertificateAuthorityApi.md#createcertificateauthorityimport) | **Post** /CertificateAuthority/Import | Imports any certificate authorities from the provided configuration tenant DNS +*CertificateAuthorityApi* | [**CreateCertificateAuthorityPublishCRL**](docs/CertificateAuthorityApi.md#createcertificateauthoritypublishcrl) | **Post** /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request +*CertificateAuthorityApi* | [**CreateCertificateAuthorityTaskQueueTest**](docs/CertificateAuthorityApi.md#createcertificateauthoritytaskqueuetest) | **Post** /CertificateAuthority/TaskQueue/Test | Tests the connection info for the TaskQueue Credentials. +*CertificateAuthorityApi* | [**CreateCertificateAuthorityTest**](docs/CertificateAuthorityApi.md#createcertificateauthoritytest) | **Post** /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. +*CertificateAuthorityApi* | [**DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](docs/CertificateAuthorityApi.md#deletecertificateauthorityalertrecipientscahealthrecipientsbyid) | **Delete** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Deletes a CA health recipient for the provided ID +*CertificateAuthorityApi* | [**DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](docs/CertificateAuthorityApi.md#deletecertificateauthorityalertrecipientscathresholdrecipientsbyid) | **Delete** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Deletes a CA threshold recipient for the provided ID +*CertificateAuthorityApi* | [**DeleteCertificateAuthorityById**](docs/CertificateAuthorityApi.md#deletecertificateauthoritybyid) | **Delete** /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID +*CertificateAuthorityApi* | [**GetCertificateAuthority**](docs/CertificateAuthorityApi.md#getcertificateauthority) | **Get** /CertificateAuthority | Returns all certificate authorities according to the provided filter +*CertificateAuthorityApi* | [**GetCertificateAuthorityAlertRecipientsCAHealthRecipients**](docs/CertificateAuthorityApi.md#getcertificateauthorityalertrecipientscahealthrecipients) | **Get** /CertificateAuthority/AlertRecipients/CAHealthRecipients | Returns a list of all CA health recipients +*CertificateAuthorityApi* | [**GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](docs/CertificateAuthorityApi.md#getcertificateauthorityalertrecipientscahealthrecipientsbyid) | **Get** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Returns a CA health recipient for the specified health recipient ID +*CertificateAuthorityApi* | [**GetCertificateAuthorityAlertRecipientsCAThresholdRecipients**](docs/CertificateAuthorityApi.md#getcertificateauthorityalertrecipientscathresholdrecipients) | **Get** /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Returns a list of all CA threshold recipients +*CertificateAuthorityApi* | [**GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](docs/CertificateAuthorityApi.md#getcertificateauthorityalertrecipientscathresholdrecipientsbyid) | **Get** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Returns a CA threshold recipient for the specified threshold alert recipient ID +*CertificateAuthorityApi* | [**GetCertificateAuthorityAvailableForests**](docs/CertificateAuthorityApi.md#getcertificateauthorityavailableforests) | **Get** /CertificateAuthority/AvailableForests | Returns a list of available forests that are in active directory +*CertificateAuthorityApi* | [**GetCertificateAuthorityById**](docs/CertificateAuthorityApi.md#getcertificateauthoritybyid) | **Get** /CertificateAuthority/{id} | Returns details for a single CA, specified by ID +*CertificateAuthorityApi* | [**GetCertificateAuthorityHealthMonitoringSchedule**](docs/CertificateAuthorityApi.md#getcertificateauthorityhealthmonitoringschedule) | **Get** /CertificateAuthority/HealthMonitoring/Schedule | Retrieves the execution schedule for the CA health monitoring job +*CertificateAuthorityApi* | [**GetCertificateAuthoritySourceCount**](docs/CertificateAuthorityApi.md#getcertificateauthoritysourcecount) | **Get** /CertificateAuthority/SourceCount | Returns a count of certificate authorities with sync enabled +*CertificateAuthorityApi* | [**GetCertificateAuthorityTaskQueue**](docs/CertificateAuthorityApi.md#getcertificateauthoritytaskqueue) | **Get** /CertificateAuthority/TaskQueue | Retrieves credentials and connection information +*CertificateAuthorityApi* | [**UpdateCertificateAuthority**](docs/CertificateAuthorityApi.md#updatecertificateauthority) | **Put** /CertificateAuthority | Updates a CertificateAuthority object +*CertificateAuthorityApi* | [**UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](docs/CertificateAuthorityApi.md#updatecertificateauthorityalertrecipientscahealthrecipientsbyid) | **Put** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Updates a CA health alert recipient for the provided request object +*CertificateAuthorityApi* | [**UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](docs/CertificateAuthorityApi.md#updatecertificateauthorityalertrecipientscathresholdrecipientsbyid) | **Put** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Updates a CA threshold alert recipient for the provided request object +*CertificateAuthorityApi* | [**UpdateCertificateAuthorityTaskQueue**](docs/CertificateAuthorityApi.md#updatecertificateauthoritytaskqueue) | **Put** /CertificateAuthority/TaskQueue | Updates credentials and connection information +*CertificateCollectionApi* | [**CreateCertificateCollections**](docs/CertificateCollectionApi.md#createcertificatecollections) | **Post** /CertificateCollections | Creates a new certificate collection with the provided properties +*CertificateCollectionApi* | [**CreateCertificateCollectionsCopy**](docs/CertificateCollectionApi.md#createcertificatecollectionscopy) | **Post** /CertificateCollections/Copy | Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. +*CertificateCollectionApi* | [**DeleteCertificateCollectionsById**](docs/CertificateCollectionApi.md#deletecertificatecollectionsbyid) | **Delete** /CertificateCollections/{id} | Delete one certificate collection +*CertificateCollectionApi* | [**GetCertificateCollections**](docs/CertificateCollectionApi.md#getcertificatecollections) | **Get** /CertificateCollections | Returns all certificate collections +*CertificateCollectionApi* | [**GetCertificateCollectionsById**](docs/CertificateCollectionApi.md#getcertificatecollectionsbyid) | **Get** /CertificateCollections/{id} | Returns the certificate collection definition associated with the provided Keyfactor identifier +*CertificateCollectionApi* | [**GetCertificateCollectionsCollectionList**](docs/CertificateCollectionApi.md#getcertificatecollectionscollectionlist) | **Get** /CertificateCollections/CollectionList | Get certificate collection list with duplication field name +*CertificateCollectionApi* | [**GetCertificateCollectionsCollectionOrdering**](docs/CertificateCollectionApi.md#getcertificatecollectionscollectionordering) | **Get** /CertificateCollections/CollectionOrdering | Returns an array of collection Id's where the index in the array represents the collection ordering +*CertificateCollectionApi* | [**GetCertificateCollectionsLastEstimated**](docs/CertificateCollectionApi.md#getcertificatecollectionslastestimated) | **Get** /CertificateCollections/LastEstimated | Get the last time the timer service ran the job to process certificates in collections +*CertificateCollectionApi* | [**GetCertificateCollectionsName**](docs/CertificateCollectionApi.md#getcertificatecollectionsname) | **Get** /CertificateCollections/{name} | Returns the certificate collection associated with the provided collection name +*CertificateCollectionApi* | [**GetCertificateCollectionsNavItems**](docs/CertificateCollectionApi.md#getcertificatecollectionsnavitems) | **Get** /CertificateCollections/NavItems | Get the list of navigation items for certificate collection +*CertificateCollectionApi* | [**UpdateCertificateCollections**](docs/CertificateCollectionApi.md#updatecertificatecollections) | **Put** /CertificateCollections | Updates an existing certificate collection with the provided properties +*CertificateCollectionApi* | [**UpdateCertificateCollectionsByIdFavorite**](docs/CertificateCollectionApi.md#updatecertificatecollectionsbyidfavorite) | **Put** /CertificateCollections/{id}/Favorite | Update favorite for one collection +*CertificateStoreApi* | [**CreateCertificateStores**](docs/CertificateStoreApi.md#createcertificatestores) | **Post** /CertificateStores | Creates a new certificate store with the provided properties +*CertificateStoreApi* | [**CreateCertificateStoresApprove**](docs/CertificateStoreApi.md#createcertificatestoresapprove) | **Post** /CertificateStores/Approve | Approves the provided certificate stores to make them available for management +*CertificateStoreApi* | [**CreateCertificateStoresCertificatesAdd**](docs/CertificateStoreApi.md#createcertificatestorescertificatesadd) | **Post** /CertificateStores/Certificates/Add | Configures a management job to add a certificate to one or more stores with the provided schedule +*CertificateStoreApi* | [**CreateCertificateStoresCertificatesRemove**](docs/CertificateStoreApi.md#createcertificatestorescertificatesremove) | **Post** /CertificateStores/Certificates/Remove | Configures a management job to remove a certificate from one or more stores with the provided schedule +*CertificateStoreApi* | [**CreateCertificateStoresReenrollment**](docs/CertificateStoreApi.md#createcertificatestoresreenrollment) | **Post** /CertificateStores/Reenrollment | Schedules a certificate store for reenrollment +*CertificateStoreApi* | [**CreateCertificateStoresSchedule**](docs/CertificateStoreApi.md#createcertificatestoresschedule) | **Post** /CertificateStores/Schedule | Creates an inventory schedule for the provided certificate stores +*CertificateStoreApi* | [**DeleteCertificateStores**](docs/CertificateStoreApi.md#deletecertificatestores) | **Delete** /CertificateStores | Deletes multiple persisted certificate store entities by their identifiers +*CertificateStoreApi* | [**DeleteCertificateStoresById**](docs/CertificateStoreApi.md#deletecertificatestoresbyid) | **Delete** /CertificateStores/{id} | Deletes a persisted certificate store by its Keyfactor identifier +*CertificateStoreApi* | [**GetCertificateStores**](docs/CertificateStoreApi.md#getcertificatestores) | **Get** /CertificateStores | Returns all certificate stores according to the provided filter and output parameters +*CertificateStoreApi* | [**GetCertificateStoresById**](docs/CertificateStoreApi.md#getcertificatestoresbyid) | **Get** /CertificateStores/{id} | Returns a single certificate store associated with the provided id +*CertificateStoreApi* | [**GetCertificateStoresByIdInventory**](docs/CertificateStoreApi.md#getcertificatestoresbyidinventory) | **Get** /CertificateStores/{id}/Inventory | Returns a single certificate store's inventory associated with the provided id +*CertificateStoreApi* | [**UpdateCertificateStores**](docs/CertificateStoreApi.md#updatecertificatestores) | **Put** /CertificateStores | Updates a given certificate store with the properties of the provided instance +*CertificateStoreApi* | [**UpdateCertificateStoresAssignContainer**](docs/CertificateStoreApi.md#updatecertificatestoresassigncontainer) | **Put** /CertificateStores/AssignContainer | Assigns the provided certificate stores to the provided container +*CertificateStoreApi* | [**UpdateCertificateStoresDiscoveryJob**](docs/CertificateStoreApi.md#updatecertificatestoresdiscoveryjob) | **Put** /CertificateStores/DiscoveryJob | Configures a discovery job to locate currently unmanaged certificate stores +*CertificateStoreApi* | [**UpdateCertificateStoresPassword**](docs/CertificateStoreApi.md#updatecertificatestorespassword) | **Put** /CertificateStores/Password | Sets a password for the requested certificate store +*CertificateStoreContainerApi* | [**CreateCertificateStoreContainers**](docs/CertificateStoreContainerApi.md#createcertificatestorecontainers) | **Post** /CertificateStoreContainers | Add a certificate store container +*CertificateStoreContainerApi* | [**DeleteCertificateStoreContainersById**](docs/CertificateStoreContainerApi.md#deletecertificatestorecontainersbyid) | **Delete** /CertificateStoreContainers/{id} | Delete a certificate store container +*CertificateStoreContainerApi* | [**GetCertificateStoreContainers**](docs/CertificateStoreContainerApi.md#getcertificatestorecontainers) | **Get** /CertificateStoreContainers | Returns all certificate store container according to the provided filter and output parameters +*CertificateStoreContainerApi* | [**GetCertificateStoreContainersById**](docs/CertificateStoreContainerApi.md#getcertificatestorecontainersbyid) | **Get** /CertificateStoreContainers/{id} | Returns a single certificate store container that matches id +*CertificateStoreContainerApi* | [**UpdateCertificateStoreContainers**](docs/CertificateStoreContainerApi.md#updatecertificatestorecontainers) | **Put** /CertificateStoreContainers | Edit a certificate store container +*CertificateStoreTypeApi* | [**CreateCertificateStoreTypes**](docs/CertificateStoreTypeApi.md#createcertificatestoretypes) | **Post** /CertificateStoreTypes | Creates a new certificate store type with the provided properties +*CertificateStoreTypeApi* | [**DeleteCertificateStoreTypes**](docs/CertificateStoreTypeApi.md#deletecertificatestoretypes) | **Delete** /CertificateStoreTypes | Deletes certificate store types according to the provided identifiers +*CertificateStoreTypeApi* | [**DeleteCertificateStoreTypesById**](docs/CertificateStoreTypeApi.md#deletecertificatestoretypesbyid) | **Delete** /CertificateStoreTypes/{id} | Deletes a certificate store type according to the provided identifier +*CertificateStoreTypeApi* | [**GetCertificateStoreTypes**](docs/CertificateStoreTypeApi.md#getcertificatestoretypes) | **Get** /CertificateStoreTypes | Returns all certificate store types according to the provided filter and output parameters +*CertificateStoreTypeApi* | [**GetCertificateStoreTypesById**](docs/CertificateStoreTypeApi.md#getcertificatestoretypesbyid) | **Get** /CertificateStoreTypes/{id} | Returns a single certificate store type that matches id +*CertificateStoreTypeApi* | [**GetCertificateStoreTypesNameName**](docs/CertificateStoreTypeApi.md#getcertificatestoretypesnamename) | **Get** /CertificateStoreTypes/Name/{name} | Returns a single certificate store type that matches the provided short name +*CertificateStoreTypeApi* | [**UpdateCertificateStoreTypes**](docs/CertificateStoreTypeApi.md#updatecertificatestoretypes) | **Put** /CertificateStoreTypes | Updates an existing certificate store type with the provided properties +*ComponentInstallationApi* | [**DeleteComponentInstallationById**](docs/ComponentInstallationApi.md#deletecomponentinstallationbyid) | **Delete** /ComponentInstallation/{id} | Deletes the Keyfactor component installation whose ID is provided. +*ComponentInstallationApi* | [**GetComponentInstallation**](docs/ComponentInstallationApi.md#getcomponentinstallation) | **Get** /ComponentInstallation | Returns all Keyfactor component installations. +*CustomJobTypeApi* | [**CreateJobTypesCustom**](docs/CustomJobTypeApi.md#createjobtypescustom) | **Post** /JobTypes/Custom | Creates a custom job type with the provided properties +*CustomJobTypeApi* | [**DeleteJobTypesCustomById**](docs/CustomJobTypeApi.md#deletejobtypescustombyid) | **Delete** /JobTypes/Custom/{id} | Deletes the custom job type associated with the provided id +*CustomJobTypeApi* | [**GetJobTypesCustom**](docs/CustomJobTypeApi.md#getjobtypescustom) | **Get** /JobTypes/Custom | Returns all custom job types according to the provided filter and output parameters +*CustomJobTypeApi* | [**GetJobTypesCustomById**](docs/CustomJobTypeApi.md#getjobtypescustombyid) | **Get** /JobTypes/Custom/{id} | Returns a single custom job type associated with the provided id +*CustomJobTypeApi* | [**UpdateJobTypesCustom**](docs/CustomJobTypeApi.md#updatejobtypescustom) | **Put** /JobTypes/Custom | Updates an existing custom job type with the provided properties +*DeniedAlertApi* | [**CreateAlertsDenied**](docs/DeniedAlertApi.md#createalertsdenied) | **Post** /Alerts/Denied | Add a denied alert +*DeniedAlertApi* | [**DeleteAlertsDeniedById**](docs/DeniedAlertApi.md#deletealertsdeniedbyid) | **Delete** /Alerts/Denied/{id} | Delete a denied alert +*DeniedAlertApi* | [**GetAlertsDenied**](docs/DeniedAlertApi.md#getalertsdenied) | **Get** /Alerts/Denied | Gets all denied alerts according to the provided filter and output parameters +*DeniedAlertApi* | [**GetAlertsDeniedById**](docs/DeniedAlertApi.md#getalertsdeniedbyid) | **Get** /Alerts/Denied/{id} | Get a denied alert +*DeniedAlertApi* | [**UpdateAlertsDenied**](docs/DeniedAlertApi.md#updatealertsdenied) | **Put** /Alerts/Denied | Edit a denied alert +*EnrollmentApi* | [**CreateEnrollmentCSR**](docs/EnrollmentApi.md#createenrollmentcsr) | **Post** /Enrollment/CSR | Performs a CSR Enrollment based upon the provided request +*EnrollmentApi* | [**CreateEnrollmentCSRParse**](docs/EnrollmentApi.md#createenrollmentcsrparse) | **Post** /Enrollment/CSR/Parse | Parses the provided CSR and returns the properties +*EnrollmentApi* | [**CreateEnrollmentPFX**](docs/EnrollmentApi.md#createenrollmentpfx) | **Post** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request +*EnrollmentApi* | [**CreateEnrollmentPFXDeploy**](docs/EnrollmentApi.md#createenrollmentpfxdeploy) | **Post** /Enrollment/PFX/Deploy | Creates management jobs to install a newly enrolled pfx in to one or more certificate stores +*EnrollmentApi* | [**CreateEnrollmentPFXReplace**](docs/EnrollmentApi.md#createenrollmentpfxreplace) | **Post** /Enrollment/PFX/Replace | Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate +*EnrollmentApi* | [**CreateEnrollmentRenew**](docs/EnrollmentApi.md#createenrollmentrenew) | **Post** /Enrollment/Renew | Performs a renewal based upon the passed in request +*EnrollmentApi* | [**GetEnrollmentAvailableRenewalIdById**](docs/EnrollmentApi.md#getenrollmentavailablerenewalidbyid) | **Get** /Enrollment/AvailableRenewal/Id/{id} | Returns the type of renewal available for a given certificate. +*EnrollmentApi* | [**GetEnrollmentAvailableRenewalThumbprintThumbprint**](docs/EnrollmentApi.md#getenrollmentavailablerenewalthumbprintthumbprint) | **Get** /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} | Returns the type of renewal available for a given certificate. +*EnrollmentApi* | [**GetEnrollmentCSRContextMy**](docs/EnrollmentApi.md#getenrollmentcsrcontextmy) | **Get** /Enrollment/CSR/Context/My | Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on +*EnrollmentApi* | [**GetEnrollmentPFXContextMy**](docs/EnrollmentApi.md#getenrollmentpfxcontextmy) | **Get** /Enrollment/PFX/Context/My | Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on +*EnrollmentApi* | [**GetEnrollmentSettingsById**](docs/EnrollmentApi.md#getenrollmentsettingsbyid) | **Get** /Enrollment/Settings/{id} | Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. +*EventHandlerRegistrationApi* | [**CreateEventHandlerRegistration**](docs/EventHandlerRegistrationApi.md#createeventhandlerregistration) | **Post** /EventHandlerRegistration | Registers an event handler +*EventHandlerRegistrationApi* | [**DeleteEventHandlerRegistrationById**](docs/EventHandlerRegistrationApi.md#deleteeventhandlerregistrationbyid) | **Delete** /EventHandlerRegistration/{id} | Deletes an event handler +*EventHandlerRegistrationApi* | [**GetEventHandlerRegistration**](docs/EventHandlerRegistrationApi.md#geteventhandlerregistration) | **Get** /EventHandlerRegistration | Returns all registered event handlers according to the provided filter and output parameters +*EventHandlerRegistrationApi* | [**GetEventHandlerRegistrationById**](docs/EventHandlerRegistrationApi.md#geteventhandlerregistrationbyid) | **Get** /EventHandlerRegistration/{id} | Returns a registered event handler that matches the provided ID +*EventHandlerRegistrationApi* | [**UpdateEventHandlerRegistrationById**](docs/EventHandlerRegistrationApi.md#updateeventhandlerregistrationbyid) | **Put** /EventHandlerRegistration/{id} | Updates a registered event handler's information +*ExpirationAlertApi* | [**CreateAlertsExpiration**](docs/ExpirationAlertApi.md#createalertsexpiration) | **Post** /Alerts/Expiration | Add an expiration alert +*ExpirationAlertApi* | [**CreateAlertsExpirationTest**](docs/ExpirationAlertApi.md#createalertsexpirationtest) | **Post** /Alerts/Expiration/Test | Test an Expiration Alert +*ExpirationAlertApi* | [**CreateAlertsExpirationTestAll**](docs/ExpirationAlertApi.md#createalertsexpirationtestall) | **Post** /Alerts/Expiration/TestAll | Test All Expiration Alerts +*ExpirationAlertApi* | [**DeleteAlertsExpirationById**](docs/ExpirationAlertApi.md#deletealertsexpirationbyid) | **Delete** /Alerts/Expiration/{id} | Delete an expiration alert +*ExpirationAlertApi* | [**GetAlertsExpiration**](docs/ExpirationAlertApi.md#getalertsexpiration) | **Get** /Alerts/Expiration | Gets all expiration alerts according to the provided filter and output parameters +*ExpirationAlertApi* | [**GetAlertsExpirationById**](docs/ExpirationAlertApi.md#getalertsexpirationbyid) | **Get** /Alerts/Expiration/{id} | Get an expiration alert +*ExpirationAlertApi* | [**GetAlertsExpirationSchedule**](docs/ExpirationAlertApi.md#getalertsexpirationschedule) | **Get** /Alerts/Expiration/Schedule | Get the schedule for expiration alerts +*ExpirationAlertApi* | [**UpdateAlertsExpiration**](docs/ExpirationAlertApi.md#updatealertsexpiration) | **Put** /Alerts/Expiration | Edit an expiration alert +*ExpirationAlertApi* | [**UpdateAlertsExpirationSchedule**](docs/ExpirationAlertApi.md#updatealertsexpirationschedule) | **Put** /Alerts/Expiration/Schedule | Edit schedule +*ExtensionsApi* | [**CreateExtensionsScripts**](docs/ExtensionsApi.md#createextensionsscripts) | **Post** /Extensions/Scripts | Adds a new script +*ExtensionsApi* | [**DeleteExtensionsScriptsById**](docs/ExtensionsApi.md#deleteextensionsscriptsbyid) | **Delete** /Extensions/Scripts/{id} | Deletes a script. Script cannot be configured to an alert or workflow. +*ExtensionsApi* | [**GetExtensionsScripts**](docs/ExtensionsApi.md#getextensionsscripts) | **Get** /Extensions/Scripts | Returns all scripts according to the provided filter and output parameters +*ExtensionsApi* | [**GetExtensionsScriptsById**](docs/ExtensionsApi.md#getextensionsscriptsbyid) | **Get** /Extensions/Scripts/{id} | Returns a single script that matches the provided Id +*ExtensionsApi* | [**UpdateExtensionsScripts**](docs/ExtensionsApi.md#updateextensionsscripts) | **Put** /Extensions/Scripts | Updates a script +*IdentityProviderApi* | [**CreateIdentityProviders**](docs/IdentityProviderApi.md#createidentityproviders) | **Post** /IdentityProviders | Creates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. +*IdentityProviderApi* | [**GetIdentityProviders**](docs/IdentityProviderApi.md#getidentityproviders) | **Get** /IdentityProviders | Returns all OAuth identity providers according to the provided filter and output parameters and user's security role assigned permission sets. +*IdentityProviderApi* | [**GetIdentityProvidersById**](docs/IdentityProviderApi.md#getidentityprovidersbyid) | **Get** /IdentityProviders/{id} | Gets an OAuth identity provider and its parameters. +*IdentityProviderApi* | [**GetIdentityProvidersTypes**](docs/IdentityProviderApi.md#getidentityproviderstypes) | **Get** /IdentityProviders/Types | Returns a list of all available identity provider types and corresponding type parameters. +*IdentityProviderApi* | [**UpdateIdentityProvidersById**](docs/IdentityProviderApi.md#updateidentityprovidersbyid) | **Put** /IdentityProviders/{id} | Updates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. +*IssuedAlertApi* | [**CreateAlertsIssued**](docs/IssuedAlertApi.md#createalertsissued) | **Post** /Alerts/Issued | Add a issued alert +*IssuedAlertApi* | [**DeleteAlertsIssuedById**](docs/IssuedAlertApi.md#deletealertsissuedbyid) | **Delete** /Alerts/Issued/{id} | Delete a issued alert +*IssuedAlertApi* | [**GetAlertsIssued**](docs/IssuedAlertApi.md#getalertsissued) | **Get** /Alerts/Issued | Gets all issued alerts according to the provided filter and output parameters +*IssuedAlertApi* | [**GetAlertsIssuedById**](docs/IssuedAlertApi.md#getalertsissuedbyid) | **Get** /Alerts/Issued/{id} | Get a issued alert +*IssuedAlertApi* | [**GetAlertsIssuedSchedule**](docs/IssuedAlertApi.md#getalertsissuedschedule) | **Get** /Alerts/Issued/Schedule | Get the schedule for issued alerts +*IssuedAlertApi* | [**UpdateAlertsIssued**](docs/IssuedAlertApi.md#updatealertsissued) | **Put** /Alerts/Issued | Edit a issued alert +*IssuedAlertApi* | [**UpdateAlertsIssuedSchedule**](docs/IssuedAlertApi.md#updatealertsissuedschedule) | **Put** /Alerts/Issued/Schedule | Edit schedule +*KeyApi* | [**CreateSSHKeysMyKey**](docs/KeyApi.md#createsshkeysmykey) | **Post** /SSH/Keys/MyKey | Generates an SSH Key Pair for the requesting user. +*KeyApi* | [**DeleteSSHKeysUnmanaged**](docs/KeyApi.md#deletesshkeysunmanaged) | **Delete** /SSH/Keys/Unmanaged | Deletes Unmanaged Keys associated with the provided identifiers +*KeyApi* | [**DeleteSSHKeysUnmanagedById**](docs/KeyApi.md#deletesshkeysunmanagedbyid) | **Delete** /SSH/Keys/Unmanaged/{id} | Deletes Unmanaged Key associated with the provided identifier +*KeyApi* | [**GetSSHKeysMyKey**](docs/KeyApi.md#getsshkeysmykey) | **Get** /SSH/Keys/MyKey | Returns the current key of the requesting user +*KeyApi* | [**GetSSHKeysUnmanaged**](docs/KeyApi.md#getsshkeysunmanaged) | **Get** /SSH/Keys/Unmanaged | Returns Unmanaged SSH keys +*KeyApi* | [**GetSSHKeysUnmanagedById**](docs/KeyApi.md#getsshkeysunmanagedbyid) | **Get** /SSH/Keys/Unmanaged/{id} | Returns an unmanaged SSH key with provided id. +*KeyApi* | [**UpdateSSHKeysMyKey**](docs/KeyApi.md#updatesshkeysmykey) | **Put** /SSH/Keys/MyKey | Updates the requesting user's SSH key +*KeyRotationAlertApi* | [**CreateAlertsKeyRotation**](docs/KeyRotationAlertApi.md#createalertskeyrotation) | **Post** /Alerts/KeyRotation | Add a key rotation alert +*KeyRotationAlertApi* | [**CreateAlertsKeyRotationTest**](docs/KeyRotationAlertApi.md#createalertskeyrotationtest) | **Post** /Alerts/KeyRotation/Test | Test An Alert +*KeyRotationAlertApi* | [**CreateAlertsKeyRotationTestAll**](docs/KeyRotationAlertApi.md#createalertskeyrotationtestall) | **Post** /Alerts/KeyRotation/TestAll | Test All Alerts +*KeyRotationAlertApi* | [**DeleteAlertsKeyRotationById**](docs/KeyRotationAlertApi.md#deletealertskeyrotationbyid) | **Delete** /Alerts/KeyRotation/{id} | Delete a key rotation alert +*KeyRotationAlertApi* | [**GetAlertsKeyRotation**](docs/KeyRotationAlertApi.md#getalertskeyrotation) | **Get** /Alerts/KeyRotation | Gets all key rotation alerts according to the provided filter and output parameters +*KeyRotationAlertApi* | [**GetAlertsKeyRotationById**](docs/KeyRotationAlertApi.md#getalertskeyrotationbyid) | **Get** /Alerts/KeyRotation/{id} | Get a key rotation alert +*KeyRotationAlertApi* | [**GetAlertsKeyRotationSchedule**](docs/KeyRotationAlertApi.md#getalertskeyrotationschedule) | **Get** /Alerts/KeyRotation/Schedule | Get the schedule for key rotation alerts +*KeyRotationAlertApi* | [**UpdateAlertsKeyRotation**](docs/KeyRotationAlertApi.md#updatealertskeyrotation) | **Put** /Alerts/KeyRotation | Edit a key rotation alert +*KeyRotationAlertApi* | [**UpdateAlertsKeyRotationSchedule**](docs/KeyRotationAlertApi.md#updatealertskeyrotationschedule) | **Put** /Alerts/KeyRotation/Schedule | Edit schedule +*LicenseApi* | [**GetLicense**](docs/LicenseApi.md#getlicense) | **Get** /License | Gets the current license +*LogonApi* | [**CreateSSHLogons**](docs/LogonApi.md#createsshlogons) | **Post** /SSH/Logons | Creates a logon with the provided properties +*LogonApi* | [**CreateSSHLogonsAccess**](docs/LogonApi.md#createsshlogonsaccess) | **Post** /SSH/Logons/Access | Updates the users with access to an existing logon +*LogonApi* | [**DeleteSSHLogonsById**](docs/LogonApi.md#deletesshlogonsbyid) | **Delete** /SSH/Logons/{id} | Deletes a Logon associated with the provided identifier +*LogonApi* | [**GetSSHLogons**](docs/LogonApi.md#getsshlogons) | **Get** /SSH/Logons | Returns all Logons according to the provided filter parameters +*LogonApi* | [**GetSSHLogonsById**](docs/LogonApi.md#getsshlogonsbyid) | **Get** /SSH/Logons/{id} | Fetches a Logon associated with the provided identifier +*MacEnrollmentApi* | [**GetMacEnrollment**](docs/MacEnrollmentApi.md#getmacenrollment) | **Get** /MacEnrollment | Gets mac enrollment settings data +*MacEnrollmentApi* | [**UpdateMacEnrollment**](docs/MacEnrollmentApi.md#updatemacenrollment) | **Put** /MacEnrollment | Updates mac enrollment settings data +*MetadataFieldApi* | [**CreateMetadataFields**](docs/MetadataFieldApi.md#createmetadatafields) | **Post** /MetadataFields | Creates a new metadata field type with the given metadata field type properties +*MetadataFieldApi* | [**DeleteMetadataFields**](docs/MetadataFieldApi.md#deletemetadatafields) | **Delete** /MetadataFields | Deletes multiple persisted metadata field types by their unique ids +*MetadataFieldApi* | [**DeleteMetadataFieldsById**](docs/MetadataFieldApi.md#deletemetadatafieldsbyid) | **Delete** /MetadataFields/{id} | Deletes a persisted metadata field type by its unique id +*MetadataFieldApi* | [**GetMetadataFields**](docs/MetadataFieldApi.md#getmetadatafields) | **Get** /MetadataFields | Returns all metadata field types according to the provided filter and output parameters +*MetadataFieldApi* | [**GetMetadataFieldsById**](docs/MetadataFieldApi.md#getmetadatafieldsbyid) | **Get** /MetadataFields/{id} | Gets a persisted metadata field type by its unique id +*MetadataFieldApi* | [**GetMetadataFieldsByIdInUse**](docs/MetadataFieldApi.md#getmetadatafieldsbyidinuse) | **Get** /MetadataFields/{id}/InUse | Determines if a metadata field type associated with the provided identifier is currently in use +*MetadataFieldApi* | [**GetMetadataFieldsName**](docs/MetadataFieldApi.md#getmetadatafieldsname) | **Get** /MetadataFields/{name} | Gets a persisted metadata field type by its unique name +*MetadataFieldApi* | [**UpdateMetadataFields**](docs/MetadataFieldApi.md#updatemetadatafields) | **Put** /MetadataFields | Updates a persisted metadata field with the given metadata field type +*MonitoringApi* | [**CreateMonitoringResolveOCSP**](docs/MonitoringApi.md#createmonitoringresolveocsp) | **Post** /Monitoring/ResolveOCSP | Resolve the Certificate authority given +*MonitoringApi* | [**CreateMonitoringRevocation**](docs/MonitoringApi.md#createmonitoringrevocation) | **Post** /Monitoring/Revocation | Add a revocation monitoring endpoint +*MonitoringApi* | [**CreateMonitoringRevocationCRLTest**](docs/MonitoringApi.md#createmonitoringrevocationcrltest) | **Post** /Monitoring/Revocation/CRL/Test | Validates the connection info for the CRL provided by the model. +*MonitoringApi* | [**CreateMonitoringRevocationOCSPTest**](docs/MonitoringApi.md#createmonitoringrevocationocsptest) | **Post** /Monitoring/Revocation/OCSP/Test | Validates the connection info for the OCSP endpoint provided by the model. +*MonitoringApi* | [**CreateMonitoringRevocationTest**](docs/MonitoringApi.md#createmonitoringrevocationtest) | **Post** /Monitoring/Revocation/Test | Test Alert +*MonitoringApi* | [**CreateMonitoringRevocationTestAll**](docs/MonitoringApi.md#createmonitoringrevocationtestall) | **Post** /Monitoring/Revocation/TestAll | Test All Alerts +*MonitoringApi* | [**DeleteMonitoringRevocationById**](docs/MonitoringApi.md#deletemonitoringrevocationbyid) | **Delete** /Monitoring/Revocation/{id} | Delete a revocation monitoring endpoint +*MonitoringApi* | [**GetMonitoringRevocation**](docs/MonitoringApi.md#getmonitoringrevocation) | **Get** /Monitoring/Revocation | Gets all revocation monitoring endpoints according to the provided filter and output parameters +*MonitoringApi* | [**GetMonitoringRevocationById**](docs/MonitoringApi.md#getmonitoringrevocationbyid) | **Get** /Monitoring/Revocation/{id} | Get a revocation monitoring endpoint +*MonitoringApi* | [**UpdateMonitoringRevocation**](docs/MonitoringApi.md#updatemonitoringrevocation) | **Put** /Monitoring/Revocation | Edit a revocation monitoring endpoint +*MonitoringApi* | [**UpdateMonitoringRevocationSchedule**](docs/MonitoringApi.md#updatemonitoringrevocationschedule) | **Put** /Monitoring/Revocation/Schedule | Edit a revocation monitoring's schedule. +*OrchestratorJobApi* | [**CreateOrchestratorJobsAcknowledge**](docs/OrchestratorJobApi.md#createorchestratorjobsacknowledge) | **Post** /OrchestratorJobs/Acknowledge | Acknowledges orchestrator jobs based on the provided information +*OrchestratorJobApi* | [**CreateOrchestratorJobsCustom**](docs/OrchestratorJobApi.md#createorchestratorjobscustom) | **Post** /OrchestratorJobs/Custom | Schedules a job for a custom JobType on the agent using the provided information +*OrchestratorJobApi* | [**CreateOrchestratorJobsCustomBulk**](docs/OrchestratorJobApi.md#createorchestratorjobscustombulk) | **Post** /OrchestratorJobs/Custom/Bulk | Schedules the same job for a custom JobType on the specified agents using the provided information +*OrchestratorJobApi* | [**CreateOrchestratorJobsReschedule**](docs/OrchestratorJobApi.md#createorchestratorjobsreschedule) | **Post** /OrchestratorJobs/Reschedule | Reschedules orchestrator jobs based on the provided information +*OrchestratorJobApi* | [**CreateOrchestratorJobsUnschedule**](docs/OrchestratorJobApi.md#createorchestratorjobsunschedule) | **Post** /OrchestratorJobs/Unschedule | Unschedules orchestrator jobs based on the provided information +*OrchestratorJobApi* | [**GetOrchestratorJobsJobHistory**](docs/OrchestratorJobApi.md#getorchestratorjobsjobhistory) | **Get** /OrchestratorJobs/JobHistory | Returns all histories of an orchestrator job according to the provided filter and output parameters +*OrchestratorJobApi* | [**GetOrchestratorJobsJobStatusData**](docs/OrchestratorJobApi.md#getorchestratorjobsjobstatusdata) | **Get** /OrchestratorJobs/JobStatus/Data | Retrieves the results of a custom job using the provided information +*OrchestratorJobApi* | [**GetOrchestratorJobsScheduledJobs**](docs/OrchestratorJobApi.md#getorchestratorjobsscheduledjobs) | **Get** /OrchestratorJobs/ScheduledJobs | Returns all scheduled orchestrator jobs according to the provided filter and output parameters +*PAMLocalEntriesApi* | [**CreatePamProvidersLocalProviderIdEntries**](docs/PAMLocalEntriesApi.md#createpamproviderslocalprovideridentries) | **Post** /PamProviders/Local/{providerId}/Entries | Creates a new local PAM entry with the associated properties +*PAMLocalEntriesApi* | [**DeletePamProvidersLocalProviderIdEntries**](docs/PAMLocalEntriesApi.md#deletepamproviderslocalprovideridentries) | **Delete** /PamProviders/Local/{providerId}/Entries | Deletes a local PAM entry +*PAMLocalEntriesApi* | [**GetPamProvidersLocalProviderIdEntries**](docs/PAMLocalEntriesApi.md#getpamproviderslocalprovideridentries) | **Get** /PamProviders/Local/{providerId}/Entries | Returns local PAM entries for the given PAM provider according to the provided filter and output parameters +*PAMLocalEntriesApi* | [**UpdatePamProvidersLocalProviderIdEntries**](docs/PAMLocalEntriesApi.md#updatepamproviderslocalprovideridentries) | **Put** /PamProviders/Local/{providerId}/Entries | Updates local PAM entry with the associated properties +*PAMProviderApi* | [**CreatePamProviders**](docs/PAMProviderApi.md#createpamproviders) | **Post** /PamProviders | Creates a new PAM provider with the associated properties +*PAMProviderApi* | [**CreatePamProvidersTypes**](docs/PAMProviderApi.md#createpamproviderstypes) | **Post** /PamProviders/Types | Creates a new PAM provider type with the associated properties +*PAMProviderApi* | [**DeletePamProvidersById**](docs/PAMProviderApi.md#deletepamprovidersbyid) | **Delete** /PamProviders/{id} | Deletes a PAM Provider +*PAMProviderApi* | [**DeletePamProvidersTypesById**](docs/PAMProviderApi.md#deletepamproviderstypesbyid) | **Delete** /PamProviders/Types/{id} | Deletes a PAM provider Type, as long as the PAM type is not currently in use. +*PAMProviderApi* | [**GetPamProviders**](docs/PAMProviderApi.md#getpamproviders) | **Get** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +*PAMProviderApi* | [**GetPamProvidersById**](docs/PAMProviderApi.md#getpamprovidersbyid) | **Get** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +*PAMProviderApi* | [**GetPamProvidersTypes**](docs/PAMProviderApi.md#getpamproviderstypes) | **Get** /PamProviders/Types | Returns all PAM provider types in the Keyfactor instance +*PAMProviderApi* | [**UpdatePamProviders**](docs/PAMProviderApi.md#updatepamproviders) | **Put** /PamProviders | Updates an existing PAM provider according to the provided properties +*PendingAlertApi* | [**CreateAlertsPending**](docs/PendingAlertApi.md#createalertspending) | **Post** /Alerts/Pending | Add a pending alert +*PendingAlertApi* | [**CreateAlertsPendingTest**](docs/PendingAlertApi.md#createalertspendingtest) | **Post** /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true +*PendingAlertApi* | [**CreateAlertsPendingTestAll**](docs/PendingAlertApi.md#createalertspendingtestall) | **Post** /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true +*PendingAlertApi* | [**DeleteAlertsPendingById**](docs/PendingAlertApi.md#deletealertspendingbyid) | **Delete** /Alerts/Pending/{id} | Delete a pending alert +*PendingAlertApi* | [**GetAlertsPending**](docs/PendingAlertApi.md#getalertspending) | **Get** /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters +*PendingAlertApi* | [**GetAlertsPendingById**](docs/PendingAlertApi.md#getalertspendingbyid) | **Get** /Alerts/Pending/{id} | Get a pending alert +*PendingAlertApi* | [**GetAlertsPendingSchedule**](docs/PendingAlertApi.md#getalertspendingschedule) | **Get** /Alerts/Pending/Schedule | Get the schedule for pending alerts +*PendingAlertApi* | [**UpdateAlertsPending**](docs/PendingAlertApi.md#updatealertspending) | **Put** /Alerts/Pending | Edit a pending alert +*PendingAlertApi* | [**UpdateAlertsPendingSchedule**](docs/PendingAlertApi.md#updatealertspendingschedule) | **Put** /Alerts/Pending/Schedule | Edit schedule +*PermissionSetApi* | [**CreatePermissionSets**](docs/PermissionSetApi.md#createpermissionsets) | **Post** /PermissionSets | Creates a new permission set. +*PermissionSetApi* | [**DeletePermissionSetsById**](docs/PermissionSetApi.md#deletepermissionsetsbyid) | **Delete** /PermissionSets/{id} | Deletes a permission set. +*PermissionSetApi* | [**GetPermissionSets**](docs/PermissionSetApi.md#getpermissionsets) | **Get** /PermissionSets | Gets all Permission Set(s) in the system if the user has a security role that is assigned to the Global Permission Set and the security role has the Global Security Read permission. Otherwise, returns only the Permission Sets with the Security Modify permission that are assigned to the user's security role(s). +*PermissionSetApi* | [**GetPermissionSetsById**](docs/PermissionSetApi.md#getpermissionsetsbyid) | **Get** /PermissionSets/{id} | Gets permission set data. +*PermissionSetApi* | [**GetPermissionSetsMy**](docs/PermissionSetApi.md#getpermissionsetsmy) | **Get** /PermissionSets/My | +*PermissionSetApi* | [**UpdatePermissionSets**](docs/PermissionSetApi.md#updatepermissionsets) | **Put** /PermissionSets | +*PermissionsApi* | [**GetPermissions**](docs/PermissionsApi.md#getpermissions) | **Get** /Permissions | Gets all permissions in the system. +*ReportsApi* | [**CreateReportsByIdSchedules**](docs/ReportsApi.md#createreportsbyidschedules) | **Post** /Reports/{id}/Schedules | Create a built-in report's schedule that matches the id of the report. +*ReportsApi* | [**CreateReportsCustom**](docs/ReportsApi.md#createreportscustom) | **Post** /Reports/Custom | Creates a custom report +*ReportsApi* | [**DeleteReportsCustomById**](docs/ReportsApi.md#deletereportscustombyid) | **Delete** /Reports/Custom/{id} | Delete custom report that matches the id +*ReportsApi* | [**DeleteReportsSchedulesById**](docs/ReportsApi.md#deletereportsschedulesbyid) | **Delete** /Reports/Schedules/{id} | Delete a built-in report's schedule that matches the id of the schedule. +*ReportsApi* | [**GetReports**](docs/ReportsApi.md#getreports) | **Get** /Reports | Returns all built-in reports according to the provided filter and output parameters +*ReportsApi* | [**GetReportsById**](docs/ReportsApi.md#getreportsbyid) | **Get** /Reports/{id} | Returns a single built-in report that matches the id +*ReportsApi* | [**GetReportsByIdParameters**](docs/ReportsApi.md#getreportsbyidparameters) | **Get** /Reports/{id}/Parameters | Get a built-in report's parameters that matches the id of the report. +*ReportsApi* | [**GetReportsByIdSchedules**](docs/ReportsApi.md#getreportsbyidschedules) | **Get** /Reports/{id}/Schedules | Get a built-in report's schedules that matches the id of the report. +*ReportsApi* | [**GetReportsCustom**](docs/ReportsApi.md#getreportscustom) | **Get** /Reports/Custom | Returns all custom reports according to the provided filter and output parameters +*ReportsApi* | [**GetReportsCustomById**](docs/ReportsApi.md#getreportscustombyid) | **Get** /Reports/Custom/{id} | Returns a single custom report that matches the id +*ReportsApi* | [**GetReportsSchedulesById**](docs/ReportsApi.md#getreportsschedulesbyid) | **Get** /Reports/Schedules/{id} | Get a built-in report's schedule that matches the id of the schedule. +*ReportsApi* | [**UpdateReports**](docs/ReportsApi.md#updatereports) | **Put** /Reports | Updates a single built-in report that matches the id. Only some fields can be updated. +*ReportsApi* | [**UpdateReportsByIdParameters**](docs/ReportsApi.md#updatereportsbyidparameters) | **Put** /Reports/{id}/Parameters | Update a built-in report's parameters that matches the id of the report. +*ReportsApi* | [**UpdateReportsByIdSchedules**](docs/ReportsApi.md#updatereportsbyidschedules) | **Put** /Reports/{id}/Schedules | Update a built-in report's schedule that matches the id of the report. +*ReportsApi* | [**UpdateReportsCustom**](docs/ReportsApi.md#updatereportscustom) | **Put** /Reports/Custom | Updates a custom report that matches the id +*SMTPApi* | [**CreateSMTPTest**](docs/SMTPApi.md#createsmtptest) | **Post** /SMTP/Test | Tests SMTP profile data +*SMTPApi* | [**GetSMTP**](docs/SMTPApi.md#getsmtp) | **Get** /SMTP | Gets SMTP profile data +*SMTPApi* | [**UpdateSMTP**](docs/SMTPApi.md#updatesmtp) | **Put** /SMTP | Updates SMTP profile data +*SchedulingApi* | [**CreateScheduling**](docs/SchedulingApi.md#createscheduling) | **Post** /Scheduling | +*SecurityApi* | [**CreateSecurityContainersByIdRoles**](docs/SecurityApi.md#createsecuritycontainersbyidroles) | **Post** /Security/Containers/{id}/Roles | Edit a certificate store container's permissions. Reminder: Name field should be left blank. +*SecurityApi* | [**CreateSecurityIdentities**](docs/SecurityApi.md#createsecurityidentities) | **Post** /Security/Identities | Adds a new security identity to the system. +*SecurityApi* | [**DeleteSecurityIdentitiesById**](docs/SecurityApi.md#deletesecurityidentitiesbyid) | **Delete** /Security/Identities/{id} | Deletes the security identity whose ID is provided. +*SecurityApi* | [**GetSecurityAuditCollectionsById**](docs/SecurityApi.md#getsecurityauditcollectionsbyid) | **Get** /Security/Audit/Collections/{id} | Gets a list of applicable security permissions for certificate collection +*SecurityApi* | [**GetSecurityContainersByIdRoles**](docs/SecurityApi.md#getsecuritycontainersbyidroles) | **Get** /Security/Containers/{id}/Roles | Returns all the permissions of a certificate store container through the id +*SecurityApi* | [**GetSecurityIdentities**](docs/SecurityApi.md#getsecurityidentities) | **Get** /Security/Identities | Returns all security identities according to the provided filter and output parameters. +*SecurityApi* | [**GetSecurityIdentitiesById**](docs/SecurityApi.md#getsecurityidentitiesbyid) | **Get** /Security/Identities/{id} | Gets an object representing the permissions of the identity associated with the provided identifier. +*SecurityApi* | [**GetSecurityIdentitiesLookup**](docs/SecurityApi.md#getsecurityidentitieslookup) | **Get** /Security/Identities/Lookup | Validates that the identity with the name given exists. +*SecurityApi* | [**GetSecurityMy**](docs/SecurityApi.md#getsecuritymy) | **Get** /Security/My | Looks at all the roles and global permissions for the user and returns them. +*SecurityClaimsApi* | [**CreateSecurityClaims**](docs/SecurityClaimsApi.md#createsecurityclaims) | **Post** /Security/Claims | Adds a new claim definition to the system. +*SecurityClaimsApi* | [**DeleteSecurityClaimsById**](docs/SecurityClaimsApi.md#deletesecurityclaimsbyid) | **Delete** /Security/Claims/{id} | Removes a claim definition from the system. +*SecurityClaimsApi* | [**GetSecurityClaims**](docs/SecurityClaimsApi.md#getsecurityclaims) | **Get** /Security/Claims | Returns all claim definitions according to the provided filter and output parameters. +*SecurityClaimsApi* | [**GetSecurityClaimsById**](docs/SecurityClaimsApi.md#getsecurityclaimsbyid) | **Get** /Security/Claims/{id} | Returns a single claim definition that matches the id. +*SecurityClaimsApi* | [**GetSecurityClaimsRoles**](docs/SecurityClaimsApi.md#getsecurityclaimsroles) | **Get** /Security/Claims/Roles | Returns a list of roles granted by the claim with the provided id. +*SecurityClaimsApi* | [**UpdateSecurityClaims**](docs/SecurityClaimsApi.md#updatesecurityclaims) | **Put** /Security/Claims | Updates an existing claim definition. +*SecurityRolePermissionsApi* | [**CreateSecurityRolesByIdPermissionsCollections**](docs/SecurityRolePermissionsApi.md#createsecurityrolesbyidpermissionscollections) | **Post** /Security/Roles/{id}/Permissions/Collections | Adds collection permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**CreateSecurityRolesByIdPermissionsContainers**](docs/SecurityRolePermissionsApi.md#createsecurityrolesbyidpermissionscontainers) | **Post** /Security/Roles/{id}/Permissions/Containers | Adds container permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**CreateSecurityRolesByIdPermissionsGlobal**](docs/SecurityRolePermissionsApi.md#createsecurityrolesbyidpermissionsglobal) | **Post** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**GetSecurityRolesByIdPermissions**](docs/SecurityRolePermissionsApi.md#getsecurityrolesbyidpermissions) | **Get** /Security/Roles/{id}/Permissions | Returns all permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**GetSecurityRolesByIdPermissionsCollections**](docs/SecurityRolePermissionsApi.md#getsecurityrolesbyidpermissionscollections) | **Get** /Security/Roles/{id}/Permissions/Collections | Returns all collection permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**GetSecurityRolesByIdPermissionsContainers**](docs/SecurityRolePermissionsApi.md#getsecurityrolesbyidpermissionscontainers) | **Get** /Security/Roles/{id}/Permissions/Containers | Returns all container permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**GetSecurityRolesByIdPermissionsGlobal**](docs/SecurityRolePermissionsApi.md#getsecurityrolesbyidpermissionsglobal) | **Get** /Security/Roles/{id}/Permissions/Global | Returns all global permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**GetSecurityRolesByIdPermissionsPamProviders**](docs/SecurityRolePermissionsApi.md#getsecurityrolesbyidpermissionspamproviders) | **Get** /Security/Roles/{id}/Permissions/PamProviders | Returns all PAM provider permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**UpdateSecurityRolesByIdPermissionsCollections**](docs/SecurityRolePermissionsApi.md#updatesecurityrolesbyidpermissionscollections) | **Put** /Security/Roles/{id}/Permissions/Collections | Sets collection permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**UpdateSecurityRolesByIdPermissionsContainers**](docs/SecurityRolePermissionsApi.md#updatesecurityrolesbyidpermissionscontainers) | **Put** /Security/Roles/{id}/Permissions/Containers | Sets container permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**UpdateSecurityRolesByIdPermissionsGlobal**](docs/SecurityRolePermissionsApi.md#updatesecurityrolesbyidpermissionsglobal) | **Put** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**UpdateSecurityRolesByIdPermissionsPamProviders**](docs/SecurityRolePermissionsApi.md#updatesecurityrolesbyidpermissionspamproviders) | **Put** /Security/Roles/{id}/Permissions/PamProviders | Sets PAM provider permissions to the security role that matches the id. +*SecurityRolesApi* | [**CreateSecurityRoles**](docs/SecurityRolesApi.md#createsecurityroles) | **Post** /Security/Roles | Adds a new security role to the system. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**CreateSecurityRolesByIdCopy**](docs/SecurityRolesApi.md#createsecurityrolesbyidcopy) | **Post** /Security/Roles/{id}/Copy | Makes a copy of an existing security role. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**DeleteSecurityRolesById**](docs/SecurityRolesApi.md#deletesecurityrolesbyid) | **Delete** /Security/Roles/{id} | Deletes the security role whose ID is provided. +*SecurityRolesApi* | [**GetSecurityRoles**](docs/SecurityRolesApi.md#getsecurityroles) | **Get** /Security/Roles | Returns all security roles according to the provided filter and output parameters. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**GetSecurityRolesById**](docs/SecurityRolesApi.md#getsecurityrolesbyid) | **Get** /Security/Roles/{id} | Returns a single security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**GetSecurityRolesByIdIdentities**](docs/SecurityRolesApi.md#getsecurityrolesbyididentities) | **Get** /Security/Roles/{id}/Identities | Returns all identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**UpdateSecurityRoles**](docs/SecurityRolesApi.md#updatesecurityroles) | **Put** /Security/Roles | Updates a security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*SecurityRolesApi* | [**UpdateSecurityRolesByIdIdentities**](docs/SecurityRolesApi.md#updatesecurityrolesbyididentities) | **Put** /Security/Roles/{id}/Identities | Updates the identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +*ServerApi* | [**CreateSSHServers**](docs/ServerApi.md#createsshservers) | **Post** /SSH/Servers | Creates a server with the provided properties +*ServerApi* | [**CreateSSHServersAccess**](docs/ServerApi.md#createsshserversaccess) | **Post** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +*ServerApi* | [**DeleteSSHServersAccess**](docs/ServerApi.md#deletesshserversaccess) | **Delete** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +*ServerApi* | [**DeleteSSHServersById**](docs/ServerApi.md#deletesshserversbyid) | **Delete** /SSH/Servers/{id} | Deletes a Server associated with the provided identifier +*ServerApi* | [**GetSSHServers**](docs/ServerApi.md#getsshservers) | **Get** /SSH/Servers | Returns all servers according to the provided filter parameters +*ServerApi* | [**GetSSHServersAccessById**](docs/ServerApi.md#getsshserversaccessbyid) | **Get** /SSH/Servers/Access/{id} | Retrieves logons and users with access to those logons for an existing server +*ServerApi* | [**GetSSHServersById**](docs/ServerApi.md#getsshserversbyid) | **Get** /SSH/Servers/{id} | Returns a Server associated with the provided identifier +*ServerApi* | [**UpdateSSHServers**](docs/ServerApi.md#updatesshservers) | **Put** /SSH/Servers | Updates an existing server with the provided properties +*ServerGroupApi* | [**CreateSSHServerGroups**](docs/ServerGroupApi.md#createsshservergroups) | **Post** /SSH/ServerGroups | Creates a server group with the provided properties +*ServerGroupApi* | [**CreateSSHServerGroupsAccess**](docs/ServerGroupApi.md#createsshservergroupsaccess) | **Post** /SSH/ServerGroups/Access | Add access rules to the server group +*ServerGroupApi* | [**DeleteSSHServerGroupsAccess**](docs/ServerGroupApi.md#deletesshservergroupsaccess) | **Delete** /SSH/ServerGroups/Access | Removes access mappings for the specified server group +*ServerGroupApi* | [**DeleteSSHServerGroupsById**](docs/ServerGroupApi.md#deletesshservergroupsbyid) | **Delete** /SSH/ServerGroups/{id} | Deletes a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**GetSSHServerGroups**](docs/ServerGroupApi.md#getsshservergroups) | **Get** /SSH/ServerGroups | Returns all server groups according to the provided filter parameters +*ServerGroupApi* | [**GetSSHServerGroupsAccessById**](docs/ServerGroupApi.md#getsshservergroupsaccessbyid) | **Get** /SSH/ServerGroups/Access/{id} | Retrieves logons and users with access to those logons for an existing server group +*ServerGroupApi* | [**GetSSHServerGroupsById**](docs/ServerGroupApi.md#getsshservergroupsbyid) | **Get** /SSH/ServerGroups/{id} | Returns a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**GetSSHServerGroupsName**](docs/ServerGroupApi.md#getsshservergroupsname) | **Get** /SSH/ServerGroups/{name} | Returns a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**UpdateSSHServerGroups**](docs/ServerGroupApi.md#updatesshservergroups) | **Put** /SSH/ServerGroups | Updates an existing server group with the provided properties +*ServiceAccountApi* | [**CreateSSHServiceAccounts**](docs/ServiceAccountApi.md#createsshserviceaccounts) | **Post** /SSH/ServiceAccounts | Creates a ServiceAccount with the provided properties +*ServiceAccountApi* | [**CreateSSHServiceAccountsRotateById**](docs/ServiceAccountApi.md#createsshserviceaccountsrotatebyid) | **Post** /SSH/ServiceAccounts/Rotate/{id} | Rotate an SSH key for a specified service account. +*ServiceAccountApi* | [**DeleteSSHServiceAccounts**](docs/ServiceAccountApi.md#deletesshserviceaccounts) | **Delete** /SSH/ServiceAccounts | Deletes Service Accounts associated with the provided identifiers +*ServiceAccountApi* | [**DeleteSSHServiceAccountsById**](docs/ServiceAccountApi.md#deletesshserviceaccountsbyid) | **Delete** /SSH/ServiceAccounts/{id} | Deletes a ServiceAccount associated with the provided identifier +*ServiceAccountApi* | [**GetSSHServiceAccounts**](docs/ServiceAccountApi.md#getsshserviceaccounts) | **Get** /SSH/ServiceAccounts | Returns all ServiceAccounts according to the provided filter parameters +*ServiceAccountApi* | [**GetSSHServiceAccountsById**](docs/ServiceAccountApi.md#getsshserviceaccountsbyid) | **Get** /SSH/ServiceAccounts/{id} | Returns a ServiceAccount associated with the provided identifier +*ServiceAccountApi* | [**GetSSHServiceAccountsKeyById**](docs/ServiceAccountApi.md#getsshserviceaccountskeybyid) | **Get** /SSH/ServiceAccounts/Key/{id} | Returns an SSH key with or without private key based on the provided parameters. +*ServiceAccountApi* | [**UpdateSSHServiceAccounts**](docs/ServiceAccountApi.md#updatesshserviceaccounts) | **Put** /SSH/ServiceAccounts | Updates an SSH key for a specified service account. +*SslApi* | [**CreateSSLNetworkRanges**](docs/SslApi.md#createsslnetworkranges) | **Post** /SSL/NetworkRanges | Adds the provided network range definitions to the associated network definition +*SslApi* | [**CreateSSLNetworkRangesValidate**](docs/SslApi.md#createsslnetworkrangesvalidate) | **Post** /SSL/NetworkRanges/Validate | Validates the format (using regular expressions) of the provided network range definitions +*SslApi* | [**CreateSSLNetworks**](docs/SslApi.md#createsslnetworks) | **Post** /SSL/Networks | Creates a network definition according to the provided properties +*SslApi* | [**CreateSSLNetworksByIdReset**](docs/SslApi.md#createsslnetworksbyidreset) | **Post** /SSL/Networks/{id}/Reset | Resets all SSL scans associated with a network +*SslApi* | [**CreateSSLNetworksByIdScan**](docs/SslApi.md#createsslnetworksbyidscan) | **Post** /SSL/Networks/{id}/Scan | Starts an SSL Scan for the network according to the associated network definition +*SslApi* | [**DeleteSSLNetworkRangesById**](docs/SslApi.md#deletesslnetworkrangesbyid) | **Delete** /SSL/NetworkRanges/{id} | Removes all network range definitions from the associated network definition +*SslApi* | [**DeleteSSLNetworksById**](docs/SslApi.md#deletesslnetworksbyid) | **Delete** /SSL/Networks/{id} | Removes a network definition according to the provided identifier +*SslApi* | [**GetSSL**](docs/SslApi.md#getssl) | **Get** /SSL | Returns a list of the endpoint scan results according to the provided filter and output parameters +*SslApi* | [**GetSSLEndpointsById**](docs/SslApi.md#getsslendpointsbyid) | **Get** /SSL/Endpoints/{id} | Returns the details of the associated scanning endpoint +*SslApi* | [**GetSSLEndpointsByIdHistory**](docs/SslApi.md#getsslendpointsbyidhistory) | **Get** /SSL/Endpoints/{id}/History | Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters +*SslApi* | [**GetSSLNetworkRangesById**](docs/SslApi.md#getsslnetworkrangesbyid) | **Get** /SSL/NetworkRanges/{id} | Returns the network range definitions for the provided network definition +*SslApi* | [**GetSSLNetworks**](docs/SslApi.md#getsslnetworks) | **Get** /SSL/Networks | Returns all defined SSL networks according to the provided filter and output parameters +*SslApi* | [**GetSSLNetworksByIdParts**](docs/SslApi.md#getsslnetworksbyidparts) | **Get** /SSL/Networks/{id}/Parts | Returns the scan job components comprising the entire scan job to be executed +*SslApi* | [**GetSSLNetworksIdentifier**](docs/SslApi.md#getsslnetworksidentifier) | **Get** /SSL/Networks/{identifier} | Returns a defined SSL network according to the provided name +*SslApi* | [**GetSSLPartsById**](docs/SslApi.md#getsslpartsbyid) | **Get** /SSL/Parts/{id} | Returns the execution details of the associated network scan job part +*SslApi* | [**UpdateSSLEndpointsMonitorAll**](docs/SslApi.md#updatesslendpointsmonitorall) | **Put** /SSL/Endpoints/MonitorAll | Sets all endpoints matching the provided query as 'monitored' +*SslApi* | [**UpdateSSLEndpointsMonitorStatus**](docs/SslApi.md#updatesslendpointsmonitorstatus) | **Put** /SSL/Endpoints/MonitorStatus | Sets the monitored status according to the provided endpoint and boolean status +*SslApi* | [**UpdateSSLEndpointsReviewAll**](docs/SslApi.md#updatesslendpointsreviewall) | **Put** /SSL/Endpoints/ReviewAll | Sets all endpoints matching the provided query as 'reviewed' +*SslApi* | [**UpdateSSLEndpointsReviewStatus**](docs/SslApi.md#updatesslendpointsreviewstatus) | **Put** /SSL/Endpoints/ReviewStatus | Sets the reviewed status according to the provided endpoint and boolean status +*SslApi* | [**UpdateSSLNetworkRanges**](docs/SslApi.md#updatesslnetworkranges) | **Put** /SSL/NetworkRanges | Configures network range definitions for the provided network +*SslApi* | [**UpdateSSLNetworks**](docs/SslApi.md#updatesslnetworks) | **Put** /SSL/Networks | Updates an existing network definition according to the provided properties +*StatusApi* | [**GetStatusEndpoints**](docs/StatusApi.md#getstatusendpoints) | **Get** /Status/Endpoints | Returns all endpoints to which the requesting identity has access +*StatusApi* | [**GetStatusHealthCheck**](docs/StatusApi.md#getstatushealthcheck) | **Get** /Status/HealthCheck | Returns the current status of the API's ability to connect to the database. +*TemplateApi* | [**CreateTemplatesImport**](docs/TemplateApi.md#createtemplatesimport) | **Post** /Templates/Import | Imports templates from the provided configuration tenant +*TemplateApi* | [**GetTemplates**](docs/TemplateApi.md#gettemplates) | **Get** /Templates | Returns all certificate templates according to the provided filter and output parameters +*TemplateApi* | [**GetTemplatesById**](docs/TemplateApi.md#gettemplatesbyid) | **Get** /Templates/{id} | Returns the certificate template associated with the provided id +*TemplateApi* | [**GetTemplatesSettings**](docs/TemplateApi.md#gettemplatessettings) | **Get** /Templates/Settings | Gets the global template settings. +*TemplateApi* | [**GetTemplatesSubjectParts**](docs/TemplateApi.md#gettemplatessubjectparts) | **Get** /Templates/SubjectParts | Returns the valid subject parts possible for regular expressions. +*TemplateApi* | [**UpdateTemplates**](docs/TemplateApi.md#updatetemplates) | **Put** /Templates | Updates a certificate template according to the provided properties +*TemplateApi* | [**UpdateTemplatesSettings**](docs/TemplateApi.md#updatetemplatessettings) | **Put** /Templates/Settings | Replaces the existing global template settings. +*UserApi* | [**CreateSSHUsers**](docs/UserApi.md#createsshusers) | **Post** /SSH/Users | Creates a new SSH User. +*UserApi* | [**CreateSSHUsersAccess**](docs/UserApi.md#createsshusersaccess) | **Post** /SSH/Users/Access | Updates logon access for a user +*UserApi* | [**DeleteSSHUsersById**](docs/UserApi.md#deletesshusersbyid) | **Delete** /SSH/Users/{id} | Deletes an SSH user. +*UserApi* | [**GetSSHUsers**](docs/UserApi.md#getsshusers) | **Get** /SSH/Users | Returns users matching the criteria from the provided query parameters +*UserApi* | [**GetSSHUsersById**](docs/UserApi.md#getsshusersbyid) | **Get** /SSH/Users/{id} | Looks up information about an existing SSH user. +*UserApi* | [**UpdateSSHUsers**](docs/UserApi.md#updatesshusers) | **Put** /SSH/Users | Updates information about a given user. +*WorkflowApi* | [**CreateWorkflowCertificatesApprove**](docs/WorkflowApi.md#createworkflowcertificatesapprove) | **Post** /Workflow/Certificates/Approve | Approves pending certificate requests associated with the provided ids +*WorkflowApi* | [**CreateWorkflowCertificatesDeny**](docs/WorkflowApi.md#createworkflowcertificatesdeny) | **Post** /Workflow/Certificates/Deny | Denies pending certificate requests associated with the provided ids +*WorkflowApi* | [**GetWorkflowCertificatesById**](docs/WorkflowApi.md#getworkflowcertificatesbyid) | **Get** /Workflow/Certificates/{id} | Returns certificate request details based on the provided ID. +*WorkflowApi* | [**GetWorkflowCertificatesDenied**](docs/WorkflowApi.md#getworkflowcertificatesdenied) | **Get** /Workflow/Certificates/Denied | Gets a collection of denied certificate requests based on the provided query. +*WorkflowApi* | [**GetWorkflowCertificatesExternalValidation**](docs/WorkflowApi.md#getworkflowcertificatesexternalvalidation) | **Get** /Workflow/Certificates/ExternalValidation | Gets a collection of external validation certificate requests based on the provided query. +*WorkflowApi* | [**GetWorkflowCertificatesPending**](docs/WorkflowApi.md#getworkflowcertificatespending) | **Get** /Workflow/Certificates/Pending | Gets a collection of pending certificate requests based on the provided query. +*WorkflowDefinitionApi* | [**CreateWorkflowDefinitions**](docs/WorkflowDefinitionApi.md#createworkflowdefinitions) | **Post** /Workflow/Definitions | Creates a new base definition without any steps. +*WorkflowDefinitionApi* | [**CreateWorkflowDefinitionsDefinitionIdPublish**](docs/WorkflowDefinitionApi.md#createworkflowdefinitionsdefinitionidpublish) | **Post** /Workflow/Definitions/{definitionId}/Publish | Makes the most recent version of a Workflow Definition the published version. +*WorkflowDefinitionApi* | [**CreateWorkflowDefinitionsDefinitionIdPublishVersion**](docs/WorkflowDefinitionApi.md#createworkflowdefinitionsdefinitionidpublishversion) | **Post** /Workflow/Definitions/{definitionId}/Publish/{version} | Makes the specified version of a Workflow Definition the published version. +*WorkflowDefinitionApi* | [**DeleteWorkflowDefinitionsDefinitionId**](docs/WorkflowDefinitionApi.md#deleteworkflowdefinitionsdefinitionid) | **Delete** /Workflow/Definitions/{definitionId} | Deletes the definition matching the given Id. +*WorkflowDefinitionApi* | [**GetWorkflowDefinitions**](docs/WorkflowDefinitionApi.md#getworkflowdefinitions) | **Get** /Workflow/Definitions | Gets the Definitions matching the query specifications. +*WorkflowDefinitionApi* | [**GetWorkflowDefinitionsDefinitionId**](docs/WorkflowDefinitionApi.md#getworkflowdefinitionsdefinitionid) | **Get** /Workflow/Definitions/{definitionId} | Gets a workflow definition. +*WorkflowDefinitionApi* | [**GetWorkflowDefinitionsSteps**](docs/WorkflowDefinitionApi.md#getworkflowdefinitionssteps) | **Get** /Workflow/Definitions/Steps | Gets the result set of available steps for a given query. +*WorkflowDefinitionApi* | [**GetWorkflowDefinitionsStepsExtensionName**](docs/WorkflowDefinitionApi.md#getworkflowdefinitionsstepsextensionname) | **Get** /Workflow/Definitions/Steps/{extensionName} | Gets the schema of a given step with the specified extension name. +*WorkflowDefinitionApi* | [**GetWorkflowDefinitionsTypes**](docs/WorkflowDefinitionApi.md#getworkflowdefinitionstypes) | **Get** /Workflow/Definitions/Types | Performs a query against the workflow types in the system. +*WorkflowDefinitionApi* | [**UpdateWorkflowDefinitionsDefinitionId**](docs/WorkflowDefinitionApi.md#updateworkflowdefinitionsdefinitionid) | **Put** /Workflow/Definitions/{definitionId} | Updates the existing definition's DisplayName and Description. +*WorkflowDefinitionApi* | [**UpdateWorkflowDefinitionsDefinitionIdStatus**](docs/WorkflowDefinitionApi.md#updateworkflowdefinitionsdefinitionidstatus) | **Put** /Workflow/Definitions/{definitionId}/Status | Updates the definition status matching the given Id. +*WorkflowDefinitionApi* | [**UpdateWorkflowDefinitionsDefinitionIdSteps**](docs/WorkflowDefinitionApi.md#updateworkflowdefinitionsdefinitionidsteps) | **Put** /Workflow/Definitions/{definitionId}/Steps | Sets the provided steps on the latest version of the definition. +*WorkflowInstanceApi* | [**CreateWorkflowInstancesInstanceIdRestart**](docs/WorkflowInstanceApi.md#createworkflowinstancesinstanceidrestart) | **Post** /Workflow/Instances/{instanceId}/Restart | Restarts a failed instance against the specified definition version or the published version if no version is specified. +*WorkflowInstanceApi* | [**CreateWorkflowInstancesInstanceIdSignals**](docs/WorkflowInstanceApi.md#createworkflowinstancesinstanceidsignals) | **Post** /Workflow/Instances/{instanceId}/Signals | Receives the given signal for the given instance. +*WorkflowInstanceApi* | [**CreateWorkflowInstancesInstanceIdStop**](docs/WorkflowInstanceApi.md#createworkflowinstancesinstanceidstop) | **Post** /Workflow/Instances/{instanceId}/Stop | Rejects an instance, preventing it from continuing. +*WorkflowInstanceApi* | [**DeleteWorkflowInstancesInstanceId**](docs/WorkflowInstanceApi.md#deleteworkflowinstancesinstanceid) | **Delete** /Workflow/Instances/{instanceId} | Deletes the specified instance. +*WorkflowInstanceApi* | [**GetWorkflowInstances**](docs/WorkflowInstanceApi.md#getworkflowinstances) | **Get** /Workflow/Instances | Gets the workflow instances matching the query specifications. +*WorkflowInstanceApi* | [**GetWorkflowInstancesAssignedToMe**](docs/WorkflowInstanceApi.md#getworkflowinstancesassignedtome) | **Get** /Workflow/Instances/AssignedToMe | Gets the workflow instances waiting on the user. +*WorkflowInstanceApi* | [**GetWorkflowInstancesInstanceId**](docs/WorkflowInstanceApi.md#getworkflowinstancesinstanceid) | **Get** /Workflow/Instances/{instanceId} | Get information relevant for knowing where an instance is in its workflow. +*WorkflowInstanceApi* | [**GetWorkflowInstancesMy**](docs/WorkflowInstanceApi.md#getworkflowinstancesmy) | **Get** /Workflow/Instances/My | Gets the workflow instances started by the user. + + +## Documentation For Models + + - [AlertsAlertCertificateQueryAlertCertificateQueryResponse](docs/AlertsAlertCertificateQueryAlertCertificateQueryResponse.md) + - [AlertsAlertScheduleAlertScheduleRequest](docs/AlertsAlertScheduleAlertScheduleRequest.md) + - [AlertsAlertScheduleAlertScheduleResponse](docs/AlertsAlertScheduleAlertScheduleResponse.md) + - [AlertsAlertTemplateAlertTemplateResponse](docs/AlertsAlertTemplateAlertTemplateResponse.md) + - [AlertsDeniedDeniedAlertCreationRequest](docs/AlertsDeniedDeniedAlertCreationRequest.md) + - [AlertsDeniedDeniedAlertDefinitionResponse](docs/AlertsDeniedDeniedAlertDefinitionResponse.md) + - [AlertsDeniedDeniedAlertUpdateRequest](docs/AlertsDeniedDeniedAlertUpdateRequest.md) + - [AlertsExpirationExpirationAlertCreationRequest](docs/AlertsExpirationExpirationAlertCreationRequest.md) + - [AlertsExpirationExpirationAlertDefinitionResponse](docs/AlertsExpirationExpirationAlertDefinitionResponse.md) + - [AlertsExpirationExpirationAlertResponse](docs/AlertsExpirationExpirationAlertResponse.md) + - [AlertsExpirationExpirationAlertTestAllRequest](docs/AlertsExpirationExpirationAlertTestAllRequest.md) + - [AlertsExpirationExpirationAlertTestRequest](docs/AlertsExpirationExpirationAlertTestRequest.md) + - [AlertsExpirationExpirationAlertTestResponse](docs/AlertsExpirationExpirationAlertTestResponse.md) + - [AlertsExpirationExpirationAlertUpdateRequest](docs/AlertsExpirationExpirationAlertUpdateRequest.md) + - [AlertsIssuedIssuedAlertCreationRequest](docs/AlertsIssuedIssuedAlertCreationRequest.md) + - [AlertsIssuedIssuedAlertDefinitionResponse](docs/AlertsIssuedIssuedAlertDefinitionResponse.md) + - [AlertsIssuedIssuedAlertUpdateRequest](docs/AlertsIssuedIssuedAlertUpdateRequest.md) + - [AlertsKeyRotationKeyRotationAlertCreationRequest](docs/AlertsKeyRotationKeyRotationAlertCreationRequest.md) + - [AlertsKeyRotationKeyRotationAlertDefinitionResponse](docs/AlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + - [AlertsKeyRotationKeyRotationAlertResponse](docs/AlertsKeyRotationKeyRotationAlertResponse.md) + - [AlertsKeyRotationKeyRotationAlertTestAllRequest](docs/AlertsKeyRotationKeyRotationAlertTestAllRequest.md) + - [AlertsKeyRotationKeyRotationAlertTestRequest](docs/AlertsKeyRotationKeyRotationAlertTestRequest.md) + - [AlertsKeyRotationKeyRotationAlertTestResponse](docs/AlertsKeyRotationKeyRotationAlertTestResponse.md) + - [AlertsKeyRotationKeyRotationAlertUpdateRequest](docs/AlertsKeyRotationKeyRotationAlertUpdateRequest.md) + - [AlertsPendingPendingAlertCreationRequest](docs/AlertsPendingPendingAlertCreationRequest.md) + - [AlertsPendingPendingAlertDefinitionResponse](docs/AlertsPendingPendingAlertDefinitionResponse.md) + - [AlertsPendingPendingAlertResponse](docs/AlertsPendingPendingAlertResponse.md) + - [AlertsPendingPendingAlertTestAllRequest](docs/AlertsPendingPendingAlertTestAllRequest.md) + - [AlertsPendingPendingAlertTestRequest](docs/AlertsPendingPendingAlertTestRequest.md) + - [AlertsPendingPendingAlertTestResponse](docs/AlertsPendingPendingAlertTestResponse.md) + - [AlertsPendingPendingAlertUpdateRequest](docs/AlertsPendingPendingAlertUpdateRequest.md) + - [AppSettingsAppSettingResponse](docs/AppSettingsAppSettingResponse.md) + - [AppSettingsAppSettingUpdateBulkRequest](docs/AppSettingsAppSettingUpdateBulkRequest.md) + - [AppSettingsAppSettingUpdateRequest](docs/AppSettingsAppSettingUpdateRequest.md) + - [CSSCMSCoreEnumsAgentPlatformType](docs/CSSCMSCoreEnumsAgentPlatformType.md) + - [CSSCMSCoreEnumsAgentStatusType](docs/CSSCMSCoreEnumsAgentStatusType.md) + - [CSSCMSCoreEnumsCertStoreEntryParameterType](docs/CSSCMSCoreEnumsCertStoreEntryParameterType.md) + - [CSSCMSCoreEnumsCertStorePrivateKey](docs/CSSCMSCoreEnumsCertStorePrivateKey.md) + - [CSSCMSCoreEnumsCertificateAuthorityType](docs/CSSCMSCoreEnumsCertificateAuthorityType.md) + - [CSSCMSCoreEnumsCertificateFormat](docs/CSSCMSCoreEnumsCertificateFormat.md) + - [CSSCMSCoreEnumsCertificateStoreTypePropertyType](docs/CSSCMSCoreEnumsCertificateStoreTypePropertyType.md) + - [CSSCMSCoreEnumsClaimType](docs/CSSCMSCoreEnumsClaimType.md) + - [CSSCMSCoreEnumsDuplicateSubjectType](docs/CSSCMSCoreEnumsDuplicateSubjectType.md) + - [CSSCMSCoreEnumsEnrollmentType](docs/CSSCMSCoreEnumsEnrollmentType.md) + - [CSSCMSCoreEnumsEntryParameterUsageFlags](docs/CSSCMSCoreEnumsEntryParameterUsageFlags.md) + - [CSSCMSCoreEnumsKeyRetentionPolicy](docs/CSSCMSCoreEnumsKeyRetentionPolicy.md) + - [CSSCMSCoreEnumsMetadataDataType](docs/CSSCMSCoreEnumsMetadataDataType.md) + - [CSSCMSCoreEnumsMetadataTypeEnrollment](docs/CSSCMSCoreEnumsMetadataTypeEnrollment.md) + - [CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment](docs/CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment.md) + - [CSSCMSCoreEnumsReportParameterType](docs/CSSCMSCoreEnumsReportParameterType.md) + - [CSSCMSCoreEnumsReportParameterVisibility](docs/CSSCMSCoreEnumsReportParameterVisibility.md) + - [CSSCMSCoreEnumsScheduledTaskType](docs/CSSCMSCoreEnumsScheduledTaskType.md) + - [CSSCMSCoreEnumsSslNetworkJobStatus](docs/CSSCMSCoreEnumsSslNetworkJobStatus.md) + - [CSSCMSCoreEnumsSslScanJobStatus](docs/CSSCMSCoreEnumsSslScanJobStatus.md) + - [CSSCMSCoreEnumsTemplateCertificateOwnerRole](docs/CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) + - [CSSCMSCoreEnumsTemplateEnrollmentFieldType](docs/CSSCMSCoreEnumsTemplateEnrollmentFieldType.md) + - [CSSCMSCorePermissionsWebConsoleAreaPermission](docs/CSSCMSCorePermissionsWebConsoleAreaPermission.md) + - [CSSCMSDataModelEnumsAlertBuildResult](docs/CSSCMSDataModelEnumsAlertBuildResult.md) + - [CSSCMSDataModelEnumsCertStoreTypesPasswordStyles](docs/CSSCMSDataModelEnumsCertStoreTypesPasswordStyles.md) + - [CSSCMSDataModelEnumsCertificateImportJobStatus](docs/CSSCMSDataModelEnumsCertificateImportJobStatus.md) + - [CSSCMSDataModelEnumsCertificateSavedState](docs/CSSCMSDataModelEnumsCertificateSavedState.md) + - [CSSCMSDataModelEnumsDataType](docs/CSSCMSDataModelEnumsDataType.md) + - [CSSCMSDataModelEnumsFailureType](docs/CSSCMSDataModelEnumsFailureType.md) + - [CSSCMSDataModelEnumsIdentityProviderDataType](docs/CSSCMSDataModelEnumsIdentityProviderDataType.md) + - [CSSCMSDataModelEnumsPamParameterDataType](docs/CSSCMSDataModelEnumsPamParameterDataType.md) + - [CSSCMSDataModelEnumsRenewalType](docs/CSSCMSDataModelEnumsRenewalType.md) + - [CSSCMSDataModelEnumsScriptCategories](docs/CSSCMSDataModelEnumsScriptCategories.md) + - [CSSCMSDataModelEnumsSecretType](docs/CSSCMSDataModelEnumsSecretType.md) + - [CSSCMSDataModelModelsCRLRequestModel](docs/CSSCMSDataModelModelsCRLRequestModel.md) + - [CSSCMSDataModelModelsCSRContents](docs/CSSCMSDataModelModelsCSRContents.md) + - [CSSCMSDataModelModelsCSRGenerationResponseModel](docs/CSSCMSDataModelModelsCSRGenerationResponseModel.md) + - [CSSCMSDataModelModelsCertStoreContainerRequest](docs/CSSCMSDataModelModelsCertStoreContainerRequest.md) + - [CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup](docs/CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup.md) + - [CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail](docs/CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail.md) + - [CSSCMSDataModelModelsCertStoreNewPasswordRequest](docs/CSSCMSDataModelModelsCertStoreNewPasswordRequest.md) + - [CSSCMSDataModelModelsCertStoreTypePasswordOptions](docs/CSSCMSDataModelModelsCertStoreTypePasswordOptions.md) + - [CSSCMSDataModelModelsCertStoreTypeSupportedOperations](docs/CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md) + - [CSSCMSDataModelModelsCertStoresSchedule](docs/CSSCMSDataModelModelsCertStoresSchedule.md) + - [CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate](docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md) + - [CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest](docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest.md) + - [CSSCMSDataModelModelsCertificateCollectionNavItem](docs/CSSCMSDataModelModelsCertificateCollectionNavItem.md) + - [CSSCMSDataModelModelsCertificateDetails](docs/CSSCMSDataModelModelsCertificateDetails.md) + - [CSSCMSDataModelModelsCertificateDownloadResponse](docs/CSSCMSDataModelModelsCertificateDownloadResponse.md) + - [CSSCMSDataModelModelsCertificateImportRequestModel](docs/CSSCMSDataModelModelsCertificateImportRequestModel.md) + - [CSSCMSDataModelModelsCertificateImportResponseModel](docs/CSSCMSDataModelModelsCertificateImportResponseModel.md) + - [CSSCMSDataModelModelsCertificateLocationSpecifier](docs/CSSCMSDataModelModelsCertificateLocationSpecifier.md) + - [CSSCMSDataModelModelsCertificateQuery](docs/CSSCMSDataModelModelsCertificateQuery.md) + - [CSSCMSDataModelModelsCertificateStore](docs/CSSCMSDataModelModelsCertificateStore.md) + - [CSSCMSDataModelModelsCertificateStoreContainerListResponse](docs/CSSCMSDataModelModelsCertificateStoreContainerListResponse.md) + - [CSSCMSDataModelModelsCertificateStoreContainerPermissions](docs/CSSCMSDataModelModelsCertificateStoreContainerPermissions.md) + - [CSSCMSDataModelModelsCertificateStoreEntry](docs/CSSCMSDataModelModelsCertificateStoreEntry.md) + - [CSSCMSDataModelModelsCertificateStoreTypeProperty](docs/CSSCMSDataModelModelsCertificateStoreTypeProperty.md) + - [CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter](docs/CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) + - [CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest](docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest.md) + - [CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest](docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest.md) + - [CSSCMSDataModelModelsCertificateValidationResponse](docs/CSSCMSDataModelModelsCertificateValidationResponse.md) + - [CSSCMSDataModelModelsContainerAssignment](docs/CSSCMSDataModelModelsContainerAssignment.md) + - [CSSCMSDataModelModelsDiscoveryJobRequest](docs/CSSCMSDataModelModelsDiscoveryJobRequest.md) + - [CSSCMSDataModelModelsEnrollmentAvailableRenewal](docs/CSSCMSDataModelModelsEnrollmentAvailableRenewal.md) + - [CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse](docs/CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse.md) + - [CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest](docs/CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest.md) + - [CSSCMSDataModelModelsEnrollmentManagementStoreType](docs/CSSCMSDataModelModelsEnrollmentManagementStoreType.md) + - [CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse](docs/CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse.md) + - [CSSCMSDataModelModelsEnrollmentRenewalRequest](docs/CSSCMSDataModelModelsEnrollmentRenewalRequest.md) + - [CSSCMSDataModelModelsExtendedKeyUsage](docs/CSSCMSDataModelModelsExtendedKeyUsage.md) + - [CSSCMSDataModelModelsInvalidKeystore](docs/CSSCMSDataModelModelsInvalidKeystore.md) + - [CSSCMSDataModelModelsKeyfactorAPISecret](docs/CSSCMSDataModelModelsKeyfactorAPISecret.md) + - [CSSCMSDataModelModelsKeyfactorSecret](docs/CSSCMSDataModelModelsKeyfactorSecret.md) + - [CSSCMSDataModelModelsMetadataAllUpdateRequest](docs/CSSCMSDataModelModelsMetadataAllUpdateRequest.md) + - [CSSCMSDataModelModelsMetadataSingleUpdateRequest](docs/CSSCMSDataModelModelsMetadataSingleUpdateRequest.md) + - [CSSCMSDataModelModelsMetadataType](docs/CSSCMSDataModelModelsMetadataType.md) + - [CSSCMSDataModelModelsMetadataUpdateRequest](docs/CSSCMSDataModelModelsMetadataUpdateRequest.md) + - [CSSCMSDataModelModelsMonitoringCRLTestRequest](docs/CSSCMSDataModelModelsMonitoringCRLTestRequest.md) + - [CSSCMSDataModelModelsMonitoringCRLTestResponse](docs/CSSCMSDataModelModelsMonitoringCRLTestResponse.md) + - [CSSCMSDataModelModelsMonitoringOCSPTestRequest](docs/CSSCMSDataModelModelsMonitoringOCSPTestRequest.md) + - [CSSCMSDataModelModelsMonitoringOCSPTestResponse](docs/CSSCMSDataModelModelsMonitoringOCSPTestResponse.md) + - [CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse](docs/CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse.md) + - [CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair](docs/CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair.md) + - [CSSCMSDataModelModelsOrchestratorJobsJob](docs/CSSCMSDataModelModelsOrchestratorJobsJob.md) + - [CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest](docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest.md) + - [CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest](docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md) + - [CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest](docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest.md) + - [CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest](docs/CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest.md) + - [CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest](docs/CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest.md) + - [CSSCMSDataModelModelsPKICertificateOperation](docs/CSSCMSDataModelModelsPKICertificateOperation.md) + - [CSSCMSDataModelModelsPamProviderTypeParamValue](docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md) + - [CSSCMSDataModelModelsPendingCSRResponse](docs/CSSCMSDataModelModelsPendingCSRResponse.md) + - [CSSCMSDataModelModelsPkcs10CertificateResponse](docs/CSSCMSDataModelModelsPkcs10CertificateResponse.md) + - [CSSCMSDataModelModelsPkcs12CertificateResponse](docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md) + - [CSSCMSDataModelModelsProvider](docs/CSSCMSDataModelModelsProvider.md) + - [CSSCMSDataModelModelsProviderType](docs/CSSCMSDataModelModelsProviderType.md) + - [CSSCMSDataModelModelsProviderTypeParam](docs/CSSCMSDataModelModelsProviderTypeParam.md) + - [CSSCMSDataModelModelsRecoveryResponse](docs/CSSCMSDataModelModelsRecoveryResponse.md) + - [CSSCMSDataModelModelsReenrollmentStatus](docs/CSSCMSDataModelModelsReenrollmentStatus.md) + - [CSSCMSDataModelModelsReport](docs/CSSCMSDataModelModelsReport.md) + - [CSSCMSDataModelModelsReportParameters](docs/CSSCMSDataModelModelsReportParameters.md) + - [CSSCMSDataModelModelsReportParametersRequest](docs/CSSCMSDataModelModelsReportParametersRequest.md) + - [CSSCMSDataModelModelsReportRequestModel](docs/CSSCMSDataModelModelsReportRequestModel.md) + - [CSSCMSDataModelModelsReportSchedule](docs/CSSCMSDataModelModelsReportSchedule.md) + - [CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest](docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md) + - [CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse](docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md) + - [CSSCMSDataModelModelsSSHAccessServerAccessRequest](docs/CSSCMSDataModelModelsSSHAccessServerAccessRequest.md) + - [CSSCMSDataModelModelsSSHAccessServerAccessResponse](docs/CSSCMSDataModelModelsSSHAccessServerAccessResponse.md) + - [CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest](docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md) + - [CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse](docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md) + - [CSSCMSDataModelModelsSSHKeysKeyGenerationRequest](docs/CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md) + - [CSSCMSDataModelModelsSSHKeysKeyResponse](docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md) + - [CSSCMSDataModelModelsSSHKeysKeyUpdateRequest](docs/CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md) + - [CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse](docs/CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md) + - [CSSCMSDataModelModelsSSHLogonsLogonAccessRequest](docs/CSSCMSDataModelModelsSSHLogonsLogonAccessRequest.md) + - [CSSCMSDataModelModelsSSHLogonsLogonCreationRequest](docs/CSSCMSDataModelModelsSSHLogonsLogonCreationRequest.md) + - [CSSCMSDataModelModelsSSHLogonsLogonQueryResponse](docs/CSSCMSDataModelModelsSSHLogonsLogonQueryResponse.md) + - [CSSCMSDataModelModelsSSHLogonsLogonResponse](docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md) + - [CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest](docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest.md) + - [CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse](docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + - [CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest](docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest.md) + - [CSSCMSDataModelModelsSSHServersServerCreationRequest](docs/CSSCMSDataModelModelsSSHServersServerCreationRequest.md) + - [CSSCMSDataModelModelsSSHServersServerResponse](docs/CSSCMSDataModelModelsSSHServersServerResponse.md) + - [CSSCMSDataModelModelsSSHServersServerUpdateRequest](docs/CSSCMSDataModelModelsSSHServersServerUpdateRequest.md) + - [CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest](docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest.md) + - [CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse](docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md) + - [CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest](docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest.md) + - [CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest](docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest.md) + - [CSSCMSDataModelModelsSSHUsersSshUserAccessResponse](docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md) + - [CSSCMSDataModelModelsSSHUsersSshUserCreationRequest](docs/CSSCMSDataModelModelsSSHUsersSshUserCreationRequest.md) + - [CSSCMSDataModelModelsSSHUsersSshUserResponse](docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + - [CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest](docs/CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md) + - [CSSCMSDataModelModelsSSLDisplayScanJobPart](docs/CSSCMSDataModelModelsSSLDisplayScanJobPart.md) + - [CSSCMSDataModelModelsSSLEndpoint](docs/CSSCMSDataModelModelsSSLEndpoint.md) + - [CSSCMSDataModelModelsSSLEndpointHistoryResponse](docs/CSSCMSDataModelModelsSSLEndpointHistoryResponse.md) + - [CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel](docs/CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel.md) + - [CSSCMSDataModelModelsSSLEndpointStatusRequest](docs/CSSCMSDataModelModelsSSLEndpointStatusRequest.md) + - [CSSCMSDataModelModelsSSLImmediateSslScanRequest](docs/CSSCMSDataModelModelsSSLImmediateSslScanRequest.md) + - [CSSCMSDataModelModelsSSLNetworkDefinition](docs/CSSCMSDataModelModelsSSLNetworkDefinition.md) + - [CSSCMSDataModelModelsSSLNetworkRangesRequest](docs/CSSCMSDataModelModelsSSLNetworkRangesRequest.md) + - [CSSCMSDataModelModelsSSLScanJobPart](docs/CSSCMSDataModelModelsSSLScanJobPart.md) + - [CSSCMSDataModelModelsSSLScanJobPartDefinition](docs/CSSCMSDataModelModelsSSLScanJobPartDefinition.md) + - [CSSCMSDataModelModelsSSLSslScanResult](docs/CSSCMSDataModelModelsSSLSslScanResult.md) + - [CSSCMSDataModelModelsSecurityCertificatePermissions](docs/CSSCMSDataModelModelsSecurityCertificatePermissions.md) + - [CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier](docs/CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md) + - [CSSCMSDataModelModelsSecurityPermissionSet](docs/CSSCMSDataModelModelsSecurityPermissionSet.md) + - [CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase](docs/CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase.md) + - [CSSCMSDataModelModelsSubjectAlternativeName](docs/CSSCMSDataModelModelsSubjectAlternativeName.md) + - [CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData](docs/CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md) + - [CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo](docs/CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) + - [CSSCMSDataModelModelsTemplatesTemplateEnrollmentField](docs/CSSCMSDataModelModelsTemplatesTemplateEnrollmentField.md) + - [CSSCMSDataModelModelsTemplatesTemplateMetadataField](docs/CSSCMSDataModelModelsTemplatesTemplateMetadataField.md) + - [CSSCMSDataModelModelsWorkflowApproveDenyResult](docs/CSSCMSDataModelModelsWorkflowApproveDenyResult.md) + - [CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel](docs/CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel.md) + - [CSSCMSDataModelModelsWorkflowCertificateRequestModel](docs/CSSCMSDataModelModelsWorkflowCertificateRequestModel.md) + - [CSSCMSDataModelModelsWorkflowDenialRequest](docs/CSSCMSDataModelModelsWorkflowDenialRequest.md) + - [CSSCMSDataModelModelsWorkflowProcessedCertificateRequest](docs/CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md) + - [CertificateAuthoritiesCAAlertRecipientCreateRequest](docs/CertificateAuthoritiesCAAlertRecipientCreateRequest.md) + - [CertificateAuthoritiesCAAlertRecipientResponse](docs/CertificateAuthoritiesCAAlertRecipientResponse.md) + - [CertificateAuthoritiesCAAlertRecipientUpdateRequest](docs/CertificateAuthoritiesCAAlertRecipientUpdateRequest.md) + - [CertificateAuthoritiesCAConnectorRequest](docs/CertificateAuthoritiesCAConnectorRequest.md) + - [CertificateAuthoritiesCAConnectorResponse](docs/CertificateAuthoritiesCAConnectorResponse.md) + - [CertificateAuthoritiesCAJobQueueTestResponse](docs/CertificateAuthoritiesCAJobQueueTestResponse.md) + - [CertificateAuthoritiesCertificateAuthorityRequest](docs/CertificateAuthoritiesCertificateAuthorityRequest.md) + - [CertificateAuthoritiesCertificateAuthorityResponse](docs/CertificateAuthoritiesCertificateAuthorityResponse.md) + - [CertificateAuthoritiesCertificateAuthorityTestResponse](docs/CertificateAuthoritiesCertificateAuthorityTestResponse.md) + - [CertificateCollectionsAssignableQueryRole](docs/CertificateCollectionsAssignableQueryRole.md) + - [CertificateCollectionsCertificateCollectionCopyRequest](docs/CertificateCollectionsCertificateCollectionCopyRequest.md) + - [CertificateCollectionsCertificateCollectionCreateRequest](docs/CertificateCollectionsCertificateCollectionCreateRequest.md) + - [CertificateCollectionsCertificateCollectionFavoriteRequest](docs/CertificateCollectionsCertificateCollectionFavoriteRequest.md) + - [CertificateCollectionsCertificateCollectionListResponse](docs/CertificateCollectionsCertificateCollectionListResponse.md) + - [CertificateCollectionsCertificateCollectionPermissionsResponse](docs/CertificateCollectionsCertificateCollectionPermissionsResponse.md) + - [CertificateCollectionsCertificateCollectionResponse](docs/CertificateCollectionsCertificateCollectionResponse.md) + - [CertificateCollectionsCertificateCollectionUpdateRequest](docs/CertificateCollectionsCertificateCollectionUpdateRequest.md) + - [CertificateCollectionsCertificateQueryAccessControl](docs/CertificateCollectionsCertificateQueryAccessControl.md) + - [CertificateStoreContainersCertificateStoreContainerResponse](docs/CertificateStoreContainersCertificateStoreContainerResponse.md) + - [CertificateStoresAddCertificateRequest](docs/CertificateStoresAddCertificateRequest.md) + - [CertificateStoresCertificateStoreApproveRequest](docs/CertificateStoresCertificateStoreApproveRequest.md) + - [CertificateStoresCertificateStoreInventoryCertificateResponse](docs/CertificateStoresCertificateStoreInventoryCertificateResponse.md) + - [CertificateStoresCertificateStoreInventoryResponse](docs/CertificateStoresCertificateStoreInventoryResponse.md) + - [CertificateStoresCertificateStoreResponse](docs/CertificateStoresCertificateStoreResponse.md) + - [CertificateStoresJobHistoryResponse](docs/CertificateStoresJobHistoryResponse.md) + - [CertificateStoresReenrollmentRequest](docs/CertificateStoresReenrollmentRequest.md) + - [CertificateStoresRemoveCertificateRequest](docs/CertificateStoresRemoveCertificateRequest.md) + - [CertificateStoresTypesCertificateStoreTypeCreationRequest](docs/CertificateStoresTypesCertificateStoreTypeCreationRequest.md) + - [CertificateStoresTypesCertificateStoreTypeResponse](docs/CertificateStoresTypesCertificateStoreTypeResponse.md) + - [CertificateStoresTypesCertificateStoreTypeUpdateRequest](docs/CertificateStoresTypesCertificateStoreTypeUpdateRequest.md) + - [CertificatesAnalyzeCertificateRequest](docs/CertificatesAnalyzeCertificateRequest.md) + - [CertificatesCertRequestResponseModel](docs/CertificatesCertRequestResponseModel.md) + - [CertificatesCertificateDownloadRequest](docs/CertificatesCertificateDownloadRequest.md) + - [CertificatesCertificateIdentityAuditResponse](docs/CertificatesCertificateIdentityAuditResponse.md) + - [CertificatesCertificateIdentityAuditResponseCertificatePermission](docs/CertificatesCertificateIdentityAuditResponseCertificatePermission.md) + - [CertificatesCertificateLocationsResponse](docs/CertificatesCertificateLocationsResponse.md) + - [CertificatesCertificateRecoveryRequest](docs/CertificatesCertificateRecoveryRequest.md) + - [CertificatesCertificateRetrievalResponse](docs/CertificatesCertificateRetrievalResponse.md) + - [CertificatesCertificateRetrievalResponseCRLDistributionPointModel](docs/CertificatesCertificateRetrievalResponseCRLDistributionPointModel.md) + - [CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel](docs/CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel.md) + - [CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel](docs/CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel.md) + - [CertificatesCertificateRetrievalResponseDetailedKeyUsageModel](docs/CertificatesCertificateRetrievalResponseDetailedKeyUsageModel.md) + - [CertificatesCertificateRetrievalResponseExtendedKeyUsageModel](docs/CertificatesCertificateRetrievalResponseExtendedKeyUsageModel.md) + - [CertificatesCertificateRetrievalResponseLocationCountModel](docs/CertificatesCertificateRetrievalResponseLocationCountModel.md) + - [CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel](docs/CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel.md) + - [CertificatesOwnerRequest](docs/CertificatesOwnerRequest.md) + - [CertificatesRevocationResponse](docs/CertificatesRevocationResponse.md) + - [CertificatesRevokeCertificateRequest](docs/CertificatesRevokeCertificateRequest.md) + - [CertificatesSubjectAlternativeName](docs/CertificatesSubjectAlternativeName.md) + - [CertificatesSuspendedRevocationResponse](docs/CertificatesSuspendedRevocationResponse.md) + - [ComponentInstallationComponentInstallationResponse](docs/ComponentInstallationComponentInstallationResponse.md) + - [ConfigurationTenantConfigurationTenantRequest](docs/ConfigurationTenantConfigurationTenantRequest.md) + - [EnrollmentCSREnrollmentRequest](docs/EnrollmentCSREnrollmentRequest.md) + - [EnrollmentCSRGenerationRequest](docs/EnrollmentCSRGenerationRequest.md) + - [EnrollmentEnrollmentManagementRequest](docs/EnrollmentEnrollmentManagementRequest.md) + - [EnrollmentEnrollmentManagementResponse](docs/EnrollmentEnrollmentManagementResponse.md) + - [EnrollmentManagementStoreRequest](docs/EnrollmentManagementStoreRequest.md) + - [EnrollmentManagementStoreTypeRequest](docs/EnrollmentManagementStoreTypeRequest.md) + - [EnrollmentPFXEnrollmentRequest](docs/EnrollmentPFXEnrollmentRequest.md) + - [EnrollmentPatternsValidSubjectPartResponse](docs/EnrollmentPatternsValidSubjectPartResponse.md) + - [EnrollmentRenewalApiResponse](docs/EnrollmentRenewalApiResponse.md) + - [EventHandlerEventHandlerParameterRequest](docs/EventHandlerEventHandlerParameterRequest.md) + - [EventHandlerEventHandlerParameterResponse](docs/EventHandlerEventHandlerParameterResponse.md) + - [EventHandlerRegisteredEventHandlerRequest](docs/EventHandlerRegisteredEventHandlerRequest.md) + - [EventHandlerRegisteredEventHandlerResponse](docs/EventHandlerRegisteredEventHandlerResponse.md) + - [EventHandlerRegistrationEventHandlerRegistrationCreateRequest](docs/EventHandlerRegistrationEventHandlerRegistrationCreateRequest.md) + - [EventHandlerRegistrationEventHandlerRegistrationResponse](docs/EventHandlerRegistrationEventHandlerRegistrationResponse.md) + - [EventHandlerRegistrationEventHandlerRegistrationUpdateRequest](docs/EventHandlerRegistrationEventHandlerRegistrationUpdateRequest.md) + - [GlobalPermissionsGlobalPermissionResponse](docs/GlobalPermissionsGlobalPermissionResponse.md) + - [IdentityProviderIdentityProviderCreateRequest](docs/IdentityProviderIdentityProviderCreateRequest.md) + - [IdentityProviderIdentityProviderCreateResponse](docs/IdentityProviderIdentityProviderCreateResponse.md) + - [IdentityProviderIdentityProviderGetResponse](docs/IdentityProviderIdentityProviderGetResponse.md) + - [IdentityProviderIdentityProviderUpdateRequest](docs/IdentityProviderIdentityProviderUpdateRequest.md) + - [IdentityProviderIdentityProviderUpdateResponse](docs/IdentityProviderIdentityProviderUpdateResponse.md) + - [IdentityProviderProviderTypeParameterRequest](docs/IdentityProviderProviderTypeParameterRequest.md) + - [IdentityProviderProviderTypeParameterResponse](docs/IdentityProviderProviderTypeParameterResponse.md) + - [IdentityProviderProviderTypeParameterValueResponse](docs/IdentityProviderProviderTypeParameterValueResponse.md) + - [IdentityProviderProviderTypeResponse](docs/IdentityProviderProviderTypeResponse.md) + - [KeyfactorAuditingEnumsAuditLogLevel](docs/KeyfactorAuditingEnumsAuditLogLevel.md) + - [KeyfactorAuditingQueryingAuditLogEntry](docs/KeyfactorAuditingQueryingAuditLogEntry.md) + - [KeyfactorCommonQueryableExtensionsSortOrder](docs/KeyfactorCommonQueryableExtensionsSortOrder.md) + - [KeyfactorCommonSchedulingKeyfactorSchedule](docs/KeyfactorCommonSchedulingKeyfactorSchedule.md) + - [KeyfactorCommonSchedulingModelsIntervalModel](docs/KeyfactorCommonSchedulingModelsIntervalModel.md) + - [KeyfactorCommonSchedulingModelsMonthlyModel](docs/KeyfactorCommonSchedulingModelsMonthlyModel.md) + - [KeyfactorCommonSchedulingModelsTimeModel](docs/KeyfactorCommonSchedulingModelsTimeModel.md) + - [KeyfactorCommonSchedulingModelsWeeklyModel](docs/KeyfactorCommonSchedulingModelsWeeklyModel.md) + - [KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias](docs/KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md) + - [KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult](docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult.md) + - [KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus](docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus.md) + - [KeyfactorOrchestratorsCommonEnumsSslEndpointStatus](docs/KeyfactorOrchestratorsCommonEnumsSslEndpointStatus.md) + - [KeyfactorOrchestratorsCommonEnumsSslJobType](docs/KeyfactorOrchestratorsCommonEnumsSslJobType.md) + - [KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType](docs/KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType.md) + - [KeyfactorOrchestratorsCommonEnumsSslProbeType](docs/KeyfactorOrchestratorsCommonEnumsSslProbeType.md) + - [KeyfactorPKIEnumsCertificateState](docs/KeyfactorPKIEnumsCertificateState.md) + - [KeyfactorPKIEnumsEncryptionKeyType](docs/KeyfactorPKIEnumsEncryptionKeyType.md) + - [KeyfactorPKIEnumsRevokeCode](docs/KeyfactorPKIEnumsRevokeCode.md) + - [KeyfactorPKIPKIConstantsX509SubjectAltNameElementType](docs/KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md) + - [KeyfactorWebCoreModelsEnrollmentEnrollmentCA](docs/KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md) + - [KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate](docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate.md) + - [KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse](docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + - [KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy](docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy.md) + - [KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex](docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex.md) + - [KeyfactorWorkflowsDataType](docs/KeyfactorWorkflowsDataType.md) + - [KeyfactorWorkflowsInputControlType](docs/KeyfactorWorkflowsInputControlType.md) + - [KeyfactorWorkflowsWorkflowInstanceStatus](docs/KeyfactorWorkflowsWorkflowInstanceStatus.md) + - [LicenseLicenseResponse](docs/LicenseLicenseResponse.md) + - [LicenseLicenseResponseLicense](docs/LicenseLicenseResponseLicense.md) + - [LicenseLicenseResponseLicensedCustomer](docs/LicenseLicenseResponseLicensedCustomer.md) + - [LicenseLicenseResponseLicensedFeature](docs/LicenseLicenseResponseLicensedFeature.md) + - [LicenseLicenseResponseLicensedProduct](docs/LicenseLicenseResponseLicensedProduct.md) + - [MacEnrollmentMacEnrollmentAPIModel](docs/MacEnrollmentMacEnrollmentAPIModel.md) + - [MetadataFieldMetadataFieldCreateRequest](docs/MetadataFieldMetadataFieldCreateRequest.md) + - [MetadataFieldMetadataFieldResponse](docs/MetadataFieldMetadataFieldResponse.md) + - [MetadataFieldMetadataFieldUpdateRequest](docs/MetadataFieldMetadataFieldUpdateRequest.md) + - [MonitoringDashboardRequest](docs/MonitoringDashboardRequest.md) + - [MonitoringDashboardResponse](docs/MonitoringDashboardResponse.md) + - [MonitoringEmailRequest](docs/MonitoringEmailRequest.md) + - [MonitoringEmailResponse](docs/MonitoringEmailResponse.md) + - [MonitoringOCSPParametersRequest](docs/MonitoringOCSPParametersRequest.md) + - [MonitoringOCSPParametersResponse](docs/MonitoringOCSPParametersResponse.md) + - [MonitoringRevocationMonitoringAlertTestAllRequest](docs/MonitoringRevocationMonitoringAlertTestAllRequest.md) + - [MonitoringRevocationMonitoringAlertTestRequest](docs/MonitoringRevocationMonitoringAlertTestRequest.md) + - [MonitoringRevocationMonitoringAlertTestResponse](docs/MonitoringRevocationMonitoringAlertTestResponse.md) + - [MonitoringRevocationMonitoringCreationRequest](docs/MonitoringRevocationMonitoringCreationRequest.md) + - [MonitoringRevocationMonitoringDefinitionResponse](docs/MonitoringRevocationMonitoringDefinitionResponse.md) + - [MonitoringRevocationMonitoringUpdateRequest](docs/MonitoringRevocationMonitoringUpdateRequest.md) + - [MonitoringRevocationMonitoringUpdateScheduleRequest](docs/MonitoringRevocationMonitoringUpdateScheduleRequest.md) + - [OrchestratorJobsAcknowledgeJobRequest](docs/OrchestratorJobsAcknowledgeJobRequest.md) + - [OrchestratorJobsBulkJobResponse](docs/OrchestratorJobsBulkJobResponse.md) + - [OrchestratorJobsCustomJobResultDataResponse](docs/OrchestratorJobsCustomJobResultDataResponse.md) + - [OrchestratorJobsJobFieldResponse](docs/OrchestratorJobsJobFieldResponse.md) + - [OrchestratorJobsJobResponse](docs/OrchestratorJobsJobResponse.md) + - [OrchestratorJobsJobTypeFieldResponse](docs/OrchestratorJobsJobTypeFieldResponse.md) + - [OrchestratorJobsJobTypeResponse](docs/OrchestratorJobsJobTypeResponse.md) + - [OrchestratorJobsRescheduleJobRequest](docs/OrchestratorJobsRescheduleJobRequest.md) + - [OrchestratorJobsUnscheduleJobRequest](docs/OrchestratorJobsUnscheduleJobRequest.md) + - [OrchestratorPoolsAgentPoolAgentCreationRequest](docs/OrchestratorPoolsAgentPoolAgentCreationRequest.md) + - [OrchestratorPoolsAgentPoolAgentGetResponse](docs/OrchestratorPoolsAgentPoolAgentGetResponse.md) + - [OrchestratorPoolsAgentPoolCreationRequest](docs/OrchestratorPoolsAgentPoolCreationRequest.md) + - [OrchestratorPoolsAgentPoolGetResponse](docs/OrchestratorPoolsAgentPoolGetResponse.md) + - [OrchestratorPoolsAgentPoolUpdateRequest](docs/OrchestratorPoolsAgentPoolUpdateRequest.md) + - [OrchestratorsAgentBlueprintJobsResponse](docs/OrchestratorsAgentBlueprintJobsResponse.md) + - [OrchestratorsAgentBlueprintResponse](docs/OrchestratorsAgentBlueprintResponse.md) + - [OrchestratorsAgentBlueprintStoresResponse](docs/OrchestratorsAgentBlueprintStoresResponse.md) + - [OrchestratorsAgentResponse](docs/OrchestratorsAgentResponse.md) + - [OrchestratorsJobTypesResponse](docs/OrchestratorsJobTypesResponse.md) + - [OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest](docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md) + - [OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse](docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md) + - [PAMLocalLocalPAMEntryCreateRequest](docs/PAMLocalLocalPAMEntryCreateRequest.md) + - [PAMLocalLocalPAMEntryResponse](docs/PAMLocalLocalPAMEntryResponse.md) + - [PAMLocalLocalPAMEntryUpdateRequest](docs/PAMLocalLocalPAMEntryUpdateRequest.md) + - [PAMPamProviderTypeParamValueResponse](docs/PAMPamProviderTypeParamValueResponse.md) + - [PAMProviderCreateRequest](docs/PAMProviderCreateRequest.md) + - [PAMProviderCreateRequestProviderType](docs/PAMProviderCreateRequestProviderType.md) + - [PAMProviderCreateRequestProviderTypeParam](docs/PAMProviderCreateRequestProviderTypeParam.md) + - [PAMProviderCreateRequestTypeParamValue](docs/PAMProviderCreateRequestTypeParamValue.md) + - [PAMProviderResponseLegacy](docs/PAMProviderResponseLegacy.md) + - [PAMProviderTypeCreateRequest](docs/PAMProviderTypeCreateRequest.md) + - [PAMProviderTypeParameterCreateRequest](docs/PAMProviderTypeParameterCreateRequest.md) + - [PAMProviderTypeParameterResponse](docs/PAMProviderTypeParameterResponse.md) + - [PAMProviderTypeResponse](docs/PAMProviderTypeResponse.md) + - [PAMProviderUpdateRequestLegacy](docs/PAMProviderUpdateRequestLegacy.md) + - [PermissionSetsPermissionSetCreateRequest](docs/PermissionSetsPermissionSetCreateRequest.md) + - [PermissionSetsPermissionSetResponse](docs/PermissionSetsPermissionSetResponse.md) + - [PermissionSetsPermissionSetUpdateRequest](docs/PermissionSetsPermissionSetUpdateRequest.md) + - [RabbitMQJobQueueRequest](docs/RabbitMQJobQueueRequest.md) + - [RabbitMQJobQueueResponse](docs/RabbitMQJobQueueResponse.md) + - [ReportsCustomReportsCustomReportCreationRequest](docs/ReportsCustomReportsCustomReportCreationRequest.md) + - [ReportsCustomReportsCustomReportResponse](docs/ReportsCustomReportsCustomReportResponse.md) + - [ReportsCustomReportsCustomReportUpdateRequest](docs/ReportsCustomReportsCustomReportUpdateRequest.md) + - [ReportsReportSchedulesReportScheduleCreationRequest](docs/ReportsReportSchedulesReportScheduleCreationRequest.md) + - [ReportsReportSchedulesReportScheduleResponse](docs/ReportsReportSchedulesReportScheduleResponse.md) + - [ReportsReportSchedulesReportScheduleUpdateRequest](docs/ReportsReportSchedulesReportScheduleUpdateRequest.md) + - [SMTPSMTPRequest](docs/SMTPSMTPRequest.md) + - [SMTPSMTPResponse](docs/SMTPSMTPResponse.md) + - [SMTPSMTPTestRequest](docs/SMTPSMTPTestRequest.md) + - [SMTPSMTPTestResponse](docs/SMTPSMTPTestResponse.md) + - [SchedulingScheduledTaskRequest](docs/SchedulingScheduledTaskRequest.md) + - [SchedulingScheduledTaskResponse](docs/SchedulingScheduledTaskResponse.md) + - [SchedulingScheduledTaskScheduleResponse](docs/SchedulingScheduledTaskScheduleResponse.md) + - [ScriptsScriptCreateRequest](docs/ScriptsScriptCreateRequest.md) + - [ScriptsScriptQueryResponse](docs/ScriptsScriptQueryResponse.md) + - [ScriptsScriptResponse](docs/ScriptsScriptResponse.md) + - [ScriptsScriptsUpdateRequest](docs/ScriptsScriptsUpdateRequest.md) + - [SecurityLegacySecurityRolesRoleIdentitiesRequest](docs/SecurityLegacySecurityRolesRoleIdentitiesRequest.md) + - [SecurityLegacySecurityRolesRoleIdentitiesResponse](docs/SecurityLegacySecurityRolesRoleIdentitiesResponse.md) + - [SecurityLegacySecurityRolesSecurityIdentityResponse](docs/SecurityLegacySecurityRolesSecurityIdentityResponse.md) + - [SecurityLegacySecurityRolesSecurityMyResponse](docs/SecurityLegacySecurityRolesSecurityMyResponse.md) + - [SecurityLegacySecurityRolesSecurityRoleCopyRequest](docs/SecurityLegacySecurityRolesSecurityRoleCopyRequest.md) + - [SecurityLegacySecurityRolesSecurityRoleCreationRequest](docs/SecurityLegacySecurityRolesSecurityRoleCreationRequest.md) + - [SecurityLegacySecurityRolesSecurityRoleResponse](docs/SecurityLegacySecurityRolesSecurityRoleResponse.md) + - [SecurityLegacySecurityRolesSecurityRoleUpdateRequest](docs/SecurityLegacySecurityRolesSecurityRoleUpdateRequest.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest.md) + - [SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse](docs/SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse.md) + - [SecuritySecurityIdentitiesSecurityIdentityLookupResponse](docs/SecuritySecurityIdentitiesSecurityIdentityLookupResponse.md) + - [SecuritySecurityIdentitiesSecurityIdentityRequest](docs/SecuritySecurityIdentitiesSecurityIdentityRequest.md) + - [SecuritySecurityIdentitiesSecurityIdentityResponse](docs/SecuritySecurityIdentitiesSecurityIdentityResponse.md) + - [SecuritySecurityIdentityPermissionsPermissionRolesPairResponse](docs/SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) + - [SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse](docs/SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse.md) + - [SecuritySecurityRolePermissionsAreaPermissionResponse](docs/SecuritySecurityRolePermissionsAreaPermissionResponse.md) + - [SecuritySecurityRolePermissionsCollectionPermissionRequest](docs/SecuritySecurityRolePermissionsCollectionPermissionRequest.md) + - [SecuritySecurityRolePermissionsCollectionPermissionResponse](docs/SecuritySecurityRolePermissionsCollectionPermissionResponse.md) + - [SecuritySecurityRolePermissionsContainerPermissionRequest](docs/SecuritySecurityRolePermissionsContainerPermissionRequest.md) + - [SecuritySecurityRolePermissionsContainerPermissionResponse](docs/SecuritySecurityRolePermissionsContainerPermissionResponse.md) + - [SecuritySecurityRolePermissionsGlobalPermissionRequest](docs/SecuritySecurityRolePermissionsGlobalPermissionRequest.md) + - [SecuritySecurityRolePermissionsGlobalPermissionResponse](docs/SecuritySecurityRolePermissionsGlobalPermissionResponse.md) + - [SecuritySecurityRolePermissionsPamProviderPermissionRequest](docs/SecuritySecurityRolePermissionsPamProviderPermissionRequest.md) + - [SecuritySecurityRolePermissionsPamProviderPermissionResponse](docs/SecuritySecurityRolePermissionsPamProviderPermissionResponse.md) + - [SslCreateNetworkRequest](docs/SslCreateNetworkRequest.md) + - [SslNetworkQueryResponse](docs/SslNetworkQueryResponse.md) + - [SslNetworkResponse](docs/SslNetworkResponse.md) + - [SslQuietHourRequest](docs/SslQuietHourRequest.md) + - [SslQuietHourResponse](docs/SslQuietHourResponse.md) + - [SslUpdateNetworkRequest](docs/SslUpdateNetworkRequest.md) + - [SystemDayOfWeek](docs/SystemDayOfWeek.md) + - [TemplatesEnrollmentTemplateEnrollmentDefaultResponse](docs/TemplatesEnrollmentTemplateEnrollmentDefaultResponse.md) + - [TemplatesEnrollmentTemplateEnrollmentPolicyResponse](docs/TemplatesEnrollmentTemplateEnrollmentPolicyResponse.md) + - [TemplatesEnrollmentTemplateEnrollmentRegexResponse](docs/TemplatesEnrollmentTemplateEnrollmentRegexResponse.md) + - [TemplatesEnrollmentTemplateEnrollmentSettingsResponse](docs/TemplatesEnrollmentTemplateEnrollmentSettingsResponse.md) + - [TemplatesExtendedKeyUsageResponseModel](docs/TemplatesExtendedKeyUsageResponseModel.md) + - [TemplatesGlobalGlobalTemplateDefaultRequest](docs/TemplatesGlobalGlobalTemplateDefaultRequest.md) + - [TemplatesGlobalGlobalTemplateDefaultResponse](docs/TemplatesGlobalGlobalTemplateDefaultResponse.md) + - [TemplatesGlobalGlobalTemplatePolicyRequest](docs/TemplatesGlobalGlobalTemplatePolicyRequest.md) + - [TemplatesGlobalGlobalTemplatePolicyResponse](docs/TemplatesGlobalGlobalTemplatePolicyResponse.md) + - [TemplatesGlobalGlobalTemplateRegexRequest](docs/TemplatesGlobalGlobalTemplateRegexRequest.md) + - [TemplatesGlobalGlobalTemplateRegexResponse](docs/TemplatesGlobalGlobalTemplateRegexResponse.md) + - [TemplatesGlobalGlobalTemplateSettingsRequest](docs/TemplatesGlobalGlobalTemplateSettingsRequest.md) + - [TemplatesGlobalGlobalTemplateSettingsResponse](docs/TemplatesGlobalGlobalTemplateSettingsResponse.md) + - [TemplatesKeyAlgorithmsResponseModel](docs/TemplatesKeyAlgorithmsResponseModel.md) + - [TemplatesTemplateCollectionRetrievalResponse](docs/TemplatesTemplateCollectionRetrievalResponse.md) + - [TemplatesTemplateDefaultRequestResponseModel](docs/TemplatesTemplateDefaultRequestResponseModel.md) + - [TemplatesTemplateEnrollmentFieldRequestResponseModel](docs/TemplatesTemplateEnrollmentFieldRequestResponseModel.md) + - [TemplatesTemplateMetadataFieldRequestResponseModel](docs/TemplatesTemplateMetadataFieldRequestResponseModel.md) + - [TemplatesTemplatePolicyRequestModel](docs/TemplatesTemplatePolicyRequestModel.md) + - [TemplatesTemplatePolicyResponseModel](docs/TemplatesTemplatePolicyResponseModel.md) + - [TemplatesTemplateRegexRequestResponseModel](docs/TemplatesTemplateRegexRequestResponseModel.md) + - [TemplatesTemplateRetrievalResponse](docs/TemplatesTemplateRetrievalResponse.md) + - [TemplatesTemplateUpdateRequest](docs/TemplatesTemplateUpdateRequest.md) + - [WorkflowsAvailableSignalResponse](docs/WorkflowsAvailableSignalResponse.md) + - [WorkflowsAvailableStepQueryResponse](docs/WorkflowsAvailableStepQueryResponse.md) + - [WorkflowsAvailableStepResponse](docs/WorkflowsAvailableStepResponse.md) + - [WorkflowsConditionConfigurationRequest](docs/WorkflowsConditionConfigurationRequest.md) + - [WorkflowsConditionConfigurationResponse](docs/WorkflowsConditionConfigurationResponse.md) + - [WorkflowsDefinitionCreateRequest](docs/WorkflowsDefinitionCreateRequest.md) + - [WorkflowsDefinitionQueryResponse](docs/WorkflowsDefinitionQueryResponse.md) + - [WorkflowsDefinitionResponse](docs/WorkflowsDefinitionResponse.md) + - [WorkflowsDefinitionStepRequest](docs/WorkflowsDefinitionStepRequest.md) + - [WorkflowsDefinitionStepResponse](docs/WorkflowsDefinitionStepResponse.md) + - [WorkflowsDefinitionStepSignalResponse](docs/WorkflowsDefinitionStepSignalResponse.md) + - [WorkflowsDefinitionUpdateRequest](docs/WorkflowsDefinitionUpdateRequest.md) + - [WorkflowsInstanceDefinitionResponse](docs/WorkflowsInstanceDefinitionResponse.md) + - [WorkflowsInstanceQueryResponse](docs/WorkflowsInstanceQueryResponse.md) + - [WorkflowsInstanceResponse](docs/WorkflowsInstanceResponse.md) + - [WorkflowsParameterDefinitionResponse](docs/WorkflowsParameterDefinitionResponse.md) + - [WorkflowsSignalConfigurationRequest](docs/WorkflowsSignalConfigurationRequest.md) + - [WorkflowsSignalDefinitionResponse](docs/WorkflowsSignalDefinitionResponse.md) + - [WorkflowsSignalRequest](docs/WorkflowsSignalRequest.md) + - [WorkflowsWorkflowTypeQueryResponse](docs/WorkflowsWorkflowTypeQueryResponse.md) + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/v24/api/keyfactor/v1/api_agent.go b/v24/api/keyfactor/v1/api_agent.go new file mode 100644 index 0000000..2d1fa95 --- /dev/null +++ b/v24/api/keyfactor/v1/api_agent.go @@ -0,0 +1,1323 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// AgentApiService AgentApi service +type AgentApiService service + +// Request for V1 POST /Agents/Approve +type ApiCreateAgentsApproveRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsApproveRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsApproveRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsApproveRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsApproveRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// List of Agent Ids to Approve +func (r ApiCreateAgentsApproveRequest) RequestBody(requestBody []string) ApiCreateAgentsApproveRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /Agents/Approve request context +func (r ApiCreateAgentsApproveRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentsApproveExecute(r) +} + +/* +Creates a new V1 POST /Agents/Approve request. + +CreateAgentsApprove Approve a list of agents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentsApproveRequest +*/ +func (a *AgentApiService) NewCreateAgentsApproveRequest(ctx context.Context) ApiCreateAgentsApproveRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsApproveRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *AgentApiService) CreateAgentsApproveExecute(r ApiCreateAgentsApproveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/Approve" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Agents/{id}/FetchLogs +type ApiCreateAgentsByIdFetchLogsRequest struct { + ctx context.Context + ApiService *AgentApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsByIdFetchLogsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsByIdFetchLogsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsByIdFetchLogsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsByIdFetchLogsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Agents/{id}/FetchLogs request context +func (r ApiCreateAgentsByIdFetchLogsRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentsByIdFetchLogsExecute(r) +} + +/* +Creates a new V1 POST /Agents/{id}/FetchLogs request. + +CreateAgentsByIdFetchLogs Schedules a job on the agent to retrieve log files + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Guid Id of the agent to schedule the job for. + @return ApiCreateAgentsByIdFetchLogsRequest +*/ +func (a *AgentApiService) NewCreateAgentsByIdFetchLogsRequest(ctx context.Context, id string) ApiCreateAgentsByIdFetchLogsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsByIdFetchLogsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AgentApiService) CreateAgentsByIdFetchLogsExecute(r ApiCreateAgentsByIdFetchLogsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/{id}/FetchLogs" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Agents/{id}/Reset +type ApiCreateAgentsByIdResetRequest struct { + ctx context.Context + ApiService *AgentApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsByIdResetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsByIdResetRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsByIdResetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsByIdResetRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Agents/{id}/Reset request context +func (r ApiCreateAgentsByIdResetRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentsByIdResetExecute(r) +} + +/* +Creates a new V1 POST /Agents/{id}/Reset request. + +CreateAgentsByIdReset Reset an agent to a new state + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Guid Id of Agent to reset + @return ApiCreateAgentsByIdResetRequest +*/ +func (a *AgentApiService) NewCreateAgentsByIdResetRequest(ctx context.Context, id string) ApiCreateAgentsByIdResetRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsByIdResetRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AgentApiService) CreateAgentsByIdResetExecute(r ApiCreateAgentsByIdResetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/{id}/Reset" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Agents/Disapprove +type ApiCreateAgentsDisapproveRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsDisapproveRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsDisapproveRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsDisapproveRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsDisapproveRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// List of Agent Ids to Disapprove +func (r ApiCreateAgentsDisapproveRequest) RequestBody(requestBody []string) ApiCreateAgentsDisapproveRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /Agents/Disapprove request context +func (r ApiCreateAgentsDisapproveRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentsDisapproveExecute(r) +} + +/* +Creates a new V1 POST /Agents/Disapprove request. + +CreateAgentsDisapprove Disapprove a list of agents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentsDisapproveRequest +*/ +func (a *AgentApiService) NewCreateAgentsDisapproveRequest(ctx context.Context) ApiCreateAgentsDisapproveRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsDisapproveRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *AgentApiService) CreateAgentsDisapproveExecute(r ApiCreateAgentsDisapproveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/Disapprove" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Agents/Reset +type ApiCreateAgentsResetRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsResetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsResetRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsResetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsResetRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// List of Agent Ids to Reset +func (r ApiCreateAgentsResetRequest) RequestBody(requestBody []string) ApiCreateAgentsResetRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /Agents/Reset request context +func (r ApiCreateAgentsResetRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentsResetExecute(r) +} + +/* +Creates a new V1 POST /Agents/Reset request. + +CreateAgentsReset Reset a list of agents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentsResetRequest +*/ +func (a *AgentApiService) NewCreateAgentsResetRequest(ctx context.Context) ApiCreateAgentsResetRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsResetRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *AgentApiService) CreateAgentsResetExecute(r ApiCreateAgentsResetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/Reset" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Agents/SetAuthCertificateReenrollment +type ApiCreateAgentsSetAuthCertificateReenrollmentRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentsSetAuthCertificateReenrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentsSetAuthCertificateReenrollmentRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentsSetAuthCertificateReenrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentsSetAuthCertificateReenrollmentRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Object containing orchestrator ids and the new status those orchestrators should have +func (r ApiCreateAgentsSetAuthCertificateReenrollmentRequest) OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) ApiCreateAgentsSetAuthCertificateReenrollmentRequest { + r.orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest = &orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + return r +} + +// Executes the V1 POST /Agents/SetAuthCertificateReenrollment request context +func (r ApiCreateAgentsSetAuthCertificateReenrollmentRequest) Execute() (*OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { + return r.ApiService.CreateAgentsSetAuthCertificateReenrollmentExecute(r) +} + +/* +Creates a new V1 POST /Agents/SetAuthCertificateReenrollment request. + +CreateAgentsSetAuthCertificateReenrollment Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentsSetAuthCertificateReenrollmentRequest +*/ +func (a *AgentApiService) NewCreateAgentsSetAuthCertificateReenrollmentRequest(ctx context.Context) ApiCreateAgentsSetAuthCertificateReenrollmentRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentsSetAuthCertificateReenrollmentRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Agents/SetAuthCertificateReenrollment +// +// @return OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse +func (a *AgentApiService) CreateAgentsSetAuthCertificateReenrollmentExecute(r ApiCreateAgentsSetAuthCertificateReenrollmentRequest) (*OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/SetAuthCertificateReenrollment" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Agents/{id} +type ApiDeleteAgentsByIdRequest struct { + ctx context.Context + ApiService *AgentApiService + id string + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAgentsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAgentsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Forces deletion of the agent. Force deleting an agent will also delete dependent data +func (r ApiDeleteAgentsByIdRequest) Force(force bool) ApiDeleteAgentsByIdRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAgentsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAgentsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Agents/{id} request context +func (r ApiDeleteAgentsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAgentsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Agents/{id} request. + +DeleteAgentsById Delete a single agent, specified by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Agent Id to delete + @return ApiDeleteAgentsByIdRequest +*/ +func (a *AgentApiService) NewDeleteAgentsByIdRequest(ctx context.Context, id string) ApiDeleteAgentsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAgentsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AgentApiService) DeleteAgentsByIdExecute(r ApiDeleteAgentsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Agents +type ApiGetAgentsRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAgentsRequest) QueryString(queryString string) ApiGetAgentsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAgentsRequest) PageReturned(pageReturned int32) ApiGetAgentsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAgentsRequest) ReturnLimit(returnLimit int32) ApiGetAgentsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAgentsRequest) SortField(sortField string) ApiGetAgentsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAgentsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Agents request context +func (r ApiGetAgentsRequest) Execute() ([]OrchestratorsAgentResponse, *http.Response, error) { + return r.ApiService.GetAgentsExecute(r) +} + +/* +Creates a new V1 GET /Agents request. + +GetAgents Returns all agents according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAgentsRequest +*/ +func (a *AgentApiService) NewGetAgentsRequest(ctx context.Context) ApiGetAgentsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Agents +// +// @return []OrchestratorsAgentResponse +func (a *AgentApiService) GetAgentsExecute(r ApiGetAgentsRequest) ([]OrchestratorsAgentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorsAgentResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Agents/{id} +type ApiGetAgentsByIdRequest struct { + ctx context.Context + ApiService *AgentApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Agents/{id} request context +func (r ApiGetAgentsByIdRequest) Execute() (*OrchestratorsAgentResponse, *http.Response, error) { + return r.ApiService.GetAgentsByIdExecute(r) +} + +/* +Creates a new V1 GET /Agents/{id} request. + +GetAgentsById Returns details for a single agent, specified by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Agent Id to Search + @return ApiGetAgentsByIdRequest +*/ +func (a *AgentApiService) NewGetAgentsByIdRequest(ctx context.Context, id string) ApiGetAgentsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Agents/{id} +// +// @return OrchestratorsAgentResponse +func (a *AgentApiService) GetAgentsByIdExecute(r ApiGetAgentsByIdRequest) (*OrchestratorsAgentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorsAgentResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Agents/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_agent_blueprint.go b/v24/api/keyfactor/v1/api_agent_blueprint.go new file mode 100644 index 0000000..905b4e0 --- /dev/null +++ b/v24/api/keyfactor/v1/api_agent_blueprint.go @@ -0,0 +1,1159 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// AgentBlueprintApiService AgentBlueprintApi service +type AgentBlueprintApiService service + +// Request for V1 POST /AgentBluePrint/ApplyBlueprint +type ApiCreateAgentBluePrintApplyBlueprintRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + xKeyfactorRequestedWith *string + templateId *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentBluePrintApplyBlueprintRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentBluePrintApplyBlueprintRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Agent blueprint to apply to the agents +func (r ApiCreateAgentBluePrintApplyBlueprintRequest) TemplateId(templateId string) ApiCreateAgentBluePrintApplyBlueprintRequest { + r.templateId = &templateId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentBluePrintApplyBlueprintRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentBluePrintApplyBlueprintRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Agents to apply the blueprints to +func (r ApiCreateAgentBluePrintApplyBlueprintRequest) RequestBody(requestBody []string) ApiCreateAgentBluePrintApplyBlueprintRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /AgentBluePrint/ApplyBlueprint request context +func (r ApiCreateAgentBluePrintApplyBlueprintRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateAgentBluePrintApplyBlueprintExecute(r) +} + +/* +Creates a new V1 POST /AgentBluePrint/ApplyBlueprint request. + +CreateAgentBluePrintApplyBlueprint Applies the selected agent blueprint to the provided agents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentBluePrintApplyBlueprintRequest +*/ +func (a *AgentBlueprintApiService) NewCreateAgentBluePrintApplyBlueprintRequest(ctx context.Context) ApiCreateAgentBluePrintApplyBlueprintRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentBluePrintApplyBlueprintRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *AgentBlueprintApiService) CreateAgentBluePrintApplyBlueprintExecute(r ApiCreateAgentBluePrintApplyBlueprintRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/ApplyBlueprint" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.templateId != nil { + parameterAddToQuery(localVarQueryParams, "templateId", r.templateId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /AgentBluePrint/GenerateBluePrint +type ApiCreateAgentBluePrintGenerateBluePrintRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + xKeyfactorRequestedWith *string + agentId *string + name *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentBluePrintGenerateBluePrintRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentBluePrintGenerateBluePrintRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Agent to generate a blueprint from +func (r ApiCreateAgentBluePrintGenerateBluePrintRequest) AgentId(agentId string) ApiCreateAgentBluePrintGenerateBluePrintRequest { + r.agentId = &agentId + return r +} + +// Name of the new agent blueprint +func (r ApiCreateAgentBluePrintGenerateBluePrintRequest) Name(name string) ApiCreateAgentBluePrintGenerateBluePrintRequest { + r.name = &name + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentBluePrintGenerateBluePrintRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentBluePrintGenerateBluePrintRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /AgentBluePrint/GenerateBluePrint request context +func (r ApiCreateAgentBluePrintGenerateBluePrintRequest) Execute() (*OrchestratorsAgentBlueprintResponse, *http.Response, error) { + return r.ApiService.CreateAgentBluePrintGenerateBluePrintExecute(r) +} + +/* +Creates a new V1 POST /AgentBluePrint/GenerateBluePrint request. + +CreateAgentBluePrintGenerateBluePrint Generates an agent blueprint from the provided agents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentBluePrintGenerateBluePrintRequest +*/ +func (a *AgentBlueprintApiService) NewCreateAgentBluePrintGenerateBluePrintRequest(ctx context.Context) ApiCreateAgentBluePrintGenerateBluePrintRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentBluePrintGenerateBluePrintRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /AgentBluePrint/GenerateBluePrint +// +// @return OrchestratorsAgentBlueprintResponse +func (a *AgentBlueprintApiService) CreateAgentBluePrintGenerateBluePrintExecute(r ApiCreateAgentBluePrintGenerateBluePrintRequest) (*OrchestratorsAgentBlueprintResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorsAgentBlueprintResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/GenerateBluePrint" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.agentId != nil { + parameterAddToQuery(localVarQueryParams, "agentId", r.agentId, "") + } + if r.name != nil { + parameterAddToQuery(localVarQueryParams, "name", r.name, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /AgentBluePrint/{id} +type ApiDeleteAgentBluePrintByIdRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAgentBluePrintByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAgentBluePrintByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAgentBluePrintByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAgentBluePrintByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /AgentBluePrint/{id} request context +func (r ApiDeleteAgentBluePrintByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAgentBluePrintByIdExecute(r) +} + +/* +Creates a new V1 DELETE /AgentBluePrint/{id} request. + +DeleteAgentBluePrintById Deletes an agent blueprint by its Keyfactor identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor agent blueprint identifier (GUID) + @return ApiDeleteAgentBluePrintByIdRequest +*/ +func (a *AgentBlueprintApiService) NewDeleteAgentBluePrintByIdRequest(ctx context.Context, id string) ApiDeleteAgentBluePrintByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAgentBluePrintByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AgentBlueprintApiService) DeleteAgentBluePrintByIdExecute(r ApiDeleteAgentBluePrintByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentBluePrint +type ApiGetAgentBluePrintRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentBluePrintRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentBluePrintRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAgentBluePrintRequest) PageReturned(pageReturned int32) ApiGetAgentBluePrintRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAgentBluePrintRequest) ReturnLimit(returnLimit int32) ApiGetAgentBluePrintRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAgentBluePrintRequest) SortField(sortField string) ApiGetAgentBluePrintRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAgentBluePrintRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentBluePrintRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentBluePrintRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentBluePrintRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentBluePrint request context +func (r ApiGetAgentBluePrintRequest) Execute() ([]OrchestratorsAgentBlueprintResponse, *http.Response, error) { + return r.ApiService.GetAgentBluePrintExecute(r) +} + +/* +Creates a new V1 GET /AgentBluePrint request. + +GetAgentBluePrint Returns all agent blueprints according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAgentBluePrintRequest +*/ +func (a *AgentBlueprintApiService) NewGetAgentBluePrintRequest(ctx context.Context) ApiGetAgentBluePrintRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentBluePrintRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /AgentBluePrint +// +// @return []OrchestratorsAgentBlueprintResponse +func (a *AgentBlueprintApiService) GetAgentBluePrintExecute(r ApiGetAgentBluePrintRequest) ([]OrchestratorsAgentBlueprintResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorsAgentBlueprintResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentBluePrint/{id} +type ApiGetAgentBluePrintByIdRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + id2 string + xKeyfactorRequestedWith *string + id *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentBluePrintByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentBluePrintByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Returns a single agent blueprint associated with the provided id +func (r ApiGetAgentBluePrintByIdRequest) Id(id string) ApiGetAgentBluePrintByIdRequest { + r.id = &id + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentBluePrintByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentBluePrintByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentBluePrint/{id} request context +func (r ApiGetAgentBluePrintByIdRequest) Execute() (*OrchestratorsAgentBlueprintResponse, *http.Response, error) { + return r.ApiService.GetAgentBluePrintByIdExecute(r) +} + +/* +Creates a new V1 GET /AgentBluePrint/{id} request. + +GetAgentBluePrintById Returns an agent blueprint according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id2 + @return ApiGetAgentBluePrintByIdRequest +*/ +func (a *AgentBlueprintApiService) NewGetAgentBluePrintByIdRequest(ctx context.Context, id2 string) ApiGetAgentBluePrintByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentBluePrintByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id2: id2, + } +} + +// Executes the API request V1 GET /AgentBluePrint/{id} +// +// @return OrchestratorsAgentBlueprintResponse +func (a *AgentBlueprintApiService) GetAgentBluePrintByIdExecute(r ApiGetAgentBluePrintByIdRequest) (*OrchestratorsAgentBlueprintResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorsAgentBlueprintResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id2, "id2")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.id != nil { + parameterAddToQuery(localVarQueryParams, "id", r.id, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentBluePrint/{id}/Jobs +type ApiGetAgentBluePrintByIdJobsRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + id string + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentBluePrintByIdJobsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentBluePrintByIdJobsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAgentBluePrintByIdJobsRequest) PageReturned(pageReturned int32) ApiGetAgentBluePrintByIdJobsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAgentBluePrintByIdJobsRequest) ReturnLimit(returnLimit int32) ApiGetAgentBluePrintByIdJobsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAgentBluePrintByIdJobsRequest) SortField(sortField string) ApiGetAgentBluePrintByIdJobsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAgentBluePrintByIdJobsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentBluePrintByIdJobsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentBluePrintByIdJobsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentBluePrintByIdJobsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentBluePrint/{id}/Jobs request context +func (r ApiGetAgentBluePrintByIdJobsRequest) Execute() ([]OrchestratorsAgentBlueprintJobsResponse, *http.Response, error) { + return r.ApiService.GetAgentBluePrintByIdJobsExecute(r) +} + +/* +Creates a new V1 GET /AgentBluePrint/{id}/Jobs request. + +GetAgentBluePrintByIdJobs Gets the agent blueprint scheduled jobs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetAgentBluePrintByIdJobsRequest +*/ +func (a *AgentBlueprintApiService) NewGetAgentBluePrintByIdJobsRequest(ctx context.Context, id string) ApiGetAgentBluePrintByIdJobsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentBluePrintByIdJobsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /AgentBluePrint/{id}/Jobs +// +// @return []OrchestratorsAgentBlueprintJobsResponse +func (a *AgentBlueprintApiService) GetAgentBluePrintByIdJobsExecute(r ApiGetAgentBluePrintByIdJobsRequest) ([]OrchestratorsAgentBlueprintJobsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorsAgentBlueprintJobsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/{id}/Jobs" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentBluePrint/{id}/Stores +type ApiGetAgentBluePrintByIdStoresRequest struct { + ctx context.Context + ApiService *AgentBlueprintApiService + id string + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentBluePrintByIdStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentBluePrintByIdStoresRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAgentBluePrintByIdStoresRequest) PageReturned(pageReturned int32) ApiGetAgentBluePrintByIdStoresRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAgentBluePrintByIdStoresRequest) ReturnLimit(returnLimit int32) ApiGetAgentBluePrintByIdStoresRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAgentBluePrintByIdStoresRequest) SortField(sortField string) ApiGetAgentBluePrintByIdStoresRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAgentBluePrintByIdStoresRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentBluePrintByIdStoresRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentBluePrintByIdStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentBluePrintByIdStoresRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentBluePrint/{id}/Stores request context +func (r ApiGetAgentBluePrintByIdStoresRequest) Execute() ([]OrchestratorsAgentBlueprintStoresResponse, *http.Response, error) { + return r.ApiService.GetAgentBluePrintByIdStoresExecute(r) +} + +/* +Creates a new V1 GET /AgentBluePrint/{id}/Stores request. + +GetAgentBluePrintByIdStores Gets the agent blueprint certificate stores + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetAgentBluePrintByIdStoresRequest +*/ +func (a *AgentBlueprintApiService) NewGetAgentBluePrintByIdStoresRequest(ctx context.Context, id string) ApiGetAgentBluePrintByIdStoresRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentBluePrintByIdStoresRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /AgentBluePrint/{id}/Stores +// +// @return []OrchestratorsAgentBlueprintStoresResponse +func (a *AgentBlueprintApiService) GetAgentBluePrintByIdStoresExecute(r ApiGetAgentBluePrintByIdStoresRequest) ([]OrchestratorsAgentBlueprintStoresResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorsAgentBlueprintStoresResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentBluePrint/{id}/Stores" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_agent_pool.go b/v24/api/keyfactor/v1/api_agent_pool.go new file mode 100644 index 0000000..ca0c3c0 --- /dev/null +++ b/v24/api/keyfactor/v1/api_agent_pool.go @@ -0,0 +1,983 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// AgentPoolApiService AgentPoolApi service +type AgentPoolApiService service + +// Request for V1 POST /AgentPools +type ApiCreateAgentPoolsRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorPoolsAgentPoolCreationRequest *OrchestratorPoolsAgentPoolCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAgentPoolsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAgentPoolsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAgentPoolsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAgentPoolsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Agent pool properties to be applied to the new pool +func (r ApiCreateAgentPoolsRequest) OrchestratorPoolsAgentPoolCreationRequest(orchestratorPoolsAgentPoolCreationRequest OrchestratorPoolsAgentPoolCreationRequest) ApiCreateAgentPoolsRequest { + r.orchestratorPoolsAgentPoolCreationRequest = &orchestratorPoolsAgentPoolCreationRequest + return r +} + +// Executes the V1 POST /AgentPools request context +func (r ApiCreateAgentPoolsRequest) Execute() (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + return r.ApiService.CreateAgentPoolsExecute(r) +} + +/* +Creates a new V1 POST /AgentPools request. + +CreateAgentPools Creates an agent pool with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAgentPoolsRequest +*/ +func (a *AgentPoolApiService) NewCreateAgentPoolsRequest(ctx context.Context) ApiCreateAgentPoolsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAgentPoolsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /AgentPools +// +// @return OrchestratorPoolsAgentPoolGetResponse +func (a *AgentPoolApiService) CreateAgentPoolsExecute(r ApiCreateAgentPoolsRequest) (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorPoolsAgentPoolGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorPoolsAgentPoolCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /AgentPools/{id} +type ApiDeleteAgentPoolsByIdRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAgentPoolsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAgentPoolsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAgentPoolsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAgentPoolsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /AgentPools/{id} request context +func (r ApiDeleteAgentPoolsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAgentPoolsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /AgentPools/{id} request. + +DeleteAgentPoolsById Deletes the agent pool associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier (GUID) of the agent pool + @return ApiDeleteAgentPoolsByIdRequest +*/ +func (a *AgentPoolApiService) NewDeleteAgentPoolsByIdRequest(ctx context.Context, id string) ApiDeleteAgentPoolsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAgentPoolsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AgentPoolApiService) DeleteAgentPoolsByIdExecute(r ApiDeleteAgentPoolsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentPools +type ApiGetAgentPoolsRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentPoolsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentPoolsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetAgentPoolsRequest) QueryString(queryString string) ApiGetAgentPoolsRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetAgentPoolsRequest) PageReturned(pageReturned int32) ApiGetAgentPoolsRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetAgentPoolsRequest) ReturnLimit(returnLimit int32) ApiGetAgentPoolsRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetAgentPoolsRequest) SortField(sortField string) ApiGetAgentPoolsRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetAgentPoolsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentPoolsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentPoolsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentPoolsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentPools request context +func (r ApiGetAgentPoolsRequest) Execute() ([]OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + return r.ApiService.GetAgentPoolsExecute(r) +} + +/* +Creates a new V1 GET /AgentPools request. + +GetAgentPools Returns all agent pools according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAgentPoolsRequest +*/ +func (a *AgentPoolApiService) NewGetAgentPoolsRequest(ctx context.Context) ApiGetAgentPoolsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentPoolsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /AgentPools +// +// @return []OrchestratorPoolsAgentPoolGetResponse +func (a *AgentPoolApiService) GetAgentPoolsExecute(r ApiGetAgentPoolsRequest) ([]OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorPoolsAgentPoolGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentPools/Agents +type ApiGetAgentPoolsAgentsRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentPoolsAgentsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentPoolsAgentsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetAgentPoolsAgentsRequest) QueryString(queryString string) ApiGetAgentPoolsAgentsRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetAgentPoolsAgentsRequest) PageReturned(pageReturned int32) ApiGetAgentPoolsAgentsRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetAgentPoolsAgentsRequest) ReturnLimit(returnLimit int32) ApiGetAgentPoolsAgentsRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetAgentPoolsAgentsRequest) SortField(sortField string) ApiGetAgentPoolsAgentsRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetAgentPoolsAgentsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAgentPoolsAgentsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentPoolsAgentsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentPoolsAgentsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentPools/Agents request context +func (r ApiGetAgentPoolsAgentsRequest) Execute() ([]OrchestratorPoolsAgentPoolAgentGetResponse, *http.Response, error) { + return r.ApiService.GetAgentPoolsAgentsExecute(r) +} + +/* +Creates a new V1 GET /AgentPools/Agents request. + +GetAgentPoolsAgents Returns all agents for the default agent pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAgentPoolsAgentsRequest +*/ +func (a *AgentPoolApiService) NewGetAgentPoolsAgentsRequest(ctx context.Context) ApiGetAgentPoolsAgentsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentPoolsAgentsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /AgentPools/Agents +// +// @return []OrchestratorPoolsAgentPoolAgentGetResponse +func (a *AgentPoolApiService) GetAgentPoolsAgentsExecute(r ApiGetAgentPoolsAgentsRequest) ([]OrchestratorPoolsAgentPoolAgentGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorPoolsAgentPoolAgentGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools/Agents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AgentPools/{id} +type ApiGetAgentPoolsByIdRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAgentPoolsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAgentPoolsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAgentPoolsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAgentPoolsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AgentPools/{id} request context +func (r ApiGetAgentPoolsByIdRequest) Execute() (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + return r.ApiService.GetAgentPoolsByIdExecute(r) +} + +/* +Creates a new V1 GET /AgentPools/{id} request. + +GetAgentPoolsById Returns a single agent pool associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor (GUID) identifier of the agent pool + @return ApiGetAgentPoolsByIdRequest +*/ +func (a *AgentPoolApiService) NewGetAgentPoolsByIdRequest(ctx context.Context, id string) ApiGetAgentPoolsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAgentPoolsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /AgentPools/{id} +// +// @return OrchestratorPoolsAgentPoolGetResponse +func (a *AgentPoolApiService) GetAgentPoolsByIdExecute(r ApiGetAgentPoolsByIdRequest) (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorPoolsAgentPoolGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /AgentPools +type ApiUpdateAgentPoolsRequest struct { + ctx context.Context + ApiService *AgentPoolApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorPoolsAgentPoolUpdateRequest *OrchestratorPoolsAgentPoolUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAgentPoolsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAgentPoolsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAgentPoolsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAgentPoolsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Agent pool properties to be applied to the existing pool +func (r ApiUpdateAgentPoolsRequest) OrchestratorPoolsAgentPoolUpdateRequest(orchestratorPoolsAgentPoolUpdateRequest OrchestratorPoolsAgentPoolUpdateRequest) ApiUpdateAgentPoolsRequest { + r.orchestratorPoolsAgentPoolUpdateRequest = &orchestratorPoolsAgentPoolUpdateRequest + return r +} + +// Executes the V1 PUT /AgentPools request context +func (r ApiUpdateAgentPoolsRequest) Execute() (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + return r.ApiService.UpdateAgentPoolsExecute(r) +} + +/* +Creates a new V1 PUT /AgentPools request. + +UpdateAgentPools Updates an existing agent pool with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAgentPoolsRequest +*/ +func (a *AgentPoolApiService) NewUpdateAgentPoolsRequest(ctx context.Context) ApiUpdateAgentPoolsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAgentPoolsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /AgentPools +// +// @return OrchestratorPoolsAgentPoolGetResponse +func (a *AgentPoolApiService) UpdateAgentPoolsExecute(r ApiUpdateAgentPoolsRequest) (*OrchestratorPoolsAgentPoolGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorPoolsAgentPoolGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AgentPools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorPoolsAgentPoolUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_app_setting.go b/v24/api/keyfactor/v1/api_app_setting.go new file mode 100644 index 0000000..89252c1 --- /dev/null +++ b/v24/api/keyfactor/v1/api_app_setting.go @@ -0,0 +1,782 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// AppSettingApiService AppSettingApi service +type AppSettingApiService service + +// Request for V1 GET /AppSetting +type ApiGetAppSettingRequest struct { + ctx context.Context + ApiService *AppSettingApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAppSettingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAppSettingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAppSettingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAppSettingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AppSetting request context +func (r ApiGetAppSettingRequest) Execute() ([]AppSettingsAppSettingResponse, *http.Response, error) { + return r.ApiService.GetAppSettingExecute(r) +} + +/* +Creates a new V1 GET /AppSetting request. + +GetAppSetting Get available application settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAppSettingRequest +*/ +func (a *AppSettingApiService) NewGetAppSettingRequest(ctx context.Context) ApiGetAppSettingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAppSettingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /AppSetting +// +// @return []AppSettingsAppSettingResponse +func (a *AppSettingApiService) GetAppSettingExecute(r ApiGetAppSettingRequest) ([]AppSettingsAppSettingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AppSettingsAppSettingResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AppSetting" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /AppSetting/{id} +type ApiGetAppSettingByIdRequest struct { + ctx context.Context + ApiService *AppSettingApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAppSettingByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAppSettingByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAppSettingByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAppSettingByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /AppSetting/{id} request context +func (r ApiGetAppSettingByIdRequest) Execute() (*AppSettingsAppSettingResponse, *http.Response, error) { + return r.ApiService.GetAppSettingByIdExecute(r) +} + +/* +Creates a new V1 GET /AppSetting/{id} request. + +GetAppSettingById Get application setting by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the application setting + @return ApiGetAppSettingByIdRequest +*/ +func (a *AppSettingApiService) NewGetAppSettingByIdRequest(ctx context.Context, id int32) ApiGetAppSettingByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAppSettingByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /AppSetting/{id} +// +// @return AppSettingsAppSettingResponse +func (a *AppSettingApiService) GetAppSettingByIdExecute(r ApiGetAppSettingByIdRequest) (*AppSettingsAppSettingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppSettingsAppSettingResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AppSetting/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /AppSetting +type ApiUpdateAppSettingRequest struct { + ctx context.Context + ApiService *AppSettingApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + appSettingsAppSettingUpdateBulkRequest *[]AppSettingsAppSettingUpdateBulkRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAppSettingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAppSettingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAppSettingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAppSettingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// List of information to update application settings +func (r ApiUpdateAppSettingRequest) AppSettingsAppSettingUpdateBulkRequest(appSettingsAppSettingUpdateBulkRequest []AppSettingsAppSettingUpdateBulkRequest) ApiUpdateAppSettingRequest { + r.appSettingsAppSettingUpdateBulkRequest = &appSettingsAppSettingUpdateBulkRequest + return r +} + +// Executes the V1 PUT /AppSetting request context +func (r ApiUpdateAppSettingRequest) Execute() ([]AppSettingsAppSettingResponse, *http.Response, error) { + return r.ApiService.UpdateAppSettingExecute(r) +} + +/* +Creates a new V1 PUT /AppSetting request. + +UpdateAppSetting Bulk update available application settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAppSettingRequest +*/ +func (a *AppSettingApiService) NewUpdateAppSettingRequest(ctx context.Context) ApiUpdateAppSettingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAppSettingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /AppSetting +// +// @return []AppSettingsAppSettingResponse +func (a *AppSettingApiService) UpdateAppSettingExecute(r ApiUpdateAppSettingRequest) ([]AppSettingsAppSettingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AppSettingsAppSettingResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AppSetting" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.appSettingsAppSettingUpdateBulkRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /AppSetting/{id}/Set +type ApiUpdateAppSettingByIdSetRequest struct { + ctx context.Context + ApiService *AppSettingApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + appSettingsAppSettingUpdateRequest *AppSettingsAppSettingUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAppSettingByIdSetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAppSettingByIdSetRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAppSettingByIdSetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAppSettingByIdSetRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Infomation for updating the application setting +func (r ApiUpdateAppSettingByIdSetRequest) AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest AppSettingsAppSettingUpdateRequest) ApiUpdateAppSettingByIdSetRequest { + r.appSettingsAppSettingUpdateRequest = &appSettingsAppSettingUpdateRequest + return r +} + +// Executes the V1 PUT /AppSetting/{id}/Set request context +func (r ApiUpdateAppSettingByIdSetRequest) Execute() (*AppSettingsAppSettingResponse, *http.Response, error) { + return r.ApiService.UpdateAppSettingByIdSetExecute(r) +} + +/* +Creates a new V1 PUT /AppSetting/{id}/Set request. + +UpdateAppSettingByIdSet Update one application setting by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the application setting + @return ApiUpdateAppSettingByIdSetRequest +*/ +func (a *AppSettingApiService) NewUpdateAppSettingByIdSetRequest(ctx context.Context, id int32) ApiUpdateAppSettingByIdSetRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAppSettingByIdSetRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /AppSetting/{id}/Set +// +// @return AppSettingsAppSettingResponse +func (a *AppSettingApiService) UpdateAppSettingByIdSetExecute(r ApiUpdateAppSettingByIdSetRequest) (*AppSettingsAppSettingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppSettingsAppSettingResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AppSetting/{id}/Set" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.appSettingsAppSettingUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /AppSetting/{name}/Set +type ApiUpdateAppSettingNameSetRequest struct { + ctx context.Context + ApiService *AppSettingApiService + name string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + appSettingsAppSettingUpdateRequest *AppSettingsAppSettingUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAppSettingNameSetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAppSettingNameSetRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAppSettingNameSetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAppSettingNameSetRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Infomation for updating the application setting +func (r ApiUpdateAppSettingNameSetRequest) AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest AppSettingsAppSettingUpdateRequest) ApiUpdateAppSettingNameSetRequest { + r.appSettingsAppSettingUpdateRequest = &appSettingsAppSettingUpdateRequest + return r +} + +// Executes the V1 PUT /AppSetting/{name}/Set request context +func (r ApiUpdateAppSettingNameSetRequest) Execute() (*AppSettingsAppSettingResponse, *http.Response, error) { + return r.ApiService.UpdateAppSettingNameSetExecute(r) +} + +/* +Creates a new V1 PUT /AppSetting/{name}/Set request. + +UpdateAppSettingNameSet Update one application setting by short name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name Short name for the application setting + @return ApiUpdateAppSettingNameSetRequest +*/ +func (a *AppSettingApiService) NewUpdateAppSettingNameSetRequest(ctx context.Context, name string) ApiUpdateAppSettingNameSetRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAppSettingNameSetRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + name: name, + } +} + +// Executes the API request V1 PUT /AppSetting/{name}/Set +// +// @return AppSettingsAppSettingResponse +func (a *AppSettingApiService) UpdateAppSettingNameSetExecute(r ApiUpdateAppSettingNameSetRequest) (*AppSettingsAppSettingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppSettingsAppSettingResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/AppSetting/{name}/Set" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.appSettingsAppSettingUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_audit_log.go b/v24/api/keyfactor/v1/api_audit_log.go new file mode 100644 index 0000000..6035622 --- /dev/null +++ b/v24/api/keyfactor/v1/api_audit_log.go @@ -0,0 +1,869 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// AuditLogApiService AuditLogApi service +type AuditLogApiService service + +// Request for V1 GET /Audit +type ApiGetAuditRequest struct { + ctx context.Context + ApiService *AuditLogApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAuditRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAuditRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAuditRequest) QueryString(queryString string) ApiGetAuditRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAuditRequest) PageReturned(pageReturned int32) ApiGetAuditRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAuditRequest) ReturnLimit(returnLimit int32) ApiGetAuditRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAuditRequest) SortField(sortField string) ApiGetAuditRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAuditRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAuditRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAuditRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAuditRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Audit request context +func (r ApiGetAuditRequest) Execute() ([]KeyfactorAuditingQueryingAuditLogEntry, *http.Response, error) { + return r.ApiService.GetAuditExecute(r) +} + +/* +Creates a new V1 GET /Audit request. + +GetAudit Returns all audit log entries according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuditRequest +*/ +func (a *AuditLogApiService) NewGetAuditRequest(ctx context.Context) ApiGetAuditRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAuditRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Audit +// +// @return []KeyfactorAuditingQueryingAuditLogEntry +func (a *AuditLogApiService) GetAuditExecute(r ApiGetAuditRequest) ([]KeyfactorAuditingQueryingAuditLogEntry, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []KeyfactorAuditingQueryingAuditLogEntry + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Audit" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Audit/{id} +type ApiGetAuditByIdRequest struct { + ctx context.Context + ApiService *AuditLogApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAuditByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAuditByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAuditByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAuditByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Audit/{id} request context +func (r ApiGetAuditByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.GetAuditByIdExecute(r) +} + +/* +Creates a new V1 GET /Audit/{id} request. + +GetAuditById Returns the audit log entry associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the audit entry to be returned + @return ApiGetAuditByIdRequest +*/ +func (a *AuditLogApiService) NewGetAuditByIdRequest(ctx context.Context, id int32) ApiGetAuditByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAuditByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *AuditLogApiService) GetAuditByIdExecute(r ApiGetAuditByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Audit/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Audit/{id}/Validate +type ApiGetAuditByIdValidateRequest struct { + ctx context.Context + ApiService *AuditLogApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAuditByIdValidateRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAuditByIdValidateRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAuditByIdValidateRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAuditByIdValidateRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Audit/{id}/Validate request context +func (r ApiGetAuditByIdValidateRequest) Execute() (bool, *http.Response, error) { + return r.ApiService.GetAuditByIdValidateExecute(r) +} + +/* +Creates a new V1 GET /Audit/{id}/Validate request. + +# GetAuditByIdValidate Validates the audit log entry associated with the provided keyfactor id + +The validation performs a signing operation and checks the signature against the stored signature. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the audit log entry + @return ApiGetAuditByIdValidateRequest +*/ +func (a *AuditLogApiService) NewGetAuditByIdValidateRequest(ctx context.Context, id int32) ApiGetAuditByIdValidateRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAuditByIdValidateRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Audit/{id}/Validate +// +// @return bool +func (a *AuditLogApiService) GetAuditByIdValidateExecute(r ApiGetAuditByIdValidateRequest) (bool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue bool + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Audit/{id}/Validate" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Audit/Download +type ApiGetAuditDownloadRequest struct { + ctx context.Context + ApiService *AuditLogApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAuditDownloadRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAuditDownloadRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAuditDownloadRequest) QueryString(queryString string) ApiGetAuditDownloadRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAuditDownloadRequest) PageReturned(pageReturned int32) ApiGetAuditDownloadRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAuditDownloadRequest) ReturnLimit(returnLimit int32) ApiGetAuditDownloadRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAuditDownloadRequest) SortField(sortField string) ApiGetAuditDownloadRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAuditDownloadRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAuditDownloadRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAuditDownloadRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAuditDownloadRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Audit/Download request context +func (r ApiGetAuditDownloadRequest) Execute() (string, *http.Response, error) { + return r.ApiService.GetAuditDownloadExecute(r) +} + +/* +Creates a new V1 GET /Audit/Download request. + +GetAuditDownload Returns a Comma Separated file containing the audit log entries according to the provided filter + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuditDownloadRequest +*/ +func (a *AuditLogApiService) NewGetAuditDownloadRequest(ctx context.Context) ApiGetAuditDownloadRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAuditDownloadRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Audit/Download +// +// @return string +func (a *AuditLogApiService) GetAuditDownloadExecute(r ApiGetAuditDownloadRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Audit/Download" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Audit/RelatedEntities +type ApiGetAuditRelatedEntitiesRequest struct { + ctx context.Context + ApiService *AuditLogApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAuditRelatedEntitiesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAuditRelatedEntitiesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAuditRelatedEntitiesRequest) QueryString(queryString string) ApiGetAuditRelatedEntitiesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAuditRelatedEntitiesRequest) PageReturned(pageReturned int32) ApiGetAuditRelatedEntitiesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAuditRelatedEntitiesRequest) ReturnLimit(returnLimit int32) ApiGetAuditRelatedEntitiesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAuditRelatedEntitiesRequest) SortField(sortField string) ApiGetAuditRelatedEntitiesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAuditRelatedEntitiesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAuditRelatedEntitiesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAuditRelatedEntitiesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAuditRelatedEntitiesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Audit/RelatedEntities request context +func (r ApiGetAuditRelatedEntitiesRequest) Execute() ([]KeyfactorAuditingQueryingAuditLogEntry, *http.Response, error) { + return r.ApiService.GetAuditRelatedEntitiesExecute(r) +} + +/* +Creates a new V1 GET /Audit/RelatedEntities request. + +GetAuditRelatedEntities Returns the audit log entry associated with the provided keyfactor id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuditRelatedEntitiesRequest +*/ +func (a *AuditLogApiService) NewGetAuditRelatedEntitiesRequest(ctx context.Context) ApiGetAuditRelatedEntitiesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAuditRelatedEntitiesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Audit/RelatedEntities +// +// @return []KeyfactorAuditingQueryingAuditLogEntry +func (a *AuditLogApiService) GetAuditRelatedEntitiesExecute(r ApiGetAuditRelatedEntitiesRequest) ([]KeyfactorAuditingQueryingAuditLogEntry, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []KeyfactorAuditingQueryingAuditLogEntry + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Audit/RelatedEntities" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_ca_connector.go b/v24/api/keyfactor/v1/api_ca_connector.go new file mode 100644 index 0000000..a137b58 --- /dev/null +++ b/v24/api/keyfactor/v1/api_ca_connector.go @@ -0,0 +1,749 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CAConnectorApiService CAConnectorApi service +type CAConnectorApiService service + +// Request for V1 POST /CertificateAuthority/CAConnectors +type ApiCreateCertificateAuthorityCAConnectorsRequest struct { + ctx context.Context + ApiService *CAConnectorApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAConnectorRequest *CertificateAuthoritiesCAConnectorRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityCAConnectorsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityCAConnectorsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityCAConnectorsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityCAConnectorsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// CA Connector object with the provided information. +func (r ApiCreateCertificateAuthorityCAConnectorsRequest) CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest CertificateAuthoritiesCAConnectorRequest) ApiCreateCertificateAuthorityCAConnectorsRequest { + r.certificateAuthoritiesCAConnectorRequest = &certificateAuthoritiesCAConnectorRequest + return r +} + +// Executes the V1 POST /CertificateAuthority/CAConnectors request context +func (r ApiCreateCertificateAuthorityCAConnectorsRequest) Execute() (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityCAConnectorsExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/CAConnectors request. + +CreateCertificateAuthorityCAConnectors Creates a new CA Connector object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityCAConnectorsRequest +*/ +func (a *CAConnectorApiService) NewCreateCertificateAuthorityCAConnectorsRequest(ctx context.Context) ApiCreateCertificateAuthorityCAConnectorsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityCAConnectorsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority/CAConnectors +// +// @return CertificateAuthoritiesCAConnectorResponse +func (a *CAConnectorApiService) CreateCertificateAuthorityCAConnectorsExecute(r ApiCreateCertificateAuthorityCAConnectorsRequest) (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAConnectorResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/CAConnectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAConnectorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateAuthority/CAConnectors/{id} +type ApiDeleteCertificateAuthorityCAConnectorsByIdRequest struct { + ctx context.Context + ApiService *CAConnectorApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateAuthority/CAConnectors/{id} request context +func (r ApiDeleteCertificateAuthorityCAConnectorsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateAuthorityCAConnectorsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateAuthority/CAConnectors/{id} request. + +DeleteCertificateAuthorityCAConnectorsById Deletes a CA Connector with the specific ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the CA Connector + @return ApiDeleteCertificateAuthorityCAConnectorsByIdRequest +*/ +func (a *CAConnectorApiService) NewDeleteCertificateAuthorityCAConnectorsByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateAuthorityCAConnectorsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateAuthorityCAConnectorsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CAConnectorApiService) DeleteCertificateAuthorityCAConnectorsByIdExecute(r ApiDeleteCertificateAuthorityCAConnectorsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/CAConnectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/CAConnectors +type ApiGetCertificateAuthorityCAConnectorsRequest struct { + ctx context.Context + ApiService *CAConnectorApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityCAConnectorsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityCAConnectorsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityCAConnectorsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityCAConnectorsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/CAConnectors request context +func (r ApiGetCertificateAuthorityCAConnectorsRequest) Execute() ([]CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityCAConnectorsExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/CAConnectors request. + +GetCertificateAuthorityCAConnectors Returns all CA Connectors + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityCAConnectorsRequest +*/ +func (a *CAConnectorApiService) NewGetCertificateAuthorityCAConnectorsRequest(ctx context.Context) ApiGetCertificateAuthorityCAConnectorsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityCAConnectorsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/CAConnectors +// +// @return []CertificateAuthoritiesCAConnectorResponse +func (a *CAConnectorApiService) GetCertificateAuthorityCAConnectorsExecute(r ApiGetCertificateAuthorityCAConnectorsRequest) ([]CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCAConnectorResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/CAConnectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/CAConnectors/{id} +type ApiGetCertificateAuthorityCAConnectorsByIdRequest struct { + ctx context.Context + ApiService *CAConnectorApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/CAConnectors/{id} request context +func (r ApiGetCertificateAuthorityCAConnectorsByIdRequest) Execute() (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityCAConnectorsByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/CAConnectors/{id} request. + +GetCertificateAuthorityCAConnectorsById Returns a CA Connector with the specific ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the CA Connector + @return ApiGetCertificateAuthorityCAConnectorsByIdRequest +*/ +func (a *CAConnectorApiService) NewGetCertificateAuthorityCAConnectorsByIdRequest(ctx context.Context, id int32) ApiGetCertificateAuthorityCAConnectorsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityCAConnectorsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateAuthority/CAConnectors/{id} +// +// @return CertificateAuthoritiesCAConnectorResponse +func (a *CAConnectorApiService) GetCertificateAuthorityCAConnectorsByIdExecute(r ApiGetCertificateAuthorityCAConnectorsByIdRequest) (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAConnectorResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/CAConnectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateAuthority/CAConnectors/{id} +type ApiUpdateCertificateAuthorityCAConnectorsByIdRequest struct { + ctx context.Context + ApiService *CAConnectorApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAConnectorRequest *CertificateAuthoritiesCAConnectorRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateAuthorityCAConnectorsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateAuthorityCAConnectorsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// CA Connector object with the provided information. +func (r ApiUpdateCertificateAuthorityCAConnectorsByIdRequest) CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest CertificateAuthoritiesCAConnectorRequest) ApiUpdateCertificateAuthorityCAConnectorsByIdRequest { + r.certificateAuthoritiesCAConnectorRequest = &certificateAuthoritiesCAConnectorRequest + return r +} + +// Executes the V1 PUT /CertificateAuthority/CAConnectors/{id} request context +func (r ApiUpdateCertificateAuthorityCAConnectorsByIdRequest) Execute() (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateAuthorityCAConnectorsByIdExecute(r) +} + +/* +Creates a new V1 PUT /CertificateAuthority/CAConnectors/{id} request. + +UpdateCertificateAuthorityCAConnectorsById Updates an existing CA Connector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the CA Connector we want to update + @return ApiUpdateCertificateAuthorityCAConnectorsByIdRequest +*/ +func (a *CAConnectorApiService) NewUpdateCertificateAuthorityCAConnectorsByIdRequest(ctx context.Context, id int32) ApiUpdateCertificateAuthorityCAConnectorsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateAuthorityCAConnectorsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /CertificateAuthority/CAConnectors/{id} +// +// @return CertificateAuthoritiesCAConnectorResponse +func (a *CAConnectorApiService) UpdateCertificateAuthorityCAConnectorsByIdExecute(r ApiUpdateCertificateAuthorityCAConnectorsByIdRequest) (*CertificateAuthoritiesCAConnectorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAConnectorResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/CAConnectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAConnectorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate.go b/v24/api/keyfactor/v1/api_certificate.go new file mode 100644 index 0000000..08a9dd5 --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate.go @@ -0,0 +1,3633 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateApiService CertificateApi service +type CertificateApiService service + +// Request for V1 POST /Certificates/Analyze +type ApiCreateCertificatesAnalyzeRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificatesAnalyzeCertificateRequest *CertificatesAnalyzeCertificateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificatesAnalyzeRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificatesAnalyzeRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificatesAnalyzeRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificatesAnalyzeRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The certificate to analyze +func (r ApiCreateCertificatesAnalyzeRequest) CertificatesAnalyzeCertificateRequest(certificatesAnalyzeCertificateRequest CertificatesAnalyzeCertificateRequest) ApiCreateCertificatesAnalyzeRequest { + r.certificatesAnalyzeCertificateRequest = &certificatesAnalyzeCertificateRequest + return r +} + +// Executes the V1 POST /Certificates/Analyze request context +func (r ApiCreateCertificatesAnalyzeRequest) Execute() ([]CSSCMSDataModelModelsCertificateDetails, *http.Response, error) { + return r.ApiService.CreateCertificatesAnalyzeExecute(r) +} + +/* +Creates a new V1 POST /Certificates/Analyze request. + +CreateCertificatesAnalyze Returns the public information of the certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificatesAnalyzeRequest +*/ +func (a *CertificateApiService) NewCreateCertificatesAnalyzeRequest(ctx context.Context) ApiCreateCertificatesAnalyzeRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificatesAnalyzeRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Certificates/Analyze +// +// @return []CSSCMSDataModelModelsCertificateDetails +func (a *CertificateApiService) CreateCertificatesAnalyzeExecute(r ApiCreateCertificatesAnalyzeRequest) ([]CSSCMSDataModelModelsCertificateDetails, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateDetails + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Analyze" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificatesAnalyzeCertificateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Certificates/Download +type ApiCreateCertificatesDownloadRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + xCertificateformat *string + collectionId *int32 + xKeyfactorApiVersion *string + certificatesCertificateDownloadRequest *CertificatesCertificateDownloadRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificatesDownloadRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificatesDownloadRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired format [DER, PEM, P7B] +func (r ApiCreateCertificatesDownloadRequest) XCertificateformat(xCertificateformat string) ApiCreateCertificatesDownloadRequest { + r.xCertificateformat = &xCertificateformat + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiCreateCertificatesDownloadRequest) CollectionId(collectionId int32) ApiCreateCertificatesDownloadRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificatesDownloadRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificatesDownloadRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Query to filter the certificate to be recovered +func (r ApiCreateCertificatesDownloadRequest) CertificatesCertificateDownloadRequest(certificatesCertificateDownloadRequest CertificatesCertificateDownloadRequest) ApiCreateCertificatesDownloadRequest { + r.certificatesCertificateDownloadRequest = &certificatesCertificateDownloadRequest + return r +} + +// Executes the V1 POST /Certificates/Download request context +func (r ApiCreateCertificatesDownloadRequest) Execute() (*CSSCMSDataModelModelsCertificateDownloadResponse, *http.Response, error) { + return r.ApiService.CreateCertificatesDownloadExecute(r) +} + +/* +Creates a new V1 POST /Certificates/Download request. + +# CreateCertificatesDownload Downloads the persisted certificate associated with the provided query + +*NOTE: At least one of the following criteria must be provided: +1. Certificate ID +2. Thumbprint +3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificatesDownloadRequest +*/ +func (a *CertificateApiService) NewCreateCertificatesDownloadRequest(ctx context.Context) ApiCreateCertificatesDownloadRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificatesDownloadRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Certificates/Download +// +// @return CSSCMSDataModelModelsCertificateDownloadResponse +func (a *CertificateApiService) CreateCertificatesDownloadExecute(r ApiCreateCertificatesDownloadRequest) (*CSSCMSDataModelModelsCertificateDownloadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCertificateDownloadResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Download" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.xCertificateformat == nil { + return localVarReturnValue, nil, reportError("xCertificateformat is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + parameterAddToQuery(localVarHeaderParams, "x-certificateformat", r.xCertificateformat, "") + // body params + localVarPostBody = r.certificatesCertificateDownloadRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Certificates/Import +type ApiCreateCertificatesImportRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertificateImportRequestModel *CSSCMSDataModelModelsCertificateImportRequestModel +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificatesImportRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificatesImportRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificatesImportRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificatesImportRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password +func (r ApiCreateCertificatesImportRequest) CSSCMSDataModelModelsCertificateImportRequestModel(cSSCMSDataModelModelsCertificateImportRequestModel CSSCMSDataModelModelsCertificateImportRequestModel) ApiCreateCertificatesImportRequest { + r.cSSCMSDataModelModelsCertificateImportRequestModel = &cSSCMSDataModelModelsCertificateImportRequestModel + return r +} + +// Executes the V1 POST /Certificates/Import request context +func (r ApiCreateCertificatesImportRequest) Execute() (*CSSCMSDataModelModelsCertificateImportResponseModel, *http.Response, error) { + return r.ApiService.CreateCertificatesImportExecute(r) +} + +/* +Creates a new V1 POST /Certificates/Import request. + +CreateCertificatesImport Imports the provided certificate into the Keyfactor instance, including any provided associated data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificatesImportRequest +*/ +func (a *CertificateApiService) NewCreateCertificatesImportRequest(ctx context.Context) ApiCreateCertificatesImportRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificatesImportRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Certificates/Import +// +// @return CSSCMSDataModelModelsCertificateImportResponseModel +func (a *CertificateApiService) CreateCertificatesImportExecute(r ApiCreateCertificatesImportRequest) (*CSSCMSDataModelModelsCertificateImportResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCertificateImportResponseModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Import" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertificateImportRequestModel + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Certificates/Recover +type ApiCreateCertificatesRecoverRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + xCertificateformat *string + collectionId *int32 + xKeyfactorApiVersion *string + certificatesCertificateRecoveryRequest *CertificatesCertificateRecoveryRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificatesRecoverRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificatesRecoverRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired format [PFX, PEM, ZIP, JKS] +func (r ApiCreateCertificatesRecoverRequest) XCertificateformat(xCertificateformat string) ApiCreateCertificatesRecoverRequest { + r.xCertificateformat = &xCertificateformat + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiCreateCertificatesRecoverRequest) CollectionId(collectionId int32) ApiCreateCertificatesRecoverRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificatesRecoverRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificatesRecoverRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Query to filter the certificate to be recovered +func (r ApiCreateCertificatesRecoverRequest) CertificatesCertificateRecoveryRequest(certificatesCertificateRecoveryRequest CertificatesCertificateRecoveryRequest) ApiCreateCertificatesRecoverRequest { + r.certificatesCertificateRecoveryRequest = &certificatesCertificateRecoveryRequest + return r +} + +// Executes the V1 POST /Certificates/Recover request context +func (r ApiCreateCertificatesRecoverRequest) Execute() (*CSSCMSDataModelModelsRecoveryResponse, *http.Response, error) { + return r.ApiService.CreateCertificatesRecoverExecute(r) +} + +/* +Creates a new V1 POST /Certificates/Recover request. + +# CreateCertificatesRecover Recovers the persisted certificate associated with the provided query + +*NOTE: At least one of the following criteria must be provided: +1. Certificate ID +2. Thumbprint +3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificatesRecoverRequest +*/ +func (a *CertificateApiService) NewCreateCertificatesRecoverRequest(ctx context.Context) ApiCreateCertificatesRecoverRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificatesRecoverRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Certificates/Recover +// +// @return CSSCMSDataModelModelsRecoveryResponse +func (a *CertificateApiService) CreateCertificatesRecoverExecute(r ApiCreateCertificatesRecoverRequest) (*CSSCMSDataModelModelsRecoveryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsRecoveryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Recover" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.xCertificateformat == nil { + return localVarReturnValue, nil, reportError("xCertificateformat is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + parameterAddToQuery(localVarHeaderParams, "x-certificateformat", r.xCertificateformat, "") + // body params + localVarPostBody = r.certificatesCertificateRecoveryRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Certificates/Revoke +type ApiCreateCertificatesRevokeRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificatesRevokeCertificateRequest *CertificatesRevokeCertificateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificatesRevokeRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificatesRevokeRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificatesRevokeRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificatesRevokeRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Contains the Keyfactor certificate identifiers and revocation data +func (r ApiCreateCertificatesRevokeRequest) CertificatesRevokeCertificateRequest(certificatesRevokeCertificateRequest CertificatesRevokeCertificateRequest) ApiCreateCertificatesRevokeRequest { + r.certificatesRevokeCertificateRequest = &certificatesRevokeCertificateRequest + return r +} + +// Executes the V1 POST /Certificates/Revoke request context +func (r ApiCreateCertificatesRevokeRequest) Execute() (*CertificatesRevocationResponse, *http.Response, error) { + return r.ApiService.CreateCertificatesRevokeExecute(r) +} + +/* +Creates a new V1 POST /Certificates/Revoke request. + +# CreateCertificatesRevoke Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation + +### Revocation Reason Codes for Microsoft CA ### +| Value | Description | +|-------------------|---------------------------| +| -1 | Remove from hold | +| 0 | Unspecified | +| 1 | Key compromised | +| 2 | CA compromised | +| 3 | Affiliation changed | +| 4 | Superceded | +| 5 | Cessation of operation | +| 6 | Certificate hold | +| 7 | Remove from CRL | +| 999 | Unknown | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificatesRevokeRequest +*/ +func (a *CertificateApiService) NewCreateCertificatesRevokeRequest(ctx context.Context) ApiCreateCertificatesRevokeRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificatesRevokeRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Certificates/Revoke +// +// @return CertificatesRevocationResponse +func (a *CertificateApiService) CreateCertificatesRevokeExecute(r ApiCreateCertificatesRevokeRequest) (*CertificatesRevocationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificatesRevocationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Revoke" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificatesRevokeCertificateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Certificates +type ApiDeleteCertificatesRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificatesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificatesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiDeleteCertificatesRequest) CollectionId(collectionId int32) ApiDeleteCertificatesRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificatesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificatesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The array of ids for certificate that are to be deleted +func (r ApiDeleteCertificatesRequest) RequestBody(requestBody []int32) ApiDeleteCertificatesRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /Certificates request context +func (r ApiDeleteCertificatesRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificatesExecute(r) +} + +/* +Creates a new V1 DELETE /Certificates request. + +# DeleteCertificates Deletes multiple persisted certificates by their unique ids + +This will ignore individual delete failures, and continue processing the array + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCertificatesRequest +*/ +func (a *CertificateApiService) NewDeleteCertificatesRequest(ctx context.Context) ApiDeleteCertificatesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificatesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateApiService) DeleteCertificatesExecute(r ApiDeleteCertificatesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Certificates/{id} +type ApiDeleteCertificatesByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificatesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificatesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiDeleteCertificatesByIdRequest) CollectionId(collectionId int32) ApiDeleteCertificatesByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificatesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificatesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Certificates/{id} request context +func (r ApiDeleteCertificatesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificatesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Certificates/{id} request. + +DeleteCertificatesById Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the certificate record + @return ApiDeleteCertificatesByIdRequest +*/ +func (a *CertificateApiService) NewDeleteCertificatesByIdRequest(ctx context.Context, id int32) ApiDeleteCertificatesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificatesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateApiService) DeleteCertificatesByIdExecute(r ApiDeleteCertificatesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Certificates/PrivateKey +type ApiDeleteCertificatesPrivateKeyRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificatesPrivateKeyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificatesPrivateKeyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiDeleteCertificatesPrivateKeyRequest) CollectionId(collectionId int32) ApiDeleteCertificatesPrivateKeyRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificatesPrivateKeyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificatesPrivateKeyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted +func (r ApiDeleteCertificatesPrivateKeyRequest) RequestBody(requestBody []int32) ApiDeleteCertificatesPrivateKeyRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /Certificates/PrivateKey request context +func (r ApiDeleteCertificatesPrivateKeyRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificatesPrivateKeyExecute(r) +} + +/* +Creates a new V1 DELETE /Certificates/PrivateKey request. + +DeleteCertificatesPrivateKey Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCertificatesPrivateKeyRequest +*/ +func (a *CertificateApiService) NewDeleteCertificatesPrivateKeyRequest(ctx context.Context) ApiDeleteCertificatesPrivateKeyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificatesPrivateKeyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateApiService) DeleteCertificatesPrivateKeyExecute(r ApiDeleteCertificatesPrivateKeyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/PrivateKey" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Certificates/PrivateKey/{id} +type ApiDeleteCertificatesPrivateKeyByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificatesPrivateKeyByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificatesPrivateKeyByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiDeleteCertificatesPrivateKeyByIdRequest) CollectionId(collectionId int32) ApiDeleteCertificatesPrivateKeyByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificatesPrivateKeyByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificatesPrivateKeyByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Certificates/PrivateKey/{id} request context +func (r ApiDeleteCertificatesPrivateKeyByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificatesPrivateKeyByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Certificates/PrivateKey/{id} request. + +DeleteCertificatesPrivateKeyById Deletes the persisted private keys of the certificate associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the certificate for which the associated private keys should be deleted + @return ApiDeleteCertificatesPrivateKeyByIdRequest +*/ +func (a *CertificateApiService) NewDeleteCertificatesPrivateKeyByIdRequest(ctx context.Context, id int32) ApiDeleteCertificatesPrivateKeyByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificatesPrivateKeyByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateApiService) DeleteCertificatesPrivateKeyByIdExecute(r ApiDeleteCertificatesPrivateKeyByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/PrivateKey/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Certificates/Query +type ApiDeleteCertificatesQueryRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + body *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificatesQueryRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificatesQueryRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiDeleteCertificatesQueryRequest) CollectionId(collectionId int32) ApiDeleteCertificatesQueryRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificatesQueryRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificatesQueryRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Query by which certificates should be filtered for deletion +func (r ApiDeleteCertificatesQueryRequest) Body(body string) ApiDeleteCertificatesQueryRequest { + r.body = &body + return r +} + +// Executes the V1 DELETE /Certificates/Query request context +func (r ApiDeleteCertificatesQueryRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificatesQueryExecute(r) +} + +/* +Creates a new V1 DELETE /Certificates/Query request. + +# DeleteCertificatesQuery Deletes multiple persisted certificate entities selected by a given query + +This will ignore individual delete failures, and continue processing the array. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCertificatesQueryRequest +*/ +func (a *CertificateApiService) NewDeleteCertificatesQueryRequest(ctx context.Context) ApiDeleteCertificatesQueryRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificatesQueryRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateApiService) DeleteCertificatesQueryExecute(r ApiDeleteCertificatesQueryRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Query" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates +type ApiGetCertificatesRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + includeRevoked *bool + includeExpired *bool + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + collectionId *int32 + includeLocations *bool + includeMetadata *bool + includeHasPrivateKey *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Select 'true' to include revoked certificates in the results +func (r ApiGetCertificatesRequest) IncludeRevoked(includeRevoked bool) ApiGetCertificatesRequest { + r.includeRevoked = &includeRevoked + return r +} + +// Select 'true' to include expired certificates in the results +func (r ApiGetCertificatesRequest) IncludeExpired(includeExpired bool) ApiGetCertificatesRequest { + r.includeExpired = &includeExpired + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetCertificatesRequest) QueryString(queryString string) ApiGetCertificatesRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetCertificatesRequest) PageReturned(pageReturned int32) ApiGetCertificatesRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetCertificatesRequest) ReturnLimit(returnLimit int32) ApiGetCertificatesRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetCertificatesRequest) SortField(sortField string) ApiGetCertificatesRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetCertificatesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificatesRequest { + r.sortAscending = &sortAscending + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiGetCertificatesRequest) CollectionId(collectionId int32) ApiGetCertificatesRequest { + r.collectionId = &collectionId + return r +} + +// Include locations data for the certificates to be returned +func (r ApiGetCertificatesRequest) IncludeLocations(includeLocations bool) ApiGetCertificatesRequest { + r.includeLocations = &includeLocations + return r +} + +// Include metadata for the certificates to be returned +func (r ApiGetCertificatesRequest) IncludeMetadata(includeMetadata bool) ApiGetCertificatesRequest { + r.includeMetadata = &includeMetadata + return r +} + +// Include whether the certificates to be returned have private keys stored in the Keyfactor database +func (r ApiGetCertificatesRequest) IncludeHasPrivateKey(includeHasPrivateKey bool) ApiGetCertificatesRequest { + r.includeHasPrivateKey = &includeHasPrivateKey + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates request context +func (r ApiGetCertificatesRequest) Execute() ([]CertificatesCertificateRetrievalResponse, *http.Response, error) { + return r.ApiService.GetCertificatesExecute(r) +} + +/* +Creates a new V1 GET /Certificates request. + +GetCertificates Returns all certificates according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificatesRequest +*/ +func (a *CertificateApiService) NewGetCertificatesRequest(ctx context.Context) ApiGetCertificatesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Certificates +// +// @return []CertificatesCertificateRetrievalResponse +func (a *CertificateApiService) GetCertificatesExecute(r ApiGetCertificatesRequest) ([]CertificatesCertificateRetrievalResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificatesCertificateRetrievalResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.includeRevoked != nil { + parameterAddToQuery(localVarQueryParams, "IncludeRevoked", r.includeRevoked, "") + } + if r.includeExpired != nil { + parameterAddToQuery(localVarQueryParams, "IncludeExpired", r.includeExpired, "") + } + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + if r.includeLocations != nil { + parameterAddToQuery(localVarQueryParams, "includeLocations", r.includeLocations, "") + } + if r.includeMetadata != nil { + parameterAddToQuery(localVarQueryParams, "includeMetadata", r.includeMetadata, "") + } + if r.includeHasPrivateKey != nil { + parameterAddToQuery(localVarQueryParams, "includeHasPrivateKey", r.includeHasPrivateKey, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/{id} +type ApiGetCertificatesByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + includeLocations *bool + includeMetadata *bool + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Include locations data for the certificate to be returned +func (r ApiGetCertificatesByIdRequest) IncludeLocations(includeLocations bool) ApiGetCertificatesByIdRequest { + r.includeLocations = &includeLocations + return r +} + +// Include metadata for the certificate to be returned +func (r ApiGetCertificatesByIdRequest) IncludeMetadata(includeMetadata bool) ApiGetCertificatesByIdRequest { + r.includeMetadata = &includeMetadata + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiGetCertificatesByIdRequest) CollectionId(collectionId int32) ApiGetCertificatesByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/{id} request context +func (r ApiGetCertificatesByIdRequest) Execute() (*CertificatesCertificateRetrievalResponse, *http.Response, error) { + return r.ApiService.GetCertificatesByIdExecute(r) +} + +/* +Creates a new V1 GET /Certificates/{id} request. + +GetCertificatesById Returns a single certificate that matches the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor certificate identifier + @return ApiGetCertificatesByIdRequest +*/ +func (a *CertificateApiService) NewGetCertificatesByIdRequest(ctx context.Context, id int32) ApiGetCertificatesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/{id} +// +// @return CertificatesCertificateRetrievalResponse +func (a *CertificateApiService) GetCertificatesByIdExecute(r ApiGetCertificatesByIdRequest) (*CertificatesCertificateRetrievalResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificatesCertificateRetrievalResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.includeLocations != nil { + parameterAddToQuery(localVarQueryParams, "includeLocations", r.includeLocations, "") + } + if r.includeMetadata != nil { + parameterAddToQuery(localVarQueryParams, "includeMetadata", r.includeMetadata, "") + } + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/{id}/History +type ApiGetCertificatesByIdHistoryRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesByIdHistoryRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesByIdHistoryRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificatesByIdHistoryRequest) PageReturned(pageReturned int32) ApiGetCertificatesByIdHistoryRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificatesByIdHistoryRequest) ReturnLimit(returnLimit int32) ApiGetCertificatesByIdHistoryRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificatesByIdHistoryRequest) SortField(sortField string) ApiGetCertificatesByIdHistoryRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificatesByIdHistoryRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificatesByIdHistoryRequest { + r.sortAscending = &sortAscending + return r +} + +// The collection the certificate could be in. Defaults to no collection. +func (r ApiGetCertificatesByIdHistoryRequest) CollectionId(collectionId int32) ApiGetCertificatesByIdHistoryRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesByIdHistoryRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesByIdHistoryRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/{id}/History request context +func (r ApiGetCertificatesByIdHistoryRequest) Execute() ([]CSSCMSDataModelModelsPKICertificateOperation, *http.Response, error) { + return r.ApiService.GetCertificatesByIdHistoryExecute(r) +} + +/* +Creates a new V1 GET /Certificates/{id}/History request. + +GetCertificatesByIdHistory Gets the history of operations on a certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the certificate + @return ApiGetCertificatesByIdHistoryRequest +*/ +func (a *CertificateApiService) NewGetCertificatesByIdHistoryRequest(ctx context.Context, id int32) ApiGetCertificatesByIdHistoryRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesByIdHistoryRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/{id}/History +// +// @return []CSSCMSDataModelModelsPKICertificateOperation +func (a *CertificateApiService) GetCertificatesByIdHistoryExecute(r ApiGetCertificatesByIdHistoryRequest) ([]CSSCMSDataModelModelsPKICertificateOperation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsPKICertificateOperation + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}/History" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/{id}/Security +type ApiGetCertificatesByIdSecurityRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesByIdSecurityRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesByIdSecurityRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The Id of the collection the certificate belongs in. Defaults to no collection +func (r ApiGetCertificatesByIdSecurityRequest) CollectionId(collectionId int32) ApiGetCertificatesByIdSecurityRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesByIdSecurityRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesByIdSecurityRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/{id}/Security request context +func (r ApiGetCertificatesByIdSecurityRequest) Execute() (*CSSCMSDataModelModelsSecurityCertificatePermissions, *http.Response, error) { + return r.ApiService.GetCertificatesByIdSecurityExecute(r) +} + +/* +Creates a new V1 GET /Certificates/{id}/Security request. + +GetCertificatesByIdSecurity Gets the list of Security Identities and which permissions they have on the given certificate. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the certificate permissions are being checked on + @return ApiGetCertificatesByIdSecurityRequest +*/ +func (a *CertificateApiService) NewGetCertificatesByIdSecurityRequest(ctx context.Context, id int32) ApiGetCertificatesByIdSecurityRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesByIdSecurityRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/{id}/Security +// +// @return CSSCMSDataModelModelsSecurityCertificatePermissions +func (a *CertificateApiService) GetCertificatesByIdSecurityExecute(r ApiGetCertificatesByIdSecurityRequest) (*CSSCMSDataModelModelsSecurityCertificatePermissions, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSecurityCertificatePermissions + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}/Security" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/{id}/Validate +type ApiGetCertificatesByIdValidateRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesByIdValidateRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesByIdValidateRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// An optional parameter for the collection Id the certificate is in. Defaults to no collection +func (r ApiGetCertificatesByIdValidateRequest) CollectionId(collectionId int32) ApiGetCertificatesByIdValidateRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesByIdValidateRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesByIdValidateRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/{id}/Validate request context +func (r ApiGetCertificatesByIdValidateRequest) Execute() (*CSSCMSDataModelModelsCertificateValidationResponse, *http.Response, error) { + return r.ApiService.GetCertificatesByIdValidateExecute(r) +} + +/* +Creates a new V1 GET /Certificates/{id}/Validate request. + +GetCertificatesByIdValidate Validates the certificate chain can be built. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the certificate being checked + @return ApiGetCertificatesByIdValidateRequest +*/ +func (a *CertificateApiService) NewGetCertificatesByIdValidateRequest(ctx context.Context, id int32) ApiGetCertificatesByIdValidateRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesByIdValidateRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/{id}/Validate +// +// @return CSSCMSDataModelModelsCertificateValidationResponse +func (a *CertificateApiService) GetCertificatesByIdValidateExecute(r ApiGetCertificatesByIdValidateRequest) (*CSSCMSDataModelModelsCertificateValidationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCertificateValidationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}/Validate" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/CSV +type ApiGetCertificatesCSVRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + sortName *string + sortOrder *KeyfactorCommonQueryableExtensionsSortOrder + query *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesCSVRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesCSVRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetCertificatesCSVRequest) SortName(sortName string) ApiGetCertificatesCSVRequest { + r.sortName = &sortName + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetCertificatesCSVRequest) SortOrder(sortOrder KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificatesCSVRequest { + r.sortOrder = &sortOrder + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetCertificatesCSVRequest) Query(query string) ApiGetCertificatesCSVRequest { + r.query = &query + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificat +func (r ApiGetCertificatesCSVRequest) CollectionId(collectionId int32) ApiGetCertificatesCSVRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesCSVRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesCSVRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/CSV request context +func (r ApiGetCertificatesCSVRequest) Execute() (string, *http.Response, error) { + return r.ApiService.GetCertificatesCSVExecute(r) +} + +/* +Creates a new V1 GET /Certificates/CSV request. + +GetCertificatesCSV Returns a comma-delimited CSV file containing all certificates in the database + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificatesCSVRequest +*/ +func (a *CertificateApiService) NewGetCertificatesCSVRequest(ctx context.Context) ApiGetCertificatesCSVRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesCSVRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Certificates/CSV +// +// @return string +func (a *CertificateApiService) GetCertificatesCSVExecute(r ApiGetCertificatesCSVRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/CSV" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.sortName != nil { + parameterAddToQuery(localVarQueryParams, "SortName", r.sortName, "") + } + if r.sortOrder != nil { + parameterAddToQuery(localVarQueryParams, "SortOrder", r.sortOrder, "") + } + if r.query != nil { + parameterAddToQuery(localVarQueryParams, "Query", r.query, "") + } + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "CollectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/IdentityAudit/{id} +type ApiGetCertificatesIdentityAuditByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesIdentityAuditByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesIdentityAuditByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// An optional parameter for the collection Id the certificate is in. Defaults to no collection +func (r ApiGetCertificatesIdentityAuditByIdRequest) CollectionId(collectionId int32) ApiGetCertificatesIdentityAuditByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesIdentityAuditByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesIdentityAuditByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/IdentityAudit/{id} request context +func (r ApiGetCertificatesIdentityAuditByIdRequest) Execute() ([]CertificatesCertificateIdentityAuditResponse, *http.Response, error) { + return r.ApiService.GetCertificatesIdentityAuditByIdExecute(r) +} + +/* +Creates a new V1 GET /Certificates/IdentityAudit/{id} request. + +GetCertificatesIdentityAuditById Audit identity permissions for certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the certificate being checked + @return ApiGetCertificatesIdentityAuditByIdRequest +*/ +func (a *CertificateApiService) NewGetCertificatesIdentityAuditByIdRequest(ctx context.Context, id int32) ApiGetCertificatesIdentityAuditByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesIdentityAuditByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/IdentityAudit/{id} +// +// @return []CertificatesCertificateIdentityAuditResponse +func (a *CertificateApiService) GetCertificatesIdentityAuditByIdExecute(r ApiGetCertificatesIdentityAuditByIdRequest) ([]CertificatesCertificateIdentityAuditResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificatesCertificateIdentityAuditResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/IdentityAudit/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/Locations/{id} +type ApiGetCertificatesLocationsByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesLocationsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesLocationsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiGetCertificatesLocationsByIdRequest) CollectionId(collectionId int32) ApiGetCertificatesLocationsByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesLocationsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesLocationsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/Locations/{id} request context +func (r ApiGetCertificatesLocationsByIdRequest) Execute() (*CertificatesCertificateLocationsResponse, *http.Response, error) { + return r.ApiService.GetCertificatesLocationsByIdExecute(r) +} + +/* +Creates a new V1 GET /Certificates/Locations/{id} request. + +GetCertificatesLocationsById Returns a list of locations the certificate is in + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor certificate identifier + @return ApiGetCertificatesLocationsByIdRequest +*/ +func (a *CertificateApiService) NewGetCertificatesLocationsByIdRequest(ctx context.Context, id int32) ApiGetCertificatesLocationsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesLocationsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Certificates/Locations/{id} +// +// @return CertificatesCertificateLocationsResponse +func (a *CertificateApiService) GetCertificatesLocationsByIdExecute(r ApiGetCertificatesLocationsByIdRequest) (*CertificatesCertificateLocationsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificatesCertificateLocationsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Locations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Certificates/Metadata/Compare +type ApiGetCertificatesMetadataCompareRequest struct { + ctx context.Context + ApiService *CertificateApiService + certificateId *int32 + metadataFieldName *string + xKeyfactorRequestedWith *string + value *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Certificate identifier +func (r ApiGetCertificatesMetadataCompareRequest) CertificateId(certificateId int32) ApiGetCertificatesMetadataCompareRequest { + r.certificateId = &certificateId + return r +} + +// Metadata field being compared +func (r ApiGetCertificatesMetadataCompareRequest) MetadataFieldName(metadataFieldName string) ApiGetCertificatesMetadataCompareRequest { + r.metadataFieldName = &metadataFieldName + return r +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesMetadataCompareRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesMetadataCompareRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Value to compare against +func (r ApiGetCertificatesMetadataCompareRequest) Value(value string) ApiGetCertificatesMetadataCompareRequest { + r.value = &value + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiGetCertificatesMetadataCompareRequest) CollectionId(collectionId int32) ApiGetCertificatesMetadataCompareRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesMetadataCompareRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesMetadataCompareRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Certificates/Metadata/Compare request context +func (r ApiGetCertificatesMetadataCompareRequest) Execute() (bool, *http.Response, error) { + return r.ApiService.GetCertificatesMetadataCompareExecute(r) +} + +/* +Creates a new V1 GET /Certificates/Metadata/Compare request. + +GetCertificatesMetadataCompare Compares the metadata value provided with the metadata value associated with the specified certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificatesMetadataCompareRequest +*/ +func (a *CertificateApiService) NewGetCertificatesMetadataCompareRequest(ctx context.Context) ApiGetCertificatesMetadataCompareRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificatesMetadataCompareRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Certificates/Metadata/Compare +// +// @return bool +func (a *CertificateApiService) GetCertificatesMetadataCompareExecute(r ApiGetCertificatesMetadataCompareRequest) (bool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue bool + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Metadata/Compare" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.certificateId == nil { + return localVarReturnValue, nil, reportError("certificateId is required and must be specified") + } + if r.metadataFieldName == nil { + return localVarReturnValue, nil, reportError("metadataFieldName is required and must be specified") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + parameterAddToQuery(localVarQueryParams, "certificateId", r.certificateId, "") + parameterAddToQuery(localVarQueryParams, "metadataFieldName", r.metadataFieldName, "") + if r.value != nil { + parameterAddToQuery(localVarQueryParams, "value", r.value, "") + } + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Certificates/{id}/Owner +type ApiUpdateCertificatesByIdOwnerRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + certificatesOwnerRequest *CertificatesOwnerRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificatesByIdOwnerRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificatesByIdOwnerRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// An optional parameter for the collection Id the certificate is in. Defaults to no collection +func (r ApiUpdateCertificatesByIdOwnerRequest) CollectionId(collectionId int32) ApiUpdateCertificatesByIdOwnerRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificatesByIdOwnerRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificatesByIdOwnerRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security role identifier for the role to assign ownership. If removing the owner, leave both empty. +func (r ApiUpdateCertificatesByIdOwnerRequest) CertificatesOwnerRequest(certificatesOwnerRequest CertificatesOwnerRequest) ApiUpdateCertificatesByIdOwnerRequest { + r.certificatesOwnerRequest = &certificatesOwnerRequest + return r +} + +// Executes the V1 PUT /Certificates/{id}/Owner request context +func (r ApiUpdateCertificatesByIdOwnerRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificatesByIdOwnerExecute(r) +} + +/* +Creates a new V1 PUT /Certificates/{id}/Owner request. + +UpdateCertificatesByIdOwner Changes the certificate's owner. Users must be in the current owner's role and the new owner's role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the certificate + @return ApiUpdateCertificatesByIdOwnerRequest +*/ +func (a *CertificateApiService) NewUpdateCertificatesByIdOwnerRequest(ctx context.Context, id int32) ApiUpdateCertificatesByIdOwnerRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificatesByIdOwnerRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateApiService) UpdateCertificatesByIdOwnerExecute(r ApiUpdateCertificatesByIdOwnerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/{id}/Owner" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificatesOwnerRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /Certificates/Metadata +type ApiUpdateCertificatesMetadataRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + cSSCMSDataModelModelsMetadataUpdateRequest *CSSCMSDataModelModelsMetadataUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificatesMetadataRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificatesMetadataRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiUpdateCertificatesMetadataRequest) CollectionId(collectionId int32) ApiUpdateCertificatesMetadataRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificatesMetadataRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificatesMetadataRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Contains the Keyfactor certificate identifier and the metadata to be updated +func (r ApiUpdateCertificatesMetadataRequest) CSSCMSDataModelModelsMetadataUpdateRequest(cSSCMSDataModelModelsMetadataUpdateRequest CSSCMSDataModelModelsMetadataUpdateRequest) ApiUpdateCertificatesMetadataRequest { + r.cSSCMSDataModelModelsMetadataUpdateRequest = &cSSCMSDataModelModelsMetadataUpdateRequest + return r +} + +// Executes the V1 PUT /Certificates/Metadata request context +func (r ApiUpdateCertificatesMetadataRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificatesMetadataExecute(r) +} + +/* +Creates a new V1 PUT /Certificates/Metadata request. + +UpdateCertificatesMetadata Updates the metadata for the certificate associated with the identifier provided + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificatesMetadataRequest +*/ +func (a *CertificateApiService) NewUpdateCertificatesMetadataRequest(ctx context.Context) ApiUpdateCertificatesMetadataRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificatesMetadataRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateApiService) UpdateCertificatesMetadataExecute(r ApiUpdateCertificatesMetadataRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Metadata" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsMetadataUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /Certificates/Metadata/All +type ApiUpdateCertificatesMetadataAllRequest struct { + ctx context.Context + ApiService *CertificateApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + cSSCMSDataModelModelsMetadataAllUpdateRequest *CSSCMSDataModelModelsMetadataAllUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificatesMetadataAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificatesMetadataAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Optional certificate collection identifier used to ensure user access to the certificate +func (r ApiUpdateCertificatesMetadataAllRequest) CollectionId(collectionId int32) ApiUpdateCertificatesMetadataAllRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificatesMetadataAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificatesMetadataAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Contains the Keyfactor certificate identifier and the metadata to be updated +func (r ApiUpdateCertificatesMetadataAllRequest) CSSCMSDataModelModelsMetadataAllUpdateRequest(cSSCMSDataModelModelsMetadataAllUpdateRequest CSSCMSDataModelModelsMetadataAllUpdateRequest) ApiUpdateCertificatesMetadataAllRequest { + r.cSSCMSDataModelModelsMetadataAllUpdateRequest = &cSSCMSDataModelModelsMetadataAllUpdateRequest + return r +} + +// Executes the V1 PUT /Certificates/Metadata/All request context +func (r ApiUpdateCertificatesMetadataAllRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificatesMetadataAllExecute(r) +} + +/* +Creates a new V1 PUT /Certificates/Metadata/All request. + +UpdateCertificatesMetadataAll Updates the metadata for certificates associated with the certificate identifiers or query provided + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificatesMetadataAllRequest +*/ +func (a *CertificateApiService) NewUpdateCertificatesMetadataAllRequest(ctx context.Context) ApiUpdateCertificatesMetadataAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificatesMetadataAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateApiService) UpdateCertificatesMetadataAllExecute(r ApiUpdateCertificatesMetadataAllRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/Metadata/All" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsMetadataAllUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate_authority.go b/v24/api/keyfactor/v1/api_certificate_authority.go new file mode 100644 index 0000000..cc46e7b --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate_authority.go @@ -0,0 +1,3546 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateAuthorityApiService CertificateAuthorityApi service +type CertificateAuthorityApiService service + +// Request for V1 POST /CertificateAuthority +type ApiCreateCertificateAuthorityRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + forceSave *bool + xKeyfactorApiVersion *string + certificateAuthoritiesCertificateAuthorityRequest *CertificateAuthoritiesCertificateAuthorityRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiCreateCertificateAuthorityRequest) ForceSave(forceSave bool) ApiCreateCertificateAuthorityRequest { + r.forceSave = &forceSave + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiCreateCertificateAuthorityRequest) CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest CertificateAuthoritiesCertificateAuthorityRequest) ApiCreateCertificateAuthorityRequest { + r.certificateAuthoritiesCertificateAuthorityRequest = &certificateAuthoritiesCertificateAuthorityRequest + return r +} + +// Executes the V1 POST /CertificateAuthority request context +func (r ApiCreateCertificateAuthorityRequest) Execute() (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority request. + +CreateCertificateAuthority Creates a new CertificateAuthority object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityRequest(ctx context.Context) ApiCreateCertificateAuthorityRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority +// +// @return CertificateAuthoritiesCertificateAuthorityResponse +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityExecute(r ApiCreateCertificateAuthorityRequest) (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCertificateAuthorityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.forceSave != nil { + parameterAddToQuery(localVarQueryParams, "forceSave", r.forceSave, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCertificateAuthorityRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/AlertRecipients/CAHealthRecipients +type ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAAlertRecipientCreateRequest *CertificateAuthoritiesCAAlertRecipientCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request object holding the email(s) of the health monitoring recipient(s) to be created +func (r ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest CertificateAuthoritiesCAAlertRecipientCreateRequest) ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + r.certificateAuthoritiesCAAlertRecipientCreateRequest = &certificateAuthoritiesCAAlertRecipientCreateRequest + return r +} + +// Executes the V1 POST /CertificateAuthority/AlertRecipients/CAHealthRecipients request context +func (r ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) Execute() ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityAlertRecipientsCAHealthRecipientsExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/AlertRecipients/CAHealthRecipients request. + +CreateCertificateAuthorityAlertRecipientsCAHealthRecipients Creates CA health monitoring recipients for the provided list of email addresses\" + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx context.Context) ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority/AlertRecipients/CAHealthRecipients +// +// @return []CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityAlertRecipientsCAHealthRecipientsExecute(r ApiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAHealthRecipients" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAAlertRecipientCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/AlertRecipients/CAThresholdRecipients +type ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAAlertRecipientCreateRequest *CertificateAuthoritiesCAAlertRecipientCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request object holding the email(s) of the alert recipient(s) to be created +func (r ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest CertificateAuthoritiesCAAlertRecipientCreateRequest) ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + r.certificateAuthoritiesCAAlertRecipientCreateRequest = &certificateAuthoritiesCAAlertRecipientCreateRequest + return r +} + +// Executes the V1 POST /CertificateAuthority/AlertRecipients/CAThresholdRecipients request context +func (r ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) Execute() ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/AlertRecipients/CAThresholdRecipients request. + +CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients Creates CA threshold alert recipients for the provided list of emails + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx context.Context) ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority/AlertRecipients/CAThresholdRecipients +// +// @return []CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsExecute(r ApiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAThresholdRecipients" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAAlertRecipientCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/Import +type ApiCreateCertificateAuthorityImportRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + dns *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityImportRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityImportRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The DNS of the configuration tenant from which to import certificate authorities +func (r ApiCreateCertificateAuthorityImportRequest) Dns(dns string) ApiCreateCertificateAuthorityImportRequest { + r.dns = &dns + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityImportRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityImportRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /CertificateAuthority/Import request context +func (r ApiCreateCertificateAuthorityImportRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateCertificateAuthorityImportExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/Import request. + +CreateCertificateAuthorityImport Imports any certificate authorities from the provided configuration tenant DNS + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityImportRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityImportRequest(ctx context.Context) ApiCreateCertificateAuthorityImportRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityImportRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityImportExecute(r ApiCreateCertificateAuthorityImportRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/Import" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.dns != nil { + parameterAddToQuery(localVarQueryParams, "dns", r.dns, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/PublishCRL +type ApiCreateCertificateAuthorityPublishCRLRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCRLRequestModel *CSSCMSDataModelModelsCRLRequestModel +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityPublishCRLRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityPublishCRLRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityPublishCRLRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityPublishCRLRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Host and logical name of the CA for which the CRL should be published +func (r ApiCreateCertificateAuthorityPublishCRLRequest) CSSCMSDataModelModelsCRLRequestModel(cSSCMSDataModelModelsCRLRequestModel CSSCMSDataModelModelsCRLRequestModel) ApiCreateCertificateAuthorityPublishCRLRequest { + r.cSSCMSDataModelModelsCRLRequestModel = &cSSCMSDataModelModelsCRLRequestModel + return r +} + +// Executes the V1 POST /CertificateAuthority/PublishCRL request context +func (r ApiCreateCertificateAuthorityPublishCRLRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateCertificateAuthorityPublishCRLExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/PublishCRL request. + +CreateCertificateAuthorityPublishCRL Publishes a CRL according to the provided request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityPublishCRLRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityPublishCRLRequest(ctx context.Context) ApiCreateCertificateAuthorityPublishCRLRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityPublishCRLRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityPublishCRLExecute(r ApiCreateCertificateAuthorityPublishCRLRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/PublishCRL" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCRLRequestModel + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/TaskQueue/Test +type ApiCreateCertificateAuthorityTaskQueueTestRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + rabbitMQJobQueueRequest *RabbitMQJobQueueRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityTaskQueueTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityTaskQueueTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityTaskQueueTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityTaskQueueTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The TaskQueue Credentials being tested. +func (r ApiCreateCertificateAuthorityTaskQueueTestRequest) RabbitMQJobQueueRequest(rabbitMQJobQueueRequest RabbitMQJobQueueRequest) ApiCreateCertificateAuthorityTaskQueueTestRequest { + r.rabbitMQJobQueueRequest = &rabbitMQJobQueueRequest + return r +} + +// Executes the V1 POST /CertificateAuthority/TaskQueue/Test request context +func (r ApiCreateCertificateAuthorityTaskQueueTestRequest) Execute() (*CertificateAuthoritiesCAJobQueueTestResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityTaskQueueTestExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/TaskQueue/Test request. + +CreateCertificateAuthorityTaskQueueTest Tests the connection info for the TaskQueue Credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityTaskQueueTestRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityTaskQueueTestRequest(ctx context.Context) ApiCreateCertificateAuthorityTaskQueueTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityTaskQueueTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority/TaskQueue/Test +// +// @return CertificateAuthoritiesCAJobQueueTestResponse +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityTaskQueueTestExecute(r ApiCreateCertificateAuthorityTaskQueueTestRequest) (*CertificateAuthoritiesCAJobQueueTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAJobQueueTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/TaskQueue/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.rabbitMQJobQueueRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateAuthority/Test +type ApiCreateCertificateAuthorityTestRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateAuthorityTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateAuthorityTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateAuthorityTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateAuthorityTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The CA being tested. +func (r ApiCreateCertificateAuthorityTestRequest) CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) ApiCreateCertificateAuthorityTestRequest { + r.cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest = &cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest + return r +} + +// Executes the V1 POST /CertificateAuthority/Test request context +func (r ApiCreateCertificateAuthorityTestRequest) Execute() (*CertificateAuthoritiesCertificateAuthorityTestResponse, *http.Response, error) { + return r.ApiService.CreateCertificateAuthorityTestExecute(r) +} + +/* +Creates a new V1 POST /CertificateAuthority/Test request. + +CreateCertificateAuthorityTest Validates the connection info for the CA provided by the model. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateAuthorityTestRequest +*/ +func (a *CertificateAuthorityApiService) NewCreateCertificateAuthorityTestRequest(ctx context.Context) ApiCreateCertificateAuthorityTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateAuthorityTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateAuthority/Test +// +// @return CertificateAuthoritiesCertificateAuthorityTestResponse +func (a *CertificateAuthorityApiService) CreateCertificateAuthorityTestExecute(r ApiCreateCertificateAuthorityTestRequest) (*CertificateAuthoritiesCertificateAuthorityTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCertificateAuthorityTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} +type ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request context +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request. + +DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById Deletes a CA health recipient for the provided ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the health monitoring recipient to delete + @return ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateAuthorityApiService) DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r ApiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAHealthRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} +type ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request context +func (r ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request. + +DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById Deletes a CA threshold recipient for the provided ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the threshold alert recipient to delete + @return ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateAuthorityApiService) DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r ApiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateAuthority/{id} +type ApiDeleteCertificateAuthorityByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateAuthorityByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateAuthorityByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateAuthorityByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateAuthorityByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateAuthority/{id} request context +func (r ApiDeleteCertificateAuthorityByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateAuthorityByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateAuthority/{id} request. + +DeleteCertificateAuthorityById Deletes a CertificateAuthority from the system, specified by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiDeleteCertificateAuthorityByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewDeleteCertificateAuthorityByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateAuthorityByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateAuthorityByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateAuthorityApiService) DeleteCertificateAuthorityByIdExecute(r ApiDeleteCertificateAuthorityByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority +type ApiGetCertificateAuthorityRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateAuthorityRequest) QueryString(queryString string) ApiGetCertificateAuthorityRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCertificateAuthorityRequest) PageReturned(pageReturned int32) ApiGetCertificateAuthorityRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateAuthorityRequest) ReturnLimit(returnLimit int32) ApiGetCertificateAuthorityRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateAuthorityRequest) SortField(sortField string) ApiGetCertificateAuthorityRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateAuthorityRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateAuthorityRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority request context +func (r ApiGetCertificateAuthorityRequest) Execute() ([]CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority request. + +GetCertificateAuthority Returns all certificate authorities according to the provided filter + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityRequest(ctx context.Context) ApiGetCertificateAuthorityRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority +// +// @return []CertificateAuthoritiesCertificateAuthorityResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityExecute(r ApiGetCertificateAuthorityRequest) ([]CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCertificateAuthorityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients +type ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients request context +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) Execute() ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients request. + +GetCertificateAuthorityAlertRecipientsCAHealthRecipients Returns a list of all CA health recipients + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx context.Context) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients +// +// @return []CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityAlertRecipientsCAHealthRecipientsExecute(r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest) ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAHealthRecipients" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} +type ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request context +func (r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) Execute() (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request. + +GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById Returns a CA health recipient for the specified health recipient ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the health monitoring recipient to retrieve + @return ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx context.Context, id int32) ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} +// +// @return CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r ApiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAHealthRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients +type ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients request context +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) Execute() ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients request. + +GetCertificateAuthorityAlertRecipientsCAThresholdRecipients Returns a list of all CA threshold recipients + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx context.Context) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients +// +// @return []CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsExecute(r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest) ([]CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAThresholdRecipients" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} +type ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request context +func (r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) Execute() (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request. + +GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById Returns a CA threshold recipient for the specified threshold alert recipient ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the threshold alert recipient to retrieve + @return ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx context.Context, id int32) ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} +// +// @return CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r ApiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/AvailableForests +type ApiGetCertificateAuthorityAvailableForestsRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityAvailableForestsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityAvailableForestsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityAvailableForestsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityAvailableForestsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/AvailableForests request context +func (r ApiGetCertificateAuthorityAvailableForestsRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityAvailableForestsExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/AvailableForests request. + +GetCertificateAuthorityAvailableForests Returns a list of available forests that are in active directory + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityAvailableForestsRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityAvailableForestsRequest(ctx context.Context) ApiGetCertificateAuthorityAvailableForestsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityAvailableForestsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/AvailableForests +// +// @return []string +func (a *CertificateAuthorityApiService) GetCertificateAuthorityAvailableForestsExecute(r ApiGetCertificateAuthorityAvailableForestsRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AvailableForests" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/{id} +type ApiGetCertificateAuthorityByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/{id} request context +func (r ApiGetCertificateAuthorityByIdRequest) Execute() (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/{id} request. + +GetCertificateAuthorityById Returns details for a single CA, specified by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetCertificateAuthorityByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityByIdRequest(ctx context.Context, id int32) ApiGetCertificateAuthorityByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateAuthority/{id} +// +// @return CertificateAuthoritiesCertificateAuthorityResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityByIdExecute(r ApiGetCertificateAuthorityByIdRequest) (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCertificateAuthorityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/HealthMonitoring/Schedule +type ApiGetCertificateAuthorityHealthMonitoringScheduleRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityHealthMonitoringScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityHealthMonitoringScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityHealthMonitoringScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityHealthMonitoringScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/HealthMonitoring/Schedule request context +func (r ApiGetCertificateAuthorityHealthMonitoringScheduleRequest) Execute() (*SchedulingScheduledTaskResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityHealthMonitoringScheduleExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/HealthMonitoring/Schedule request. + +GetCertificateAuthorityHealthMonitoringSchedule Retrieves the execution schedule for the CA health monitoring job + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityHealthMonitoringScheduleRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityHealthMonitoringScheduleRequest(ctx context.Context) ApiGetCertificateAuthorityHealthMonitoringScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityHealthMonitoringScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/HealthMonitoring/Schedule +// +// @return SchedulingScheduledTaskResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityHealthMonitoringScheduleExecute(r ApiGetCertificateAuthorityHealthMonitoringScheduleRequest) (*SchedulingScheduledTaskResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SchedulingScheduledTaskResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/HealthMonitoring/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/SourceCount +type ApiGetCertificateAuthoritySourceCountRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthoritySourceCountRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthoritySourceCountRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthoritySourceCountRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthoritySourceCountRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/SourceCount request context +func (r ApiGetCertificateAuthoritySourceCountRequest) Execute() (int32, *http.Response, error) { + return r.ApiService.GetCertificateAuthoritySourceCountExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/SourceCount request. + +GetCertificateAuthoritySourceCount Returns a count of certificate authorities with sync enabled + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthoritySourceCountRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthoritySourceCountRequest(ctx context.Context) ApiGetCertificateAuthoritySourceCountRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthoritySourceCountRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/SourceCount +// +// @return int32 +func (a *CertificateAuthorityApiService) GetCertificateAuthoritySourceCountExecute(r ApiGetCertificateAuthoritySourceCountRequest) (int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue int32 + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/SourceCount" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateAuthority/TaskQueue +type ApiGetCertificateAuthorityTaskQueueRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateAuthorityTaskQueueRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateAuthorityTaskQueueRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateAuthorityTaskQueueRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateAuthorityTaskQueueRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateAuthority/TaskQueue request context +func (r ApiGetCertificateAuthorityTaskQueueRequest) Execute() (*RabbitMQJobQueueResponse, *http.Response, error) { + return r.ApiService.GetCertificateAuthorityTaskQueueExecute(r) +} + +/* +Creates a new V1 GET /CertificateAuthority/TaskQueue request. + +GetCertificateAuthorityTaskQueue Retrieves credentials and connection information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateAuthorityTaskQueueRequest +*/ +func (a *CertificateAuthorityApiService) NewGetCertificateAuthorityTaskQueueRequest(ctx context.Context) ApiGetCertificateAuthorityTaskQueueRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateAuthorityTaskQueueRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateAuthority/TaskQueue +// +// @return RabbitMQJobQueueResponse +func (a *CertificateAuthorityApiService) GetCertificateAuthorityTaskQueueExecute(r ApiGetCertificateAuthorityTaskQueueRequest) (*RabbitMQJobQueueResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RabbitMQJobQueueResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/TaskQueue" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateAuthority +type ApiUpdateCertificateAuthorityRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + forceSave *bool + xKeyfactorApiVersion *string + certificateAuthoritiesCertificateAuthorityRequest *CertificateAuthoritiesCertificateAuthorityRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateAuthorityRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateAuthorityRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiUpdateCertificateAuthorityRequest) ForceSave(forceSave bool) ApiUpdateCertificateAuthorityRequest { + r.forceSave = &forceSave + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateAuthorityRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateAuthorityRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateCertificateAuthorityRequest) CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest CertificateAuthoritiesCertificateAuthorityRequest) ApiUpdateCertificateAuthorityRequest { + r.certificateAuthoritiesCertificateAuthorityRequest = &certificateAuthoritiesCertificateAuthorityRequest + return r +} + +// Executes the V1 PUT /CertificateAuthority request context +func (r ApiUpdateCertificateAuthorityRequest) Execute() (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateAuthorityExecute(r) +} + +/* +Creates a new V1 PUT /CertificateAuthority request. + +UpdateCertificateAuthority Updates a CertificateAuthority object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateAuthorityRequest +*/ +func (a *CertificateAuthorityApiService) NewUpdateCertificateAuthorityRequest(ctx context.Context) ApiUpdateCertificateAuthorityRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateAuthorityRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateAuthority +// +// @return CertificateAuthoritiesCertificateAuthorityResponse +func (a *CertificateAuthorityApiService) UpdateCertificateAuthorityExecute(r ApiUpdateCertificateAuthorityRequest) (*CertificateAuthoritiesCertificateAuthorityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCertificateAuthorityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.forceSave != nil { + parameterAddToQuery(localVarQueryParams, "forceSave", r.forceSave, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCertificateAuthorityRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} +type ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAAlertRecipientUpdateRequest *CertificateAuthoritiesCAAlertRecipientUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request object holding the ID and Email of the health monitoring recipient to be updated +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest CertificateAuthoritiesCAAlertRecipientUpdateRequest) ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + r.certificateAuthoritiesCAAlertRecipientUpdateRequest = &certificateAuthoritiesCAAlertRecipientUpdateRequest + return r +} + +// Executes the V1 PUT /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request context +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) Execute() (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r) +} + +/* +Creates a new V1 PUT /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} request. + +UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById Updates a CA health alert recipient for the provided request object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the alert recipient to be updated + @return ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx context.Context, id int32) ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} +// +// @return CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdExecute(r ApiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest) (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAHealthRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAAlertRecipientUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} +type ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateAuthoritiesCAAlertRecipientUpdateRequest *CertificateAuthoritiesCAAlertRecipientUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request object holding the Email of the alert recipient to be updated +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest CertificateAuthoritiesCAAlertRecipientUpdateRequest) ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + r.certificateAuthoritiesCAAlertRecipientUpdateRequest = &certificateAuthoritiesCAAlertRecipientUpdateRequest + return r +} + +// Executes the V1 PUT /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request context +func (r ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) Execute() (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r) +} + +/* +Creates a new V1 PUT /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} request. + +UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById Updates a CA threshold alert recipient for the provided request object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the alert recipient to be updated. + @return ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest +*/ +func (a *CertificateAuthorityApiService) NewUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx context.Context, id int32) ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} +// +// @return CertificateAuthoritiesCAAlertRecipientResponse +func (a *CertificateAuthorityApiService) UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdExecute(r ApiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest) (*CertificateAuthoritiesCAAlertRecipientResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateAuthoritiesCAAlertRecipientResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateAuthoritiesCAAlertRecipientUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateAuthority/TaskQueue +type ApiUpdateCertificateAuthorityTaskQueueRequest struct { + ctx context.Context + ApiService *CertificateAuthorityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + rabbitMQJobQueueRequest *RabbitMQJobQueueRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateAuthorityTaskQueueRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateAuthorityTaskQueueRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateAuthorityTaskQueueRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateAuthorityTaskQueueRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// TaskQueue object with the provided information. +func (r ApiUpdateCertificateAuthorityTaskQueueRequest) RabbitMQJobQueueRequest(rabbitMQJobQueueRequest RabbitMQJobQueueRequest) ApiUpdateCertificateAuthorityTaskQueueRequest { + r.rabbitMQJobQueueRequest = &rabbitMQJobQueueRequest + return r +} + +// Executes the V1 PUT /CertificateAuthority/TaskQueue request context +func (r ApiUpdateCertificateAuthorityTaskQueueRequest) Execute() (*RabbitMQJobQueueResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateAuthorityTaskQueueExecute(r) +} + +/* +Creates a new V1 PUT /CertificateAuthority/TaskQueue request. + +UpdateCertificateAuthorityTaskQueue Updates credentials and connection information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateAuthorityTaskQueueRequest +*/ +func (a *CertificateAuthorityApiService) NewUpdateCertificateAuthorityTaskQueueRequest(ctx context.Context) ApiUpdateCertificateAuthorityTaskQueueRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateAuthorityTaskQueueRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateAuthority/TaskQueue +// +// @return RabbitMQJobQueueResponse +func (a *CertificateAuthorityApiService) UpdateCertificateAuthorityTaskQueueExecute(r ApiUpdateCertificateAuthorityTaskQueueRequest) (*RabbitMQJobQueueResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RabbitMQJobQueueResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateAuthority/TaskQueue" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.rabbitMQJobQueueRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate_collection.go b/v24/api/keyfactor/v1/api_certificate_collection.go new file mode 100644 index 0000000..ff9b9de --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate_collection.go @@ -0,0 +1,1853 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateCollectionApiService CertificateCollectionApi service +type CertificateCollectionApiService service + +// Request for V1 POST /CertificateCollections +type ApiCreateCertificateCollectionsRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateCollectionsCertificateCollectionCreateRequest *CertificateCollectionsCertificateCollectionCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information related to the certificate collection query +func (r ApiCreateCertificateCollectionsRequest) CertificateCollectionsCertificateCollectionCreateRequest(certificateCollectionsCertificateCollectionCreateRequest CertificateCollectionsCertificateCollectionCreateRequest) ApiCreateCertificateCollectionsRequest { + r.certificateCollectionsCertificateCollectionCreateRequest = &certificateCollectionsCertificateCollectionCreateRequest + return r +} + +// Executes the V1 POST /CertificateCollections request context +func (r ApiCreateCertificateCollectionsRequest) Execute() (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + return r.ApiService.CreateCertificateCollectionsExecute(r) +} + +/* +Creates a new V1 POST /CertificateCollections request. + +# CreateCertificateCollections Creates a new certificate collection with the provided properties + +### Duplication Field Values ### +The field used to determine if a certificate is a duplicate of another. +| Value | Description | +|--------------------|---------------------------| +| 1 | Common name | +| 2 | Distinguished name | +| 3 | Principal name | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateCollectionsRequest +*/ +func (a *CertificateCollectionApiService) NewCreateCertificateCollectionsRequest(ctx context.Context) ApiCreateCertificateCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateCollections +// +// @return CertificateCollectionsCertificateCollectionResponse +func (a *CertificateCollectionApiService) CreateCertificateCollectionsExecute(r ApiCreateCertificateCollectionsRequest) (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateCollectionsCertificateCollectionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateCollectionsCertificateCollectionCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateCollections/Copy +type ApiCreateCertificateCollectionsCopyRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateCollectionsCertificateCollectionCopyRequest *CertificateCollectionsCertificateCollectionCopyRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateCollectionsCopyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateCollectionsCopyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateCollectionsCopyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateCollectionsCopyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information related to the certificate collection query +func (r ApiCreateCertificateCollectionsCopyRequest) CertificateCollectionsCertificateCollectionCopyRequest(certificateCollectionsCertificateCollectionCopyRequest CertificateCollectionsCertificateCollectionCopyRequest) ApiCreateCertificateCollectionsCopyRequest { + r.certificateCollectionsCertificateCollectionCopyRequest = &certificateCollectionsCertificateCollectionCopyRequest + return r +} + +// Executes the V1 POST /CertificateCollections/Copy request context +func (r ApiCreateCertificateCollectionsCopyRequest) Execute() (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + return r.ApiService.CreateCertificateCollectionsCopyExecute(r) +} + +/* +Creates a new V1 POST /CertificateCollections/Copy request. + +CreateCertificateCollectionsCopy Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. + +### Duplication Field Values ### +The field used to determine if a certificate is a duplicate of another. +| Value | Description | +|--------------------|---------------------------| +| 1 | Common name | +| 2 | Distinguished name | +| 3 | Principal name | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateCollectionsCopyRequest +*/ +func (a *CertificateCollectionApiService) NewCreateCertificateCollectionsCopyRequest(ctx context.Context) ApiCreateCertificateCollectionsCopyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateCollectionsCopyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateCollections/Copy +// +// @return CertificateCollectionsCertificateCollectionResponse +func (a *CertificateCollectionApiService) CreateCertificateCollectionsCopyExecute(r ApiCreateCertificateCollectionsCopyRequest) (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateCollectionsCertificateCollectionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/Copy" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateCollectionsCertificateCollectionCopyRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateCollections/{id} +type ApiDeleteCertificateCollectionsByIdRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateCollectionsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateCollectionsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateCollectionsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateCollectionsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateCollections/{id} request context +func (r ApiDeleteCertificateCollectionsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateCollectionsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateCollections/{id} request. + +DeleteCertificateCollectionsById Delete one certificate collection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The collection to delete + @return ApiDeleteCertificateCollectionsByIdRequest +*/ +func (a *CertificateCollectionApiService) NewDeleteCertificateCollectionsByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateCollectionsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateCollectionsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateCollectionApiService) DeleteCertificateCollectionsByIdExecute(r ApiDeleteCertificateCollectionsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections +type ApiGetCertificateCollectionsRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateCollectionsRequest) QueryString(queryString string) ApiGetCertificateCollectionsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCertificateCollectionsRequest) PageReturned(pageReturned int32) ApiGetCertificateCollectionsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateCollectionsRequest) ReturnLimit(returnLimit int32) ApiGetCertificateCollectionsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateCollectionsRequest) SortField(sortField string) ApiGetCertificateCollectionsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateCollectionsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateCollectionsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections request context +func (r ApiGetCertificateCollectionsRequest) Execute() ([]CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections request. + +GetCertificateCollections Returns all certificate collections + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateCollectionsRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsRequest(ctx context.Context) ApiGetCertificateCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateCollections +// +// @return []CSSCMSDataModelModelsCertificateQuery +func (a *CertificateCollectionApiService) GetCertificateCollectionsExecute(r ApiGetCertificateCollectionsRequest) ([]CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateQuery + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/{id} +type ApiGetCertificateCollectionsByIdRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/{id} request context +func (r ApiGetCertificateCollectionsByIdRequest) Execute() (*CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/{id} request. + +GetCertificateCollectionsById Returns the certificate collection definition associated with the provided Keyfactor identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Identifier of the certificate collection + @return ApiGetCertificateCollectionsByIdRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsByIdRequest(ctx context.Context, id int32) ApiGetCertificateCollectionsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateCollections/{id} +// +// @return CSSCMSDataModelModelsCertificateQuery +func (a *CertificateCollectionApiService) GetCertificateCollectionsByIdExecute(r ApiGetCertificateCollectionsByIdRequest) (*CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCertificateQuery + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/CollectionList +type ApiGetCertificateCollectionsCollectionListRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsCollectionListRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsCollectionListRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateCollectionsCollectionListRequest) QueryString(queryString string) ApiGetCertificateCollectionsCollectionListRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCertificateCollectionsCollectionListRequest) PageReturned(pageReturned int32) ApiGetCertificateCollectionsCollectionListRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateCollectionsCollectionListRequest) ReturnLimit(returnLimit int32) ApiGetCertificateCollectionsCollectionListRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateCollectionsCollectionListRequest) SortField(sortField string) ApiGetCertificateCollectionsCollectionListRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateCollectionsCollectionListRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateCollectionsCollectionListRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsCollectionListRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsCollectionListRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/CollectionList request context +func (r ApiGetCertificateCollectionsCollectionListRequest) Execute() ([]CertificateCollectionsCertificateCollectionListResponse, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsCollectionListExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/CollectionList request. + +GetCertificateCollectionsCollectionList Get certificate collection list with duplication field name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateCollectionsCollectionListRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsCollectionListRequest(ctx context.Context) ApiGetCertificateCollectionsCollectionListRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsCollectionListRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateCollections/CollectionList +// +// @return []CertificateCollectionsCertificateCollectionListResponse +func (a *CertificateCollectionApiService) GetCertificateCollectionsCollectionListExecute(r ApiGetCertificateCollectionsCollectionListRequest) ([]CertificateCollectionsCertificateCollectionListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateCollectionsCertificateCollectionListResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/CollectionList" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/CollectionOrdering +type ApiGetCertificateCollectionsCollectionOrderingRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsCollectionOrderingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsCollectionOrderingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsCollectionOrderingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsCollectionOrderingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/CollectionOrdering request context +func (r ApiGetCertificateCollectionsCollectionOrderingRequest) Execute() ([]int32, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsCollectionOrderingExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/CollectionOrdering request. + +GetCertificateCollectionsCollectionOrdering Returns an array of collection Id's where the index in the array represents the collection ordering + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateCollectionsCollectionOrderingRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsCollectionOrderingRequest(ctx context.Context) ApiGetCertificateCollectionsCollectionOrderingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsCollectionOrderingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateCollections/CollectionOrdering +// +// @return []int32 +func (a *CertificateCollectionApiService) GetCertificateCollectionsCollectionOrderingExecute(r ApiGetCertificateCollectionsCollectionOrderingRequest) ([]int32, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []int32 + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/CollectionOrdering" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/LastEstimated +type ApiGetCertificateCollectionsLastEstimatedRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsLastEstimatedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsLastEstimatedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsLastEstimatedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsLastEstimatedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/LastEstimated request context +func (r ApiGetCertificateCollectionsLastEstimatedRequest) Execute() (*SchedulingScheduledTaskScheduleResponse, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsLastEstimatedExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/LastEstimated request. + +GetCertificateCollectionsLastEstimated Get the last time the timer service ran the job to process certificates in collections + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateCollectionsLastEstimatedRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsLastEstimatedRequest(ctx context.Context) ApiGetCertificateCollectionsLastEstimatedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsLastEstimatedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateCollections/LastEstimated +// +// @return SchedulingScheduledTaskScheduleResponse +func (a *CertificateCollectionApiService) GetCertificateCollectionsLastEstimatedExecute(r ApiGetCertificateCollectionsLastEstimatedRequest) (*SchedulingScheduledTaskScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SchedulingScheduledTaskScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/LastEstimated" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/{name} +type ApiGetCertificateCollectionsNameRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + name string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsNameRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsNameRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsNameRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsNameRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/{name} request context +func (r ApiGetCertificateCollectionsNameRequest) Execute() (*CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsNameExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/{name} request. + +GetCertificateCollectionsName Returns the certificate collection associated with the provided collection name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name Name of the Collection + @return ApiGetCertificateCollectionsNameRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsNameRequest(ctx context.Context, name string) ApiGetCertificateCollectionsNameRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsNameRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + name: name, + } +} + +// Executes the API request V1 GET /CertificateCollections/{name} +// +// @return CSSCMSDataModelModelsCertificateQuery +func (a *CertificateCollectionApiService) GetCertificateCollectionsNameExecute(r ApiGetCertificateCollectionsNameRequest) (*CSSCMSDataModelModelsCertificateQuery, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCertificateQuery + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateCollections/NavItems +type ApiGetCertificateCollectionsNavItemsRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateCollectionsNavItemsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateCollectionsNavItemsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateCollectionsNavItemsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateCollectionsNavItemsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateCollections/NavItems request context +func (r ApiGetCertificateCollectionsNavItemsRequest) Execute() ([]CSSCMSDataModelModelsCertificateCollectionNavItem, *http.Response, error) { + return r.ApiService.GetCertificateCollectionsNavItemsExecute(r) +} + +/* +Creates a new V1 GET /CertificateCollections/NavItems request. + +GetCertificateCollectionsNavItems Get the list of navigation items for certificate collection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateCollectionsNavItemsRequest +*/ +func (a *CertificateCollectionApiService) NewGetCertificateCollectionsNavItemsRequest(ctx context.Context) ApiGetCertificateCollectionsNavItemsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateCollectionsNavItemsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateCollections/NavItems +// +// @return []CSSCMSDataModelModelsCertificateCollectionNavItem +func (a *CertificateCollectionApiService) GetCertificateCollectionsNavItemsExecute(r ApiGetCertificateCollectionsNavItemsRequest) ([]CSSCMSDataModelModelsCertificateCollectionNavItem, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateCollectionNavItem + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/NavItems" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateCollections +type ApiUpdateCertificateCollectionsRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateCollectionsCertificateCollectionUpdateRequest *CertificateCollectionsCertificateCollectionUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information related to the certificate collection query +func (r ApiUpdateCertificateCollectionsRequest) CertificateCollectionsCertificateCollectionUpdateRequest(certificateCollectionsCertificateCollectionUpdateRequest CertificateCollectionsCertificateCollectionUpdateRequest) ApiUpdateCertificateCollectionsRequest { + r.certificateCollectionsCertificateCollectionUpdateRequest = &certificateCollectionsCertificateCollectionUpdateRequest + return r +} + +// Executes the V1 PUT /CertificateCollections request context +func (r ApiUpdateCertificateCollectionsRequest) Execute() (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateCollectionsExecute(r) +} + +/* +Creates a new V1 PUT /CertificateCollections request. + +# UpdateCertificateCollections Updates an existing certificate collection with the provided properties + +### Duplication Field Values ### +The field used to determine if a certificate is a duplicate of another. +| Value | Description | +|--------------------|---------------------------| +| 1 | Common name | +| 2 | Distinguished name | +| 3 | Principal name | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateCollectionsRequest +*/ +func (a *CertificateCollectionApiService) NewUpdateCertificateCollectionsRequest(ctx context.Context) ApiUpdateCertificateCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateCollections +// +// @return CertificateCollectionsCertificateCollectionResponse +func (a *CertificateCollectionApiService) UpdateCertificateCollectionsExecute(r ApiUpdateCertificateCollectionsRequest) (*CertificateCollectionsCertificateCollectionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateCollectionsCertificateCollectionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateCollectionsCertificateCollectionUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateCollections/{id}/Favorite +type ApiUpdateCertificateCollectionsByIdFavoriteRequest struct { + ctx context.Context + ApiService *CertificateCollectionApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateCollectionsCertificateCollectionFavoriteRequest *CertificateCollectionsCertificateCollectionFavoriteRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateCollectionsByIdFavoriteRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateCollectionsByIdFavoriteRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateCollectionsByIdFavoriteRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateCollectionsByIdFavoriteRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the certificate collection favorite update +func (r ApiUpdateCertificateCollectionsByIdFavoriteRequest) CertificateCollectionsCertificateCollectionFavoriteRequest(certificateCollectionsCertificateCollectionFavoriteRequest CertificateCollectionsCertificateCollectionFavoriteRequest) ApiUpdateCertificateCollectionsByIdFavoriteRequest { + r.certificateCollectionsCertificateCollectionFavoriteRequest = &certificateCollectionsCertificateCollectionFavoriteRequest + return r +} + +// Executes the V1 PUT /CertificateCollections/{id}/Favorite request context +func (r ApiUpdateCertificateCollectionsByIdFavoriteRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificateCollectionsByIdFavoriteExecute(r) +} + +/* +Creates a new V1 PUT /CertificateCollections/{id}/Favorite request. + +UpdateCertificateCollectionsByIdFavorite Update favorite for one collection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The collection to update favorite with + @return ApiUpdateCertificateCollectionsByIdFavoriteRequest +*/ +func (a *CertificateCollectionApiService) NewUpdateCertificateCollectionsByIdFavoriteRequest(ctx context.Context, id int32) ApiUpdateCertificateCollectionsByIdFavoriteRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateCollectionsByIdFavoriteRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateCollectionApiService) UpdateCertificateCollectionsByIdFavoriteExecute(r ApiUpdateCertificateCollectionsByIdFavoriteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateCollections/{id}/Favorite" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateCollectionsCertificateCollectionFavoriteRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate_store.go b/v24/api/keyfactor/v1/api_certificate_store.go new file mode 100644 index 0000000..62d73b7 --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate_store.go @@ -0,0 +1,2265 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "reflect" + "strings" +) + +// CertificateStoreApiService CertificateStoreApi service +type CertificateStoreApiService service + +// Request for V1 POST /CertificateStores +type ApiCreateCertificateStoresRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate store to be created with the provided properties +func (r ApiCreateCertificateStoresRequest) CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) ApiCreateCertificateStoresRequest { + r.cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest = &cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest + return r +} + +// Executes the V1 POST /CertificateStores request context +func (r ApiCreateCertificateStoresRequest) Execute() (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + return r.ApiService.CreateCertificateStoresExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores request. + +CreateCertificateStores Creates a new certificate store with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresRequest(ctx context.Context) ApiCreateCertificateStoresRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateStores +// +// @return CertificateStoresCertificateStoreResponse +func (a *CertificateStoreApiService) CreateCertificateStoresExecute(r ApiCreateCertificateStoresRequest) (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresCertificateStoreResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateStores/Approve +type ApiCreateCertificateStoresApproveRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresCertificateStoreApproveRequest *[]CertificateStoresCertificateStoreApproveRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresApproveRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresApproveRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresApproveRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresApproveRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate stores to be approved +func (r ApiCreateCertificateStoresApproveRequest) CertificateStoresCertificateStoreApproveRequest(certificateStoresCertificateStoreApproveRequest []CertificateStoresCertificateStoreApproveRequest) ApiCreateCertificateStoresApproveRequest { + r.certificateStoresCertificateStoreApproveRequest = &certificateStoresCertificateStoreApproveRequest + return r +} + +// Executes the V1 POST /CertificateStores/Approve request context +func (r ApiCreateCertificateStoresApproveRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateCertificateStoresApproveExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores/Approve request. + +CreateCertificateStoresApprove Approves the provided certificate stores to make them available for management + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresApproveRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresApproveRequest(ctx context.Context) ApiCreateCertificateStoresApproveRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresApproveRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) CreateCertificateStoresApproveExecute(r ApiCreateCertificateStoresApproveRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Approve" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresCertificateStoreApproveRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateStores/Certificates/Add +type ApiCreateCertificateStoresCertificatesAddRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresAddCertificateRequest *CertificateStoresAddCertificateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresCertificatesAddRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresCertificatesAddRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresCertificatesAddRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresCertificatesAddRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Configuration details of the management job +func (r ApiCreateCertificateStoresCertificatesAddRequest) CertificateStoresAddCertificateRequest(certificateStoresAddCertificateRequest CertificateStoresAddCertificateRequest) ApiCreateCertificateStoresCertificatesAddRequest { + r.certificateStoresAddCertificateRequest = &certificateStoresAddCertificateRequest + return r +} + +// Executes the V1 POST /CertificateStores/Certificates/Add request context +func (r ApiCreateCertificateStoresCertificatesAddRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.CreateCertificateStoresCertificatesAddExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores/Certificates/Add request. + +CreateCertificateStoresCertificatesAdd Configures a management job to add a certificate to one or more stores with the provided schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresCertificatesAddRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresCertificatesAddRequest(ctx context.Context) ApiCreateCertificateStoresCertificatesAddRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresCertificatesAddRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateStores/Certificates/Add +// +// @return []string +func (a *CertificateStoreApiService) CreateCertificateStoresCertificatesAddExecute(r ApiCreateCertificateStoresCertificatesAddRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Certificates/Add" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresAddCertificateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateStores/Certificates/Remove +type ApiCreateCertificateStoresCertificatesRemoveRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresRemoveCertificateRequest *CertificateStoresRemoveCertificateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresCertificatesRemoveRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresCertificatesRemoveRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresCertificatesRemoveRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresCertificatesRemoveRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Configuration details of the management job +func (r ApiCreateCertificateStoresCertificatesRemoveRequest) CertificateStoresRemoveCertificateRequest(certificateStoresRemoveCertificateRequest CertificateStoresRemoveCertificateRequest) ApiCreateCertificateStoresCertificatesRemoveRequest { + r.certificateStoresRemoveCertificateRequest = &certificateStoresRemoveCertificateRequest + return r +} + +// Executes the V1 POST /CertificateStores/Certificates/Remove request context +func (r ApiCreateCertificateStoresCertificatesRemoveRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.CreateCertificateStoresCertificatesRemoveExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores/Certificates/Remove request. + +CreateCertificateStoresCertificatesRemove Configures a management job to remove a certificate from one or more stores with the provided schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresCertificatesRemoveRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresCertificatesRemoveRequest(ctx context.Context) ApiCreateCertificateStoresCertificatesRemoveRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresCertificatesRemoveRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateStores/Certificates/Remove +// +// @return []string +func (a *CertificateStoreApiService) CreateCertificateStoresCertificatesRemoveExecute(r ApiCreateCertificateStoresCertificatesRemoveRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Certificates/Remove" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresRemoveCertificateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateStores/Reenrollment +type ApiCreateCertificateStoresReenrollmentRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresReenrollmentRequest *CertificateStoresReenrollmentRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresReenrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresReenrollmentRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresReenrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresReenrollmentRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias +func (r ApiCreateCertificateStoresReenrollmentRequest) CertificateStoresReenrollmentRequest(certificateStoresReenrollmentRequest CertificateStoresReenrollmentRequest) ApiCreateCertificateStoresReenrollmentRequest { + r.certificateStoresReenrollmentRequest = &certificateStoresReenrollmentRequest + return r +} + +// Executes the V1 POST /CertificateStores/Reenrollment request context +func (r ApiCreateCertificateStoresReenrollmentRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateCertificateStoresReenrollmentExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores/Reenrollment request. + +CreateCertificateStoresReenrollment Schedules a certificate store for reenrollment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresReenrollmentRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresReenrollmentRequest(ctx context.Context) ApiCreateCertificateStoresReenrollmentRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresReenrollmentRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) CreateCertificateStoresReenrollmentExecute(r ApiCreateCertificateStoresReenrollmentRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Reenrollment" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresReenrollmentRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /CertificateStores/Schedule +type ApiCreateCertificateStoresScheduleRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertStoresSchedule *CSSCMSDataModelModelsCertStoresSchedule +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoresScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoresScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoresScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoresScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate store identifiers and the desired schedule +func (r ApiCreateCertificateStoresScheduleRequest) CSSCMSDataModelModelsCertStoresSchedule(cSSCMSDataModelModelsCertStoresSchedule CSSCMSDataModelModelsCertStoresSchedule) ApiCreateCertificateStoresScheduleRequest { + r.cSSCMSDataModelModelsCertStoresSchedule = &cSSCMSDataModelModelsCertStoresSchedule + return r +} + +// Executes the V1 POST /CertificateStores/Schedule request context +func (r ApiCreateCertificateStoresScheduleRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateCertificateStoresScheduleExecute(r) +} + +/* +Creates a new V1 POST /CertificateStores/Schedule request. + +CreateCertificateStoresSchedule Creates an inventory schedule for the provided certificate stores + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoresScheduleRequest +*/ +func (a *CertificateStoreApiService) NewCreateCertificateStoresScheduleRequest(ctx context.Context) ApiCreateCertificateStoresScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoresScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) CreateCertificateStoresScheduleExecute(r ApiCreateCertificateStoresScheduleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertStoresSchedule + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateStores +type ApiDeleteCertificateStoresRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateStoresRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateStoresRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted +func (r ApiDeleteCertificateStoresRequest) RequestBody(requestBody []string) ApiDeleteCertificateStoresRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /CertificateStores request context +func (r ApiDeleteCertificateStoresRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateStoresExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateStores request. + +# DeleteCertificateStores Deletes multiple persisted certificate store entities by their identifiers + +This will ignore individual delete failures, and continue processing the array. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCertificateStoresRequest +*/ +func (a *CertificateStoreApiService) NewDeleteCertificateStoresRequest(ctx context.Context) ApiDeleteCertificateStoresRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateStoresRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) DeleteCertificateStoresExecute(r ApiDeleteCertificateStoresRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateStores/{id} +type ApiDeleteCertificateStoresByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateStoresByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateStoresByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateStoresByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateStoresByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateStores/{id} request context +func (r ApiDeleteCertificateStoresByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateStoresByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateStores/{id} request. + +DeleteCertificateStoresById Deletes a persisted certificate store by its Keyfactor identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor certificate store identifier (GUID) + @return ApiDeleteCertificateStoresByIdRequest +*/ +func (a *CertificateStoreApiService) NewDeleteCertificateStoresByIdRequest(ctx context.Context, id string) ApiDeleteCertificateStoresByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateStoresByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) DeleteCertificateStoresByIdExecute(r ApiDeleteCertificateStoresByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStores +type ApiGetCertificateStoresRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + performRoleCheck *bool + roleIdList *[]int32 + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoresRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Set to 'true' if role permissions for the current user should be validated +func (r ApiGetCertificateStoresRequest) PerformRoleCheck(performRoleCheck bool) ApiGetCertificateStoresRequest { + r.performRoleCheck = &performRoleCheck + return r +} + +// List of Keyfactor role identifiers (integer) used to determine permissions if provided +func (r ApiGetCertificateStoresRequest) RoleIdList(roleIdList []int32) ApiGetCertificateStoresRequest { + r.roleIdList = &roleIdList + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetCertificateStoresRequest) QueryString(queryString string) ApiGetCertificateStoresRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetCertificateStoresRequest) PageReturned(pageReturned int32) ApiGetCertificateStoresRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetCertificateStoresRequest) ReturnLimit(returnLimit int32) ApiGetCertificateStoresRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetCertificateStoresRequest) SortField(sortField string) ApiGetCertificateStoresRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetCertificateStoresRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateStoresRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoresRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStores request context +func (r ApiGetCertificateStoresRequest) Execute() ([]CertificateStoresCertificateStoreResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoresExecute(r) +} + +/* +Creates a new V1 GET /CertificateStores request. + +GetCertificateStores Returns all certificate stores according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateStoresRequest +*/ +func (a *CertificateStoreApiService) NewGetCertificateStoresRequest(ctx context.Context) ApiGetCertificateStoresRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoresRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateStores +// +// @return []CertificateStoresCertificateStoreResponse +func (a *CertificateStoreApiService) GetCertificateStoresExecute(r ApiGetCertificateStoresRequest) ([]CertificateStoresCertificateStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresCertificateStoreResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.performRoleCheck != nil { + parameterAddToQuery(localVarQueryParams, "PerformRoleCheck", r.performRoleCheck, "") + } + if r.roleIdList != nil { + t := *r.roleIdList + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToQuery(localVarQueryParams, "RoleIdList", s.Index(i), "multi") + } + } else { + parameterAddToQuery(localVarQueryParams, "RoleIdList", t, "multi") + } + } + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStores/{id} +type ApiGetCertificateStoresByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoresByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoresByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoresByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoresByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStores/{id} request context +func (r ApiGetCertificateStoresByIdRequest) Execute() (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoresByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateStores/{id} request. + +GetCertificateStoresById Returns a single certificate store associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier (GUID) of the certificate store + @return ApiGetCertificateStoresByIdRequest +*/ +func (a *CertificateStoreApiService) NewGetCertificateStoresByIdRequest(ctx context.Context, id string) ApiGetCertificateStoresByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoresByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateStores/{id} +// +// @return CertificateStoresCertificateStoreResponse +func (a *CertificateStoreApiService) GetCertificateStoresByIdExecute(r ApiGetCertificateStoresByIdRequest) (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresCertificateStoreResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStores/{id}/Inventory +type ApiGetCertificateStoresByIdInventoryRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + id string + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoresByIdInventoryRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoresByIdInventoryRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateStoresByIdInventoryRequest) PageReturned(pageReturned int32) ApiGetCertificateStoresByIdInventoryRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateStoresByIdInventoryRequest) ReturnLimit(returnLimit int32) ApiGetCertificateStoresByIdInventoryRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateStoresByIdInventoryRequest) SortField(sortField string) ApiGetCertificateStoresByIdInventoryRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateStoresByIdInventoryRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateStoresByIdInventoryRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoresByIdInventoryRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoresByIdInventoryRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStores/{id}/Inventory request context +func (r ApiGetCertificateStoresByIdInventoryRequest) Execute() ([]CertificateStoresCertificateStoreInventoryResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoresByIdInventoryExecute(r) +} + +/* +Creates a new V1 GET /CertificateStores/{id}/Inventory request. + +GetCertificateStoresByIdInventory Returns a single certificate store's inventory associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier (GUID) of the certificate store + @return ApiGetCertificateStoresByIdInventoryRequest +*/ +func (a *CertificateStoreApiService) NewGetCertificateStoresByIdInventoryRequest(ctx context.Context, id string) ApiGetCertificateStoresByIdInventoryRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoresByIdInventoryRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateStores/{id}/Inventory +// +// @return []CertificateStoresCertificateStoreInventoryResponse +func (a *CertificateStoreApiService) GetCertificateStoresByIdInventoryExecute(r ApiGetCertificateStoresByIdInventoryRequest) ([]CertificateStoresCertificateStoreInventoryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresCertificateStoreInventoryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/{id}/Inventory" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStores +type ApiUpdateCertificateStoresRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoresRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoresRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate store to be updated with the provided properties +func (r ApiUpdateCertificateStoresRequest) CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) ApiUpdateCertificateStoresRequest { + r.cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest = &cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest + return r +} + +// Executes the V1 PUT /CertificateStores request context +func (r ApiUpdateCertificateStoresRequest) Execute() (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateStoresExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStores request. + +UpdateCertificateStores Updates a given certificate store with the properties of the provided instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoresRequest +*/ +func (a *CertificateStoreApiService) NewUpdateCertificateStoresRequest(ctx context.Context) ApiUpdateCertificateStoresRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoresRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateStores +// +// @return CertificateStoresCertificateStoreResponse +func (a *CertificateStoreApiService) UpdateCertificateStoresExecute(r ApiUpdateCertificateStoresRequest) (*CertificateStoresCertificateStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresCertificateStoreResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStores/AssignContainer +type ApiUpdateCertificateStoresAssignContainerRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsContainerAssignment *CSSCMSDataModelModelsContainerAssignment +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoresAssignContainerRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoresAssignContainerRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoresAssignContainerRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoresAssignContainerRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Keyfactor certificate store identifiers and the container properties +func (r ApiUpdateCertificateStoresAssignContainerRequest) CSSCMSDataModelModelsContainerAssignment(cSSCMSDataModelModelsContainerAssignment CSSCMSDataModelModelsContainerAssignment) ApiUpdateCertificateStoresAssignContainerRequest { + r.cSSCMSDataModelModelsContainerAssignment = &cSSCMSDataModelModelsContainerAssignment + return r +} + +// Executes the V1 PUT /CertificateStores/AssignContainer request context +func (r ApiUpdateCertificateStoresAssignContainerRequest) Execute() ([]CertificateStoresCertificateStoreResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateStoresAssignContainerExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStores/AssignContainer request. + +UpdateCertificateStoresAssignContainer Assigns the provided certificate stores to the provided container + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoresAssignContainerRequest +*/ +func (a *CertificateStoreApiService) NewUpdateCertificateStoresAssignContainerRequest(ctx context.Context) ApiUpdateCertificateStoresAssignContainerRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoresAssignContainerRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateStores/AssignContainer +// +// @return []CertificateStoresCertificateStoreResponse +func (a *CertificateStoreApiService) UpdateCertificateStoresAssignContainerExecute(r ApiUpdateCertificateStoresAssignContainerRequest) ([]CertificateStoresCertificateStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresCertificateStoreResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/AssignContainer" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsContainerAssignment + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStores/DiscoveryJob +type ApiUpdateCertificateStoresDiscoveryJobRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsDiscoveryJobRequest *CSSCMSDataModelModelsDiscoveryJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoresDiscoveryJobRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoresDiscoveryJobRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoresDiscoveryJobRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoresDiscoveryJobRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Configuration properties of the discovery job +func (r ApiUpdateCertificateStoresDiscoveryJobRequest) CSSCMSDataModelModelsDiscoveryJobRequest(cSSCMSDataModelModelsDiscoveryJobRequest CSSCMSDataModelModelsDiscoveryJobRequest) ApiUpdateCertificateStoresDiscoveryJobRequest { + r.cSSCMSDataModelModelsDiscoveryJobRequest = &cSSCMSDataModelModelsDiscoveryJobRequest + return r +} + +// Executes the V1 PUT /CertificateStores/DiscoveryJob request context +func (r ApiUpdateCertificateStoresDiscoveryJobRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificateStoresDiscoveryJobExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStores/DiscoveryJob request. + +UpdateCertificateStoresDiscoveryJob Configures a discovery job to locate currently unmanaged certificate stores + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoresDiscoveryJobRequest +*/ +func (a *CertificateStoreApiService) NewUpdateCertificateStoresDiscoveryJobRequest(ctx context.Context) ApiUpdateCertificateStoresDiscoveryJobRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoresDiscoveryJobRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) UpdateCertificateStoresDiscoveryJobExecute(r ApiUpdateCertificateStoresDiscoveryJobRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/DiscoveryJob" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsDiscoveryJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStores/Password +type ApiUpdateCertificateStoresPasswordRequest struct { + ctx context.Context + ApiService *CertificateStoreApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertStoreNewPasswordRequest *CSSCMSDataModelModelsCertStoreNewPasswordRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoresPasswordRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoresPasswordRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoresPasswordRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoresPasswordRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Identifier of the certificate store and the password to be applied to it +func (r ApiUpdateCertificateStoresPasswordRequest) CSSCMSDataModelModelsCertStoreNewPasswordRequest(cSSCMSDataModelModelsCertStoreNewPasswordRequest CSSCMSDataModelModelsCertStoreNewPasswordRequest) ApiUpdateCertificateStoresPasswordRequest { + r.cSSCMSDataModelModelsCertStoreNewPasswordRequest = &cSSCMSDataModelModelsCertStoreNewPasswordRequest + return r +} + +// Executes the V1 PUT /CertificateStores/Password request context +func (r ApiUpdateCertificateStoresPasswordRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateCertificateStoresPasswordExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStores/Password request. + +UpdateCertificateStoresPassword Sets a password for the requested certificate store + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoresPasswordRequest +*/ +func (a *CertificateStoreApiService) NewUpdateCertificateStoresPasswordRequest(ctx context.Context) ApiUpdateCertificateStoresPasswordRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoresPasswordRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreApiService) UpdateCertificateStoresPasswordExecute(r ApiUpdateCertificateStoresPasswordRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStores/Password" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertStoreNewPasswordRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate_store_container.go b/v24/api/keyfactor/v1/api_certificate_store_container.go new file mode 100644 index 0000000..841337d --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate_store_container.go @@ -0,0 +1,795 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateStoreContainerApiService CertificateStoreContainerApi service +type CertificateStoreContainerApiService service + +// Request for V1 POST /CertificateStoreContainers +type ApiCreateCertificateStoreContainersRequest struct { + ctx context.Context + ApiService *CertificateStoreContainerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertStoreContainerRequest *CSSCMSDataModelModelsCertStoreContainerRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoreContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoreContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoreContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoreContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new container +func (r ApiCreateCertificateStoreContainersRequest) CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest CSSCMSDataModelModelsCertStoreContainerRequest) ApiCreateCertificateStoreContainersRequest { + r.cSSCMSDataModelModelsCertStoreContainerRequest = &cSSCMSDataModelModelsCertStoreContainerRequest + return r +} + +// Executes the V1 POST /CertificateStoreContainers request context +func (r ApiCreateCertificateStoreContainersRequest) Execute() (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + return r.ApiService.CreateCertificateStoreContainersExecute(r) +} + +/* +Creates a new V1 POST /CertificateStoreContainers request. + +CreateCertificateStoreContainers Add a certificate store container + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoreContainersRequest +*/ +func (a *CertificateStoreContainerApiService) NewCreateCertificateStoreContainersRequest(ctx context.Context) ApiCreateCertificateStoreContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoreContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateStoreContainers +// +// @return CertificateStoreContainersCertificateStoreContainerResponse +func (a *CertificateStoreContainerApiService) CreateCertificateStoreContainersExecute(r ApiCreateCertificateStoreContainersRequest) (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoreContainersCertificateStoreContainerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreContainers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertStoreContainerRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateStoreContainers/{id} +type ApiDeleteCertificateStoreContainersByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreContainerApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateStoreContainersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateStoreContainersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateStoreContainersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateStoreContainersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateStoreContainers/{id} request context +func (r ApiDeleteCertificateStoreContainersByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateStoreContainersByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateStoreContainers/{id} request. + +DeleteCertificateStoreContainersById Delete a certificate store container + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the certificate store container + @return ApiDeleteCertificateStoreContainersByIdRequest +*/ +func (a *CertificateStoreContainerApiService) NewDeleteCertificateStoreContainersByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateStoreContainersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateStoreContainersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateStoreContainerApiService) DeleteCertificateStoreContainersByIdExecute(r ApiDeleteCertificateStoreContainersByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreContainers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStoreContainers +type ApiGetCertificateStoreContainersRequest struct { + ctx context.Context + ApiService *CertificateStoreContainerApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoreContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoreContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateStoreContainersRequest) QueryString(queryString string) ApiGetCertificateStoreContainersRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCertificateStoreContainersRequest) PageReturned(pageReturned int32) ApiGetCertificateStoreContainersRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateStoreContainersRequest) ReturnLimit(returnLimit int32) ApiGetCertificateStoreContainersRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateStoreContainersRequest) SortField(sortField string) ApiGetCertificateStoreContainersRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateStoreContainersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateStoreContainersRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoreContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoreContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStoreContainers request context +func (r ApiGetCertificateStoreContainersRequest) Execute() ([]CSSCMSDataModelModelsCertificateStoreContainerListResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoreContainersExecute(r) +} + +/* +Creates a new V1 GET /CertificateStoreContainers request. + +GetCertificateStoreContainers Returns all certificate store container according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateStoreContainersRequest +*/ +func (a *CertificateStoreContainerApiService) NewGetCertificateStoreContainersRequest(ctx context.Context) ApiGetCertificateStoreContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoreContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateStoreContainers +// +// @return []CSSCMSDataModelModelsCertificateStoreContainerListResponse +func (a *CertificateStoreContainerApiService) GetCertificateStoreContainersExecute(r ApiGetCertificateStoreContainersRequest) ([]CSSCMSDataModelModelsCertificateStoreContainerListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateStoreContainerListResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreContainers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStoreContainers/{id} +type ApiGetCertificateStoreContainersByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreContainerApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoreContainersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoreContainersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoreContainersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoreContainersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStoreContainers/{id} request context +func (r ApiGetCertificateStoreContainersByIdRequest) Execute() (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoreContainersByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateStoreContainers/{id} request. + +GetCertificateStoreContainersById Returns a single certificate store container that matches id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetCertificateStoreContainersByIdRequest +*/ +func (a *CertificateStoreContainerApiService) NewGetCertificateStoreContainersByIdRequest(ctx context.Context, id int32) ApiGetCertificateStoreContainersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoreContainersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateStoreContainers/{id} +// +// @return CertificateStoreContainersCertificateStoreContainerResponse +func (a *CertificateStoreContainerApiService) GetCertificateStoreContainersByIdExecute(r ApiGetCertificateStoreContainersByIdRequest) (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoreContainersCertificateStoreContainerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreContainers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStoreContainers +type ApiUpdateCertificateStoreContainersRequest struct { + ctx context.Context + ApiService *CertificateStoreContainerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertStoreContainerRequest *CSSCMSDataModelModelsCertStoreContainerRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoreContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoreContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoreContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoreContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the updated container +func (r ApiUpdateCertificateStoreContainersRequest) CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest CSSCMSDataModelModelsCertStoreContainerRequest) ApiUpdateCertificateStoreContainersRequest { + r.cSSCMSDataModelModelsCertStoreContainerRequest = &cSSCMSDataModelModelsCertStoreContainerRequest + return r +} + +// Executes the V1 PUT /CertificateStoreContainers request context +func (r ApiUpdateCertificateStoreContainersRequest) Execute() (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateStoreContainersExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStoreContainers request. + +UpdateCertificateStoreContainers Edit a certificate store container + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoreContainersRequest +*/ +func (a *CertificateStoreContainerApiService) NewUpdateCertificateStoreContainersRequest(ctx context.Context) ApiUpdateCertificateStoreContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoreContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateStoreContainers +// +// @return CertificateStoreContainersCertificateStoreContainerResponse +func (a *CertificateStoreContainerApiService) UpdateCertificateStoreContainersExecute(r ApiUpdateCertificateStoreContainersRequest) (*CertificateStoreContainersCertificateStoreContainerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoreContainersCertificateStoreContainerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreContainers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertStoreContainerRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_certificate_store_type.go b/v24/api/keyfactor/v1/api_certificate_store_type.go new file mode 100644 index 0000000..ef7f9a6 --- /dev/null +++ b/v24/api/keyfactor/v1/api_certificate_store_type.go @@ -0,0 +1,1085 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateStoreTypeApiService CertificateStoreTypeApi service +type CertificateStoreTypeApiService service + +// Request for V1 POST /CertificateStoreTypes +type ApiCreateCertificateStoreTypesRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresTypesCertificateStoreTypeCreationRequest *CertificateStoresTypesCertificateStoreTypeCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCertificateStoreTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCertificateStoreTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCertificateStoreTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCertificateStoreTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate store type properties for the new type +func (r ApiCreateCertificateStoreTypesRequest) CertificateStoresTypesCertificateStoreTypeCreationRequest(certificateStoresTypesCertificateStoreTypeCreationRequest CertificateStoresTypesCertificateStoreTypeCreationRequest) ApiCreateCertificateStoreTypesRequest { + r.certificateStoresTypesCertificateStoreTypeCreationRequest = &certificateStoresTypesCertificateStoreTypeCreationRequest + return r +} + +// Executes the V1 POST /CertificateStoreTypes request context +func (r ApiCreateCertificateStoreTypesRequest) Execute() (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + return r.ApiService.CreateCertificateStoreTypesExecute(r) +} + +/* +Creates a new V1 POST /CertificateStoreTypes request. + +CreateCertificateStoreTypes Creates a new certificate store type with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCertificateStoreTypesRequest +*/ +func (a *CertificateStoreTypeApiService) NewCreateCertificateStoreTypesRequest(ctx context.Context) ApiCreateCertificateStoreTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCertificateStoreTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CertificateStoreTypes +// +// @return CertificateStoresTypesCertificateStoreTypeResponse +func (a *CertificateStoreTypeApiService) CreateCertificateStoreTypesExecute(r ApiCreateCertificateStoreTypesRequest) (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresTypesCertificateStoreTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresTypesCertificateStoreTypeCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateStoreTypes +type ApiDeleteCertificateStoreTypesRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateStoreTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateStoreTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateStoreTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateStoreTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Array of Keyfactor identifiers of the certificate store types to be deleted +func (r ApiDeleteCertificateStoreTypesRequest) RequestBody(requestBody []int32) ApiDeleteCertificateStoreTypesRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /CertificateStoreTypes request context +func (r ApiDeleteCertificateStoreTypesRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateStoreTypesExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateStoreTypes request. + +# DeleteCertificateStoreTypes Deletes certificate store types according to the provided identifiers + +This will ignore individual delete failures, and continue processing the array. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCertificateStoreTypesRequest +*/ +func (a *CertificateStoreTypeApiService) NewDeleteCertificateStoreTypesRequest(ctx context.Context) ApiDeleteCertificateStoreTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateStoreTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CertificateStoreTypeApiService) DeleteCertificateStoreTypesExecute(r ApiDeleteCertificateStoreTypesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CertificateStoreTypes/{id} +type ApiDeleteCertificateStoreTypesByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCertificateStoreTypesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCertificateStoreTypesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCertificateStoreTypesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCertificateStoreTypesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CertificateStoreTypes/{id} request context +func (r ApiDeleteCertificateStoreTypesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCertificateStoreTypesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CertificateStoreTypes/{id} request. + +# DeleteCertificateStoreTypesById Deletes a certificate store type according to the provided identifier + +This will ignore individual delete failures, and continue processing certificate stores. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the certificate store type to be deleted + @return ApiDeleteCertificateStoreTypesByIdRequest +*/ +func (a *CertificateStoreTypeApiService) NewDeleteCertificateStoreTypesByIdRequest(ctx context.Context, id int32) ApiDeleteCertificateStoreTypesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCertificateStoreTypesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CertificateStoreTypeApiService) DeleteCertificateStoreTypesByIdExecute(r ApiDeleteCertificateStoreTypesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStoreTypes +type ApiGetCertificateStoreTypesRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoreTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoreTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCertificateStoreTypesRequest) QueryString(queryString string) ApiGetCertificateStoreTypesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCertificateStoreTypesRequest) PageReturned(pageReturned int32) ApiGetCertificateStoreTypesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCertificateStoreTypesRequest) ReturnLimit(returnLimit int32) ApiGetCertificateStoreTypesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCertificateStoreTypesRequest) SortField(sortField string) ApiGetCertificateStoreTypesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCertificateStoreTypesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCertificateStoreTypesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoreTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoreTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStoreTypes request context +func (r ApiGetCertificateStoreTypesRequest) Execute() ([]CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoreTypesExecute(r) +} + +/* +Creates a new V1 GET /CertificateStoreTypes request. + +GetCertificateStoreTypes Returns all certificate store types according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCertificateStoreTypesRequest +*/ +func (a *CertificateStoreTypeApiService) NewGetCertificateStoreTypesRequest(ctx context.Context) ApiGetCertificateStoreTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoreTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CertificateStoreTypes +// +// @return []CertificateStoresTypesCertificateStoreTypeResponse +func (a *CertificateStoreTypeApiService) GetCertificateStoreTypesExecute(r ApiGetCertificateStoreTypesRequest) ([]CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresTypesCertificateStoreTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStoreTypes/{id} +type ApiGetCertificateStoreTypesByIdRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoreTypesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoreTypesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoreTypesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoreTypesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStoreTypes/{id} request context +func (r ApiGetCertificateStoreTypesByIdRequest) Execute() (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoreTypesByIdExecute(r) +} + +/* +Creates a new V1 GET /CertificateStoreTypes/{id} request. + +GetCertificateStoreTypesById Returns a single certificate store type that matches id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the certificate store type + @return ApiGetCertificateStoreTypesByIdRequest +*/ +func (a *CertificateStoreTypeApiService) NewGetCertificateStoreTypesByIdRequest(ctx context.Context, id int32) ApiGetCertificateStoreTypesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoreTypesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CertificateStoreTypes/{id} +// +// @return CertificateStoresTypesCertificateStoreTypeResponse +func (a *CertificateStoreTypeApiService) GetCertificateStoreTypesByIdExecute(r ApiGetCertificateStoreTypesByIdRequest) (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresTypesCertificateStoreTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < -1 { + return localVarReturnValue, nil, reportError("id must be greater than -1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CertificateStoreTypes/Name/{name} +type ApiGetCertificateStoreTypesNameNameRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + name string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificateStoreTypesNameNameRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificateStoreTypesNameNameRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificateStoreTypesNameNameRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificateStoreTypesNameNameRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CertificateStoreTypes/Name/{name} request context +func (r ApiGetCertificateStoreTypesNameNameRequest) Execute() ([]CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + return r.ApiService.GetCertificateStoreTypesNameNameExecute(r) +} + +/* +Creates a new V1 GET /CertificateStoreTypes/Name/{name} request. + +GetCertificateStoreTypesNameName Returns a single certificate store type that matches the provided short name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name Short name of the certificate store type to return + @return ApiGetCertificateStoreTypesNameNameRequest +*/ +func (a *CertificateStoreTypeApiService) NewGetCertificateStoreTypesNameNameRequest(ctx context.Context, name string) ApiGetCertificateStoreTypesNameNameRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCertificateStoreTypesNameNameRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + name: name, + } +} + +// Executes the API request V1 GET /CertificateStoreTypes/Name/{name} +// +// @return []CertificateStoresTypesCertificateStoreTypeResponse +func (a *CertificateStoreTypeApiService) GetCertificateStoreTypesNameNameExecute(r ApiGetCertificateStoreTypesNameNameRequest) ([]CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresTypesCertificateStoreTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes/Name/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /CertificateStoreTypes +type ApiUpdateCertificateStoreTypesRequest struct { + ctx context.Context + ApiService *CertificateStoreTypeApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + certificateStoresTypesCertificateStoreTypeUpdateRequest *CertificateStoresTypesCertificateStoreTypeUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateCertificateStoreTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateCertificateStoreTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateCertificateStoreTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateCertificateStoreTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Certificate store type properties to be updated +func (r ApiUpdateCertificateStoreTypesRequest) CertificateStoresTypesCertificateStoreTypeUpdateRequest(certificateStoresTypesCertificateStoreTypeUpdateRequest CertificateStoresTypesCertificateStoreTypeUpdateRequest) ApiUpdateCertificateStoreTypesRequest { + r.certificateStoresTypesCertificateStoreTypeUpdateRequest = &certificateStoresTypesCertificateStoreTypeUpdateRequest + return r +} + +// Executes the V1 PUT /CertificateStoreTypes request context +func (r ApiUpdateCertificateStoreTypesRequest) Execute() (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + return r.ApiService.UpdateCertificateStoreTypesExecute(r) +} + +/* +Creates a new V1 PUT /CertificateStoreTypes request. + +UpdateCertificateStoreTypes Updates an existing certificate store type with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateCertificateStoreTypesRequest +*/ +func (a *CertificateStoreTypeApiService) NewUpdateCertificateStoreTypesRequest(ctx context.Context) ApiUpdateCertificateStoreTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateCertificateStoreTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /CertificateStoreTypes +// +// @return CertificateStoresTypesCertificateStoreTypeResponse +func (a *CertificateStoreTypeApiService) UpdateCertificateStoreTypesExecute(r ApiUpdateCertificateStoreTypesRequest) (*CertificateStoresTypesCertificateStoreTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateStoresTypesCertificateStoreTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CertificateStoreTypes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.certificateStoresTypesCertificateStoreTypeUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_component_installation.go b/v24/api/keyfactor/v1/api_component_installation.go new file mode 100644 index 0000000..0489eae --- /dev/null +++ b/v24/api/keyfactor/v1/api_component_installation.go @@ -0,0 +1,355 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ComponentInstallationApiService ComponentInstallationApi service +type ComponentInstallationApiService service + +// Request for V1 DELETE /ComponentInstallation/{id} +type ApiDeleteComponentInstallationByIdRequest struct { + ctx context.Context + ApiService *ComponentInstallationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteComponentInstallationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteComponentInstallationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteComponentInstallationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteComponentInstallationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /ComponentInstallation/{id} request context +func (r ApiDeleteComponentInstallationByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteComponentInstallationByIdExecute(r) +} + +/* +Creates a new V1 DELETE /ComponentInstallation/{id} request. + +DeleteComponentInstallationById Deletes the Keyfactor component installation whose ID is provided. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor component installation identifier + @return ApiDeleteComponentInstallationByIdRequest +*/ +func (a *ComponentInstallationApiService) NewDeleteComponentInstallationByIdRequest(ctx context.Context, id int32) ApiDeleteComponentInstallationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteComponentInstallationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ComponentInstallationApiService) DeleteComponentInstallationByIdExecute(r ApiDeleteComponentInstallationByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/ComponentInstallation/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /ComponentInstallation +type ApiGetComponentInstallationRequest struct { + ctx context.Context + ApiService *ComponentInstallationApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetComponentInstallationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetComponentInstallationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetComponentInstallationRequest) QueryString(queryString string) ApiGetComponentInstallationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetComponentInstallationRequest) PageReturned(pageReturned int32) ApiGetComponentInstallationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetComponentInstallationRequest) ReturnLimit(returnLimit int32) ApiGetComponentInstallationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetComponentInstallationRequest) SortField(sortField string) ApiGetComponentInstallationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetComponentInstallationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetComponentInstallationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetComponentInstallationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetComponentInstallationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /ComponentInstallation request context +func (r ApiGetComponentInstallationRequest) Execute() ([]ComponentInstallationComponentInstallationResponse, *http.Response, error) { + return r.ApiService.GetComponentInstallationExecute(r) +} + +/* +Creates a new V1 GET /ComponentInstallation request. + +GetComponentInstallation Returns all Keyfactor component installations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetComponentInstallationRequest +*/ +func (a *ComponentInstallationApiService) NewGetComponentInstallationRequest(ctx context.Context) ApiGetComponentInstallationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetComponentInstallationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /ComponentInstallation +// +// @return []ComponentInstallationComponentInstallationResponse +func (a *ComponentInstallationApiService) GetComponentInstallationExecute(r ApiGetComponentInstallationRequest) ([]ComponentInstallationComponentInstallationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ComponentInstallationComponentInstallationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/ComponentInstallation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_csr_generation.go b/v24/api/keyfactor/v1/api_csr_generation.go new file mode 100644 index 0000000..e69da03 --- /dev/null +++ b/v24/api/keyfactor/v1/api_csr_generation.go @@ -0,0 +1,789 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CSRGenerationApiService CSRGenerationApi service +type CSRGenerationApiService service + +// Request for V1 POST /CSRGeneration/Generate +type ApiCreateCSRGenerationGenerateRequest struct { + ctx context.Context + ApiService *CSRGenerationApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + enrollmentCSRGenerationRequest *EnrollmentCSRGenerationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateCSRGenerationGenerateRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateCSRGenerationGenerateRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateCSRGenerationGenerateRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateCSRGenerationGenerateRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// CSR properties used to define the request - Key type [RSA, ECC], Key sizes (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521), template short name or OID +func (r ApiCreateCSRGenerationGenerateRequest) EnrollmentCSRGenerationRequest(enrollmentCSRGenerationRequest EnrollmentCSRGenerationRequest) ApiCreateCSRGenerationGenerateRequest { + r.enrollmentCSRGenerationRequest = &enrollmentCSRGenerationRequest + return r +} + +// Executes the V1 POST /CSRGeneration/Generate request context +func (r ApiCreateCSRGenerationGenerateRequest) Execute() (*CSSCMSDataModelModelsCSRContents, *http.Response, error) { + return r.ApiService.CreateCSRGenerationGenerateExecute(r) +} + +/* +Creates a new V1 POST /CSRGeneration/Generate request. + +CreateCSRGenerationGenerate Generates a CSR according the properties provided + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCSRGenerationGenerateRequest +*/ +func (a *CSRGenerationApiService) NewCreateCSRGenerationGenerateRequest(ctx context.Context) ApiCreateCSRGenerationGenerateRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateCSRGenerationGenerateRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /CSRGeneration/Generate +// +// @return CSSCMSDataModelModelsCSRContents +func (a *CSRGenerationApiService) CreateCSRGenerationGenerateExecute(r ApiCreateCSRGenerationGenerateRequest) (*CSSCMSDataModelModelsCSRContents, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCSRContents + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CSRGeneration/Generate" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.enrollmentCSRGenerationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CSRGeneration/Pending +type ApiDeleteCSRGenerationPendingRequest struct { + ctx context.Context + ApiService *CSRGenerationApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCSRGenerationPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCSRGenerationPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCSRGenerationPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCSRGenerationPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Array of Keyfactor identifiers for the CSRs to be deleted +func (r ApiDeleteCSRGenerationPendingRequest) RequestBody(requestBody []int32) ApiDeleteCSRGenerationPendingRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /CSRGeneration/Pending request context +func (r ApiDeleteCSRGenerationPendingRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCSRGenerationPendingExecute(r) +} + +/* +Creates a new V1 DELETE /CSRGeneration/Pending request. + +DeleteCSRGenerationPending Deletes the CSRs associated with the provided identifiers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCSRGenerationPendingRequest +*/ +func (a *CSRGenerationApiService) NewDeleteCSRGenerationPendingRequest(ctx context.Context) ApiDeleteCSRGenerationPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCSRGenerationPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *CSRGenerationApiService) DeleteCSRGenerationPendingExecute(r ApiDeleteCSRGenerationPendingRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CSRGeneration/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /CSRGeneration/Pending/{id} +type ApiDeleteCSRGenerationPendingByIdRequest struct { + ctx context.Context + ApiService *CSRGenerationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteCSRGenerationPendingByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteCSRGenerationPendingByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteCSRGenerationPendingByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteCSRGenerationPendingByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /CSRGeneration/Pending/{id} request context +func (r ApiDeleteCSRGenerationPendingByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCSRGenerationPendingByIdExecute(r) +} + +/* +Creates a new V1 DELETE /CSRGeneration/Pending/{id} request. + +DeleteCSRGenerationPendingById Deletes a CSR associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the CSR to be deleted + @return ApiDeleteCSRGenerationPendingByIdRequest +*/ +func (a *CSRGenerationApiService) NewDeleteCSRGenerationPendingByIdRequest(ctx context.Context, id int32) ApiDeleteCSRGenerationPendingByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteCSRGenerationPendingByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CSRGenerationApiService) DeleteCSRGenerationPendingByIdExecute(r ApiDeleteCSRGenerationPendingByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CSRGeneration/Pending/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /CSRGeneration/Pending +type ApiGetCSRGenerationPendingRequest struct { + ctx context.Context + ApiService *CSRGenerationApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCSRGenerationPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCSRGenerationPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetCSRGenerationPendingRequest) QueryString(queryString string) ApiGetCSRGenerationPendingRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetCSRGenerationPendingRequest) PageReturned(pageReturned int32) ApiGetCSRGenerationPendingRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetCSRGenerationPendingRequest) ReturnLimit(returnLimit int32) ApiGetCSRGenerationPendingRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetCSRGenerationPendingRequest) SortField(sortField string) ApiGetCSRGenerationPendingRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetCSRGenerationPendingRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetCSRGenerationPendingRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCSRGenerationPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCSRGenerationPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CSRGeneration/Pending request context +func (r ApiGetCSRGenerationPendingRequest) Execute() ([]CSSCMSDataModelModelsPendingCSRResponse, *http.Response, error) { + return r.ApiService.GetCSRGenerationPendingExecute(r) +} + +/* +Creates a new V1 GET /CSRGeneration/Pending request. + +GetCSRGenerationPending Returns a list of the currently pending CSRs according to the provided query + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCSRGenerationPendingRequest +*/ +func (a *CSRGenerationApiService) NewGetCSRGenerationPendingRequest(ctx context.Context) ApiGetCSRGenerationPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCSRGenerationPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /CSRGeneration/Pending +// +// @return []CSSCMSDataModelModelsPendingCSRResponse +func (a *CSRGenerationApiService) GetCSRGenerationPendingExecute(r ApiGetCSRGenerationPendingRequest) ([]CSSCMSDataModelModelsPendingCSRResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsPendingCSRResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CSRGeneration/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /CSRGeneration/Pending/{id} +type ApiGetCSRGenerationPendingByIdRequest struct { + ctx context.Context + ApiService *CSRGenerationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCSRGenerationPendingByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCSRGenerationPendingByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCSRGenerationPendingByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCSRGenerationPendingByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /CSRGeneration/Pending/{id} request context +func (r ApiGetCSRGenerationPendingByIdRequest) Execute() (*CSSCMSDataModelModelsCSRGenerationResponseModel, *http.Response, error) { + return r.ApiService.GetCSRGenerationPendingByIdExecute(r) +} + +/* +Creates a new V1 GET /CSRGeneration/Pending/{id} request. + +GetCSRGenerationPendingById Returns a previously generated CSR associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the CSR + @return ApiGetCSRGenerationPendingByIdRequest +*/ +func (a *CSRGenerationApiService) NewGetCSRGenerationPendingByIdRequest(ctx context.Context, id int32) ApiGetCSRGenerationPendingByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetCSRGenerationPendingByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /CSRGeneration/Pending/{id} +// +// @return CSSCMSDataModelModelsCSRGenerationResponseModel +func (a *CSRGenerationApiService) GetCSRGenerationPendingByIdExecute(r ApiGetCSRGenerationPendingByIdRequest) (*CSSCMSDataModelModelsCSRGenerationResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsCSRGenerationResponseModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/CSRGeneration/Pending/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_custom_job_type.go b/v24/api/keyfactor/v1/api_custom_job_type.go new file mode 100644 index 0000000..5146c48 --- /dev/null +++ b/v24/api/keyfactor/v1/api_custom_job_type.go @@ -0,0 +1,789 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CustomJobTypeApiService CustomJobTypeApi service +type CustomJobTypeApiService service + +// Request for V1 POST /JobTypes/Custom +type ApiCreateJobTypesCustomRequest struct { + ctx context.Context + ApiService *CustomJobTypeApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateJobTypesCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateJobTypesCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateJobTypesCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateJobTypesCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// job type properties to be applied to the new job type +func (r ApiCreateJobTypesCustomRequest) CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) ApiCreateJobTypesCustomRequest { + r.cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest = &cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest + return r +} + +// Executes the V1 POST /JobTypes/Custom request context +func (r ApiCreateJobTypesCustomRequest) Execute() (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + return r.ApiService.CreateJobTypesCustomExecute(r) +} + +/* +Creates a new V1 POST /JobTypes/Custom request. + +CreateJobTypesCustom Creates a custom job type with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateJobTypesCustomRequest +*/ +func (a *CustomJobTypeApiService) NewCreateJobTypesCustomRequest(ctx context.Context) ApiCreateJobTypesCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateJobTypesCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /JobTypes/Custom +// +// @return OrchestratorJobsJobTypeResponse +func (a *CustomJobTypeApiService) CreateJobTypesCustomExecute(r ApiCreateJobTypesCustomRequest) (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsJobTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/JobTypes/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /JobTypes/Custom/{id} +type ApiDeleteJobTypesCustomByIdRequest struct { + ctx context.Context + ApiService *CustomJobTypeApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteJobTypesCustomByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteJobTypesCustomByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteJobTypesCustomByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteJobTypesCustomByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /JobTypes/Custom/{id} request context +func (r ApiDeleteJobTypesCustomByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteJobTypesCustomByIdExecute(r) +} + +/* +Creates a new V1 DELETE /JobTypes/Custom/{id} request. + +DeleteJobTypesCustomById Deletes the custom job type associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier (GUID) of the job type + @return ApiDeleteJobTypesCustomByIdRequest +*/ +func (a *CustomJobTypeApiService) NewDeleteJobTypesCustomByIdRequest(ctx context.Context, id string) ApiDeleteJobTypesCustomByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteJobTypesCustomByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *CustomJobTypeApiService) DeleteJobTypesCustomByIdExecute(r ApiDeleteJobTypesCustomByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/JobTypes/Custom/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /JobTypes/Custom +type ApiGetJobTypesCustomRequest struct { + ctx context.Context + ApiService *CustomJobTypeApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetJobTypesCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetJobTypesCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetJobTypesCustomRequest) QueryString(queryString string) ApiGetJobTypesCustomRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetJobTypesCustomRequest) PageReturned(pageReturned int32) ApiGetJobTypesCustomRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetJobTypesCustomRequest) ReturnLimit(returnLimit int32) ApiGetJobTypesCustomRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetJobTypesCustomRequest) SortField(sortField string) ApiGetJobTypesCustomRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetJobTypesCustomRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetJobTypesCustomRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetJobTypesCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetJobTypesCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /JobTypes/Custom request context +func (r ApiGetJobTypesCustomRequest) Execute() ([]OrchestratorJobsJobTypeResponse, *http.Response, error) { + return r.ApiService.GetJobTypesCustomExecute(r) +} + +/* +Creates a new V1 GET /JobTypes/Custom request. + +GetJobTypesCustom Returns all custom job types according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetJobTypesCustomRequest +*/ +func (a *CustomJobTypeApiService) NewGetJobTypesCustomRequest(ctx context.Context) ApiGetJobTypesCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetJobTypesCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /JobTypes/Custom +// +// @return []OrchestratorJobsJobTypeResponse +func (a *CustomJobTypeApiService) GetJobTypesCustomExecute(r ApiGetJobTypesCustomRequest) ([]OrchestratorJobsJobTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrchestratorJobsJobTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/JobTypes/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /JobTypes/Custom/{id} +type ApiGetJobTypesCustomByIdRequest struct { + ctx context.Context + ApiService *CustomJobTypeApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetJobTypesCustomByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetJobTypesCustomByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetJobTypesCustomByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetJobTypesCustomByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /JobTypes/Custom/{id} request context +func (r ApiGetJobTypesCustomByIdRequest) Execute() (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + return r.ApiService.GetJobTypesCustomByIdExecute(r) +} + +/* +Creates a new V1 GET /JobTypes/Custom/{id} request. + +GetJobTypesCustomById Returns a single custom job type associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor (GUID) identifier of the job type + @return ApiGetJobTypesCustomByIdRequest +*/ +func (a *CustomJobTypeApiService) NewGetJobTypesCustomByIdRequest(ctx context.Context, id string) ApiGetJobTypesCustomByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetJobTypesCustomByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /JobTypes/Custom/{id} +// +// @return OrchestratorJobsJobTypeResponse +func (a *CustomJobTypeApiService) GetJobTypesCustomByIdExecute(r ApiGetJobTypesCustomByIdRequest) (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsJobTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/JobTypes/Custom/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /JobTypes/Custom +type ApiUpdateJobTypesCustomRequest struct { + ctx context.Context + ApiService *CustomJobTypeApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateJobTypesCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateJobTypesCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateJobTypesCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateJobTypesCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// job type properties to be applied to the existing job type +func (r ApiUpdateJobTypesCustomRequest) CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) ApiUpdateJobTypesCustomRequest { + r.cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest = &cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest + return r +} + +// Executes the V1 PUT /JobTypes/Custom request context +func (r ApiUpdateJobTypesCustomRequest) Execute() (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + return r.ApiService.UpdateJobTypesCustomExecute(r) +} + +/* +Creates a new V1 PUT /JobTypes/Custom request. + +UpdateJobTypesCustom Updates an existing custom job type with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateJobTypesCustomRequest +*/ +func (a *CustomJobTypeApiService) NewUpdateJobTypesCustomRequest(ctx context.Context) ApiUpdateJobTypesCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateJobTypesCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /JobTypes/Custom +// +// @return OrchestratorJobsJobTypeResponse +func (a *CustomJobTypeApiService) UpdateJobTypesCustomExecute(r ApiUpdateJobTypesCustomRequest) (*OrchestratorJobsJobTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsJobTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/JobTypes/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_denied_alert.go b/v24/api/keyfactor/v1/api_denied_alert.go new file mode 100644 index 0000000..8ec83a1 --- /dev/null +++ b/v24/api/keyfactor/v1/api_denied_alert.go @@ -0,0 +1,789 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// DeniedAlertApiService DeniedAlertApi service +type DeniedAlertApiService service + +// Request for V1 POST /Alerts/Denied +type ApiCreateAlertsDeniedRequest struct { + ctx context.Context + ApiService *DeniedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsDeniedDeniedAlertCreationRequest *AlertsDeniedDeniedAlertCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsDeniedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsDeniedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsDeniedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsDeniedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new alert +func (r ApiCreateAlertsDeniedRequest) AlertsDeniedDeniedAlertCreationRequest(alertsDeniedDeniedAlertCreationRequest AlertsDeniedDeniedAlertCreationRequest) ApiCreateAlertsDeniedRequest { + r.alertsDeniedDeniedAlertCreationRequest = &alertsDeniedDeniedAlertCreationRequest + return r +} + +// Executes the V1 POST /Alerts/Denied request context +func (r ApiCreateAlertsDeniedRequest) Execute() (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateAlertsDeniedExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Denied request. + +CreateAlertsDenied Add a denied alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsDeniedRequest +*/ +func (a *DeniedAlertApiService) NewCreateAlertsDeniedRequest(ctx context.Context) ApiCreateAlertsDeniedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsDeniedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Denied +// +// @return AlertsDeniedDeniedAlertDefinitionResponse +func (a *DeniedAlertApiService) CreateAlertsDeniedExecute(r ApiCreateAlertsDeniedRequest) (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsDeniedDeniedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Denied" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsDeniedDeniedAlertCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Alerts/Denied/{id} +type ApiDeleteAlertsDeniedByIdRequest struct { + ctx context.Context + ApiService *DeniedAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAlertsDeniedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAlertsDeniedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAlertsDeniedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAlertsDeniedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Alerts/Denied/{id} request context +func (r ApiDeleteAlertsDeniedByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAlertsDeniedByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Alerts/Denied/{id} request. + +DeleteAlertsDeniedById Delete a denied alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the denied alert + @return ApiDeleteAlertsDeniedByIdRequest +*/ +func (a *DeniedAlertApiService) NewDeleteAlertsDeniedByIdRequest(ctx context.Context, id int32) ApiDeleteAlertsDeniedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAlertsDeniedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *DeniedAlertApiService) DeleteAlertsDeniedByIdExecute(r ApiDeleteAlertsDeniedByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Denied/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Denied +type ApiGetAlertsDeniedRequest struct { + ctx context.Context + ApiService *DeniedAlertApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsDeniedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsDeniedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAlertsDeniedRequest) QueryString(queryString string) ApiGetAlertsDeniedRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAlertsDeniedRequest) PageReturned(pageReturned int32) ApiGetAlertsDeniedRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAlertsDeniedRequest) ReturnLimit(returnLimit int32) ApiGetAlertsDeniedRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAlertsDeniedRequest) SortField(sortField string) ApiGetAlertsDeniedRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAlertsDeniedRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAlertsDeniedRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsDeniedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsDeniedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Denied request context +func (r ApiGetAlertsDeniedRequest) Execute() ([]AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsDeniedExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Denied request. + +GetAlertsDenied Gets all denied alerts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsDeniedRequest +*/ +func (a *DeniedAlertApiService) NewGetAlertsDeniedRequest(ctx context.Context) ApiGetAlertsDeniedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsDeniedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Denied +// +// @return []AlertsDeniedDeniedAlertDefinitionResponse +func (a *DeniedAlertApiService) GetAlertsDeniedExecute(r ApiGetAlertsDeniedRequest) ([]AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlertsDeniedDeniedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Denied" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Denied/{id} +type ApiGetAlertsDeniedByIdRequest struct { + ctx context.Context + ApiService *DeniedAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsDeniedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsDeniedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsDeniedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsDeniedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Denied/{id} request context +func (r ApiGetAlertsDeniedByIdRequest) Execute() (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsDeniedByIdExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Denied/{id} request. + +GetAlertsDeniedById Get a denied alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the denied alert to get + @return ApiGetAlertsDeniedByIdRequest +*/ +func (a *DeniedAlertApiService) NewGetAlertsDeniedByIdRequest(ctx context.Context, id int32) ApiGetAlertsDeniedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsDeniedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Alerts/Denied/{id} +// +// @return AlertsDeniedDeniedAlertDefinitionResponse +func (a *DeniedAlertApiService) GetAlertsDeniedByIdExecute(r ApiGetAlertsDeniedByIdRequest) (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsDeniedDeniedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Denied/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Denied +type ApiUpdateAlertsDeniedRequest struct { + ctx context.Context + ApiService *DeniedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsDeniedDeniedAlertUpdateRequest *AlertsDeniedDeniedAlertUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsDeniedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsDeniedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsDeniedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsDeniedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the denied alert +func (r ApiUpdateAlertsDeniedRequest) AlertsDeniedDeniedAlertUpdateRequest(alertsDeniedDeniedAlertUpdateRequest AlertsDeniedDeniedAlertUpdateRequest) ApiUpdateAlertsDeniedRequest { + r.alertsDeniedDeniedAlertUpdateRequest = &alertsDeniedDeniedAlertUpdateRequest + return r +} + +// Executes the V1 PUT /Alerts/Denied request context +func (r ApiUpdateAlertsDeniedRequest) Execute() (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsDeniedExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Denied request. + +UpdateAlertsDenied Edit a denied alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsDeniedRequest +*/ +func (a *DeniedAlertApiService) NewUpdateAlertsDeniedRequest(ctx context.Context) ApiUpdateAlertsDeniedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsDeniedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Denied +// +// @return AlertsDeniedDeniedAlertDefinitionResponse +func (a *DeniedAlertApiService) UpdateAlertsDeniedExecute(r ApiUpdateAlertsDeniedRequest) (*AlertsDeniedDeniedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsDeniedDeniedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Denied" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsDeniedDeniedAlertUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_enrollment.go b/v24/api/keyfactor/v1/api_enrollment.go new file mode 100644 index 0000000..a45e406 --- /dev/null +++ b/v24/api/keyfactor/v1/api_enrollment.go @@ -0,0 +1,1750 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// EnrollmentApiService EnrollmentApi service +type EnrollmentApiService service + +// Request for V1 POST /Enrollment/CSR +type ApiCreateEnrollmentCSRRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xCertificateformat *string + forceEnroll *bool + xKeyfactorApiVersion *string + enrollmentCSREnrollmentRequest *EnrollmentCSREnrollmentRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentCSRRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentCSRRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired format [PEM, DER] +func (r ApiCreateEnrollmentCSRRequest) XCertificateformat(xCertificateformat string) ApiCreateEnrollmentCSRRequest { + r.xCertificateformat = &xCertificateformat + return r +} + +func (r ApiCreateEnrollmentCSRRequest) ForceEnroll(forceEnroll bool) ApiCreateEnrollmentCSRRequest { + r.forceEnroll = &forceEnroll + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentCSRRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentCSRRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information needed to perform the CSR Enrollment +func (r ApiCreateEnrollmentCSRRequest) EnrollmentCSREnrollmentRequest(enrollmentCSREnrollmentRequest EnrollmentCSREnrollmentRequest) ApiCreateEnrollmentCSRRequest { + r.enrollmentCSREnrollmentRequest = &enrollmentCSREnrollmentRequest + return r +} + +// Executes the V1 POST /Enrollment/CSR request context +func (r ApiCreateEnrollmentCSRRequest) Execute() (*CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentCSRExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/CSR request. + +# CreateEnrollmentCSR Performs a CSR Enrollment based upon the provided request + +### Subject Alternative Name Flags ### +| Value | Description | +|--------------------|---------------------------| +| other | OtherName | +| rfc822 | RFC822Name | +| dns | DNSName | +| x400 | X400Address | +| directory | DirectoryName | +| ediparty | EdipartyName | +| uri | UniformResourceIdentifier | +| ip | IPAddress | +| ip4 | IPv4Address | +| ip6 | IPv6Address | +| registeredid | RegisteredId | +| ms_ntprincipalname | MS_NTPrincipalName | +| ms_ntdsreplication | MS_NTDSReplication | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentCSRRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentCSRRequest(ctx context.Context) ApiCreateEnrollmentCSRRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentCSRRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/CSR +// +// @return CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse +func (a *EnrollmentApiService) CreateEnrollmentCSRExecute(r ApiCreateEnrollmentCSRRequest) (*CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/CSR" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.xCertificateformat == nil { + return localVarReturnValue, nil, reportError("xCertificateformat is required and must be specified") + } + + if r.forceEnroll != nil { + parameterAddToQuery(localVarQueryParams, "forceEnroll", r.forceEnroll, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + parameterAddToQuery(localVarHeaderParams, "x-certificateformat", r.xCertificateformat, "") + // body params + localVarPostBody = r.enrollmentCSREnrollmentRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Enrollment/CSR/Parse +type ApiCreateEnrollmentCSRParseRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCSRContents *CSSCMSDataModelModelsCSRContents +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentCSRParseRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentCSRParseRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentCSRParseRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentCSRParseRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// CSR to be parsed +func (r ApiCreateEnrollmentCSRParseRequest) CSSCMSDataModelModelsCSRContents(cSSCMSDataModelModelsCSRContents CSSCMSDataModelModelsCSRContents) ApiCreateEnrollmentCSRParseRequest { + r.cSSCMSDataModelModelsCSRContents = &cSSCMSDataModelModelsCSRContents + return r +} + +// Executes the V1 POST /Enrollment/CSR/Parse request context +func (r ApiCreateEnrollmentCSRParseRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.CreateEnrollmentCSRParseExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/CSR/Parse request. + +# CreateEnrollmentCSRParse Parses the provided CSR and returns the properties + +This functionality is equivalent to the result of pasting a CSR into the field within the Management Portal CSR Enrollment page. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentCSRParseRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentCSRParseRequest(ctx context.Context) ApiCreateEnrollmentCSRParseRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentCSRParseRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/CSR/Parse +// +// @return []string +func (a *EnrollmentApiService) CreateEnrollmentCSRParseExecute(r ApiCreateEnrollmentCSRParseRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/CSR/Parse" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCSRContents + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Enrollment/PFX +type ApiCreateEnrollmentPFXRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xCertificateformat *string + xKeyfactorApiVersion *string + enrollmentPFXEnrollmentRequest *EnrollmentPFXEnrollmentRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentPFXRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentPFXRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] +func (r ApiCreateEnrollmentPFXRequest) XCertificateformat(xCertificateformat string) ApiCreateEnrollmentPFXRequest { + r.xCertificateformat = &xCertificateformat + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentPFXRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentPFXRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The information needed to perform the PFX Enrollment +func (r ApiCreateEnrollmentPFXRequest) EnrollmentPFXEnrollmentRequest(enrollmentPFXEnrollmentRequest EnrollmentPFXEnrollmentRequest) ApiCreateEnrollmentPFXRequest { + r.enrollmentPFXEnrollmentRequest = &enrollmentPFXEnrollmentRequest + return r +} + +// Executes the V1 POST /Enrollment/PFX request context +func (r ApiCreateEnrollmentPFXRequest) Execute() (*CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentPFXExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/PFX request. + +# CreateEnrollmentPFX Performs a PFX Enrollment based upon the provided request + +### IMPORTANT: +- The 'RenewalCertificateId' field in the request should be set to null if the certificate is not being renewed as part of the enrollment. A value of 0 will produce an error. + +### Subject Alternative Name Flags ### +| Value | Description | +|--------------------|---------------------------| +| other | OtherName | +| rfc822 | RFC822Name | +| dns | DNSName | +| x400 | X400Address | +| directory | DirectoryName | +| ediparty | EdipartyName | +| uri | UniformResourceIdentifier | +| ip | IPAddress | +| ip4 | IPv4Address | +| ip6 | IPv6Address | +| registeredid | RegisteredId | +| ms_ntprincipalname | MS_NTPrincipalName | +| ms_ntdsreplication | MS_NTDSReplication | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentPFXRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentPFXRequest(ctx context.Context) ApiCreateEnrollmentPFXRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentPFXRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/PFX +// +// @return CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse +func (a *EnrollmentApiService) CreateEnrollmentPFXExecute(r ApiCreateEnrollmentPFXRequest) (*CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/PFX" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.xCertificateformat == nil { + return localVarReturnValue, nil, reportError("xCertificateformat is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + parameterAddToQuery(localVarHeaderParams, "x-certificateformat", r.xCertificateformat, "") + // body params + localVarPostBody = r.enrollmentPFXEnrollmentRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Enrollment/PFX/Deploy +type ApiCreateEnrollmentPFXDeployRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + enrollmentEnrollmentManagementRequest *EnrollmentEnrollmentManagementRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentPFXDeployRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentPFXDeployRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentPFXDeployRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentPFXDeployRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to +func (r ApiCreateEnrollmentPFXDeployRequest) EnrollmentEnrollmentManagementRequest(enrollmentEnrollmentManagementRequest EnrollmentEnrollmentManagementRequest) ApiCreateEnrollmentPFXDeployRequest { + r.enrollmentEnrollmentManagementRequest = &enrollmentEnrollmentManagementRequest + return r +} + +// Executes the V1 POST /Enrollment/PFX/Deploy request context +func (r ApiCreateEnrollmentPFXDeployRequest) Execute() (*EnrollmentEnrollmentManagementResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentPFXDeployExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/PFX/Deploy request. + +CreateEnrollmentPFXDeploy Creates management jobs to install a newly enrolled pfx in to one or more certificate stores + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentPFXDeployRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentPFXDeployRequest(ctx context.Context) ApiCreateEnrollmentPFXDeployRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentPFXDeployRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/PFX/Deploy +// +// @return EnrollmentEnrollmentManagementResponse +func (a *EnrollmentApiService) CreateEnrollmentPFXDeployExecute(r ApiCreateEnrollmentPFXDeployRequest) (*EnrollmentEnrollmentManagementResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnrollmentEnrollmentManagementResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/PFX/Deploy" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.enrollmentEnrollmentManagementRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Enrollment/PFX/Replace +type ApiCreateEnrollmentPFXReplaceRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentPFXReplaceRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentPFXReplaceRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentPFXReplaceRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentPFXReplaceRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate +func (r ApiCreateEnrollmentPFXReplaceRequest) CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) ApiCreateEnrollmentPFXReplaceRequest { + r.cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest = &cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest + return r +} + +// Executes the V1 POST /Enrollment/PFX/Replace request context +func (r ApiCreateEnrollmentPFXReplaceRequest) Execute() (*EnrollmentEnrollmentManagementResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentPFXReplaceExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/PFX/Replace request. + +CreateEnrollmentPFXReplace Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentPFXReplaceRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentPFXReplaceRequest(ctx context.Context) ApiCreateEnrollmentPFXReplaceRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentPFXReplaceRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/PFX/Replace +// +// @return EnrollmentEnrollmentManagementResponse +func (a *EnrollmentApiService) CreateEnrollmentPFXReplaceExecute(r ApiCreateEnrollmentPFXReplaceRequest) (*EnrollmentEnrollmentManagementResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnrollmentEnrollmentManagementResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/PFX/Replace" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Enrollment/Renew +type ApiCreateEnrollmentRenewRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string + cSSCMSDataModelModelsEnrollmentRenewalRequest *CSSCMSDataModelModelsEnrollmentRenewalRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentRenewRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentRenewRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The collection id for the given certificate +func (r ApiCreateEnrollmentRenewRequest) CollectionId(collectionId int32) ApiCreateEnrollmentRenewRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentRenewRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentRenewRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The information needed to perform the renewal +func (r ApiCreateEnrollmentRenewRequest) CSSCMSDataModelModelsEnrollmentRenewalRequest(cSSCMSDataModelModelsEnrollmentRenewalRequest CSSCMSDataModelModelsEnrollmentRenewalRequest) ApiCreateEnrollmentRenewRequest { + r.cSSCMSDataModelModelsEnrollmentRenewalRequest = &cSSCMSDataModelModelsEnrollmentRenewalRequest + return r +} + +// Executes the V1 POST /Enrollment/Renew request context +func (r ApiCreateEnrollmentRenewRequest) Execute() (*EnrollmentRenewalApiResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentRenewExecute(r) +} + +/* +Creates a new V1 POST /Enrollment/Renew request. + +CreateEnrollmentRenew Performs a renewal based upon the passed in request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentRenewRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentRenewRequest(ctx context.Context) ApiCreateEnrollmentRenewRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEnrollmentRenewRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Enrollment/Renew +// +// @return EnrollmentRenewalApiResponse +func (a *EnrollmentApiService) CreateEnrollmentRenewExecute(r ApiCreateEnrollmentRenewRequest) (*EnrollmentRenewalApiResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnrollmentRenewalApiResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/Renew" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsEnrollmentRenewalRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Enrollment/AvailableRenewal/Id/{id} +type ApiGetEnrollmentAvailableRenewalIdByIdRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEnrollmentAvailableRenewalIdByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEnrollmentAvailableRenewalIdByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The collection id for the given certificate +func (r ApiGetEnrollmentAvailableRenewalIdByIdRequest) CollectionId(collectionId int32) ApiGetEnrollmentAvailableRenewalIdByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEnrollmentAvailableRenewalIdByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEnrollmentAvailableRenewalIdByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Enrollment/AvailableRenewal/Id/{id} request context +func (r ApiGetEnrollmentAvailableRenewalIdByIdRequest) Execute() (*CSSCMSDataModelModelsEnrollmentAvailableRenewal, *http.Response, error) { + return r.ApiService.GetEnrollmentAvailableRenewalIdByIdExecute(r) +} + +/* +Creates a new V1 GET /Enrollment/AvailableRenewal/Id/{id} request. + +GetEnrollmentAvailableRenewalIdById Returns the type of renewal available for a given certificate. + +### Available Renewal Types ### +| Value | Description | +|--------------------|---------------------------| +| 0 | None | +| 1 | Seeded PFX | +| 2 | One-click | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Keyfactor certificate Id + @return ApiGetEnrollmentAvailableRenewalIdByIdRequest +*/ +func (a *EnrollmentApiService) NewGetEnrollmentAvailableRenewalIdByIdRequest(ctx context.Context, id int32) ApiGetEnrollmentAvailableRenewalIdByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEnrollmentAvailableRenewalIdByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Enrollment/AvailableRenewal/Id/{id} +// +// @return CSSCMSDataModelModelsEnrollmentAvailableRenewal +func (a *EnrollmentApiService) GetEnrollmentAvailableRenewalIdByIdExecute(r ApiGetEnrollmentAvailableRenewalIdByIdRequest) (*CSSCMSDataModelModelsEnrollmentAvailableRenewal, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsEnrollmentAvailableRenewal + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/AvailableRenewal/Id/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} +type ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + thumbprint string + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The collection id for the given certificate +func (r ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest) CollectionId(collectionId int32) ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} request context +func (r ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest) Execute() (*CSSCMSDataModelModelsEnrollmentAvailableRenewal, *http.Response, error) { + return r.ApiService.GetEnrollmentAvailableRenewalThumbprintThumbprintExecute(r) +} + +/* +Creates a new V1 GET /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} request. + +GetEnrollmentAvailableRenewalThumbprintThumbprint Returns the type of renewal available for a given certificate. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param thumbprint The certificate thumbprint + @return ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest +*/ +func (a *EnrollmentApiService) NewGetEnrollmentAvailableRenewalThumbprintThumbprintRequest(ctx context.Context, thumbprint string) ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + thumbprint: thumbprint, + } +} + +// Executes the API request V1 GET /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} +// +// @return CSSCMSDataModelModelsEnrollmentAvailableRenewal +func (a *EnrollmentApiService) GetEnrollmentAvailableRenewalThumbprintThumbprintExecute(r ApiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest) (*CSSCMSDataModelModelsEnrollmentAvailableRenewal, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsEnrollmentAvailableRenewal + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/AvailableRenewal/Thumbprint/{thumbprint}" + localVarPath = strings.Replace(localVarPath, "{"+"thumbprint"+"}", url.PathEscape(parameterValueToString(r.thumbprint, "thumbprint")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Enrollment/CSR/Context/My +type ApiGetEnrollmentCSRContextMyRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEnrollmentCSRContextMyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEnrollmentCSRContextMyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEnrollmentCSRContextMyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEnrollmentCSRContextMyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Enrollment/CSR/Context/My request context +func (r ApiGetEnrollmentCSRContextMyRequest) Execute() (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse, *http.Response, error) { + return r.ApiService.GetEnrollmentCSRContextMyExecute(r) +} + +/* +Creates a new V1 GET /Enrollment/CSR/Context/My request. + +GetEnrollmentCSRContextMy Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEnrollmentCSRContextMyRequest +*/ +func (a *EnrollmentApiService) NewGetEnrollmentCSRContextMyRequest(ctx context.Context) ApiGetEnrollmentCSRContextMyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEnrollmentCSRContextMyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Enrollment/CSR/Context/My +// +// @return KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse +func (a *EnrollmentApiService) GetEnrollmentCSRContextMyExecute(r ApiGetEnrollmentCSRContextMyRequest) (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/CSR/Context/My" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Enrollment/PFX/Context/My +type ApiGetEnrollmentPFXContextMyRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEnrollmentPFXContextMyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEnrollmentPFXContextMyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEnrollmentPFXContextMyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEnrollmentPFXContextMyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Enrollment/PFX/Context/My request context +func (r ApiGetEnrollmentPFXContextMyRequest) Execute() (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse, *http.Response, error) { + return r.ApiService.GetEnrollmentPFXContextMyExecute(r) +} + +/* +Creates a new V1 GET /Enrollment/PFX/Context/My request. + +GetEnrollmentPFXContextMy Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEnrollmentPFXContextMyRequest +*/ +func (a *EnrollmentApiService) NewGetEnrollmentPFXContextMyRequest(ctx context.Context) ApiGetEnrollmentPFXContextMyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEnrollmentPFXContextMyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Enrollment/PFX/Context/My +// +// @return KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse +func (a *EnrollmentApiService) GetEnrollmentPFXContextMyExecute(r ApiGetEnrollmentPFXContextMyRequest) (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/PFX/Context/My" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Enrollment/Settings/{id} +type ApiGetEnrollmentSettingsByIdRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEnrollmentSettingsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEnrollmentSettingsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEnrollmentSettingsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEnrollmentSettingsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Enrollment/Settings/{id} request context +func (r ApiGetEnrollmentSettingsByIdRequest) Execute() (*TemplatesEnrollmentTemplateEnrollmentSettingsResponse, *http.Response, error) { + return r.ApiService.GetEnrollmentSettingsByIdExecute(r) +} + +/* +Creates a new V1 GET /Enrollment/Settings/{id} request. + +GetEnrollmentSettingsById Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetEnrollmentSettingsByIdRequest +*/ +func (a *EnrollmentApiService) NewGetEnrollmentSettingsByIdRequest(ctx context.Context, id int32) ApiGetEnrollmentSettingsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEnrollmentSettingsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Enrollment/Settings/{id} +// +// @return TemplatesEnrollmentTemplateEnrollmentSettingsResponse +func (a *EnrollmentApiService) GetEnrollmentSettingsByIdExecute(r ApiGetEnrollmentSettingsByIdRequest) (*TemplatesEnrollmentTemplateEnrollmentSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TemplatesEnrollmentTemplateEnrollmentSettingsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/Settings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_event_handler_registration.go b/v24/api/keyfactor/v1/api_event_handler_registration.go new file mode 100644 index 0000000..a8c7dc5 --- /dev/null +++ b/v24/api/keyfactor/v1/api_event_handler_registration.go @@ -0,0 +1,794 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// EventHandlerRegistrationApiService EventHandlerRegistrationApi service +type EventHandlerRegistrationApiService service + +// Request for V1 POST /EventHandlerRegistration +type ApiCreateEventHandlerRegistrationRequest struct { + ctx context.Context + ApiService *EventHandlerRegistrationApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + eventHandlerRegistrationEventHandlerRegistrationCreateRequest *EventHandlerRegistrationEventHandlerRegistrationCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEventHandlerRegistrationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEventHandlerRegistrationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEventHandlerRegistrationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEventHandlerRegistrationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The assembly name of the event handler to register. The handler file must be in the configured extensions directory on the machine running the management portal. +func (r ApiCreateEventHandlerRegistrationRequest) EventHandlerRegistrationEventHandlerRegistrationCreateRequest(eventHandlerRegistrationEventHandlerRegistrationCreateRequest EventHandlerRegistrationEventHandlerRegistrationCreateRequest) ApiCreateEventHandlerRegistrationRequest { + r.eventHandlerRegistrationEventHandlerRegistrationCreateRequest = &eventHandlerRegistrationEventHandlerRegistrationCreateRequest + return r +} + +// Executes the V1 POST /EventHandlerRegistration request context +func (r ApiCreateEventHandlerRegistrationRequest) Execute() ([]EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + return r.ApiService.CreateEventHandlerRegistrationExecute(r) +} + +/* +Creates a new V1 POST /EventHandlerRegistration request. + +CreateEventHandlerRegistration Registers an event handler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEventHandlerRegistrationRequest +*/ +func (a *EventHandlerRegistrationApiService) NewCreateEventHandlerRegistrationRequest(ctx context.Context) ApiCreateEventHandlerRegistrationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateEventHandlerRegistrationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /EventHandlerRegistration +// +// @return []EventHandlerRegistrationEventHandlerRegistrationResponse +func (a *EventHandlerRegistrationApiService) CreateEventHandlerRegistrationExecute(r ApiCreateEventHandlerRegistrationRequest) ([]EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventHandlerRegistrationEventHandlerRegistrationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/EventHandlerRegistration" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.eventHandlerRegistrationEventHandlerRegistrationCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /EventHandlerRegistration/{id} +type ApiDeleteEventHandlerRegistrationByIdRequest struct { + ctx context.Context + ApiService *EventHandlerRegistrationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteEventHandlerRegistrationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteEventHandlerRegistrationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteEventHandlerRegistrationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteEventHandlerRegistrationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /EventHandlerRegistration/{id} request context +func (r ApiDeleteEventHandlerRegistrationByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteEventHandlerRegistrationByIdExecute(r) +} + +/* +Creates a new V1 DELETE /EventHandlerRegistration/{id} request. + +DeleteEventHandlerRegistrationById Deletes an event handler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the event handler + @return ApiDeleteEventHandlerRegistrationByIdRequest +*/ +func (a *EventHandlerRegistrationApiService) NewDeleteEventHandlerRegistrationByIdRequest(ctx context.Context, id int32) ApiDeleteEventHandlerRegistrationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteEventHandlerRegistrationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *EventHandlerRegistrationApiService) DeleteEventHandlerRegistrationByIdExecute(r ApiDeleteEventHandlerRegistrationByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/EventHandlerRegistration/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /EventHandlerRegistration +type ApiGetEventHandlerRegistrationRequest struct { + ctx context.Context + ApiService *EventHandlerRegistrationApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEventHandlerRegistrationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEventHandlerRegistrationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetEventHandlerRegistrationRequest) QueryString(queryString string) ApiGetEventHandlerRegistrationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetEventHandlerRegistrationRequest) PageReturned(pageReturned int32) ApiGetEventHandlerRegistrationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetEventHandlerRegistrationRequest) ReturnLimit(returnLimit int32) ApiGetEventHandlerRegistrationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetEventHandlerRegistrationRequest) SortField(sortField string) ApiGetEventHandlerRegistrationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetEventHandlerRegistrationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetEventHandlerRegistrationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEventHandlerRegistrationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEventHandlerRegistrationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /EventHandlerRegistration request context +func (r ApiGetEventHandlerRegistrationRequest) Execute() ([]EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + return r.ApiService.GetEventHandlerRegistrationExecute(r) +} + +/* +Creates a new V1 GET /EventHandlerRegistration request. + +GetEventHandlerRegistration Returns all registered event handlers according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventHandlerRegistrationRequest +*/ +func (a *EventHandlerRegistrationApiService) NewGetEventHandlerRegistrationRequest(ctx context.Context) ApiGetEventHandlerRegistrationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEventHandlerRegistrationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /EventHandlerRegistration +// +// @return []EventHandlerRegistrationEventHandlerRegistrationResponse +func (a *EventHandlerRegistrationApiService) GetEventHandlerRegistrationExecute(r ApiGetEventHandlerRegistrationRequest) ([]EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventHandlerRegistrationEventHandlerRegistrationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/EventHandlerRegistration" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /EventHandlerRegistration/{id} +type ApiGetEventHandlerRegistrationByIdRequest struct { + ctx context.Context + ApiService *EventHandlerRegistrationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetEventHandlerRegistrationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetEventHandlerRegistrationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetEventHandlerRegistrationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetEventHandlerRegistrationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /EventHandlerRegistration/{id} request context +func (r ApiGetEventHandlerRegistrationByIdRequest) Execute() (*EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + return r.ApiService.GetEventHandlerRegistrationByIdExecute(r) +} + +/* +Creates a new V1 GET /EventHandlerRegistration/{id} request. + +GetEventHandlerRegistrationById Returns a registered event handler that matches the provided ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the event handler + @return ApiGetEventHandlerRegistrationByIdRequest +*/ +func (a *EventHandlerRegistrationApiService) NewGetEventHandlerRegistrationByIdRequest(ctx context.Context, id int32) ApiGetEventHandlerRegistrationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetEventHandlerRegistrationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /EventHandlerRegistration/{id} +// +// @return EventHandlerRegistrationEventHandlerRegistrationResponse +func (a *EventHandlerRegistrationApiService) GetEventHandlerRegistrationByIdExecute(r ApiGetEventHandlerRegistrationByIdRequest) (*EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventHandlerRegistrationEventHandlerRegistrationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/EventHandlerRegistration/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /EventHandlerRegistration/{id} +type ApiUpdateEventHandlerRegistrationByIdRequest struct { + ctx context.Context + ApiService *EventHandlerRegistrationApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + eventHandlerRegistrationEventHandlerRegistrationUpdateRequest *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateEventHandlerRegistrationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateEventHandlerRegistrationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateEventHandlerRegistrationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateEventHandlerRegistrationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Updated information for the event handler +func (r ApiUpdateEventHandlerRegistrationByIdRequest) EventHandlerRegistrationEventHandlerRegistrationUpdateRequest(eventHandlerRegistrationEventHandlerRegistrationUpdateRequest EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) ApiUpdateEventHandlerRegistrationByIdRequest { + r.eventHandlerRegistrationEventHandlerRegistrationUpdateRequest = &eventHandlerRegistrationEventHandlerRegistrationUpdateRequest + return r +} + +// Executes the V1 PUT /EventHandlerRegistration/{id} request context +func (r ApiUpdateEventHandlerRegistrationByIdRequest) Execute() (*EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + return r.ApiService.UpdateEventHandlerRegistrationByIdExecute(r) +} + +/* +Creates a new V1 PUT /EventHandlerRegistration/{id} request. + +UpdateEventHandlerRegistrationById Updates a registered event handler's information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the event handler + @return ApiUpdateEventHandlerRegistrationByIdRequest +*/ +func (a *EventHandlerRegistrationApiService) NewUpdateEventHandlerRegistrationByIdRequest(ctx context.Context, id int32) ApiUpdateEventHandlerRegistrationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateEventHandlerRegistrationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /EventHandlerRegistration/{id} +// +// @return EventHandlerRegistrationEventHandlerRegistrationResponse +func (a *EventHandlerRegistrationApiService) UpdateEventHandlerRegistrationByIdExecute(r ApiUpdateEventHandlerRegistrationByIdRequest) (*EventHandlerRegistrationEventHandlerRegistrationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventHandlerRegistrationEventHandlerRegistrationResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/EventHandlerRegistration/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.eventHandlerRegistrationEventHandlerRegistrationUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_expiration_alert.go b/v24/api/keyfactor/v1/api_expiration_alert.go new file mode 100644 index 0000000..90cb4e8 --- /dev/null +++ b/v24/api/keyfactor/v1/api_expiration_alert.go @@ -0,0 +1,1379 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ExpirationAlertApiService ExpirationAlertApi service +type ExpirationAlertApiService service + +// Request for V1 POST /Alerts/Expiration +type ApiCreateAlertsExpirationRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsExpirationExpirationAlertCreationRequest *AlertsExpirationExpirationAlertCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsExpirationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsExpirationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsExpirationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsExpirationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new alert +func (r ApiCreateAlertsExpirationRequest) AlertsExpirationExpirationAlertCreationRequest(alertsExpirationExpirationAlertCreationRequest AlertsExpirationExpirationAlertCreationRequest) ApiCreateAlertsExpirationRequest { + r.alertsExpirationExpirationAlertCreationRequest = &alertsExpirationExpirationAlertCreationRequest + return r +} + +// Executes the V1 POST /Alerts/Expiration request context +func (r ApiCreateAlertsExpirationRequest) Execute() (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateAlertsExpirationExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Expiration request. + +CreateAlertsExpiration Add an expiration alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsExpirationRequest +*/ +func (a *ExpirationAlertApiService) NewCreateAlertsExpirationRequest(ctx context.Context) ApiCreateAlertsExpirationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsExpirationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Expiration +// +// @return AlertsExpirationExpirationAlertDefinitionResponse +func (a *ExpirationAlertApiService) CreateAlertsExpirationExecute(r ApiCreateAlertsExpirationRequest) (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsExpirationExpirationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsExpirationExpirationAlertCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/Expiration/Test +type ApiCreateAlertsExpirationTestRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsExpirationExpirationAlertTestRequest *AlertsExpirationExpirationAlertTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsExpirationTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsExpirationTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsExpirationTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsExpirationTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the expiration alert test +func (r ApiCreateAlertsExpirationTestRequest) AlertsExpirationExpirationAlertTestRequest(alertsExpirationExpirationAlertTestRequest AlertsExpirationExpirationAlertTestRequest) ApiCreateAlertsExpirationTestRequest { + r.alertsExpirationExpirationAlertTestRequest = &alertsExpirationExpirationAlertTestRequest + return r +} + +// Executes the V1 POST /Alerts/Expiration/Test request context +func (r ApiCreateAlertsExpirationTestRequest) Execute() (*AlertsExpirationExpirationAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsExpirationTestExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Expiration/Test request. + +CreateAlertsExpirationTest Test an Expiration Alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsExpirationTestRequest + +Deprecated +*/ +func (a *ExpirationAlertApiService) NewCreateAlertsExpirationTestRequest(ctx context.Context) ApiCreateAlertsExpirationTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsExpirationTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Expiration/Test +// +// @return AlertsExpirationExpirationAlertTestResponse +// +// Deprecated +func (a *ExpirationAlertApiService) CreateAlertsExpirationTestExecute(r ApiCreateAlertsExpirationTestRequest) (*AlertsExpirationExpirationAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsExpirationExpirationAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsExpirationExpirationAlertTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/Expiration/TestAll +type ApiCreateAlertsExpirationTestAllRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsExpirationExpirationAlertTestAllRequest *AlertsExpirationExpirationAlertTestAllRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsExpirationTestAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsExpirationTestAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsExpirationTestAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsExpirationTestAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the expiration alert test +func (r ApiCreateAlertsExpirationTestAllRequest) AlertsExpirationExpirationAlertTestAllRequest(alertsExpirationExpirationAlertTestAllRequest AlertsExpirationExpirationAlertTestAllRequest) ApiCreateAlertsExpirationTestAllRequest { + r.alertsExpirationExpirationAlertTestAllRequest = &alertsExpirationExpirationAlertTestAllRequest + return r +} + +// Executes the V1 POST /Alerts/Expiration/TestAll request context +func (r ApiCreateAlertsExpirationTestAllRequest) Execute() (*AlertsExpirationExpirationAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsExpirationTestAllExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Expiration/TestAll request. + +CreateAlertsExpirationTestAll Test All Expiration Alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsExpirationTestAllRequest + +Deprecated +*/ +func (a *ExpirationAlertApiService) NewCreateAlertsExpirationTestAllRequest(ctx context.Context) ApiCreateAlertsExpirationTestAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsExpirationTestAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Expiration/TestAll +// +// @return AlertsExpirationExpirationAlertTestResponse +// +// Deprecated +func (a *ExpirationAlertApiService) CreateAlertsExpirationTestAllExecute(r ApiCreateAlertsExpirationTestAllRequest) (*AlertsExpirationExpirationAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsExpirationExpirationAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/TestAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsExpirationExpirationAlertTestAllRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Alerts/Expiration/{id} +type ApiDeleteAlertsExpirationByIdRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAlertsExpirationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAlertsExpirationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAlertsExpirationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAlertsExpirationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Alerts/Expiration/{id} request context +func (r ApiDeleteAlertsExpirationByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAlertsExpirationByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Alerts/Expiration/{id} request. + +DeleteAlertsExpirationById Delete an expiration alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the expiration alert + @return ApiDeleteAlertsExpirationByIdRequest +*/ +func (a *ExpirationAlertApiService) NewDeleteAlertsExpirationByIdRequest(ctx context.Context, id int32) ApiDeleteAlertsExpirationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAlertsExpirationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ExpirationAlertApiService) DeleteAlertsExpirationByIdExecute(r ApiDeleteAlertsExpirationByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Expiration +type ApiGetAlertsExpirationRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsExpirationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsExpirationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAlertsExpirationRequest) QueryString(queryString string) ApiGetAlertsExpirationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAlertsExpirationRequest) PageReturned(pageReturned int32) ApiGetAlertsExpirationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAlertsExpirationRequest) ReturnLimit(returnLimit int32) ApiGetAlertsExpirationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAlertsExpirationRequest) SortField(sortField string) ApiGetAlertsExpirationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAlertsExpirationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAlertsExpirationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsExpirationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsExpirationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Expiration request context +func (r ApiGetAlertsExpirationRequest) Execute() ([]AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsExpirationExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Expiration request. + +GetAlertsExpiration Gets all expiration alerts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsExpirationRequest +*/ +func (a *ExpirationAlertApiService) NewGetAlertsExpirationRequest(ctx context.Context) ApiGetAlertsExpirationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsExpirationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Expiration +// +// @return []AlertsExpirationExpirationAlertDefinitionResponse +func (a *ExpirationAlertApiService) GetAlertsExpirationExecute(r ApiGetAlertsExpirationRequest) ([]AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlertsExpirationExpirationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Expiration/{id} +type ApiGetAlertsExpirationByIdRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsExpirationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsExpirationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsExpirationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsExpirationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Expiration/{id} request context +func (r ApiGetAlertsExpirationByIdRequest) Execute() (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsExpirationByIdExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Expiration/{id} request. + +GetAlertsExpirationById Get an expiration alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the expiration alert to get + @return ApiGetAlertsExpirationByIdRequest +*/ +func (a *ExpirationAlertApiService) NewGetAlertsExpirationByIdRequest(ctx context.Context, id int32) ApiGetAlertsExpirationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsExpirationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Alerts/Expiration/{id} +// +// @return AlertsExpirationExpirationAlertDefinitionResponse +func (a *ExpirationAlertApiService) GetAlertsExpirationByIdExecute(r ApiGetAlertsExpirationByIdRequest) (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsExpirationExpirationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Expiration/Schedule +type ApiGetAlertsExpirationScheduleRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsExpirationScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsExpirationScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsExpirationScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsExpirationScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Expiration/Schedule request context +func (r ApiGetAlertsExpirationScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.GetAlertsExpirationScheduleExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Expiration/Schedule request. + +GetAlertsExpirationSchedule Get the schedule for expiration alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsExpirationScheduleRequest +*/ +func (a *ExpirationAlertApiService) NewGetAlertsExpirationScheduleRequest(ctx context.Context) ApiGetAlertsExpirationScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsExpirationScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Expiration/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *ExpirationAlertApiService) GetAlertsExpirationScheduleExecute(r ApiGetAlertsExpirationScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Expiration +type ApiUpdateAlertsExpirationRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsExpirationExpirationAlertUpdateRequest *AlertsExpirationExpirationAlertUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsExpirationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsExpirationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsExpirationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsExpirationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the expiration alert +func (r ApiUpdateAlertsExpirationRequest) AlertsExpirationExpirationAlertUpdateRequest(alertsExpirationExpirationAlertUpdateRequest AlertsExpirationExpirationAlertUpdateRequest) ApiUpdateAlertsExpirationRequest { + r.alertsExpirationExpirationAlertUpdateRequest = &alertsExpirationExpirationAlertUpdateRequest + return r +} + +// Executes the V1 PUT /Alerts/Expiration request context +func (r ApiUpdateAlertsExpirationRequest) Execute() (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsExpirationExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Expiration request. + +UpdateAlertsExpiration Edit an expiration alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsExpirationRequest +*/ +func (a *ExpirationAlertApiService) NewUpdateAlertsExpirationRequest(ctx context.Context) ApiUpdateAlertsExpirationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsExpirationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Expiration +// +// @return AlertsExpirationExpirationAlertDefinitionResponse +func (a *ExpirationAlertApiService) UpdateAlertsExpirationExecute(r ApiUpdateAlertsExpirationRequest) (*AlertsExpirationExpirationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsExpirationExpirationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsExpirationExpirationAlertUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Expiration/Schedule +type ApiUpdateAlertsExpirationScheduleRequest struct { + ctx context.Context + ApiService *ExpirationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsAlertScheduleAlertScheduleRequest *AlertsAlertScheduleAlertScheduleRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsExpirationScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsExpirationScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsExpirationScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsExpirationScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateAlertsExpirationScheduleRequest) AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest AlertsAlertScheduleAlertScheduleRequest) ApiUpdateAlertsExpirationScheduleRequest { + r.alertsAlertScheduleAlertScheduleRequest = &alertsAlertScheduleAlertScheduleRequest + return r +} + +// Executes the V1 PUT /Alerts/Expiration/Schedule request context +func (r ApiUpdateAlertsExpirationScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsExpirationScheduleExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Expiration/Schedule request. + +UpdateAlertsExpirationSchedule Edit schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsExpirationScheduleRequest +*/ +func (a *ExpirationAlertApiService) NewUpdateAlertsExpirationScheduleRequest(ctx context.Context) ApiUpdateAlertsExpirationScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsExpirationScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Expiration/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *ExpirationAlertApiService) UpdateAlertsExpirationScheduleExecute(r ApiUpdateAlertsExpirationScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Expiration/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsAlertScheduleAlertScheduleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_extensions.go b/v24/api/keyfactor/v1/api_extensions.go new file mode 100644 index 0000000..df45eaf --- /dev/null +++ b/v24/api/keyfactor/v1/api_extensions.go @@ -0,0 +1,801 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ExtensionsApiService ExtensionsApi service +type ExtensionsApiService service + +// Request for V1 POST /Extensions/Scripts +type ApiCreateExtensionsScriptsRequest struct { + ctx context.Context + ApiService *ExtensionsApiService + xKeyfactorRequestedWith *string + scriptsScriptCreateRequest *ScriptsScriptCreateRequest + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateExtensionsScriptsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateExtensionsScriptsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Script parameters +func (r ApiCreateExtensionsScriptsRequest) ScriptsScriptCreateRequest(scriptsScriptCreateRequest ScriptsScriptCreateRequest) ApiCreateExtensionsScriptsRequest { + r.scriptsScriptCreateRequest = &scriptsScriptCreateRequest + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateExtensionsScriptsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateExtensionsScriptsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Extensions/Scripts request context +func (r ApiCreateExtensionsScriptsRequest) Execute() (*ScriptsScriptResponse, *http.Response, error) { + return r.ApiService.CreateExtensionsScriptsExecute(r) +} + +/* +Creates a new V1 POST /Extensions/Scripts request. + +CreateExtensionsScripts Adds a new script + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateExtensionsScriptsRequest +*/ +func (a *ExtensionsApiService) NewCreateExtensionsScriptsRequest(ctx context.Context) ApiCreateExtensionsScriptsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateExtensionsScriptsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Extensions/Scripts +// +// @return ScriptsScriptResponse +func (a *ExtensionsApiService) CreateExtensionsScriptsExecute(r ApiCreateExtensionsScriptsRequest) (*ScriptsScriptResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScriptsScriptResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Extensions/Scripts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.scriptsScriptCreateRequest == nil { + return localVarReturnValue, nil, reportError("scriptsScriptCreateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.scriptsScriptCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Extensions/Scripts/{id} +type ApiDeleteExtensionsScriptsByIdRequest struct { + ctx context.Context + ApiService *ExtensionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteExtensionsScriptsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteExtensionsScriptsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteExtensionsScriptsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteExtensionsScriptsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Extensions/Scripts/{id} request context +func (r ApiDeleteExtensionsScriptsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExtensionsScriptsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Extensions/Scripts/{id} request. + +DeleteExtensionsScriptsById Deletes a script. Script cannot be configured to an alert or workflow. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the script to delete + @return ApiDeleteExtensionsScriptsByIdRequest +*/ +func (a *ExtensionsApiService) NewDeleteExtensionsScriptsByIdRequest(ctx context.Context, id int32) ApiDeleteExtensionsScriptsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteExtensionsScriptsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ExtensionsApiService) DeleteExtensionsScriptsByIdExecute(r ApiDeleteExtensionsScriptsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Extensions/Scripts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Extensions/Scripts +type ApiGetExtensionsScriptsRequest struct { + ctx context.Context + ApiService *ExtensionsApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetExtensionsScriptsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetExtensionsScriptsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetExtensionsScriptsRequest) QueryString(queryString string) ApiGetExtensionsScriptsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetExtensionsScriptsRequest) PageReturned(pageReturned int32) ApiGetExtensionsScriptsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetExtensionsScriptsRequest) ReturnLimit(returnLimit int32) ApiGetExtensionsScriptsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetExtensionsScriptsRequest) SortField(sortField string) ApiGetExtensionsScriptsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetExtensionsScriptsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetExtensionsScriptsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetExtensionsScriptsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetExtensionsScriptsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Extensions/Scripts request context +func (r ApiGetExtensionsScriptsRequest) Execute() ([]ScriptsScriptQueryResponse, *http.Response, error) { + return r.ApiService.GetExtensionsScriptsExecute(r) +} + +/* +Creates a new V1 GET /Extensions/Scripts request. + +GetExtensionsScripts Returns all scripts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetExtensionsScriptsRequest +*/ +func (a *ExtensionsApiService) NewGetExtensionsScriptsRequest(ctx context.Context) ApiGetExtensionsScriptsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetExtensionsScriptsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Extensions/Scripts +// +// @return []ScriptsScriptQueryResponse +func (a *ExtensionsApiService) GetExtensionsScriptsExecute(r ApiGetExtensionsScriptsRequest) ([]ScriptsScriptQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ScriptsScriptQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Extensions/Scripts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Extensions/Scripts/{id} +type ApiGetExtensionsScriptsByIdRequest struct { + ctx context.Context + ApiService *ExtensionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetExtensionsScriptsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetExtensionsScriptsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetExtensionsScriptsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetExtensionsScriptsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Extensions/Scripts/{id} request context +func (r ApiGetExtensionsScriptsByIdRequest) Execute() (*ScriptsScriptResponse, *http.Response, error) { + return r.ApiService.GetExtensionsScriptsByIdExecute(r) +} + +/* +Creates a new V1 GET /Extensions/Scripts/{id} request. + +GetExtensionsScriptsById Returns a single script that matches the provided Id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the script + @return ApiGetExtensionsScriptsByIdRequest +*/ +func (a *ExtensionsApiService) NewGetExtensionsScriptsByIdRequest(ctx context.Context, id int32) ApiGetExtensionsScriptsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetExtensionsScriptsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Extensions/Scripts/{id} +// +// @return ScriptsScriptResponse +func (a *ExtensionsApiService) GetExtensionsScriptsByIdExecute(r ApiGetExtensionsScriptsByIdRequest) (*ScriptsScriptResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScriptsScriptResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Extensions/Scripts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Extensions/Scripts +type ApiUpdateExtensionsScriptsRequest struct { + ctx context.Context + ApiService *ExtensionsApiService + xKeyfactorRequestedWith *string + scriptsScriptsUpdateRequest *ScriptsScriptsUpdateRequest + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateExtensionsScriptsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateExtensionsScriptsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Script parameters +func (r ApiUpdateExtensionsScriptsRequest) ScriptsScriptsUpdateRequest(scriptsScriptsUpdateRequest ScriptsScriptsUpdateRequest) ApiUpdateExtensionsScriptsRequest { + r.scriptsScriptsUpdateRequest = &scriptsScriptsUpdateRequest + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateExtensionsScriptsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateExtensionsScriptsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 PUT /Extensions/Scripts request context +func (r ApiUpdateExtensionsScriptsRequest) Execute() (*ScriptsScriptResponse, *http.Response, error) { + return r.ApiService.UpdateExtensionsScriptsExecute(r) +} + +/* +Creates a new V1 PUT /Extensions/Scripts request. + +UpdateExtensionsScripts Updates a script + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateExtensionsScriptsRequest +*/ +func (a *ExtensionsApiService) NewUpdateExtensionsScriptsRequest(ctx context.Context) ApiUpdateExtensionsScriptsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateExtensionsScriptsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Extensions/Scripts +// +// @return ScriptsScriptResponse +func (a *ExtensionsApiService) UpdateExtensionsScriptsExecute(r ApiUpdateExtensionsScriptsRequest) (*ScriptsScriptResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScriptsScriptResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Extensions/Scripts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.scriptsScriptsUpdateRequest == nil { + return localVarReturnValue, nil, reportError("scriptsScriptsUpdateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.scriptsScriptsUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_identity_provider.go b/v24/api/keyfactor/v1/api_identity_provider.go new file mode 100644 index 0000000..7bf1cab --- /dev/null +++ b/v24/api/keyfactor/v1/api_identity_provider.go @@ -0,0 +1,806 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// IdentityProviderApiService IdentityProviderApi service +type IdentityProviderApiService service + +// Request for V1 POST /IdentityProviders +type ApiCreateIdentityProvidersRequest struct { + ctx context.Context + ApiService *IdentityProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + identityProviderIdentityProviderCreateRequest *IdentityProviderIdentityProviderCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateIdentityProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateIdentityProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateIdentityProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateIdentityProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// A IdentityProvider.IdentityProviderCreateRequest with the Id, name, and parameters that for the OAuth identity provider that is to be created. +func (r ApiCreateIdentityProvidersRequest) IdentityProviderIdentityProviderCreateRequest(identityProviderIdentityProviderCreateRequest IdentityProviderIdentityProviderCreateRequest) ApiCreateIdentityProvidersRequest { + r.identityProviderIdentityProviderCreateRequest = &identityProviderIdentityProviderCreateRequest + return r +} + +// Executes the V1 POST /IdentityProviders request context +func (r ApiCreateIdentityProvidersRequest) Execute() (*IdentityProviderIdentityProviderCreateResponse, *http.Response, error) { + return r.ApiService.CreateIdentityProvidersExecute(r) +} + +/* +Creates a new V1 POST /IdentityProviders request. + +CreateIdentityProviders Creates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateIdentityProvidersRequest +*/ +func (a *IdentityProviderApiService) NewCreateIdentityProvidersRequest(ctx context.Context) ApiCreateIdentityProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateIdentityProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /IdentityProviders +// +// @return IdentityProviderIdentityProviderCreateResponse +func (a *IdentityProviderApiService) CreateIdentityProvidersExecute(r ApiCreateIdentityProvidersRequest) (*IdentityProviderIdentityProviderCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderIdentityProviderCreateResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/IdentityProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.identityProviderIdentityProviderCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /IdentityProviders +type ApiGetIdentityProvidersRequest struct { + ctx context.Context + ApiService *IdentityProviderApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetIdentityProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetIdentityProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetIdentityProvidersRequest) QueryString(queryString string) ApiGetIdentityProvidersRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetIdentityProvidersRequest) PageReturned(pageReturned int32) ApiGetIdentityProvidersRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetIdentityProvidersRequest) ReturnLimit(returnLimit int32) ApiGetIdentityProvidersRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetIdentityProvidersRequest) SortField(sortField string) ApiGetIdentityProvidersRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetIdentityProvidersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetIdentityProvidersRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetIdentityProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetIdentityProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /IdentityProviders request context +func (r ApiGetIdentityProvidersRequest) Execute() ([]IdentityProviderIdentityProviderGetResponse, *http.Response, error) { + return r.ApiService.GetIdentityProvidersExecute(r) +} + +/* +Creates a new V1 GET /IdentityProviders request. + +GetIdentityProviders Returns all OAuth identity providers according to the provided filter and output parameters and user's security role assigned permission sets. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetIdentityProvidersRequest +*/ +func (a *IdentityProviderApiService) NewGetIdentityProvidersRequest(ctx context.Context) ApiGetIdentityProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetIdentityProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /IdentityProviders +// +// @return []IdentityProviderIdentityProviderGetResponse +func (a *IdentityProviderApiService) GetIdentityProvidersExecute(r ApiGetIdentityProvidersRequest) ([]IdentityProviderIdentityProviderGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderIdentityProviderGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/IdentityProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /IdentityProviders/{id} +type ApiGetIdentityProvidersByIdRequest struct { + ctx context.Context + ApiService *IdentityProviderApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetIdentityProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetIdentityProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetIdentityProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetIdentityProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /IdentityProviders/{id} request context +func (r ApiGetIdentityProvidersByIdRequest) Execute() (*IdentityProviderIdentityProviderGetResponse, *http.Response, error) { + return r.ApiService.GetIdentityProvidersByIdExecute(r) +} + +/* +Creates a new V1 GET /IdentityProviders/{id} request. + +GetIdentityProvidersById Gets an OAuth identity provider and its parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the OAuth identity provider to retrieve. + @return ApiGetIdentityProvidersByIdRequest +*/ +func (a *IdentityProviderApiService) NewGetIdentityProvidersByIdRequest(ctx context.Context, id string) ApiGetIdentityProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetIdentityProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /IdentityProviders/{id} +// +// @return IdentityProviderIdentityProviderGetResponse +func (a *IdentityProviderApiService) GetIdentityProvidersByIdExecute(r ApiGetIdentityProvidersByIdRequest) (*IdentityProviderIdentityProviderGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderIdentityProviderGetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/IdentityProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /IdentityProviders/Types +type ApiGetIdentityProvidersTypesRequest struct { + ctx context.Context + ApiService *IdentityProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetIdentityProvidersTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetIdentityProvidersTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetIdentityProvidersTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetIdentityProvidersTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /IdentityProviders/Types request context +func (r ApiGetIdentityProvidersTypesRequest) Execute() ([]IdentityProviderProviderTypeResponse, *http.Response, error) { + return r.ApiService.GetIdentityProvidersTypesExecute(r) +} + +/* +Creates a new V1 GET /IdentityProviders/Types request. + +GetIdentityProvidersTypes Returns a list of all available identity provider types and corresponding type parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetIdentityProvidersTypesRequest +*/ +func (a *IdentityProviderApiService) NewGetIdentityProvidersTypesRequest(ctx context.Context) ApiGetIdentityProvidersTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetIdentityProvidersTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /IdentityProviders/Types +// +// @return []IdentityProviderProviderTypeResponse +func (a *IdentityProviderApiService) GetIdentityProvidersTypesExecute(r ApiGetIdentityProvidersTypesRequest) ([]IdentityProviderProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IdentityProviderProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/IdentityProviders/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /IdentityProviders/{id} +type ApiUpdateIdentityProvidersByIdRequest struct { + ctx context.Context + ApiService *IdentityProviderApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + identityProviderIdentityProviderUpdateRequest *IdentityProviderIdentityProviderUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateIdentityProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateIdentityProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateIdentityProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateIdentityProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// A IdentityProvider.IdentityProviderUpdateRequest with the Id, name, and parameters that for the OAuth identity provider that need updated. +func (r ApiUpdateIdentityProvidersByIdRequest) IdentityProviderIdentityProviderUpdateRequest(identityProviderIdentityProviderUpdateRequest IdentityProviderIdentityProviderUpdateRequest) ApiUpdateIdentityProvidersByIdRequest { + r.identityProviderIdentityProviderUpdateRequest = &identityProviderIdentityProviderUpdateRequest + return r +} + +// Executes the V1 PUT /IdentityProviders/{id} request context +func (r ApiUpdateIdentityProvidersByIdRequest) Execute() (*IdentityProviderIdentityProviderUpdateResponse, *http.Response, error) { + return r.ApiService.UpdateIdentityProvidersByIdExecute(r) +} + +/* +Creates a new V1 PUT /IdentityProviders/{id} request. + +UpdateIdentityProvidersById Updates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the OAuth identity provider to update. + @return ApiUpdateIdentityProvidersByIdRequest +*/ +func (a *IdentityProviderApiService) NewUpdateIdentityProvidersByIdRequest(ctx context.Context, id string) ApiUpdateIdentityProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateIdentityProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /IdentityProviders/{id} +// +// @return IdentityProviderIdentityProviderUpdateResponse +func (a *IdentityProviderApiService) UpdateIdentityProvidersByIdExecute(r ApiUpdateIdentityProvidersByIdRequest) (*IdentityProviderIdentityProviderUpdateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdentityProviderIdentityProviderUpdateResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/IdentityProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.identityProviderIdentityProviderUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_issued_alert.go b/v24/api/keyfactor/v1/api_issued_alert.go new file mode 100644 index 0000000..4c5f57b --- /dev/null +++ b/v24/api/keyfactor/v1/api_issued_alert.go @@ -0,0 +1,1075 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// IssuedAlertApiService IssuedAlertApi service +type IssuedAlertApiService service + +// Request for V1 POST /Alerts/Issued +type ApiCreateAlertsIssuedRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsIssuedIssuedAlertCreationRequest *AlertsIssuedIssuedAlertCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsIssuedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsIssuedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsIssuedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsIssuedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new alert +func (r ApiCreateAlertsIssuedRequest) AlertsIssuedIssuedAlertCreationRequest(alertsIssuedIssuedAlertCreationRequest AlertsIssuedIssuedAlertCreationRequest) ApiCreateAlertsIssuedRequest { + r.alertsIssuedIssuedAlertCreationRequest = &alertsIssuedIssuedAlertCreationRequest + return r +} + +// Executes the V1 POST /Alerts/Issued request context +func (r ApiCreateAlertsIssuedRequest) Execute() (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateAlertsIssuedExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Issued request. + +CreateAlertsIssued Add a issued alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsIssuedRequest +*/ +func (a *IssuedAlertApiService) NewCreateAlertsIssuedRequest(ctx context.Context) ApiCreateAlertsIssuedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsIssuedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Issued +// +// @return AlertsIssuedIssuedAlertDefinitionResponse +func (a *IssuedAlertApiService) CreateAlertsIssuedExecute(r ApiCreateAlertsIssuedRequest) (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsIssuedIssuedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsIssuedIssuedAlertCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Alerts/Issued/{id} +type ApiDeleteAlertsIssuedByIdRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAlertsIssuedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAlertsIssuedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAlertsIssuedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAlertsIssuedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Alerts/Issued/{id} request context +func (r ApiDeleteAlertsIssuedByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAlertsIssuedByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Alerts/Issued/{id} request. + +DeleteAlertsIssuedById Delete a issued alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the issued alert + @return ApiDeleteAlertsIssuedByIdRequest +*/ +func (a *IssuedAlertApiService) NewDeleteAlertsIssuedByIdRequest(ctx context.Context, id int32) ApiDeleteAlertsIssuedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAlertsIssuedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *IssuedAlertApiService) DeleteAlertsIssuedByIdExecute(r ApiDeleteAlertsIssuedByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Issued +type ApiGetAlertsIssuedRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsIssuedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsIssuedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAlertsIssuedRequest) QueryString(queryString string) ApiGetAlertsIssuedRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAlertsIssuedRequest) PageReturned(pageReturned int32) ApiGetAlertsIssuedRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAlertsIssuedRequest) ReturnLimit(returnLimit int32) ApiGetAlertsIssuedRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAlertsIssuedRequest) SortField(sortField string) ApiGetAlertsIssuedRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAlertsIssuedRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAlertsIssuedRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsIssuedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsIssuedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Issued request context +func (r ApiGetAlertsIssuedRequest) Execute() ([]AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsIssuedExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Issued request. + +GetAlertsIssued Gets all issued alerts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsIssuedRequest +*/ +func (a *IssuedAlertApiService) NewGetAlertsIssuedRequest(ctx context.Context) ApiGetAlertsIssuedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsIssuedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Issued +// +// @return []AlertsIssuedIssuedAlertDefinitionResponse +func (a *IssuedAlertApiService) GetAlertsIssuedExecute(r ApiGetAlertsIssuedRequest) ([]AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlertsIssuedIssuedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Issued/{id} +type ApiGetAlertsIssuedByIdRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsIssuedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsIssuedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsIssuedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsIssuedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Issued/{id} request context +func (r ApiGetAlertsIssuedByIdRequest) Execute() (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsIssuedByIdExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Issued/{id} request. + +GetAlertsIssuedById Get a issued alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the issued alert to get + @return ApiGetAlertsIssuedByIdRequest +*/ +func (a *IssuedAlertApiService) NewGetAlertsIssuedByIdRequest(ctx context.Context, id int32) ApiGetAlertsIssuedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsIssuedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Alerts/Issued/{id} +// +// @return AlertsIssuedIssuedAlertDefinitionResponse +func (a *IssuedAlertApiService) GetAlertsIssuedByIdExecute(r ApiGetAlertsIssuedByIdRequest) (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsIssuedIssuedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Issued/Schedule +type ApiGetAlertsIssuedScheduleRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsIssuedScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsIssuedScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsIssuedScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsIssuedScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Issued/Schedule request context +func (r ApiGetAlertsIssuedScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.GetAlertsIssuedScheduleExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Issued/Schedule request. + +GetAlertsIssuedSchedule Get the schedule for issued alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsIssuedScheduleRequest +*/ +func (a *IssuedAlertApiService) NewGetAlertsIssuedScheduleRequest(ctx context.Context) ApiGetAlertsIssuedScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsIssuedScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Issued/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *IssuedAlertApiService) GetAlertsIssuedScheduleExecute(r ApiGetAlertsIssuedScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Issued +type ApiUpdateAlertsIssuedRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsIssuedIssuedAlertUpdateRequest *AlertsIssuedIssuedAlertUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsIssuedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsIssuedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsIssuedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsIssuedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the issued alert +func (r ApiUpdateAlertsIssuedRequest) AlertsIssuedIssuedAlertUpdateRequest(alertsIssuedIssuedAlertUpdateRequest AlertsIssuedIssuedAlertUpdateRequest) ApiUpdateAlertsIssuedRequest { + r.alertsIssuedIssuedAlertUpdateRequest = &alertsIssuedIssuedAlertUpdateRequest + return r +} + +// Executes the V1 PUT /Alerts/Issued request context +func (r ApiUpdateAlertsIssuedRequest) Execute() (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsIssuedExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Issued request. + +UpdateAlertsIssued Edit a issued alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsIssuedRequest +*/ +func (a *IssuedAlertApiService) NewUpdateAlertsIssuedRequest(ctx context.Context) ApiUpdateAlertsIssuedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsIssuedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Issued +// +// @return AlertsIssuedIssuedAlertDefinitionResponse +func (a *IssuedAlertApiService) UpdateAlertsIssuedExecute(r ApiUpdateAlertsIssuedRequest) (*AlertsIssuedIssuedAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsIssuedIssuedAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsIssuedIssuedAlertUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Issued/Schedule +type ApiUpdateAlertsIssuedScheduleRequest struct { + ctx context.Context + ApiService *IssuedAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsAlertScheduleAlertScheduleRequest *AlertsAlertScheduleAlertScheduleRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsIssuedScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsIssuedScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsIssuedScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsIssuedScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateAlertsIssuedScheduleRequest) AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest AlertsAlertScheduleAlertScheduleRequest) ApiUpdateAlertsIssuedScheduleRequest { + r.alertsAlertScheduleAlertScheduleRequest = &alertsAlertScheduleAlertScheduleRequest + return r +} + +// Executes the V1 PUT /Alerts/Issued/Schedule request context +func (r ApiUpdateAlertsIssuedScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsIssuedScheduleExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Issued/Schedule request. + +UpdateAlertsIssuedSchedule Edit schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsIssuedScheduleRequest +*/ +func (a *IssuedAlertApiService) NewUpdateAlertsIssuedScheduleRequest(ctx context.Context) ApiUpdateAlertsIssuedScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsIssuedScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Issued/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *IssuedAlertApiService) UpdateAlertsIssuedScheduleExecute(r ApiUpdateAlertsIssuedScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Issued/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsAlertScheduleAlertScheduleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_key.go b/v24/api/keyfactor/v1/api_key.go new file mode 100644 index 0000000..f0781fe --- /dev/null +++ b/v24/api/keyfactor/v1/api_key.go @@ -0,0 +1,1101 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// KeyApiService KeyApi service +type KeyApiService service + +// Request for V1 POST /SSH/Keys/MyKey +type ApiCreateSSHKeysMyKeyRequest struct { + ctx context.Context + ApiService *KeyApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHKeysKeyGenerationRequest *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHKeysMyKeyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHKeysMyKeyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHKeysMyKeyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHKeysMyKeyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Object containing information about the key to be generated +func (r ApiCreateSSHKeysMyKeyRequest) CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) ApiCreateSSHKeysMyKeyRequest { + r.cSSCMSDataModelModelsSSHKeysKeyGenerationRequest = &cSSCMSDataModelModelsSSHKeysKeyGenerationRequest + return r +} + +// Executes the V1 POST /SSH/Keys/MyKey request context +func (r ApiCreateSSHKeysMyKeyRequest) Execute() (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + return r.ApiService.CreateSSHKeysMyKeyExecute(r) +} + +/* +Creates a new V1 POST /SSH/Keys/MyKey request. + +CreateSSHKeysMyKey Generates an SSH Key Pair for the requesting user. + +### SSH Key Algorithms ### +| Value | Description | +|--------------------|---------------------------| +| 0 | Unknown | +| 1 | ECDSA | +| 2 | Ed25519 | +| 3 | RSA | + +### Private Key Formats ### +| Value | Description | +|--------------------|---------------------------| +| 0 | Unknown | +| 1 | OpenSSH | +| 2 | PKCS8 | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHKeysMyKeyRequest +*/ +func (a *KeyApiService) NewCreateSSHKeysMyKeyRequest(ctx context.Context) ApiCreateSSHKeysMyKeyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHKeysMyKeyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Keys/MyKey +// +// @return CSSCMSDataModelModelsSSHKeysKeyResponse +func (a *KeyApiService) CreateSSHKeysMyKeyExecute(r ApiCreateSSHKeysMyKeyRequest) (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/MyKey" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHKeysKeyGenerationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Keys/Unmanaged +type ApiDeleteSSHKeysUnmanagedRequest struct { + ctx context.Context + ApiService *KeyApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHKeysUnmanagedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHKeysUnmanagedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHKeysUnmanagedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHKeysUnmanagedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Keyfactor identifers of the Keys to be deleted +func (r ApiDeleteSSHKeysUnmanagedRequest) RequestBody(requestBody []int32) ApiDeleteSSHKeysUnmanagedRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /SSH/Keys/Unmanaged request context +func (r ApiDeleteSSHKeysUnmanagedRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHKeysUnmanagedExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Keys/Unmanaged request. + +DeleteSSHKeysUnmanaged Deletes Unmanaged Keys associated with the provided identifiers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteSSHKeysUnmanagedRequest +*/ +func (a *KeyApiService) NewDeleteSSHKeysUnmanagedRequest(ctx context.Context) ApiDeleteSSHKeysUnmanagedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHKeysUnmanagedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *KeyApiService) DeleteSSHKeysUnmanagedExecute(r ApiDeleteSSHKeysUnmanagedRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/Unmanaged" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Keys/Unmanaged/{id} +type ApiDeleteSSHKeysUnmanagedByIdRequest struct { + ctx context.Context + ApiService *KeyApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHKeysUnmanagedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHKeysUnmanagedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHKeysUnmanagedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHKeysUnmanagedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/Keys/Unmanaged/{id} request context +func (r ApiDeleteSSHKeysUnmanagedByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHKeysUnmanagedByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Keys/Unmanaged/{id} request. + +DeleteSSHKeysUnmanagedById Deletes Unmanaged Key associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the Key to be deleted + @return ApiDeleteSSHKeysUnmanagedByIdRequest +*/ +func (a *KeyApiService) NewDeleteSSHKeysUnmanagedByIdRequest(ctx context.Context, id int32) ApiDeleteSSHKeysUnmanagedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHKeysUnmanagedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *KeyApiService) DeleteSSHKeysUnmanagedByIdExecute(r ApiDeleteSSHKeysUnmanagedByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/Unmanaged/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Keys/MyKey +type ApiGetSSHKeysMyKeyRequest struct { + ctx context.Context + ApiService *KeyApiService + xKeyfactorRequestedWith *string + includePrivateKey *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHKeysMyKeyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHKeysMyKeyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header +func (r ApiGetSSHKeysMyKeyRequest) IncludePrivateKey(includePrivateKey bool) ApiGetSSHKeysMyKeyRequest { + r.includePrivateKey = &includePrivateKey + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHKeysMyKeyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHKeysMyKeyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Keys/MyKey request context +func (r ApiGetSSHKeysMyKeyRequest) Execute() (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + return r.ApiService.GetSSHKeysMyKeyExecute(r) +} + +/* +Creates a new V1 GET /SSH/Keys/MyKey request. + +GetSSHKeysMyKey Returns the current key of the requesting user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHKeysMyKeyRequest +*/ +func (a *KeyApiService) NewGetSSHKeysMyKeyRequest(ctx context.Context) ApiGetSSHKeysMyKeyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHKeysMyKeyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/Keys/MyKey +// +// @return CSSCMSDataModelModelsSSHKeysKeyResponse +func (a *KeyApiService) GetSSHKeysMyKeyExecute(r ApiGetSSHKeysMyKeyRequest) (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/MyKey" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.includePrivateKey != nil { + parameterAddToQuery(localVarQueryParams, "includePrivateKey", r.includePrivateKey, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Keys/Unmanaged +type ApiGetSSHKeysUnmanagedRequest struct { + ctx context.Context + ApiService *KeyApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHKeysUnmanagedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHKeysUnmanagedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHKeysUnmanagedRequest) QueryString(queryString string) ApiGetSSHKeysUnmanagedRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHKeysUnmanagedRequest) PageReturned(pageReturned int32) ApiGetSSHKeysUnmanagedRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHKeysUnmanagedRequest) ReturnLimit(returnLimit int32) ApiGetSSHKeysUnmanagedRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHKeysUnmanagedRequest) SortField(sortField string) ApiGetSSHKeysUnmanagedRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHKeysUnmanagedRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHKeysUnmanagedRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHKeysUnmanagedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHKeysUnmanagedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Keys/Unmanaged request context +func (r ApiGetSSHKeysUnmanagedRequest) Execute() ([]CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse, *http.Response, error) { + return r.ApiService.GetSSHKeysUnmanagedExecute(r) +} + +/* +Creates a new V1 GET /SSH/Keys/Unmanaged request. + +GetSSHKeysUnmanaged Returns Unmanaged SSH keys + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHKeysUnmanagedRequest +*/ +func (a *KeyApiService) NewGetSSHKeysUnmanagedRequest(ctx context.Context) ApiGetSSHKeysUnmanagedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHKeysUnmanagedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/Keys/Unmanaged +// +// @return []CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse +func (a *KeyApiService) GetSSHKeysUnmanagedExecute(r ApiGetSSHKeysUnmanagedRequest) ([]CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/Unmanaged" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Keys/Unmanaged/{id} +type ApiGetSSHKeysUnmanagedByIdRequest struct { + ctx context.Context + ApiService *KeyApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHKeysUnmanagedByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHKeysUnmanagedByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHKeysUnmanagedByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHKeysUnmanagedByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Keys/Unmanaged/{id} request context +func (r ApiGetSSHKeysUnmanagedByIdRequest) Execute() (*CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse, *http.Response, error) { + return r.ApiService.GetSSHKeysUnmanagedByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/Keys/Unmanaged/{id} request. + +GetSSHKeysUnmanagedById Returns an unmanaged SSH key with provided id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the key to get + @return ApiGetSSHKeysUnmanagedByIdRequest +*/ +func (a *KeyApiService) NewGetSSHKeysUnmanagedByIdRequest(ctx context.Context, id int32) ApiGetSSHKeysUnmanagedByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHKeysUnmanagedByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/Keys/Unmanaged/{id} +// +// @return CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse +func (a *KeyApiService) GetSSHKeysUnmanagedByIdExecute(r ApiGetSSHKeysUnmanagedByIdRequest) (*CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/Unmanaged/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSH/Keys/MyKey +type ApiUpdateSSHKeysMyKeyRequest struct { + ctx context.Context + ApiService *KeyApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHKeysKeyUpdateRequest *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSHKeysMyKeyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSHKeysMyKeyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSHKeysMyKeyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSHKeysMyKeyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Updated state of the SSH key +func (r ApiUpdateSSHKeysMyKeyRequest) CSSCMSDataModelModelsSSHKeysKeyUpdateRequest(cSSCMSDataModelModelsSSHKeysKeyUpdateRequest CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) ApiUpdateSSHKeysMyKeyRequest { + r.cSSCMSDataModelModelsSSHKeysKeyUpdateRequest = &cSSCMSDataModelModelsSSHKeysKeyUpdateRequest + return r +} + +// Executes the V1 PUT /SSH/Keys/MyKey request context +func (r ApiUpdateSSHKeysMyKeyRequest) Execute() (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + return r.ApiService.UpdateSSHKeysMyKeyExecute(r) +} + +/* +Creates a new V1 PUT /SSH/Keys/MyKey request. + +UpdateSSHKeysMyKey Updates the requesting user's SSH key + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSHKeysMyKeyRequest +*/ +func (a *KeyApiService) NewUpdateSSHKeysMyKeyRequest(ctx context.Context) ApiUpdateSSHKeysMyKeyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSHKeysMyKeyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSH/Keys/MyKey +// +// @return CSSCMSDataModelModelsSSHKeysKeyResponse +func (a *KeyApiService) UpdateSSHKeysMyKeyExecute(r ApiUpdateSSHKeysMyKeyRequest) (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Keys/MyKey" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHKeysKeyUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_key_rotation_alert.go b/v24/api/keyfactor/v1/api_key_rotation_alert.go new file mode 100644 index 0000000..66306f5 --- /dev/null +++ b/v24/api/keyfactor/v1/api_key_rotation_alert.go @@ -0,0 +1,1379 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// KeyRotationAlertApiService KeyRotationAlertApi service +type KeyRotationAlertApiService service + +// Request for V1 POST /Alerts/KeyRotation +type ApiCreateAlertsKeyRotationRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsKeyRotationKeyRotationAlertCreationRequest *AlertsKeyRotationKeyRotationAlertCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsKeyRotationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsKeyRotationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsKeyRotationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsKeyRotationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new alert +func (r ApiCreateAlertsKeyRotationRequest) AlertsKeyRotationKeyRotationAlertCreationRequest(alertsKeyRotationKeyRotationAlertCreationRequest AlertsKeyRotationKeyRotationAlertCreationRequest) ApiCreateAlertsKeyRotationRequest { + r.alertsKeyRotationKeyRotationAlertCreationRequest = &alertsKeyRotationKeyRotationAlertCreationRequest + return r +} + +// Executes the V1 POST /Alerts/KeyRotation request context +func (r ApiCreateAlertsKeyRotationRequest) Execute() (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateAlertsKeyRotationExecute(r) +} + +/* +Creates a new V1 POST /Alerts/KeyRotation request. + +CreateAlertsKeyRotation Add a key rotation alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsKeyRotationRequest +*/ +func (a *KeyRotationAlertApiService) NewCreateAlertsKeyRotationRequest(ctx context.Context) ApiCreateAlertsKeyRotationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsKeyRotationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/KeyRotation +// +// @return AlertsKeyRotationKeyRotationAlertDefinitionResponse +func (a *KeyRotationAlertApiService) CreateAlertsKeyRotationExecute(r ApiCreateAlertsKeyRotationRequest) (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsKeyRotationKeyRotationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsKeyRotationKeyRotationAlertCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/KeyRotation/Test +type ApiCreateAlertsKeyRotationTestRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsKeyRotationKeyRotationAlertTestRequest *AlertsKeyRotationKeyRotationAlertTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsKeyRotationTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsKeyRotationTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsKeyRotationTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsKeyRotationTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Parameters used to test the alert +func (r ApiCreateAlertsKeyRotationTestRequest) AlertsKeyRotationKeyRotationAlertTestRequest(alertsKeyRotationKeyRotationAlertTestRequest AlertsKeyRotationKeyRotationAlertTestRequest) ApiCreateAlertsKeyRotationTestRequest { + r.alertsKeyRotationKeyRotationAlertTestRequest = &alertsKeyRotationKeyRotationAlertTestRequest + return r +} + +// Executes the V1 POST /Alerts/KeyRotation/Test request context +func (r ApiCreateAlertsKeyRotationTestRequest) Execute() (*AlertsKeyRotationKeyRotationAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsKeyRotationTestExecute(r) +} + +/* +Creates a new V1 POST /Alerts/KeyRotation/Test request. + +CreateAlertsKeyRotationTest Test An Alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsKeyRotationTestRequest + +Deprecated +*/ +func (a *KeyRotationAlertApiService) NewCreateAlertsKeyRotationTestRequest(ctx context.Context) ApiCreateAlertsKeyRotationTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsKeyRotationTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/KeyRotation/Test +// +// @return AlertsKeyRotationKeyRotationAlertTestResponse +// +// Deprecated +func (a *KeyRotationAlertApiService) CreateAlertsKeyRotationTestExecute(r ApiCreateAlertsKeyRotationTestRequest) (*AlertsKeyRotationKeyRotationAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsKeyRotationKeyRotationAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsKeyRotationKeyRotationAlertTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/KeyRotation/TestAll +type ApiCreateAlertsKeyRotationTestAllRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsKeyRotationKeyRotationAlertTestAllRequest *AlertsKeyRotationKeyRotationAlertTestAllRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsKeyRotationTestAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsKeyRotationTestAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsKeyRotationTestAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsKeyRotationTestAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the key rotation alert test +func (r ApiCreateAlertsKeyRotationTestAllRequest) AlertsKeyRotationKeyRotationAlertTestAllRequest(alertsKeyRotationKeyRotationAlertTestAllRequest AlertsKeyRotationKeyRotationAlertTestAllRequest) ApiCreateAlertsKeyRotationTestAllRequest { + r.alertsKeyRotationKeyRotationAlertTestAllRequest = &alertsKeyRotationKeyRotationAlertTestAllRequest + return r +} + +// Executes the V1 POST /Alerts/KeyRotation/TestAll request context +func (r ApiCreateAlertsKeyRotationTestAllRequest) Execute() (*AlertsKeyRotationKeyRotationAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsKeyRotationTestAllExecute(r) +} + +/* +Creates a new V1 POST /Alerts/KeyRotation/TestAll request. + +CreateAlertsKeyRotationTestAll Test All Alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsKeyRotationTestAllRequest + +Deprecated +*/ +func (a *KeyRotationAlertApiService) NewCreateAlertsKeyRotationTestAllRequest(ctx context.Context) ApiCreateAlertsKeyRotationTestAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsKeyRotationTestAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/KeyRotation/TestAll +// +// @return AlertsKeyRotationKeyRotationAlertTestResponse +// +// Deprecated +func (a *KeyRotationAlertApiService) CreateAlertsKeyRotationTestAllExecute(r ApiCreateAlertsKeyRotationTestAllRequest) (*AlertsKeyRotationKeyRotationAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsKeyRotationKeyRotationAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/TestAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsKeyRotationKeyRotationAlertTestAllRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Alerts/KeyRotation/{id} +type ApiDeleteAlertsKeyRotationByIdRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAlertsKeyRotationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAlertsKeyRotationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAlertsKeyRotationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAlertsKeyRotationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Alerts/KeyRotation/{id} request context +func (r ApiDeleteAlertsKeyRotationByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAlertsKeyRotationByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Alerts/KeyRotation/{id} request. + +DeleteAlertsKeyRotationById Delete a key rotation alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the key rotation alert + @return ApiDeleteAlertsKeyRotationByIdRequest +*/ +func (a *KeyRotationAlertApiService) NewDeleteAlertsKeyRotationByIdRequest(ctx context.Context, id int32) ApiDeleteAlertsKeyRotationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAlertsKeyRotationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *KeyRotationAlertApiService) DeleteAlertsKeyRotationByIdExecute(r ApiDeleteAlertsKeyRotationByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/KeyRotation +type ApiGetAlertsKeyRotationRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsKeyRotationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsKeyRotationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAlertsKeyRotationRequest) QueryString(queryString string) ApiGetAlertsKeyRotationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAlertsKeyRotationRequest) PageReturned(pageReturned int32) ApiGetAlertsKeyRotationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAlertsKeyRotationRequest) ReturnLimit(returnLimit int32) ApiGetAlertsKeyRotationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAlertsKeyRotationRequest) SortField(sortField string) ApiGetAlertsKeyRotationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAlertsKeyRotationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAlertsKeyRotationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsKeyRotationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsKeyRotationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/KeyRotation request context +func (r ApiGetAlertsKeyRotationRequest) Execute() ([]AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsKeyRotationExecute(r) +} + +/* +Creates a new V1 GET /Alerts/KeyRotation request. + +GetAlertsKeyRotation Gets all key rotation alerts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsKeyRotationRequest +*/ +func (a *KeyRotationAlertApiService) NewGetAlertsKeyRotationRequest(ctx context.Context) ApiGetAlertsKeyRotationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsKeyRotationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/KeyRotation +// +// @return []AlertsKeyRotationKeyRotationAlertDefinitionResponse +func (a *KeyRotationAlertApiService) GetAlertsKeyRotationExecute(r ApiGetAlertsKeyRotationRequest) ([]AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlertsKeyRotationKeyRotationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/KeyRotation/{id} +type ApiGetAlertsKeyRotationByIdRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsKeyRotationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsKeyRotationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsKeyRotationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsKeyRotationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/KeyRotation/{id} request context +func (r ApiGetAlertsKeyRotationByIdRequest) Execute() (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsKeyRotationByIdExecute(r) +} + +/* +Creates a new V1 GET /Alerts/KeyRotation/{id} request. + +GetAlertsKeyRotationById Get a key rotation alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the key rotation alert to get + @return ApiGetAlertsKeyRotationByIdRequest +*/ +func (a *KeyRotationAlertApiService) NewGetAlertsKeyRotationByIdRequest(ctx context.Context, id int32) ApiGetAlertsKeyRotationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsKeyRotationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Alerts/KeyRotation/{id} +// +// @return AlertsKeyRotationKeyRotationAlertDefinitionResponse +func (a *KeyRotationAlertApiService) GetAlertsKeyRotationByIdExecute(r ApiGetAlertsKeyRotationByIdRequest) (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsKeyRotationKeyRotationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/KeyRotation/Schedule +type ApiGetAlertsKeyRotationScheduleRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsKeyRotationScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsKeyRotationScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsKeyRotationScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsKeyRotationScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/KeyRotation/Schedule request context +func (r ApiGetAlertsKeyRotationScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.GetAlertsKeyRotationScheduleExecute(r) +} + +/* +Creates a new V1 GET /Alerts/KeyRotation/Schedule request. + +GetAlertsKeyRotationSchedule Get the schedule for key rotation alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsKeyRotationScheduleRequest +*/ +func (a *KeyRotationAlertApiService) NewGetAlertsKeyRotationScheduleRequest(ctx context.Context) ApiGetAlertsKeyRotationScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsKeyRotationScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/KeyRotation/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *KeyRotationAlertApiService) GetAlertsKeyRotationScheduleExecute(r ApiGetAlertsKeyRotationScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/KeyRotation +type ApiUpdateAlertsKeyRotationRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsKeyRotationKeyRotationAlertUpdateRequest *AlertsKeyRotationKeyRotationAlertUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsKeyRotationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsKeyRotationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsKeyRotationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsKeyRotationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the key rotation alert +func (r ApiUpdateAlertsKeyRotationRequest) AlertsKeyRotationKeyRotationAlertUpdateRequest(alertsKeyRotationKeyRotationAlertUpdateRequest AlertsKeyRotationKeyRotationAlertUpdateRequest) ApiUpdateAlertsKeyRotationRequest { + r.alertsKeyRotationKeyRotationAlertUpdateRequest = &alertsKeyRotationKeyRotationAlertUpdateRequest + return r +} + +// Executes the V1 PUT /Alerts/KeyRotation request context +func (r ApiUpdateAlertsKeyRotationRequest) Execute() (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsKeyRotationExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/KeyRotation request. + +UpdateAlertsKeyRotation Edit a key rotation alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsKeyRotationRequest +*/ +func (a *KeyRotationAlertApiService) NewUpdateAlertsKeyRotationRequest(ctx context.Context) ApiUpdateAlertsKeyRotationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsKeyRotationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/KeyRotation +// +// @return AlertsKeyRotationKeyRotationAlertDefinitionResponse +func (a *KeyRotationAlertApiService) UpdateAlertsKeyRotationExecute(r ApiUpdateAlertsKeyRotationRequest) (*AlertsKeyRotationKeyRotationAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsKeyRotationKeyRotationAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsKeyRotationKeyRotationAlertUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/KeyRotation/Schedule +type ApiUpdateAlertsKeyRotationScheduleRequest struct { + ctx context.Context + ApiService *KeyRotationAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsAlertScheduleAlertScheduleRequest *AlertsAlertScheduleAlertScheduleRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsKeyRotationScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsKeyRotationScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsKeyRotationScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsKeyRotationScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateAlertsKeyRotationScheduleRequest) AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest AlertsAlertScheduleAlertScheduleRequest) ApiUpdateAlertsKeyRotationScheduleRequest { + r.alertsAlertScheduleAlertScheduleRequest = &alertsAlertScheduleAlertScheduleRequest + return r +} + +// Executes the V1 PUT /Alerts/KeyRotation/Schedule request context +func (r ApiUpdateAlertsKeyRotationScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsKeyRotationScheduleExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/KeyRotation/Schedule request. + +UpdateAlertsKeyRotationSchedule Edit schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsKeyRotationScheduleRequest +*/ +func (a *KeyRotationAlertApiService) NewUpdateAlertsKeyRotationScheduleRequest(ctx context.Context) ApiUpdateAlertsKeyRotationScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsKeyRotationScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/KeyRotation/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *KeyRotationAlertApiService) UpdateAlertsKeyRotationScheduleExecute(r ApiUpdateAlertsKeyRotationScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/KeyRotation/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsAlertScheduleAlertScheduleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_license.go b/v24/api/keyfactor/v1/api_license.go new file mode 100644 index 0000000..eb8a333 --- /dev/null +++ b/v24/api/keyfactor/v1/api_license.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// LicenseApiService LicenseApi service +type LicenseApiService service + +// Request for V1 GET /License +type ApiGetLicenseRequest struct { + ctx context.Context + ApiService *LicenseApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetLicenseRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetLicenseRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetLicenseRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetLicenseRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /License request context +func (r ApiGetLicenseRequest) Execute() (*LicenseLicenseResponse, *http.Response, error) { + return r.ApiService.GetLicenseExecute(r) +} + +/* +Creates a new V1 GET /License request. + +GetLicense Gets the current license + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetLicenseRequest +*/ +func (a *LicenseApiService) NewGetLicenseRequest(ctx context.Context) ApiGetLicenseRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetLicenseRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /License +// +// @return LicenseLicenseResponse +func (a *LicenseApiService) GetLicenseExecute(r ApiGetLicenseRequest) (*LicenseLicenseResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LicenseLicenseResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/License" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_logon.go b/v24/api/keyfactor/v1/api_logon.go new file mode 100644 index 0000000..27cd276 --- /dev/null +++ b/v24/api/keyfactor/v1/api_logon.go @@ -0,0 +1,789 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// LogonApiService LogonApi service +type LogonApiService service + +// Request for V1 POST /SSH/Logons +type ApiCreateSSHLogonsRequest struct { + ctx context.Context + ApiService *LogonApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHLogonsLogonCreationRequest *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHLogonsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHLogonsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHLogonsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHLogonsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Logon properties to be applied to the new logon +func (r ApiCreateSSHLogonsRequest) CSSCMSDataModelModelsSSHLogonsLogonCreationRequest(cSSCMSDataModelModelsSSHLogonsLogonCreationRequest CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) ApiCreateSSHLogonsRequest { + r.cSSCMSDataModelModelsSSHLogonsLogonCreationRequest = &cSSCMSDataModelModelsSSHLogonsLogonCreationRequest + return r +} + +// Executes the V1 POST /SSH/Logons request context +func (r ApiCreateSSHLogonsRequest) Execute() (*CSSCMSDataModelModelsSSHLogonsLogonResponse, *http.Response, error) { + return r.ApiService.CreateSSHLogonsExecute(r) +} + +/* +Creates a new V1 POST /SSH/Logons request. + +CreateSSHLogons Creates a logon with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHLogonsRequest +*/ +func (a *LogonApiService) NewCreateSSHLogonsRequest(ctx context.Context) ApiCreateSSHLogonsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHLogonsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Logons +// +// @return CSSCMSDataModelModelsSSHLogonsLogonResponse +func (a *LogonApiService) CreateSSHLogonsExecute(r ApiCreateSSHLogonsRequest) (*CSSCMSDataModelModelsSSHLogonsLogonResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHLogonsLogonResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Logons" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHLogonsLogonCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSH/Logons/Access +type ApiCreateSSHLogonsAccessRequest struct { + ctx context.Context + ApiService *LogonApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHLogonsLogonAccessRequest *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHLogonsAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHLogonsAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHLogonsAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHLogonsAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Users to add the existing logon +func (r ApiCreateSSHLogonsAccessRequest) CSSCMSDataModelModelsSSHLogonsLogonAccessRequest(cSSCMSDataModelModelsSSHLogonsLogonAccessRequest CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) ApiCreateSSHLogonsAccessRequest { + r.cSSCMSDataModelModelsSSHLogonsLogonAccessRequest = &cSSCMSDataModelModelsSSHLogonsLogonAccessRequest + return r +} + +// Executes the V1 POST /SSH/Logons/Access request context +func (r ApiCreateSSHLogonsAccessRequest) Execute() (*CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, *http.Response, error) { + return r.ApiService.CreateSSHLogonsAccessExecute(r) +} + +/* +Creates a new V1 POST /SSH/Logons/Access request. + +CreateSSHLogonsAccess Updates the users with access to an existing logon + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHLogonsAccessRequest +*/ +func (a *LogonApiService) NewCreateSSHLogonsAccessRequest(ctx context.Context) ApiCreateSSHLogonsAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHLogonsAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Logons/Access +// +// @return CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse +func (a *LogonApiService) CreateSSHLogonsAccessExecute(r ApiCreateSSHLogonsAccessRequest) (*CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Logons/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHLogonsLogonAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Logons/{id} +type ApiDeleteSSHLogonsByIdRequest struct { + ctx context.Context + ApiService *LogonApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHLogonsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHLogonsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHLogonsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHLogonsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/Logons/{id} request context +func (r ApiDeleteSSHLogonsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHLogonsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Logons/{id} request. + +DeleteSSHLogonsById Deletes a Logon associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the Logon to be deleted + @return ApiDeleteSSHLogonsByIdRequest +*/ +func (a *LogonApiService) NewDeleteSSHLogonsByIdRequest(ctx context.Context, id int32) ApiDeleteSSHLogonsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHLogonsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *LogonApiService) DeleteSSHLogonsByIdExecute(r ApiDeleteSSHLogonsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Logons/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Logons +type ApiGetSSHLogonsRequest struct { + ctx context.Context + ApiService *LogonApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHLogonsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHLogonsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHLogonsRequest) QueryString(queryString string) ApiGetSSHLogonsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHLogonsRequest) PageReturned(pageReturned int32) ApiGetSSHLogonsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHLogonsRequest) ReturnLimit(returnLimit int32) ApiGetSSHLogonsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHLogonsRequest) SortField(sortField string) ApiGetSSHLogonsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHLogonsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHLogonsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHLogonsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHLogonsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Logons request context +func (r ApiGetSSHLogonsRequest) Execute() ([]CSSCMSDataModelModelsSSHLogonsLogonQueryResponse, *http.Response, error) { + return r.ApiService.GetSSHLogonsExecute(r) +} + +/* +Creates a new V1 GET /SSH/Logons request. + +GetSSHLogons Returns all Logons according to the provided filter parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHLogonsRequest +*/ +func (a *LogonApiService) NewGetSSHLogonsRequest(ctx context.Context) ApiGetSSHLogonsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHLogonsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/Logons +// +// @return []CSSCMSDataModelModelsSSHLogonsLogonQueryResponse +func (a *LogonApiService) GetSSHLogonsExecute(r ApiGetSSHLogonsRequest) ([]CSSCMSDataModelModelsSSHLogonsLogonQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHLogonsLogonQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Logons" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Logons/{id} +type ApiGetSSHLogonsByIdRequest struct { + ctx context.Context + ApiService *LogonApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHLogonsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHLogonsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHLogonsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHLogonsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Logons/{id} request context +func (r ApiGetSSHLogonsByIdRequest) Execute() (*CSSCMSDataModelModelsSSHLogonsLogonResponse, *http.Response, error) { + return r.ApiService.GetSSHLogonsByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/Logons/{id} request. + +GetSSHLogonsById Fetches a Logon associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the Logon to be Fetched + @return ApiGetSSHLogonsByIdRequest +*/ +func (a *LogonApiService) NewGetSSHLogonsByIdRequest(ctx context.Context, id int32) ApiGetSSHLogonsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHLogonsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/Logons/{id} +// +// @return CSSCMSDataModelModelsSSHLogonsLogonResponse +func (a *LogonApiService) GetSSHLogonsByIdExecute(r ApiGetSSHLogonsByIdRequest) (*CSSCMSDataModelModelsSSHLogonsLogonResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHLogonsLogonResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Logons/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_mac_enrollment.go b/v24/api/keyfactor/v1/api_mac_enrollment.go new file mode 100644 index 0000000..5cf32e6 --- /dev/null +++ b/v24/api/keyfactor/v1/api_mac_enrollment.go @@ -0,0 +1,318 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// MacEnrollmentApiService MacEnrollmentApi service +type MacEnrollmentApiService service + +// Request for V1 GET /MacEnrollment +type ApiGetMacEnrollmentRequest struct { + ctx context.Context + ApiService *MacEnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMacEnrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMacEnrollmentRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMacEnrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMacEnrollmentRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /MacEnrollment request context +func (r ApiGetMacEnrollmentRequest) Execute() (*MacEnrollmentMacEnrollmentAPIModel, *http.Response, error) { + return r.ApiService.GetMacEnrollmentExecute(r) +} + +/* +Creates a new V1 GET /MacEnrollment request. + +# GetMacEnrollment Gets mac enrollment settings data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMacEnrollmentRequest +*/ +func (a *MacEnrollmentApiService) NewGetMacEnrollmentRequest(ctx context.Context) ApiGetMacEnrollmentRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMacEnrollmentRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /MacEnrollment +// +// @return MacEnrollmentMacEnrollmentAPIModel +func (a *MacEnrollmentApiService) GetMacEnrollmentExecute(r ApiGetMacEnrollmentRequest) (*MacEnrollmentMacEnrollmentAPIModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MacEnrollmentMacEnrollmentAPIModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MacEnrollment" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /MacEnrollment +type ApiUpdateMacEnrollmentRequest struct { + ctx context.Context + ApiService *MacEnrollmentApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + macEnrollmentMacEnrollmentAPIModel *MacEnrollmentMacEnrollmentAPIModel +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateMacEnrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateMacEnrollmentRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateMacEnrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateMacEnrollmentRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateMacEnrollmentRequest) MacEnrollmentMacEnrollmentAPIModel(macEnrollmentMacEnrollmentAPIModel MacEnrollmentMacEnrollmentAPIModel) ApiUpdateMacEnrollmentRequest { + r.macEnrollmentMacEnrollmentAPIModel = &macEnrollmentMacEnrollmentAPIModel + return r +} + +// Executes the V1 PUT /MacEnrollment request context +func (r ApiUpdateMacEnrollmentRequest) Execute() (*MacEnrollmentMacEnrollmentAPIModel, *http.Response, error) { + return r.ApiService.UpdateMacEnrollmentExecute(r) +} + +/* +Creates a new V1 PUT /MacEnrollment request. + +# UpdateMacEnrollment Updates mac enrollment settings data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateMacEnrollmentRequest +*/ +func (a *MacEnrollmentApiService) NewUpdateMacEnrollmentRequest(ctx context.Context) ApiUpdateMacEnrollmentRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateMacEnrollmentRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /MacEnrollment +// +// @return MacEnrollmentMacEnrollmentAPIModel +func (a *MacEnrollmentApiService) UpdateMacEnrollmentExecute(r ApiUpdateMacEnrollmentRequest) (*MacEnrollmentMacEnrollmentAPIModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MacEnrollmentMacEnrollmentAPIModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MacEnrollment" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.macEnrollmentMacEnrollmentAPIModel + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_metadata_field.go b/v24/api/keyfactor/v1/api_metadata_field.go new file mode 100644 index 0000000..39fb9e8 --- /dev/null +++ b/v24/api/keyfactor/v1/api_metadata_field.go @@ -0,0 +1,1251 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// MetadataFieldApiService MetadataFieldApi service +type MetadataFieldApiService service + +// Request for V1 POST /MetadataFields +type ApiCreateMetadataFieldsRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + metadataFieldMetadataFieldCreateRequest *MetadataFieldMetadataFieldCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMetadataFieldsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMetadataFieldsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMetadataFieldsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMetadataFieldsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Properties of the metadata field type to be created +func (r ApiCreateMetadataFieldsRequest) MetadataFieldMetadataFieldCreateRequest(metadataFieldMetadataFieldCreateRequest MetadataFieldMetadataFieldCreateRequest) ApiCreateMetadataFieldsRequest { + r.metadataFieldMetadataFieldCreateRequest = &metadataFieldMetadataFieldCreateRequest + return r +} + +// Executes the V1 POST /MetadataFields request context +func (r ApiCreateMetadataFieldsRequest) Execute() (*MetadataFieldMetadataFieldResponse, *http.Response, error) { + return r.ApiService.CreateMetadataFieldsExecute(r) +} + +/* +Creates a new V1 POST /MetadataFields request. + +# CreateMetadataFields Creates a new metadata field type with the given metadata field type properties + +*NOTE: Metadata Field in this context refers to MetadataFieldType, as opposed to the value of a metadata field associated with a certificate. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMetadataFieldsRequest +*/ +func (a *MetadataFieldApiService) NewCreateMetadataFieldsRequest(ctx context.Context) ApiCreateMetadataFieldsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMetadataFieldsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /MetadataFields +// +// @return MetadataFieldMetadataFieldResponse +func (a *MetadataFieldApiService) CreateMetadataFieldsExecute(r ApiCreateMetadataFieldsRequest) (*MetadataFieldMetadataFieldResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MetadataFieldMetadataFieldResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.metadataFieldMetadataFieldCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /MetadataFields +type ApiDeleteMetadataFieldsRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteMetadataFieldsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteMetadataFieldsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Forces deletion of the metadata field type even if in-use +func (r ApiDeleteMetadataFieldsRequest) Force(force bool) ApiDeleteMetadataFieldsRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteMetadataFieldsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteMetadataFieldsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Array of Keyfactor identifiers for metadata field types to be deleted +func (r ApiDeleteMetadataFieldsRequest) RequestBody(requestBody []int32) ApiDeleteMetadataFieldsRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /MetadataFields request context +func (r ApiDeleteMetadataFieldsRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteMetadataFieldsExecute(r) +} + +/* +Creates a new V1 DELETE /MetadataFields request. + +# DeleteMetadataFields Deletes multiple persisted metadata field types by their unique ids + +This will ignore individual delete failures, and continue processing the array. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteMetadataFieldsRequest +*/ +func (a *MetadataFieldApiService) NewDeleteMetadataFieldsRequest(ctx context.Context) ApiDeleteMetadataFieldsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteMetadataFieldsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *MetadataFieldApiService) DeleteMetadataFieldsExecute(r ApiDeleteMetadataFieldsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /MetadataFields/{id} +type ApiDeleteMetadataFieldsByIdRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + id int32 + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteMetadataFieldsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteMetadataFieldsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Forces deletion of the metadata field type even if in-use +func (r ApiDeleteMetadataFieldsByIdRequest) Force(force bool) ApiDeleteMetadataFieldsByIdRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteMetadataFieldsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteMetadataFieldsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /MetadataFields/{id} request context +func (r ApiDeleteMetadataFieldsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteMetadataFieldsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /MetadataFields/{id} request. + +DeleteMetadataFieldsById Deletes a persisted metadata field type by its unique id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the metadata field type + @return ApiDeleteMetadataFieldsByIdRequest +*/ +func (a *MetadataFieldApiService) NewDeleteMetadataFieldsByIdRequest(ctx context.Context, id int32) ApiDeleteMetadataFieldsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteMetadataFieldsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *MetadataFieldApiService) DeleteMetadataFieldsByIdExecute(r ApiDeleteMetadataFieldsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /MetadataFields +type ApiGetMetadataFieldsRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMetadataFieldsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMetadataFieldsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetMetadataFieldsRequest) QueryString(queryString string) ApiGetMetadataFieldsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetMetadataFieldsRequest) PageReturned(pageReturned int32) ApiGetMetadataFieldsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetMetadataFieldsRequest) ReturnLimit(returnLimit int32) ApiGetMetadataFieldsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetMetadataFieldsRequest) SortField(sortField string) ApiGetMetadataFieldsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetMetadataFieldsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetMetadataFieldsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMetadataFieldsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMetadataFieldsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /MetadataFields request context +func (r ApiGetMetadataFieldsRequest) Execute() ([]CSSCMSDataModelModelsMetadataType, *http.Response, error) { + return r.ApiService.GetMetadataFieldsExecute(r) +} + +/* +Creates a new V1 GET /MetadataFields request. + +# GetMetadataFields Returns all metadata field types according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMetadataFieldsRequest +*/ +func (a *MetadataFieldApiService) NewGetMetadataFieldsRequest(ctx context.Context) ApiGetMetadataFieldsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMetadataFieldsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /MetadataFields +// +// @return []CSSCMSDataModelModelsMetadataType +func (a *MetadataFieldApiService) GetMetadataFieldsExecute(r ApiGetMetadataFieldsRequest) ([]CSSCMSDataModelModelsMetadataType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsMetadataType + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /MetadataFields/{id} +type ApiGetMetadataFieldsByIdRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMetadataFieldsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMetadataFieldsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMetadataFieldsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMetadataFieldsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /MetadataFields/{id} request context +func (r ApiGetMetadataFieldsByIdRequest) Execute() (*CSSCMSDataModelModelsMetadataType, *http.Response, error) { + return r.ApiService.GetMetadataFieldsByIdExecute(r) +} + +/* +Creates a new V1 GET /MetadataFields/{id} request. + +# GetMetadataFieldsById Gets a persisted metadata field type by its unique id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The unique id of the metadata field type + @return ApiGetMetadataFieldsByIdRequest +*/ +func (a *MetadataFieldApiService) NewGetMetadataFieldsByIdRequest(ctx context.Context, id int32) ApiGetMetadataFieldsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMetadataFieldsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /MetadataFields/{id} +// +// @return CSSCMSDataModelModelsMetadataType +func (a *MetadataFieldApiService) GetMetadataFieldsByIdExecute(r ApiGetMetadataFieldsByIdRequest) (*CSSCMSDataModelModelsMetadataType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsMetadataType + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /MetadataFields/{id}/InUse +type ApiGetMetadataFieldsByIdInUseRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMetadataFieldsByIdInUseRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMetadataFieldsByIdInUseRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMetadataFieldsByIdInUseRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMetadataFieldsByIdInUseRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /MetadataFields/{id}/InUse request context +func (r ApiGetMetadataFieldsByIdInUseRequest) Execute() (bool, *http.Response, error) { + return r.ApiService.GetMetadataFieldsByIdInUseExecute(r) +} + +/* +Creates a new V1 GET /MetadataFields/{id}/InUse request. + +GetMetadataFieldsByIdInUse Determines if a metadata field type associated with the provided identifier is currently in use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identitifer of the metadata field + @return ApiGetMetadataFieldsByIdInUseRequest +*/ +func (a *MetadataFieldApiService) NewGetMetadataFieldsByIdInUseRequest(ctx context.Context, id int32) ApiGetMetadataFieldsByIdInUseRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMetadataFieldsByIdInUseRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /MetadataFields/{id}/InUse +// +// @return bool +func (a *MetadataFieldApiService) GetMetadataFieldsByIdInUseExecute(r ApiGetMetadataFieldsByIdInUseRequest) (bool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue bool + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields/{id}/InUse" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /MetadataFields/{name} +type ApiGetMetadataFieldsNameRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + name string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMetadataFieldsNameRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMetadataFieldsNameRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMetadataFieldsNameRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMetadataFieldsNameRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /MetadataFields/{name} request context +func (r ApiGetMetadataFieldsNameRequest) Execute() (*CSSCMSDataModelModelsMetadataType, *http.Response, error) { + return r.ApiService.GetMetadataFieldsNameExecute(r) +} + +/* +Creates a new V1 GET /MetadataFields/{name} request. + +# GetMetadataFieldsName Gets a persisted metadata field type by its unique name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name The unique name of the metadata field. + @return ApiGetMetadataFieldsNameRequest +*/ +func (a *MetadataFieldApiService) NewGetMetadataFieldsNameRequest(ctx context.Context, name string) ApiGetMetadataFieldsNameRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMetadataFieldsNameRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + name: name, + } +} + +// Executes the API request V1 GET /MetadataFields/{name} +// +// @return CSSCMSDataModelModelsMetadataType +func (a *MetadataFieldApiService) GetMetadataFieldsNameExecute(r ApiGetMetadataFieldsNameRequest) (*CSSCMSDataModelModelsMetadataType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsMetadataType + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /MetadataFields +type ApiUpdateMetadataFieldsRequest struct { + ctx context.Context + ApiService *MetadataFieldApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + metadataFieldMetadataFieldUpdateRequest *MetadataFieldMetadataFieldUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateMetadataFieldsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateMetadataFieldsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateMetadataFieldsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateMetadataFieldsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Properties of the metadata field type to be updated +func (r ApiUpdateMetadataFieldsRequest) MetadataFieldMetadataFieldUpdateRequest(metadataFieldMetadataFieldUpdateRequest MetadataFieldMetadataFieldUpdateRequest) ApiUpdateMetadataFieldsRequest { + r.metadataFieldMetadataFieldUpdateRequest = &metadataFieldMetadataFieldUpdateRequest + return r +} + +// Executes the V1 PUT /MetadataFields request context +func (r ApiUpdateMetadataFieldsRequest) Execute() (*MetadataFieldMetadataFieldResponse, *http.Response, error) { + return r.ApiService.UpdateMetadataFieldsExecute(r) +} + +/* +Creates a new V1 PUT /MetadataFields request. + +# UpdateMetadataFields Updates a persisted metadata field with the given metadata field type + +*NOTE: Metadata Field in this context refers to MetadataFieldType, as opposed to the value of a metadata field associated with a certificate. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateMetadataFieldsRequest +*/ +func (a *MetadataFieldApiService) NewUpdateMetadataFieldsRequest(ctx context.Context) ApiUpdateMetadataFieldsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateMetadataFieldsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /MetadataFields +// +// @return MetadataFieldMetadataFieldResponse +func (a *MetadataFieldApiService) UpdateMetadataFieldsExecute(r ApiUpdateMetadataFieldsRequest) (*MetadataFieldMetadataFieldResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MetadataFieldMetadataFieldResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/MetadataFields" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.metadataFieldMetadataFieldUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_monitoring.go b/v24/api/keyfactor/v1/api_monitoring.go new file mode 100644 index 0000000..d1a899f --- /dev/null +++ b/v24/api/keyfactor/v1/api_monitoring.go @@ -0,0 +1,1705 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// MonitoringApiService MonitoringApi service +type MonitoringApiService service + +// Request for V1 POST /Monitoring/ResolveOCSP +type ApiCreateMonitoringResolveOCSPRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + monitoringOCSPParametersRequest *MonitoringOCSPParametersRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringResolveOCSPRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringResolveOCSPRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringResolveOCSPRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringResolveOCSPRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new endpoint +func (r ApiCreateMonitoringResolveOCSPRequest) MonitoringOCSPParametersRequest(monitoringOCSPParametersRequest MonitoringOCSPParametersRequest) ApiCreateMonitoringResolveOCSPRequest { + r.monitoringOCSPParametersRequest = &monitoringOCSPParametersRequest + return r +} + +// Executes the V1 POST /Monitoring/ResolveOCSP request context +func (r ApiCreateMonitoringResolveOCSPRequest) Execute() (*MonitoringOCSPParametersResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringResolveOCSPExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/ResolveOCSP request. + +CreateMonitoringResolveOCSP Resolve the Certificate authority given + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringResolveOCSPRequest +*/ +func (a *MonitoringApiService) NewCreateMonitoringResolveOCSPRequest(ctx context.Context) ApiCreateMonitoringResolveOCSPRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringResolveOCSPRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/ResolveOCSP +// +// @return MonitoringOCSPParametersResponse +func (a *MonitoringApiService) CreateMonitoringResolveOCSPExecute(r ApiCreateMonitoringResolveOCSPRequest) (*MonitoringOCSPParametersResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringOCSPParametersResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/ResolveOCSP" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringOCSPParametersRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Monitoring/Revocation +type ApiCreateMonitoringRevocationRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + forceSave *bool + xKeyfactorApiVersion *string + monitoringRevocationMonitoringCreationRequest *MonitoringRevocationMonitoringCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringRevocationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringRevocationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Bypass testing the connection to either the CRL or the OCSP endpoint +func (r ApiCreateMonitoringRevocationRequest) ForceSave(forceSave bool) ApiCreateMonitoringRevocationRequest { + r.forceSave = &forceSave + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringRevocationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringRevocationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new endpoint +func (r ApiCreateMonitoringRevocationRequest) MonitoringRevocationMonitoringCreationRequest(monitoringRevocationMonitoringCreationRequest MonitoringRevocationMonitoringCreationRequest) ApiCreateMonitoringRevocationRequest { + r.monitoringRevocationMonitoringCreationRequest = &monitoringRevocationMonitoringCreationRequest + return r +} + +// Executes the V1 POST /Monitoring/Revocation request context +func (r ApiCreateMonitoringRevocationRequest) Execute() (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringRevocationExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/Revocation request. + +CreateMonitoringRevocation Add a revocation monitoring endpoint + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringRevocationRequest +*/ +func (a *MonitoringApiService) NewCreateMonitoringRevocationRequest(ctx context.Context) ApiCreateMonitoringRevocationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringRevocationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/Revocation +// +// @return MonitoringRevocationMonitoringDefinitionResponse +func (a *MonitoringApiService) CreateMonitoringRevocationExecute(r ApiCreateMonitoringRevocationRequest) (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.forceSave != nil { + parameterAddToQuery(localVarQueryParams, "forceSave", r.forceSave, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringRevocationMonitoringCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Monitoring/Revocation/CRL/Test +type ApiCreateMonitoringRevocationCRLTestRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsMonitoringCRLTestRequest *CSSCMSDataModelModelsMonitoringCRLTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringRevocationCRLTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringRevocationCRLTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringRevocationCRLTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringRevocationCRLTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The CRL being tested. +func (r ApiCreateMonitoringRevocationCRLTestRequest) CSSCMSDataModelModelsMonitoringCRLTestRequest(cSSCMSDataModelModelsMonitoringCRLTestRequest CSSCMSDataModelModelsMonitoringCRLTestRequest) ApiCreateMonitoringRevocationCRLTestRequest { + r.cSSCMSDataModelModelsMonitoringCRLTestRequest = &cSSCMSDataModelModelsMonitoringCRLTestRequest + return r +} + +// Executes the V1 POST /Monitoring/Revocation/CRL/Test request context +func (r ApiCreateMonitoringRevocationCRLTestRequest) Execute() (*CSSCMSDataModelModelsMonitoringCRLTestResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringRevocationCRLTestExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/Revocation/CRL/Test request. + +CreateMonitoringRevocationCRLTest Validates the connection info for the CRL provided by the model. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringRevocationCRLTestRequest +*/ +func (a *MonitoringApiService) NewCreateMonitoringRevocationCRLTestRequest(ctx context.Context) ApiCreateMonitoringRevocationCRLTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringRevocationCRLTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/Revocation/CRL/Test +// +// @return CSSCMSDataModelModelsMonitoringCRLTestResponse +func (a *MonitoringApiService) CreateMonitoringRevocationCRLTestExecute(r ApiCreateMonitoringRevocationCRLTestRequest) (*CSSCMSDataModelModelsMonitoringCRLTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsMonitoringCRLTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/CRL/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsMonitoringCRLTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Monitoring/Revocation/OCSP/Test +type ApiCreateMonitoringRevocationOCSPTestRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsMonitoringOCSPTestRequest *CSSCMSDataModelModelsMonitoringOCSPTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringRevocationOCSPTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringRevocationOCSPTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringRevocationOCSPTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringRevocationOCSPTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The OCSP endpoint being tested. +func (r ApiCreateMonitoringRevocationOCSPTestRequest) CSSCMSDataModelModelsMonitoringOCSPTestRequest(cSSCMSDataModelModelsMonitoringOCSPTestRequest CSSCMSDataModelModelsMonitoringOCSPTestRequest) ApiCreateMonitoringRevocationOCSPTestRequest { + r.cSSCMSDataModelModelsMonitoringOCSPTestRequest = &cSSCMSDataModelModelsMonitoringOCSPTestRequest + return r +} + +// Executes the V1 POST /Monitoring/Revocation/OCSP/Test request context +func (r ApiCreateMonitoringRevocationOCSPTestRequest) Execute() (*CSSCMSDataModelModelsMonitoringOCSPTestResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringRevocationOCSPTestExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/Revocation/OCSP/Test request. + +CreateMonitoringRevocationOCSPTest Validates the connection info for the OCSP endpoint provided by the model. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringRevocationOCSPTestRequest +*/ +func (a *MonitoringApiService) NewCreateMonitoringRevocationOCSPTestRequest(ctx context.Context) ApiCreateMonitoringRevocationOCSPTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringRevocationOCSPTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/Revocation/OCSP/Test +// +// @return CSSCMSDataModelModelsMonitoringOCSPTestResponse +func (a *MonitoringApiService) CreateMonitoringRevocationOCSPTestExecute(r ApiCreateMonitoringRevocationOCSPTestRequest) (*CSSCMSDataModelModelsMonitoringOCSPTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsMonitoringOCSPTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/OCSP/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsMonitoringOCSPTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Monitoring/Revocation/Test +type ApiCreateMonitoringRevocationTestRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + monitoringRevocationMonitoringAlertTestRequest *MonitoringRevocationMonitoringAlertTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringRevocationTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringRevocationTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringRevocationTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringRevocationTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the revocation monitoring alert test +func (r ApiCreateMonitoringRevocationTestRequest) MonitoringRevocationMonitoringAlertTestRequest(monitoringRevocationMonitoringAlertTestRequest MonitoringRevocationMonitoringAlertTestRequest) ApiCreateMonitoringRevocationTestRequest { + r.monitoringRevocationMonitoringAlertTestRequest = &monitoringRevocationMonitoringAlertTestRequest + return r +} + +// Executes the V1 POST /Monitoring/Revocation/Test request context +func (r ApiCreateMonitoringRevocationTestRequest) Execute() (*MonitoringRevocationMonitoringAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringRevocationTestExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/Revocation/Test request. + +CreateMonitoringRevocationTest Test Alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringRevocationTestRequest + +Deprecated +*/ +func (a *MonitoringApiService) NewCreateMonitoringRevocationTestRequest(ctx context.Context) ApiCreateMonitoringRevocationTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringRevocationTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/Revocation/Test +// +// @return MonitoringRevocationMonitoringAlertTestResponse +// +// Deprecated +func (a *MonitoringApiService) CreateMonitoringRevocationTestExecute(r ApiCreateMonitoringRevocationTestRequest) (*MonitoringRevocationMonitoringAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringRevocationMonitoringAlertTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Monitoring/Revocation/TestAll +type ApiCreateMonitoringRevocationTestAllRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + monitoringRevocationMonitoringAlertTestAllRequest *MonitoringRevocationMonitoringAlertTestAllRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateMonitoringRevocationTestAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateMonitoringRevocationTestAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateMonitoringRevocationTestAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateMonitoringRevocationTestAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the revocation monitoring alert test +func (r ApiCreateMonitoringRevocationTestAllRequest) MonitoringRevocationMonitoringAlertTestAllRequest(monitoringRevocationMonitoringAlertTestAllRequest MonitoringRevocationMonitoringAlertTestAllRequest) ApiCreateMonitoringRevocationTestAllRequest { + r.monitoringRevocationMonitoringAlertTestAllRequest = &monitoringRevocationMonitoringAlertTestAllRequest + return r +} + +// Executes the V1 POST /Monitoring/Revocation/TestAll request context +func (r ApiCreateMonitoringRevocationTestAllRequest) Execute() (*MonitoringRevocationMonitoringAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateMonitoringRevocationTestAllExecute(r) +} + +/* +Creates a new V1 POST /Monitoring/Revocation/TestAll request. + +CreateMonitoringRevocationTestAll Test All Alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateMonitoringRevocationTestAllRequest + +Deprecated +*/ +func (a *MonitoringApiService) NewCreateMonitoringRevocationTestAllRequest(ctx context.Context) ApiCreateMonitoringRevocationTestAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateMonitoringRevocationTestAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Monitoring/Revocation/TestAll +// +// @return MonitoringRevocationMonitoringAlertTestResponse +// +// Deprecated +func (a *MonitoringApiService) CreateMonitoringRevocationTestAllExecute(r ApiCreateMonitoringRevocationTestAllRequest) (*MonitoringRevocationMonitoringAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/TestAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringRevocationMonitoringAlertTestAllRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Monitoring/Revocation/{id} +type ApiDeleteMonitoringRevocationByIdRequest struct { + ctx context.Context + ApiService *MonitoringApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteMonitoringRevocationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteMonitoringRevocationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteMonitoringRevocationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteMonitoringRevocationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Monitoring/Revocation/{id} request context +func (r ApiDeleteMonitoringRevocationByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteMonitoringRevocationByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Monitoring/Revocation/{id} request. + +DeleteMonitoringRevocationById Delete a revocation monitoring endpoint + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the revocation monitoring endpoint + @return ApiDeleteMonitoringRevocationByIdRequest +*/ +func (a *MonitoringApiService) NewDeleteMonitoringRevocationByIdRequest(ctx context.Context, id int32) ApiDeleteMonitoringRevocationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteMonitoringRevocationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *MonitoringApiService) DeleteMonitoringRevocationByIdExecute(r ApiDeleteMonitoringRevocationByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Monitoring/Revocation +type ApiGetMonitoringRevocationRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMonitoringRevocationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMonitoringRevocationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetMonitoringRevocationRequest) QueryString(queryString string) ApiGetMonitoringRevocationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetMonitoringRevocationRequest) PageReturned(pageReturned int32) ApiGetMonitoringRevocationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetMonitoringRevocationRequest) ReturnLimit(returnLimit int32) ApiGetMonitoringRevocationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetMonitoringRevocationRequest) SortField(sortField string) ApiGetMonitoringRevocationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetMonitoringRevocationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetMonitoringRevocationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMonitoringRevocationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMonitoringRevocationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Monitoring/Revocation request context +func (r ApiGetMonitoringRevocationRequest) Execute() ([]MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + return r.ApiService.GetMonitoringRevocationExecute(r) +} + +/* +Creates a new V1 GET /Monitoring/Revocation request. + +GetMonitoringRevocation Gets all revocation monitoring endpoints according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetMonitoringRevocationRequest +*/ +func (a *MonitoringApiService) NewGetMonitoringRevocationRequest(ctx context.Context) ApiGetMonitoringRevocationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMonitoringRevocationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Monitoring/Revocation +// +// @return []MonitoringRevocationMonitoringDefinitionResponse +func (a *MonitoringApiService) GetMonitoringRevocationExecute(r ApiGetMonitoringRevocationRequest) ([]MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []MonitoringRevocationMonitoringDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Monitoring/Revocation/{id} +type ApiGetMonitoringRevocationByIdRequest struct { + ctx context.Context + ApiService *MonitoringApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetMonitoringRevocationByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetMonitoringRevocationByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetMonitoringRevocationByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetMonitoringRevocationByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Monitoring/Revocation/{id} request context +func (r ApiGetMonitoringRevocationByIdRequest) Execute() (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + return r.ApiService.GetMonitoringRevocationByIdExecute(r) +} + +/* +Creates a new V1 GET /Monitoring/Revocation/{id} request. + +GetMonitoringRevocationById Get a revocation monitoring endpoint + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the endpoint to get + @return ApiGetMonitoringRevocationByIdRequest +*/ +func (a *MonitoringApiService) NewGetMonitoringRevocationByIdRequest(ctx context.Context, id int32) ApiGetMonitoringRevocationByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetMonitoringRevocationByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Monitoring/Revocation/{id} +// +// @return MonitoringRevocationMonitoringDefinitionResponse +func (a *MonitoringApiService) GetMonitoringRevocationByIdExecute(r ApiGetMonitoringRevocationByIdRequest) (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Monitoring/Revocation +type ApiUpdateMonitoringRevocationRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + forceSave *bool + xKeyfactorApiVersion *string + monitoringRevocationMonitoringUpdateRequest *MonitoringRevocationMonitoringUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateMonitoringRevocationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateMonitoringRevocationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Bypass testing the connection to either the CRL or the OCSP endpoint +func (r ApiUpdateMonitoringRevocationRequest) ForceSave(forceSave bool) ApiUpdateMonitoringRevocationRequest { + r.forceSave = &forceSave + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateMonitoringRevocationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateMonitoringRevocationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the endpoint +func (r ApiUpdateMonitoringRevocationRequest) MonitoringRevocationMonitoringUpdateRequest(monitoringRevocationMonitoringUpdateRequest MonitoringRevocationMonitoringUpdateRequest) ApiUpdateMonitoringRevocationRequest { + r.monitoringRevocationMonitoringUpdateRequest = &monitoringRevocationMonitoringUpdateRequest + return r +} + +// Executes the V1 PUT /Monitoring/Revocation request context +func (r ApiUpdateMonitoringRevocationRequest) Execute() (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateMonitoringRevocationExecute(r) +} + +/* +Creates a new V1 PUT /Monitoring/Revocation request. + +UpdateMonitoringRevocation Edit a revocation monitoring endpoint + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateMonitoringRevocationRequest +*/ +func (a *MonitoringApiService) NewUpdateMonitoringRevocationRequest(ctx context.Context) ApiUpdateMonitoringRevocationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateMonitoringRevocationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Monitoring/Revocation +// +// @return MonitoringRevocationMonitoringDefinitionResponse +func (a *MonitoringApiService) UpdateMonitoringRevocationExecute(r ApiUpdateMonitoringRevocationRequest) (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.forceSave != nil { + parameterAddToQuery(localVarQueryParams, "forceSave", r.forceSave, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringRevocationMonitoringUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Monitoring/Revocation/Schedule +type ApiUpdateMonitoringRevocationScheduleRequest struct { + ctx context.Context + ApiService *MonitoringApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + monitoringRevocationMonitoringUpdateScheduleRequest *MonitoringRevocationMonitoringUpdateScheduleRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateMonitoringRevocationScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateMonitoringRevocationScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateMonitoringRevocationScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateMonitoringRevocationScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The information for the updating the schedule. +func (r ApiUpdateMonitoringRevocationScheduleRequest) MonitoringRevocationMonitoringUpdateScheduleRequest(monitoringRevocationMonitoringUpdateScheduleRequest MonitoringRevocationMonitoringUpdateScheduleRequest) ApiUpdateMonitoringRevocationScheduleRequest { + r.monitoringRevocationMonitoringUpdateScheduleRequest = &monitoringRevocationMonitoringUpdateScheduleRequest + return r +} + +// Executes the V1 PUT /Monitoring/Revocation/Schedule request context +func (r ApiUpdateMonitoringRevocationScheduleRequest) Execute() (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateMonitoringRevocationScheduleExecute(r) +} + +/* +Creates a new V1 PUT /Monitoring/Revocation/Schedule request. + +UpdateMonitoringRevocationSchedule Edit a revocation monitoring's schedule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateMonitoringRevocationScheduleRequest +*/ +func (a *MonitoringApiService) NewUpdateMonitoringRevocationScheduleRequest(ctx context.Context) ApiUpdateMonitoringRevocationScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateMonitoringRevocationScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Monitoring/Revocation/Schedule +// +// @return MonitoringRevocationMonitoringDefinitionResponse +func (a *MonitoringApiService) UpdateMonitoringRevocationScheduleExecute(r ApiUpdateMonitoringRevocationScheduleRequest) (*MonitoringRevocationMonitoringDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MonitoringRevocationMonitoringDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Monitoring/Revocation/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.monitoringRevocationMonitoringUpdateScheduleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_orchestrator_job.go b/v24/api/keyfactor/v1/api_orchestrator_job.go new file mode 100644 index 0000000..b62dbe6 --- /dev/null +++ b/v24/api/keyfactor/v1/api_orchestrator_job.go @@ -0,0 +1,1254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// OrchestratorJobApiService OrchestratorJobApi service +type OrchestratorJobApiService service + +// Request for V1 POST /OrchestratorJobs/Acknowledge +type ApiCreateOrchestratorJobsAcknowledgeRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorJobsAcknowledgeJobRequest *OrchestratorJobsAcknowledgeJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateOrchestratorJobsAcknowledgeRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateOrchestratorJobsAcknowledgeRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateOrchestratorJobsAcknowledgeRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateOrchestratorJobsAcknowledgeRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information to identify the jobs to acknowledge, either a query or a list of job identifiers +func (r ApiCreateOrchestratorJobsAcknowledgeRequest) OrchestratorJobsAcknowledgeJobRequest(orchestratorJobsAcknowledgeJobRequest OrchestratorJobsAcknowledgeJobRequest) ApiCreateOrchestratorJobsAcknowledgeRequest { + r.orchestratorJobsAcknowledgeJobRequest = &orchestratorJobsAcknowledgeJobRequest + return r +} + +// Executes the V1 POST /OrchestratorJobs/Acknowledge request context +func (r ApiCreateOrchestratorJobsAcknowledgeRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateOrchestratorJobsAcknowledgeExecute(r) +} + +/* +Creates a new V1 POST /OrchestratorJobs/Acknowledge request. + +CreateOrchestratorJobsAcknowledge Acknowledges orchestrator jobs based on the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrchestratorJobsAcknowledgeRequest +*/ +func (a *OrchestratorJobApiService) NewCreateOrchestratorJobsAcknowledgeRequest(ctx context.Context) ApiCreateOrchestratorJobsAcknowledgeRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateOrchestratorJobsAcknowledgeRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *OrchestratorJobApiService) CreateOrchestratorJobsAcknowledgeExecute(r ApiCreateOrchestratorJobsAcknowledgeRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/Acknowledge" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorJobsAcknowledgeJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /OrchestratorJobs/Custom +type ApiCreateOrchestratorJobsCustomRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateOrchestratorJobsCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateOrchestratorJobsCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateOrchestratorJobsCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateOrchestratorJobsCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. +func (r ApiCreateOrchestratorJobsCustomRequest) CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) ApiCreateOrchestratorJobsCustomRequest { + r.cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest = &cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest + return r +} + +// Executes the V1 POST /OrchestratorJobs/Custom request context +func (r ApiCreateOrchestratorJobsCustomRequest) Execute() (*OrchestratorJobsJobResponse, *http.Response, error) { + return r.ApiService.CreateOrchestratorJobsCustomExecute(r) +} + +/* +Creates a new V1 POST /OrchestratorJobs/Custom request. + +CreateOrchestratorJobsCustom Schedules a job for a custom JobType on the agent using the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrchestratorJobsCustomRequest +*/ +func (a *OrchestratorJobApiService) NewCreateOrchestratorJobsCustomRequest(ctx context.Context) ApiCreateOrchestratorJobsCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateOrchestratorJobsCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /OrchestratorJobs/Custom +// +// @return OrchestratorJobsJobResponse +func (a *OrchestratorJobApiService) CreateOrchestratorJobsCustomExecute(r ApiCreateOrchestratorJobsCustomRequest) (*OrchestratorJobsJobResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsJobResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /OrchestratorJobs/Custom/Bulk +type ApiCreateOrchestratorJobsCustomBulkRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateOrchestratorJobsCustomBulkRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateOrchestratorJobsCustomBulkRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateOrchestratorJobsCustomBulkRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateOrchestratorJobsCustomBulkRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. +func (r ApiCreateOrchestratorJobsCustomBulkRequest) CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) ApiCreateOrchestratorJobsCustomBulkRequest { + r.cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest = &cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest + return r +} + +// Executes the V1 POST /OrchestratorJobs/Custom/Bulk request context +func (r ApiCreateOrchestratorJobsCustomBulkRequest) Execute() (*OrchestratorJobsBulkJobResponse, *http.Response, error) { + return r.ApiService.CreateOrchestratorJobsCustomBulkExecute(r) +} + +/* +Creates a new V1 POST /OrchestratorJobs/Custom/Bulk request. + +CreateOrchestratorJobsCustomBulk Schedules the same job for a custom JobType on the specified agents using the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrchestratorJobsCustomBulkRequest +*/ +func (a *OrchestratorJobApiService) NewCreateOrchestratorJobsCustomBulkRequest(ctx context.Context) ApiCreateOrchestratorJobsCustomBulkRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateOrchestratorJobsCustomBulkRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /OrchestratorJobs/Custom/Bulk +// +// @return OrchestratorJobsBulkJobResponse +func (a *OrchestratorJobApiService) CreateOrchestratorJobsCustomBulkExecute(r ApiCreateOrchestratorJobsCustomBulkRequest) (*OrchestratorJobsBulkJobResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsBulkJobResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/Custom/Bulk" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /OrchestratorJobs/Reschedule +type ApiCreateOrchestratorJobsRescheduleRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorJobsRescheduleJobRequest *OrchestratorJobsRescheduleJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateOrchestratorJobsRescheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateOrchestratorJobsRescheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateOrchestratorJobsRescheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateOrchestratorJobsRescheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information to identify the jobs to reschedule, either a query or a list of job identifiers +func (r ApiCreateOrchestratorJobsRescheduleRequest) OrchestratorJobsRescheduleJobRequest(orchestratorJobsRescheduleJobRequest OrchestratorJobsRescheduleJobRequest) ApiCreateOrchestratorJobsRescheduleRequest { + r.orchestratorJobsRescheduleJobRequest = &orchestratorJobsRescheduleJobRequest + return r +} + +// Executes the V1 POST /OrchestratorJobs/Reschedule request context +func (r ApiCreateOrchestratorJobsRescheduleRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateOrchestratorJobsRescheduleExecute(r) +} + +/* +Creates a new V1 POST /OrchestratorJobs/Reschedule request. + +CreateOrchestratorJobsReschedule Reschedules orchestrator jobs based on the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrchestratorJobsRescheduleRequest +*/ +func (a *OrchestratorJobApiService) NewCreateOrchestratorJobsRescheduleRequest(ctx context.Context) ApiCreateOrchestratorJobsRescheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateOrchestratorJobsRescheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *OrchestratorJobApiService) CreateOrchestratorJobsRescheduleExecute(r ApiCreateOrchestratorJobsRescheduleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/Reschedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorJobsRescheduleJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /OrchestratorJobs/Unschedule +type ApiCreateOrchestratorJobsUnscheduleRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + orchestratorJobsUnscheduleJobRequest *OrchestratorJobsUnscheduleJobRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateOrchestratorJobsUnscheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateOrchestratorJobsUnscheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateOrchestratorJobsUnscheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateOrchestratorJobsUnscheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers +func (r ApiCreateOrchestratorJobsUnscheduleRequest) OrchestratorJobsUnscheduleJobRequest(orchestratorJobsUnscheduleJobRequest OrchestratorJobsUnscheduleJobRequest) ApiCreateOrchestratorJobsUnscheduleRequest { + r.orchestratorJobsUnscheduleJobRequest = &orchestratorJobsUnscheduleJobRequest + return r +} + +// Executes the V1 POST /OrchestratorJobs/Unschedule request context +func (r ApiCreateOrchestratorJobsUnscheduleRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateOrchestratorJobsUnscheduleExecute(r) +} + +/* +Creates a new V1 POST /OrchestratorJobs/Unschedule request. + +CreateOrchestratorJobsUnschedule Unschedules orchestrator jobs based on the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateOrchestratorJobsUnscheduleRequest +*/ +func (a *OrchestratorJobApiService) NewCreateOrchestratorJobsUnscheduleRequest(ctx context.Context) ApiCreateOrchestratorJobsUnscheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateOrchestratorJobsUnscheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *OrchestratorJobApiService) CreateOrchestratorJobsUnscheduleExecute(r ApiCreateOrchestratorJobsUnscheduleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/Unschedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.orchestratorJobsUnscheduleJobRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /OrchestratorJobs/JobHistory +type ApiGetOrchestratorJobsJobHistoryRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetOrchestratorJobsJobHistoryRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetOrchestratorJobsJobHistoryRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetOrchestratorJobsJobHistoryRequest) QueryString(queryString string) ApiGetOrchestratorJobsJobHistoryRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetOrchestratorJobsJobHistoryRequest) PageReturned(pageReturned int32) ApiGetOrchestratorJobsJobHistoryRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetOrchestratorJobsJobHistoryRequest) ReturnLimit(returnLimit int32) ApiGetOrchestratorJobsJobHistoryRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetOrchestratorJobsJobHistoryRequest) SortField(sortField string) ApiGetOrchestratorJobsJobHistoryRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetOrchestratorJobsJobHistoryRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetOrchestratorJobsJobHistoryRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetOrchestratorJobsJobHistoryRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetOrchestratorJobsJobHistoryRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /OrchestratorJobs/JobHistory request context +func (r ApiGetOrchestratorJobsJobHistoryRequest) Execute() ([]CertificateStoresJobHistoryResponse, *http.Response, error) { + return r.ApiService.GetOrchestratorJobsJobHistoryExecute(r) +} + +/* +Creates a new V1 GET /OrchestratorJobs/JobHistory request. + +GetOrchestratorJobsJobHistory Returns all histories of an orchestrator job according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOrchestratorJobsJobHistoryRequest +*/ +func (a *OrchestratorJobApiService) NewGetOrchestratorJobsJobHistoryRequest(ctx context.Context) ApiGetOrchestratorJobsJobHistoryRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetOrchestratorJobsJobHistoryRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /OrchestratorJobs/JobHistory +// +// @return []CertificateStoresJobHistoryResponse +func (a *OrchestratorJobApiService) GetOrchestratorJobsJobHistoryExecute(r ApiGetOrchestratorJobsJobHistoryRequest) ([]CertificateStoresJobHistoryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificateStoresJobHistoryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/JobHistory" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /OrchestratorJobs/JobStatus/Data +type ApiGetOrchestratorJobsJobStatusDataRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + jobHistoryId *int64 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Identifier of the job history record to retrieve +func (r ApiGetOrchestratorJobsJobStatusDataRequest) JobHistoryId(jobHistoryId int64) ApiGetOrchestratorJobsJobStatusDataRequest { + r.jobHistoryId = &jobHistoryId + return r +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetOrchestratorJobsJobStatusDataRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetOrchestratorJobsJobStatusDataRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetOrchestratorJobsJobStatusDataRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetOrchestratorJobsJobStatusDataRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /OrchestratorJobs/JobStatus/Data request context +func (r ApiGetOrchestratorJobsJobStatusDataRequest) Execute() (*OrchestratorJobsCustomJobResultDataResponse, *http.Response, error) { + return r.ApiService.GetOrchestratorJobsJobStatusDataExecute(r) +} + +/* +Creates a new V1 GET /OrchestratorJobs/JobStatus/Data request. + +GetOrchestratorJobsJobStatusData Retrieves the results of a custom job using the provided information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOrchestratorJobsJobStatusDataRequest +*/ +func (a *OrchestratorJobApiService) NewGetOrchestratorJobsJobStatusDataRequest(ctx context.Context) ApiGetOrchestratorJobsJobStatusDataRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetOrchestratorJobsJobStatusDataRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /OrchestratorJobs/JobStatus/Data +// +// @return OrchestratorJobsCustomJobResultDataResponse +func (a *OrchestratorJobApiService) GetOrchestratorJobsJobStatusDataExecute(r ApiGetOrchestratorJobsJobStatusDataRequest) (*OrchestratorJobsCustomJobResultDataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrchestratorJobsCustomJobResultDataResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/JobStatus/Data" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.jobHistoryId == nil { + return localVarReturnValue, nil, reportError("jobHistoryId is required and must be specified") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + parameterAddToQuery(localVarQueryParams, "jobHistoryId", r.jobHistoryId, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /OrchestratorJobs/ScheduledJobs +type ApiGetOrchestratorJobsScheduledJobsRequest struct { + ctx context.Context + ApiService *OrchestratorJobApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetOrchestratorJobsScheduledJobsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetOrchestratorJobsScheduledJobsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetOrchestratorJobsScheduledJobsRequest) QueryString(queryString string) ApiGetOrchestratorJobsScheduledJobsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetOrchestratorJobsScheduledJobsRequest) PageReturned(pageReturned int32) ApiGetOrchestratorJobsScheduledJobsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetOrchestratorJobsScheduledJobsRequest) ReturnLimit(returnLimit int32) ApiGetOrchestratorJobsScheduledJobsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetOrchestratorJobsScheduledJobsRequest) SortField(sortField string) ApiGetOrchestratorJobsScheduledJobsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetOrchestratorJobsScheduledJobsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetOrchestratorJobsScheduledJobsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetOrchestratorJobsScheduledJobsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetOrchestratorJobsScheduledJobsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /OrchestratorJobs/ScheduledJobs request context +func (r ApiGetOrchestratorJobsScheduledJobsRequest) Execute() ([]CSSCMSDataModelModelsOrchestratorJobsJob, *http.Response, error) { + return r.ApiService.GetOrchestratorJobsScheduledJobsExecute(r) +} + +/* +Creates a new V1 GET /OrchestratorJobs/ScheduledJobs request. + +GetOrchestratorJobsScheduledJobs Returns all scheduled orchestrator jobs according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOrchestratorJobsScheduledJobsRequest +*/ +func (a *OrchestratorJobApiService) NewGetOrchestratorJobsScheduledJobsRequest(ctx context.Context) ApiGetOrchestratorJobsScheduledJobsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetOrchestratorJobsScheduledJobsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /OrchestratorJobs/ScheduledJobs +// +// @return []CSSCMSDataModelModelsOrchestratorJobsJob +func (a *OrchestratorJobApiService) GetOrchestratorJobsScheduledJobsExecute(r ApiGetOrchestratorJobsScheduledJobsRequest) ([]CSSCMSDataModelModelsOrchestratorJobsJob, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsOrchestratorJobsJob + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/OrchestratorJobs/ScheduledJobs" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_pam_local_entries.go b/v24/api/keyfactor/v1/api_pam_local_entries.go new file mode 100644 index 0000000..e3c5784 --- /dev/null +++ b/v24/api/keyfactor/v1/api_pam_local_entries.go @@ -0,0 +1,700 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// PAMLocalEntriesApiService PAMLocalEntriesApi service +type PAMLocalEntriesApiService service + +// Request for V1 POST /PamProviders/Local/{providerId}/Entries +type ApiCreatePamProvidersLocalProviderIdEntriesRequest struct { + ctx context.Context + ApiService *PAMLocalEntriesApiService + providerId int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMLocalLocalPAMEntryCreateRequest *PAMLocalLocalPAMEntryCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePamProvidersLocalProviderIdEntriesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePamProvidersLocalProviderIdEntriesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Local PAM entry properties to be used +func (r ApiCreatePamProvidersLocalProviderIdEntriesRequest) PAMLocalLocalPAMEntryCreateRequest(pAMLocalLocalPAMEntryCreateRequest PAMLocalLocalPAMEntryCreateRequest) ApiCreatePamProvidersLocalProviderIdEntriesRequest { + r.pAMLocalLocalPAMEntryCreateRequest = &pAMLocalLocalPAMEntryCreateRequest + return r +} + +// Executes the V1 POST /PamProviders/Local/{providerId}/Entries request context +func (r ApiCreatePamProvidersLocalProviderIdEntriesRequest) Execute() (*PAMLocalLocalPAMEntryResponse, *http.Response, error) { + return r.ApiService.CreatePamProvidersLocalProviderIdEntriesExecute(r) +} + +/* +Creates a new V1 POST /PamProviders/Local/{providerId}/Entries request. + +CreatePamProvidersLocalProviderIdEntries Creates a new local PAM entry with the associated properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param providerId Keyfactor identifier of the PAM provider + @return ApiCreatePamProvidersLocalProviderIdEntriesRequest +*/ +func (a *PAMLocalEntriesApiService) NewCreatePamProvidersLocalProviderIdEntriesRequest(ctx context.Context, providerId int32) ApiCreatePamProvidersLocalProviderIdEntriesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreatePamProvidersLocalProviderIdEntriesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + providerId: providerId, + } +} + +// Executes the API request V1 POST /PamProviders/Local/{providerId}/Entries +// +// @return PAMLocalLocalPAMEntryResponse +func (a *PAMLocalEntriesApiService) CreatePamProvidersLocalProviderIdEntriesExecute(r ApiCreatePamProvidersLocalProviderIdEntriesRequest) (*PAMLocalLocalPAMEntryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMLocalLocalPAMEntryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Local/{providerId}/Entries" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerId < 1 { + return localVarReturnValue, nil, reportError("providerId must be greater than 1") + } + if r.providerId > 2147483647 { + return localVarReturnValue, nil, reportError("providerId must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMLocalLocalPAMEntryCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /PamProviders/Local/{providerId}/Entries +type ApiDeletePamProvidersLocalProviderIdEntriesRequest struct { + ctx context.Context + ApiService *PAMLocalEntriesApiService + providerId int32 + secretName *string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Name of the secret entry to be deleted +func (r ApiDeletePamProvidersLocalProviderIdEntriesRequest) SecretName(secretName string) ApiDeletePamProvidersLocalProviderIdEntriesRequest { + r.secretName = &secretName + return r +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeletePamProvidersLocalProviderIdEntriesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeletePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeletePamProvidersLocalProviderIdEntriesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeletePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /PamProviders/Local/{providerId}/Entries request context +func (r ApiDeletePamProvidersLocalProviderIdEntriesRequest) Execute() (*http.Response, error) { + return r.ApiService.DeletePamProvidersLocalProviderIdEntriesExecute(r) +} + +/* +Creates a new V1 DELETE /PamProviders/Local/{providerId}/Entries request. + +DeletePamProvidersLocalProviderIdEntries Deletes a local PAM entry + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param providerId Keyfactor identifier of the PAM provider + @return ApiDeletePamProvidersLocalProviderIdEntriesRequest +*/ +func (a *PAMLocalEntriesApiService) NewDeletePamProvidersLocalProviderIdEntriesRequest(ctx context.Context, providerId int32) ApiDeletePamProvidersLocalProviderIdEntriesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeletePamProvidersLocalProviderIdEntriesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + providerId: providerId, + } +} + +// Executes the API request +func (a *PAMLocalEntriesApiService) DeletePamProvidersLocalProviderIdEntriesExecute(r ApiDeletePamProvidersLocalProviderIdEntriesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Local/{providerId}/Entries" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerId < 1 { + return nil, reportError("providerId must be greater than 1") + } + if r.providerId > 2147483647 { + return nil, reportError("providerId must be less than 2147483647") + } + if r.secretName == nil { + return nil, reportError("secretName is required and must be specified") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + parameterAddToQuery(localVarQueryParams, "secretName", r.secretName, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /PamProviders/Local/{providerId}/Entries +type ApiGetPamProvidersLocalProviderIdEntriesRequest struct { + ctx context.Context + ApiService *PAMLocalEntriesApiService + providerId int32 + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) QueryString(queryString string) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) PageReturned(pageReturned int32) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) ReturnLimit(returnLimit int32) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) SortField(sortField string) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PamProviders/Local/{providerId}/Entries request context +func (r ApiGetPamProvidersLocalProviderIdEntriesRequest) Execute() ([]PAMLocalLocalPAMEntryResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersLocalProviderIdEntriesExecute(r) +} + +/* +Creates a new V1 GET /PamProviders/Local/{providerId}/Entries request. + +GetPamProvidersLocalProviderIdEntries Returns local PAM entries for the given PAM provider according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param providerId Keyfactor identifier of the PAM provider + @return ApiGetPamProvidersLocalProviderIdEntriesRequest +*/ +func (a *PAMLocalEntriesApiService) NewGetPamProvidersLocalProviderIdEntriesRequest(ctx context.Context, providerId int32) ApiGetPamProvidersLocalProviderIdEntriesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPamProvidersLocalProviderIdEntriesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + providerId: providerId, + } +} + +// Executes the API request V1 GET /PamProviders/Local/{providerId}/Entries +// +// @return []PAMLocalLocalPAMEntryResponse +func (a *PAMLocalEntriesApiService) GetPamProvidersLocalProviderIdEntriesExecute(r ApiGetPamProvidersLocalProviderIdEntriesRequest) ([]PAMLocalLocalPAMEntryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMLocalLocalPAMEntryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Local/{providerId}/Entries" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerId < 1 { + return localVarReturnValue, nil, reportError("providerId must be greater than 1") + } + if r.providerId > 2147483647 { + return localVarReturnValue, nil, reportError("providerId must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /PamProviders/Local/{providerId}/Entries +type ApiUpdatePamProvidersLocalProviderIdEntriesRequest struct { + ctx context.Context + ApiService *PAMLocalEntriesApiService + providerId int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMLocalLocalPAMEntryUpdateRequest *PAMLocalLocalPAMEntryUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdatePamProvidersLocalProviderIdEntriesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdatePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdatePamProvidersLocalProviderIdEntriesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdatePamProvidersLocalProviderIdEntriesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Local PAM entry properties to be used +func (r ApiUpdatePamProvidersLocalProviderIdEntriesRequest) PAMLocalLocalPAMEntryUpdateRequest(pAMLocalLocalPAMEntryUpdateRequest PAMLocalLocalPAMEntryUpdateRequest) ApiUpdatePamProvidersLocalProviderIdEntriesRequest { + r.pAMLocalLocalPAMEntryUpdateRequest = &pAMLocalLocalPAMEntryUpdateRequest + return r +} + +// Executes the V1 PUT /PamProviders/Local/{providerId}/Entries request context +func (r ApiUpdatePamProvidersLocalProviderIdEntriesRequest) Execute() (*PAMLocalLocalPAMEntryResponse, *http.Response, error) { + return r.ApiService.UpdatePamProvidersLocalProviderIdEntriesExecute(r) +} + +/* +Creates a new V1 PUT /PamProviders/Local/{providerId}/Entries request. + +UpdatePamProvidersLocalProviderIdEntries Updates local PAM entry with the associated properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param providerId Keyfactor identifier of the PAM provider + @return ApiUpdatePamProvidersLocalProviderIdEntriesRequest +*/ +func (a *PAMLocalEntriesApiService) NewUpdatePamProvidersLocalProviderIdEntriesRequest(ctx context.Context, providerId int32) ApiUpdatePamProvidersLocalProviderIdEntriesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdatePamProvidersLocalProviderIdEntriesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + providerId: providerId, + } +} + +// Executes the API request V1 PUT /PamProviders/Local/{providerId}/Entries +// +// @return PAMLocalLocalPAMEntryResponse +func (a *PAMLocalEntriesApiService) UpdatePamProvidersLocalProviderIdEntriesExecute(r ApiUpdatePamProvidersLocalProviderIdEntriesRequest) (*PAMLocalLocalPAMEntryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMLocalLocalPAMEntryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Local/{providerId}/Entries" + localVarPath = strings.Replace(localVarPath, "{"+"providerId"+"}", url.PathEscape(parameterValueToString(r.providerId, "providerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerId < 1 { + return localVarReturnValue, nil, reportError("providerId must be greater than 1") + } + if r.providerId > 2147483647 { + return localVarReturnValue, nil, reportError("providerId must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMLocalLocalPAMEntryUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_pam_provider.go b/v24/api/keyfactor/v1/api_pam_provider.go new file mode 100644 index 0000000..432c127 --- /dev/null +++ b/v24/api/keyfactor/v1/api_pam_provider.go @@ -0,0 +1,1260 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// PAMProviderApiService PAMProviderApi service +type PAMProviderApiService service + +// Request for V1 POST /PamProviders +type ApiCreatePamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderCreateRequest *PAMProviderCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider properties to be used +func (r ApiCreatePamProvidersRequest) PAMProviderCreateRequest(pAMProviderCreateRequest PAMProviderCreateRequest) ApiCreatePamProvidersRequest { + r.pAMProviderCreateRequest = &pAMProviderCreateRequest + return r +} + +// Executes the V1 POST /PamProviders request context +func (r ApiCreatePamProvidersRequest) Execute() (*PAMProviderResponseLegacy, *http.Response, error) { + return r.ApiService.CreatePamProvidersExecute(r) +} + +/* +Creates a new V1 POST /PamProviders request. + +# CreatePamProviders Creates a new PAM provider with the associated properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePamProvidersRequest +*/ +func (a *PAMProviderApiService) NewCreatePamProvidersRequest(ctx context.Context) ApiCreatePamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreatePamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /PamProviders +// +// @return PAMProviderResponseLegacy +func (a *PAMProviderApiService) CreatePamProvidersExecute(r ApiCreatePamProvidersRequest) (*PAMProviderResponseLegacy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponseLegacy + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /PamProviders/Types +type ApiCreatePamProvidersTypesRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderTypeCreateRequest *PAMProviderTypeCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePamProvidersTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePamProvidersTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePamProvidersTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePamProvidersTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider type properties to be used +func (r ApiCreatePamProvidersTypesRequest) PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest PAMProviderTypeCreateRequest) ApiCreatePamProvidersTypesRequest { + r.pAMProviderTypeCreateRequest = &pAMProviderTypeCreateRequest + return r +} + +// Executes the V1 POST /PamProviders/Types request context +func (r ApiCreatePamProvidersTypesRequest) Execute() (*PAMProviderTypeResponse, *http.Response, error) { + return r.ApiService.CreatePamProvidersTypesExecute(r) +} + +/* +Creates a new V1 POST /PamProviders/Types request. + +# CreatePamProvidersTypes Creates a new PAM provider type with the associated properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePamProvidersTypesRequest +*/ +func (a *PAMProviderApiService) NewCreatePamProvidersTypesRequest(ctx context.Context) ApiCreatePamProvidersTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreatePamProvidersTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /PamProviders/Types +// +// @return PAMProviderTypeResponse +func (a *PAMProviderApiService) CreatePamProvidersTypesExecute(r ApiCreatePamProvidersTypesRequest) (*PAMProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderTypeCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /PamProviders/{id} +type ApiDeletePamProvidersByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeletePamProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeletePamProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeletePamProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeletePamProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /PamProviders/{id} request context +func (r ApiDeletePamProvidersByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeletePamProvidersByIdExecute(r) +} + +/* +Creates a new V1 DELETE /PamProviders/{id} request. + +DeletePamProvidersById Deletes a PAM Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider to be deleted + @return ApiDeletePamProvidersByIdRequest +*/ +func (a *PAMProviderApiService) NewDeletePamProvidersByIdRequest(ctx context.Context, id int32) ApiDeletePamProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeletePamProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *PAMProviderApiService) DeletePamProvidersByIdExecute(r ApiDeletePamProvidersByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /PamProviders/Types/{id} +type ApiDeletePamProvidersTypesByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeletePamProvidersTypesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeletePamProvidersTypesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeletePamProvidersTypesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeletePamProvidersTypesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /PamProviders/Types/{id} request context +func (r ApiDeletePamProvidersTypesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeletePamProvidersTypesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /PamProviders/Types/{id} request. + +DeletePamProvidersTypesById Deletes a PAM provider Type, as long as the PAM type is not currently in use. + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| CyberArk | string | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id PAM provider type Id to be used + @return ApiDeletePamProvidersTypesByIdRequest +*/ +func (a *PAMProviderApiService) NewDeletePamProvidersTypesByIdRequest(ctx context.Context, id string) ApiDeletePamProvidersTypesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeletePamProvidersTypesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *PAMProviderApiService) DeletePamProvidersTypesByIdExecute(r ApiDeletePamProvidersTypesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /PamProviders +type ApiGetPamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetPamProvidersRequest) QueryString(queryString string) ApiGetPamProvidersRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetPamProvidersRequest) PageReturned(pageReturned int32) ApiGetPamProvidersRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetPamProvidersRequest) ReturnLimit(returnLimit int32) ApiGetPamProvidersRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetPamProvidersRequest) SortField(sortField string) ApiGetPamProvidersRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetPamProvidersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetPamProvidersRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PamProviders request context +func (r ApiGetPamProvidersRequest) Execute() ([]PAMProviderResponseLegacy, *http.Response, error) { + return r.ApiService.GetPamProvidersExecute(r) +} + +/* +Creates a new V1 GET /PamProviders request. + +# GetPamProviders Returns all PAM providers according to the provided filter and output parameters + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPamProvidersRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersRequest(ctx context.Context) ApiGetPamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /PamProviders +// +// @return []PAMProviderResponseLegacy +func (a *PAMProviderApiService) GetPamProvidersExecute(r ApiGetPamProvidersRequest) ([]PAMProviderResponseLegacy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMProviderResponseLegacy + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /PamProviders/{id} +type ApiGetPamProvidersByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PamProviders/{id} request context +func (r ApiGetPamProvidersByIdRequest) Execute() (*PAMProviderResponseLegacy, *http.Response, error) { + return r.ApiService.GetPamProvidersByIdExecute(r) +} + +/* +Creates a new V1 GET /PamProviders/{id} request. + +# GetPamProvidersById Returns a single PAM Provider that matches the associated id + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider + @return ApiGetPamProvidersByIdRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersByIdRequest(ctx context.Context, id int32) ApiGetPamProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPamProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /PamProviders/{id} +// +// @return PAMProviderResponseLegacy +func (a *PAMProviderApiService) GetPamProvidersByIdExecute(r ApiGetPamProvidersByIdRequest) (*PAMProviderResponseLegacy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponseLegacy + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /PamProviders/Types +type ApiGetPamProvidersTypesRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PamProviders/Types request context +func (r ApiGetPamProvidersTypesRequest) Execute() ([]PAMProviderTypeResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersTypesExecute(r) +} + +/* +Creates a new V1 GET /PamProviders/Types request. + +# GetPamProvidersTypes Returns all PAM provider types in the Keyfactor instance + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPamProvidersTypesRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersTypesRequest(ctx context.Context) ApiGetPamProvidersTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPamProvidersTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /PamProviders/Types +// +// @return []PAMProviderTypeResponse +func (a *PAMProviderApiService) GetPamProvidersTypesExecute(r ApiGetPamProvidersTypesRequest) ([]PAMProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /PamProviders +type ApiUpdatePamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderUpdateRequestLegacy *PAMProviderUpdateRequestLegacy +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdatePamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdatePamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdatePamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdatePamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider properties to be used +func (r ApiUpdatePamProvidersRequest) PAMProviderUpdateRequestLegacy(pAMProviderUpdateRequestLegacy PAMProviderUpdateRequestLegacy) ApiUpdatePamProvidersRequest { + r.pAMProviderUpdateRequestLegacy = &pAMProviderUpdateRequestLegacy + return r +} + +// Executes the V1 PUT /PamProviders request context +func (r ApiUpdatePamProvidersRequest) Execute() (*PAMProviderResponseLegacy, *http.Response, error) { + return r.ApiService.UpdatePamProvidersExecute(r) +} + +/* +Creates a new V1 PUT /PamProviders request. + +# UpdatePamProviders Updates an existing PAM provider according to the provided properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePamProvidersRequest +*/ +func (a *PAMProviderApiService) NewUpdatePamProvidersRequest(ctx context.Context) ApiUpdatePamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdatePamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /PamProviders +// +// @return PAMProviderResponseLegacy +func (a *PAMProviderApiService) UpdatePamProvidersExecute(r ApiUpdatePamProvidersRequest) (*PAMProviderResponseLegacy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponseLegacy + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderUpdateRequestLegacy + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_pending_alert.go b/v24/api/keyfactor/v1/api_pending_alert.go new file mode 100644 index 0000000..c8bb138 --- /dev/null +++ b/v24/api/keyfactor/v1/api_pending_alert.go @@ -0,0 +1,1379 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// PendingAlertApiService PendingAlertApi service +type PendingAlertApiService service + +// Request for V1 POST /Alerts/Pending +type ApiCreateAlertsPendingRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsPendingPendingAlertCreationRequest *AlertsPendingPendingAlertCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the new alert +func (r ApiCreateAlertsPendingRequest) AlertsPendingPendingAlertCreationRequest(alertsPendingPendingAlertCreationRequest AlertsPendingPendingAlertCreationRequest) ApiCreateAlertsPendingRequest { + r.alertsPendingPendingAlertCreationRequest = &alertsPendingPendingAlertCreationRequest + return r +} + +// Executes the V1 POST /Alerts/Pending request context +func (r ApiCreateAlertsPendingRequest) Execute() (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateAlertsPendingExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Pending request. + +CreateAlertsPending Add a pending alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsPendingRequest +*/ +func (a *PendingAlertApiService) NewCreateAlertsPendingRequest(ctx context.Context) ApiCreateAlertsPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Pending +// +// @return AlertsPendingPendingAlertDefinitionResponse +func (a *PendingAlertApiService) CreateAlertsPendingExecute(r ApiCreateAlertsPendingRequest) (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsPendingPendingAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsPendingPendingAlertCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/Pending/Test +type ApiCreateAlertsPendingTestRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsPendingPendingAlertTestRequest *AlertsPendingPendingAlertTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsPendingTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsPendingTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsPendingTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsPendingTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the pending alert +func (r ApiCreateAlertsPendingTestRequest) AlertsPendingPendingAlertTestRequest(alertsPendingPendingAlertTestRequest AlertsPendingPendingAlertTestRequest) ApiCreateAlertsPendingTestRequest { + r.alertsPendingPendingAlertTestRequest = &alertsPendingPendingAlertTestRequest + return r +} + +// Executes the V1 POST /Alerts/Pending/Test request context +func (r ApiCreateAlertsPendingTestRequest) Execute() (*AlertsPendingPendingAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsPendingTestExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Pending/Test request. + +CreateAlertsPendingTest Test pending alert. Will send alert emails if SendAlerts is true + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsPendingTestRequest + +Deprecated +*/ +func (a *PendingAlertApiService) NewCreateAlertsPendingTestRequest(ctx context.Context) ApiCreateAlertsPendingTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsPendingTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Pending/Test +// +// @return AlertsPendingPendingAlertTestResponse +// +// Deprecated +func (a *PendingAlertApiService) CreateAlertsPendingTestExecute(r ApiCreateAlertsPendingTestRequest) (*AlertsPendingPendingAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsPendingPendingAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsPendingPendingAlertTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Alerts/Pending/TestAll +type ApiCreateAlertsPendingTestAllRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsPendingPendingAlertTestAllRequest *AlertsPendingPendingAlertTestAllRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateAlertsPendingTestAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateAlertsPendingTestAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateAlertsPendingTestAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateAlertsPendingTestAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the pending alert +func (r ApiCreateAlertsPendingTestAllRequest) AlertsPendingPendingAlertTestAllRequest(alertsPendingPendingAlertTestAllRequest AlertsPendingPendingAlertTestAllRequest) ApiCreateAlertsPendingTestAllRequest { + r.alertsPendingPendingAlertTestAllRequest = &alertsPendingPendingAlertTestAllRequest + return r +} + +// Executes the V1 POST /Alerts/Pending/TestAll request context +func (r ApiCreateAlertsPendingTestAllRequest) Execute() (*AlertsPendingPendingAlertTestResponse, *http.Response, error) { + return r.ApiService.CreateAlertsPendingTestAllExecute(r) +} + +/* +Creates a new V1 POST /Alerts/Pending/TestAll request. + +CreateAlertsPendingTestAll Test all pending alerts. Will send alert emails if SendAlerts is true + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAlertsPendingTestAllRequest + +Deprecated +*/ +func (a *PendingAlertApiService) NewCreateAlertsPendingTestAllRequest(ctx context.Context) ApiCreateAlertsPendingTestAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateAlertsPendingTestAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Alerts/Pending/TestAll +// +// @return AlertsPendingPendingAlertTestResponse +// +// Deprecated +func (a *PendingAlertApiService) CreateAlertsPendingTestAllExecute(r ApiCreateAlertsPendingTestAllRequest) (*AlertsPendingPendingAlertTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsPendingPendingAlertTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/TestAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsPendingPendingAlertTestAllRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Alerts/Pending/{id} +type ApiDeleteAlertsPendingByIdRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteAlertsPendingByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteAlertsPendingByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteAlertsPendingByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteAlertsPendingByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Alerts/Pending/{id} request context +func (r ApiDeleteAlertsPendingByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAlertsPendingByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Alerts/Pending/{id} request. + +DeleteAlertsPendingById Delete a pending alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the pending alert + @return ApiDeleteAlertsPendingByIdRequest +*/ +func (a *PendingAlertApiService) NewDeleteAlertsPendingByIdRequest(ctx context.Context, id int32) ApiDeleteAlertsPendingByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteAlertsPendingByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *PendingAlertApiService) DeleteAlertsPendingByIdExecute(r ApiDeleteAlertsPendingByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Pending +type ApiGetAlertsPendingRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetAlertsPendingRequest) QueryString(queryString string) ApiGetAlertsPendingRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetAlertsPendingRequest) PageReturned(pageReturned int32) ApiGetAlertsPendingRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetAlertsPendingRequest) ReturnLimit(returnLimit int32) ApiGetAlertsPendingRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetAlertsPendingRequest) SortField(sortField string) ApiGetAlertsPendingRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetAlertsPendingRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetAlertsPendingRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Pending request context +func (r ApiGetAlertsPendingRequest) Execute() ([]AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsPendingExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Pending request. + +GetAlertsPending Gets all pending alerts according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsPendingRequest +*/ +func (a *PendingAlertApiService) NewGetAlertsPendingRequest(ctx context.Context) ApiGetAlertsPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Pending +// +// @return []AlertsPendingPendingAlertDefinitionResponse +func (a *PendingAlertApiService) GetAlertsPendingExecute(r ApiGetAlertsPendingRequest) ([]AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AlertsPendingPendingAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Pending/{id} +type ApiGetAlertsPendingByIdRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsPendingByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsPendingByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsPendingByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsPendingByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Pending/{id} request context +func (r ApiGetAlertsPendingByIdRequest) Execute() (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.GetAlertsPendingByIdExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Pending/{id} request. + +GetAlertsPendingById Get a pending alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id for the pending alert to get + @return ApiGetAlertsPendingByIdRequest +*/ +func (a *PendingAlertApiService) NewGetAlertsPendingByIdRequest(ctx context.Context, id int32) ApiGetAlertsPendingByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsPendingByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Alerts/Pending/{id} +// +// @return AlertsPendingPendingAlertDefinitionResponse +func (a *PendingAlertApiService) GetAlertsPendingByIdExecute(r ApiGetAlertsPendingByIdRequest) (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsPendingPendingAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Alerts/Pending/Schedule +type ApiGetAlertsPendingScheduleRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetAlertsPendingScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetAlertsPendingScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetAlertsPendingScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetAlertsPendingScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Alerts/Pending/Schedule request context +func (r ApiGetAlertsPendingScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.GetAlertsPendingScheduleExecute(r) +} + +/* +Creates a new V1 GET /Alerts/Pending/Schedule request. + +GetAlertsPendingSchedule Get the schedule for pending alerts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsPendingScheduleRequest +*/ +func (a *PendingAlertApiService) NewGetAlertsPendingScheduleRequest(ctx context.Context) ApiGetAlertsPendingScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetAlertsPendingScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Alerts/Pending/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *PendingAlertApiService) GetAlertsPendingScheduleExecute(r ApiGetAlertsPendingScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Pending +type ApiUpdateAlertsPendingRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsPendingPendingAlertUpdateRequest *AlertsPendingPendingAlertUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the pending alert +func (r ApiUpdateAlertsPendingRequest) AlertsPendingPendingAlertUpdateRequest(alertsPendingPendingAlertUpdateRequest AlertsPendingPendingAlertUpdateRequest) ApiUpdateAlertsPendingRequest { + r.alertsPendingPendingAlertUpdateRequest = &alertsPendingPendingAlertUpdateRequest + return r +} + +// Executes the V1 PUT /Alerts/Pending request context +func (r ApiUpdateAlertsPendingRequest) Execute() (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsPendingExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Pending request. + +UpdateAlertsPending Edit a pending alert + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsPendingRequest +*/ +func (a *PendingAlertApiService) NewUpdateAlertsPendingRequest(ctx context.Context) ApiUpdateAlertsPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Pending +// +// @return AlertsPendingPendingAlertDefinitionResponse +func (a *PendingAlertApiService) UpdateAlertsPendingExecute(r ApiUpdateAlertsPendingRequest) (*AlertsPendingPendingAlertDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsPendingPendingAlertDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsPendingPendingAlertUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Alerts/Pending/Schedule +type ApiUpdateAlertsPendingScheduleRequest struct { + ctx context.Context + ApiService *PendingAlertApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + alertsAlertScheduleAlertScheduleRequest *AlertsAlertScheduleAlertScheduleRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateAlertsPendingScheduleRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateAlertsPendingScheduleRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateAlertsPendingScheduleRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateAlertsPendingScheduleRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateAlertsPendingScheduleRequest) AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest AlertsAlertScheduleAlertScheduleRequest) ApiUpdateAlertsPendingScheduleRequest { + r.alertsAlertScheduleAlertScheduleRequest = &alertsAlertScheduleAlertScheduleRequest + return r +} + +// Executes the V1 PUT /Alerts/Pending/Schedule request context +func (r ApiUpdateAlertsPendingScheduleRequest) Execute() (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + return r.ApiService.UpdateAlertsPendingScheduleExecute(r) +} + +/* +Creates a new V1 PUT /Alerts/Pending/Schedule request. + +UpdateAlertsPendingSchedule Edit schedule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateAlertsPendingScheduleRequest +*/ +func (a *PendingAlertApiService) NewUpdateAlertsPendingScheduleRequest(ctx context.Context) ApiUpdateAlertsPendingScheduleRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateAlertsPendingScheduleRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Alerts/Pending/Schedule +// +// @return AlertsAlertScheduleAlertScheduleResponse +func (a *PendingAlertApiService) UpdateAlertsPendingScheduleExecute(r ApiUpdateAlertsPendingScheduleRequest) (*AlertsAlertScheduleAlertScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertsAlertScheduleAlertScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Alerts/Pending/Schedule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.alertsAlertScheduleAlertScheduleRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_permission_set.go b/v24/api/keyfactor/v1/api_permission_set.go new file mode 100644 index 0000000..5f1802e --- /dev/null +++ b/v24/api/keyfactor/v1/api_permission_set.go @@ -0,0 +1,941 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// PermissionSetApiService PermissionSetApi service +type PermissionSetApiService service + +// Request for V1 POST /PermissionSets +type ApiCreatePermissionSetsRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + permissionSetsPermissionSetCreateRequest *PermissionSetsPermissionSetCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePermissionSetsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePermissionSetsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePermissionSetsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePermissionSetsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information about the new permission set. +func (r ApiCreatePermissionSetsRequest) PermissionSetsPermissionSetCreateRequest(permissionSetsPermissionSetCreateRequest PermissionSetsPermissionSetCreateRequest) ApiCreatePermissionSetsRequest { + r.permissionSetsPermissionSetCreateRequest = &permissionSetsPermissionSetCreateRequest + return r +} + +// Executes the V1 POST /PermissionSets request context +func (r ApiCreatePermissionSetsRequest) Execute() (*PermissionSetsPermissionSetResponse, *http.Response, error) { + return r.ApiService.CreatePermissionSetsExecute(r) +} + +/* +Creates a new V1 POST /PermissionSets request. + +CreatePermissionSets Creates a new permission set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePermissionSetsRequest +*/ +func (a *PermissionSetApiService) NewCreatePermissionSetsRequest(ctx context.Context) ApiCreatePermissionSetsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreatePermissionSetsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /PermissionSets +// +// @return PermissionSetsPermissionSetResponse +func (a *PermissionSetApiService) CreatePermissionSetsExecute(r ApiCreatePermissionSetsRequest) (*PermissionSetsPermissionSetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionSetsPermissionSetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.permissionSetsPermissionSetCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /PermissionSets/{id} +type ApiDeletePermissionSetsByIdRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeletePermissionSetsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeletePermissionSetsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeletePermissionSetsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeletePermissionSetsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /PermissionSets/{id} request context +func (r ApiDeletePermissionSetsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeletePermissionSetsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /PermissionSets/{id} request. + +DeletePermissionSetsById Deletes a permission set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the permission set to delete. + @return ApiDeletePermissionSetsByIdRequest +*/ +func (a *PermissionSetApiService) NewDeletePermissionSetsByIdRequest(ctx context.Context, id string) ApiDeletePermissionSetsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeletePermissionSetsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *PermissionSetApiService) DeletePermissionSetsByIdExecute(r ApiDeletePermissionSetsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /PermissionSets +type ApiGetPermissionSetsRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPermissionSetsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPermissionSetsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetPermissionSetsRequest) QueryString(queryString string) ApiGetPermissionSetsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetPermissionSetsRequest) PageReturned(pageReturned int32) ApiGetPermissionSetsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetPermissionSetsRequest) ReturnLimit(returnLimit int32) ApiGetPermissionSetsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetPermissionSetsRequest) SortField(sortField string) ApiGetPermissionSetsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetPermissionSetsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetPermissionSetsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPermissionSetsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPermissionSetsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PermissionSets request context +func (r ApiGetPermissionSetsRequest) Execute() ([]PermissionSetsPermissionSetResponse, *http.Response, error) { + return r.ApiService.GetPermissionSetsExecute(r) +} + +/* +Creates a new V1 GET /PermissionSets request. + +GetPermissionSets Gets all Permission Set(s) in the system if the user has a security role that is assigned to the Global Permission Set and the security role has the Global Security Read permission. Otherwise, returns only the Permission Sets with the Security Modify permission that are assigned to the user's security role(s). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPermissionSetsRequest +*/ +func (a *PermissionSetApiService) NewGetPermissionSetsRequest(ctx context.Context) ApiGetPermissionSetsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPermissionSetsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /PermissionSets +// +// @return []PermissionSetsPermissionSetResponse +func (a *PermissionSetApiService) GetPermissionSetsExecute(r ApiGetPermissionSetsRequest) ([]PermissionSetsPermissionSetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PermissionSetsPermissionSetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /PermissionSets/{id} +type ApiGetPermissionSetsByIdRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPermissionSetsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPermissionSetsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPermissionSetsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPermissionSetsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PermissionSets/{id} request context +func (r ApiGetPermissionSetsByIdRequest) Execute() (*PermissionSetsPermissionSetResponse, *http.Response, error) { + return r.ApiService.GetPermissionSetsByIdExecute(r) +} + +/* +Creates a new V1 GET /PermissionSets/{id} request. + +GetPermissionSetsById Gets permission set data. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetPermissionSetsByIdRequest +*/ +func (a *PermissionSetApiService) NewGetPermissionSetsByIdRequest(ctx context.Context, id string) ApiGetPermissionSetsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPermissionSetsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /PermissionSets/{id} +// +// @return PermissionSetsPermissionSetResponse +func (a *PermissionSetApiService) GetPermissionSetsByIdExecute(r ApiGetPermissionSetsByIdRequest) (*PermissionSetsPermissionSetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionSetsPermissionSetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /PermissionSets/My +type ApiGetPermissionSetsMyRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + accessControlString *string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// The access control string to check within the user's security role's permission set(s). +func (r ApiGetPermissionSetsMyRequest) AccessControlString(accessControlString string) ApiGetPermissionSetsMyRequest { + r.accessControlString = &accessControlString + return r +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPermissionSetsMyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPermissionSetsMyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPermissionSetsMyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPermissionSetsMyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /PermissionSets/My request context +func (r ApiGetPermissionSetsMyRequest) Execute() ([]CSSCMSDataModelModelsSecurityPermissionSet, *http.Response, error) { + return r.ApiService.GetPermissionSetsMyExecute(r) +} + +/* +Creates a new V1 GET /PermissionSets/My request. + +GetPermissionSetsMy Method for GetPermissionSetsMy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPermissionSetsMyRequest +*/ +func (a *PermissionSetApiService) NewGetPermissionSetsMyRequest(ctx context.Context) ApiGetPermissionSetsMyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPermissionSetsMyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /PermissionSets/My +// +// @return []CSSCMSDataModelModelsSecurityPermissionSet +func (a *PermissionSetApiService) GetPermissionSetsMyExecute(r ApiGetPermissionSetsMyRequest) ([]CSSCMSDataModelModelsSecurityPermissionSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSecurityPermissionSet + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets/My" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.accessControlString == nil { + return localVarReturnValue, nil, reportError("accessControlString is required and must be specified") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + parameterAddToQuery(localVarQueryParams, "accessControlString", r.accessControlString, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /PermissionSets +type ApiUpdatePermissionSetsRequest struct { + ctx context.Context + ApiService *PermissionSetApiService + xKeyfactorRequestedWith *string + permissionSetsPermissionSetUpdateRequest *PermissionSetsPermissionSetUpdateRequest + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdatePermissionSetsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdatePermissionSetsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiUpdatePermissionSetsRequest) PermissionSetsPermissionSetUpdateRequest(permissionSetsPermissionSetUpdateRequest PermissionSetsPermissionSetUpdateRequest) ApiUpdatePermissionSetsRequest { + r.permissionSetsPermissionSetUpdateRequest = &permissionSetsPermissionSetUpdateRequest + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdatePermissionSetsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdatePermissionSetsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 PUT /PermissionSets request context +func (r ApiUpdatePermissionSetsRequest) Execute() (*PermissionSetsPermissionSetResponse, *http.Response, error) { + return r.ApiService.UpdatePermissionSetsExecute(r) +} + +/* +Creates a new V1 PUT /PermissionSets request. + +UpdatePermissionSets Method for UpdatePermissionSets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePermissionSetsRequest +*/ +func (a *PermissionSetApiService) NewUpdatePermissionSetsRequest(ctx context.Context) ApiUpdatePermissionSetsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdatePermissionSetsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /PermissionSets +// +// @return PermissionSetsPermissionSetResponse +func (a *PermissionSetApiService) UpdatePermissionSetsExecute(r ApiUpdatePermissionSetsRequest) (*PermissionSetsPermissionSetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PermissionSetsPermissionSetResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PermissionSets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.permissionSetsPermissionSetUpdateRequest == nil { + return localVarReturnValue, nil, reportError("permissionSetsPermissionSetUpdateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.permissionSetsPermissionSetUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_permissions.go b/v24/api/keyfactor/v1/api_permissions.go new file mode 100644 index 0000000..d0f6592 --- /dev/null +++ b/v24/api/keyfactor/v1/api_permissions.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// PermissionsApiService PermissionsApi service +type PermissionsApiService service + +// Request for V1 GET /Permissions +type ApiGetPermissionsRequest struct { + ctx context.Context + ApiService *PermissionsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPermissionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPermissionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPermissionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPermissionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Permissions request context +func (r ApiGetPermissionsRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.GetPermissionsExecute(r) +} + +/* +Creates a new V1 GET /Permissions request. + +GetPermissions Gets all permissions in the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPermissionsRequest +*/ +func (a *PermissionsApiService) NewGetPermissionsRequest(ctx context.Context) ApiGetPermissionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetPermissionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Permissions +// +// @return []string +func (a *PermissionsApiService) GetPermissionsExecute(r ApiGetPermissionsRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Permissions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_reports.go b/v24/api/keyfactor/v1/api_reports.go new file mode 100644 index 0000000..0b34619 --- /dev/null +++ b/v24/api/keyfactor/v1/api_reports.go @@ -0,0 +1,2356 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ReportsApiService ReportsApi service +type ReportsApiService service + +// Request for V1 POST /Reports/{id}/Schedules +type ApiCreateReportsByIdSchedulesRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + reportsReportSchedulesReportScheduleCreationRequest *ReportsReportSchedulesReportScheduleCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateReportsByIdSchedulesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateReportsByIdSchedulesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateReportsByIdSchedulesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateReportsByIdSchedulesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Report Schedule +func (r ApiCreateReportsByIdSchedulesRequest) ReportsReportSchedulesReportScheduleCreationRequest(reportsReportSchedulesReportScheduleCreationRequest ReportsReportSchedulesReportScheduleCreationRequest) ApiCreateReportsByIdSchedulesRequest { + r.reportsReportSchedulesReportScheduleCreationRequest = &reportsReportSchedulesReportScheduleCreationRequest + return r +} + +// Executes the V1 POST /Reports/{id}/Schedules request context +func (r ApiCreateReportsByIdSchedulesRequest) Execute() (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + return r.ApiService.CreateReportsByIdSchedulesExecute(r) +} + +/* +Creates a new V1 POST /Reports/{id}/Schedules request. + +CreateReportsByIdSchedules Create a built-in report's schedule that matches the id of the report. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiCreateReportsByIdSchedulesRequest +*/ +func (a *ReportsApiService) NewCreateReportsByIdSchedulesRequest(ctx context.Context, id int32) ApiCreateReportsByIdSchedulesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateReportsByIdSchedulesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Reports/{id}/Schedules +// +// @return ReportsReportSchedulesReportScheduleResponse +func (a *ReportsApiService) CreateReportsByIdSchedulesExecute(r ApiCreateReportsByIdSchedulesRequest) (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsReportSchedulesReportScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.reportsReportSchedulesReportScheduleCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Reports/Custom +type ApiCreateReportsCustomRequest struct { + ctx context.Context + ApiService *ReportsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + reportsCustomReportsCustomReportCreationRequest *ReportsCustomReportsCustomReportCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateReportsCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateReportsCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateReportsCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateReportsCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Report Information +func (r ApiCreateReportsCustomRequest) ReportsCustomReportsCustomReportCreationRequest(reportsCustomReportsCustomReportCreationRequest ReportsCustomReportsCustomReportCreationRequest) ApiCreateReportsCustomRequest { + r.reportsCustomReportsCustomReportCreationRequest = &reportsCustomReportsCustomReportCreationRequest + return r +} + +// Executes the V1 POST /Reports/Custom request context +func (r ApiCreateReportsCustomRequest) Execute() (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + return r.ApiService.CreateReportsCustomExecute(r) +} + +/* +Creates a new V1 POST /Reports/Custom request. + +CreateReportsCustom Creates a custom report + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateReportsCustomRequest +*/ +func (a *ReportsApiService) NewCreateReportsCustomRequest(ctx context.Context) ApiCreateReportsCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateReportsCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Reports/Custom +// +// @return ReportsCustomReportsCustomReportResponse +func (a *ReportsApiService) CreateReportsCustomExecute(r ApiCreateReportsCustomRequest) (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsCustomReportsCustomReportResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.reportsCustomReportsCustomReportCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Reports/Custom/{id} +type ApiDeleteReportsCustomByIdRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteReportsCustomByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteReportsCustomByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteReportsCustomByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteReportsCustomByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Reports/Custom/{id} request context +func (r ApiDeleteReportsCustomByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteReportsCustomByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Reports/Custom/{id} request. + +DeleteReportsCustomById Delete custom report that matches the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiDeleteReportsCustomByIdRequest +*/ +func (a *ReportsApiService) NewDeleteReportsCustomByIdRequest(ctx context.Context, id int32) ApiDeleteReportsCustomByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteReportsCustomByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ReportsApiService) DeleteReportsCustomByIdExecute(r ApiDeleteReportsCustomByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Custom/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Reports/Schedules/{id} +type ApiDeleteReportsSchedulesByIdRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteReportsSchedulesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteReportsSchedulesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteReportsSchedulesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteReportsSchedulesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Reports/Schedules/{id} request context +func (r ApiDeleteReportsSchedulesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteReportsSchedulesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Reports/Schedules/{id} request. + +DeleteReportsSchedulesById Delete a built-in report's schedule that matches the id of the schedule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report Schedule identifier + @return ApiDeleteReportsSchedulesByIdRequest +*/ +func (a *ReportsApiService) NewDeleteReportsSchedulesByIdRequest(ctx context.Context, id int32) ApiDeleteReportsSchedulesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteReportsSchedulesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ReportsApiService) DeleteReportsSchedulesByIdExecute(r ApiDeleteReportsSchedulesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Schedules/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports +type ApiGetReportsRequest struct { + ctx context.Context + ApiService *ReportsApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetReportsRequest) QueryString(queryString string) ApiGetReportsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetReportsRequest) PageReturned(pageReturned int32) ApiGetReportsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetReportsRequest) ReturnLimit(returnLimit int32) ApiGetReportsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetReportsRequest) SortField(sortField string) ApiGetReportsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetReportsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetReportsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports request context +func (r ApiGetReportsRequest) Execute() ([]CSSCMSDataModelModelsReport, *http.Response, error) { + return r.ApiService.GetReportsExecute(r) +} + +/* +Creates a new V1 GET /Reports request. + +GetReports Returns all built-in reports according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetReportsRequest +*/ +func (a *ReportsApiService) NewGetReportsRequest(ctx context.Context) ApiGetReportsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Reports +// +// @return []CSSCMSDataModelModelsReport +func (a *ReportsApiService) GetReportsExecute(r ApiGetReportsRequest) ([]CSSCMSDataModelModelsReport, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsReport + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/{id} +type ApiGetReportsByIdRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/{id} request context +func (r ApiGetReportsByIdRequest) Execute() (*CSSCMSDataModelModelsReport, *http.Response, error) { + return r.ApiService.GetReportsByIdExecute(r) +} + +/* +Creates a new V1 GET /Reports/{id} request. + +GetReportsById Returns a single built-in report that matches the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiGetReportsByIdRequest +*/ +func (a *ReportsApiService) NewGetReportsByIdRequest(ctx context.Context, id int32) ApiGetReportsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Reports/{id} +// +// @return CSSCMSDataModelModelsReport +func (a *ReportsApiService) GetReportsByIdExecute(r ApiGetReportsByIdRequest) (*CSSCMSDataModelModelsReport, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsReport + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/{id}/Parameters +type ApiGetReportsByIdParametersRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsByIdParametersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsByIdParametersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsByIdParametersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsByIdParametersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/{id}/Parameters request context +func (r ApiGetReportsByIdParametersRequest) Execute() ([]CSSCMSDataModelModelsReportParameters, *http.Response, error) { + return r.ApiService.GetReportsByIdParametersExecute(r) +} + +/* +Creates a new V1 GET /Reports/{id}/Parameters request. + +GetReportsByIdParameters Get a built-in report's parameters that matches the id of the report. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiGetReportsByIdParametersRequest +*/ +func (a *ReportsApiService) NewGetReportsByIdParametersRequest(ctx context.Context, id int32) ApiGetReportsByIdParametersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsByIdParametersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Reports/{id}/Parameters +// +// @return []CSSCMSDataModelModelsReportParameters +func (a *ReportsApiService) GetReportsByIdParametersExecute(r ApiGetReportsByIdParametersRequest) ([]CSSCMSDataModelModelsReportParameters, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsReportParameters + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}/Parameters" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/{id}/Schedules +type ApiGetReportsByIdSchedulesRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsByIdSchedulesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsByIdSchedulesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetReportsByIdSchedulesRequest) QueryString(queryString string) ApiGetReportsByIdSchedulesRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetReportsByIdSchedulesRequest) PageReturned(pageReturned int32) ApiGetReportsByIdSchedulesRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetReportsByIdSchedulesRequest) ReturnLimit(returnLimit int32) ApiGetReportsByIdSchedulesRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetReportsByIdSchedulesRequest) SortField(sortField string) ApiGetReportsByIdSchedulesRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetReportsByIdSchedulesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetReportsByIdSchedulesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsByIdSchedulesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsByIdSchedulesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/{id}/Schedules request context +func (r ApiGetReportsByIdSchedulesRequest) Execute() ([]ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + return r.ApiService.GetReportsByIdSchedulesExecute(r) +} + +/* +Creates a new V1 GET /Reports/{id}/Schedules request. + +GetReportsByIdSchedules Get a built-in report's schedules that matches the id of the report. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiGetReportsByIdSchedulesRequest +*/ +func (a *ReportsApiService) NewGetReportsByIdSchedulesRequest(ctx context.Context, id int32) ApiGetReportsByIdSchedulesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsByIdSchedulesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Reports/{id}/Schedules +// +// @return []ReportsReportSchedulesReportScheduleResponse +func (a *ReportsApiService) GetReportsByIdSchedulesExecute(r ApiGetReportsByIdSchedulesRequest) ([]ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ReportsReportSchedulesReportScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/Custom +type ApiGetReportsCustomRequest struct { + ctx context.Context + ApiService *ReportsApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetReportsCustomRequest) QueryString(queryString string) ApiGetReportsCustomRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetReportsCustomRequest) PageReturned(pageReturned int32) ApiGetReportsCustomRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetReportsCustomRequest) ReturnLimit(returnLimit int32) ApiGetReportsCustomRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetReportsCustomRequest) SortField(sortField string) ApiGetReportsCustomRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetReportsCustomRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetReportsCustomRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/Custom request context +func (r ApiGetReportsCustomRequest) Execute() ([]ReportsCustomReportsCustomReportResponse, *http.Response, error) { + return r.ApiService.GetReportsCustomExecute(r) +} + +/* +Creates a new V1 GET /Reports/Custom request. + +GetReportsCustom Returns all custom reports according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetReportsCustomRequest +*/ +func (a *ReportsApiService) NewGetReportsCustomRequest(ctx context.Context) ApiGetReportsCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Reports/Custom +// +// @return []ReportsCustomReportsCustomReportResponse +func (a *ReportsApiService) GetReportsCustomExecute(r ApiGetReportsCustomRequest) ([]ReportsCustomReportsCustomReportResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ReportsCustomReportsCustomReportResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/Custom/{id} +type ApiGetReportsCustomByIdRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsCustomByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsCustomByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsCustomByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsCustomByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/Custom/{id} request context +func (r ApiGetReportsCustomByIdRequest) Execute() (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + return r.ApiService.GetReportsCustomByIdExecute(r) +} + +/* +Creates a new V1 GET /Reports/Custom/{id} request. + +GetReportsCustomById Returns a single custom report that matches the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiGetReportsCustomByIdRequest +*/ +func (a *ReportsApiService) NewGetReportsCustomByIdRequest(ctx context.Context, id int32) ApiGetReportsCustomByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsCustomByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Reports/Custom/{id} +// +// @return ReportsCustomReportsCustomReportResponse +func (a *ReportsApiService) GetReportsCustomByIdExecute(r ApiGetReportsCustomByIdRequest) (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsCustomReportsCustomReportResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Custom/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Reports/Schedules/{id} +type ApiGetReportsSchedulesByIdRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetReportsSchedulesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetReportsSchedulesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetReportsSchedulesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetReportsSchedulesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Reports/Schedules/{id} request context +func (r ApiGetReportsSchedulesByIdRequest) Execute() (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + return r.ApiService.GetReportsSchedulesByIdExecute(r) +} + +/* +Creates a new V1 GET /Reports/Schedules/{id} request. + +GetReportsSchedulesById Get a built-in report's schedule that matches the id of the schedule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report Schedule identifier + @return ApiGetReportsSchedulesByIdRequest +*/ +func (a *ReportsApiService) NewGetReportsSchedulesByIdRequest(ctx context.Context, id int32) ApiGetReportsSchedulesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetReportsSchedulesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Reports/Schedules/{id} +// +// @return ReportsReportSchedulesReportScheduleResponse +func (a *ReportsApiService) GetReportsSchedulesByIdExecute(r ApiGetReportsSchedulesByIdRequest) (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsReportSchedulesReportScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Schedules/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Reports +type ApiUpdateReportsRequest struct { + ctx context.Context + ApiService *ReportsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsReportRequestModel *CSSCMSDataModelModelsReportRequestModel +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateReportsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateReportsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateReportsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateReportsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. +func (r ApiUpdateReportsRequest) CSSCMSDataModelModelsReportRequestModel(cSSCMSDataModelModelsReportRequestModel CSSCMSDataModelModelsReportRequestModel) ApiUpdateReportsRequest { + r.cSSCMSDataModelModelsReportRequestModel = &cSSCMSDataModelModelsReportRequestModel + return r +} + +// Executes the V1 PUT /Reports request context +func (r ApiUpdateReportsRequest) Execute() (*CSSCMSDataModelModelsReport, *http.Response, error) { + return r.ApiService.UpdateReportsExecute(r) +} + +/* +Creates a new V1 PUT /Reports request. + +UpdateReports Updates a single built-in report that matches the id. Only some fields can be updated. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateReportsRequest +*/ +func (a *ReportsApiService) NewUpdateReportsRequest(ctx context.Context) ApiUpdateReportsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateReportsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Reports +// +// @return CSSCMSDataModelModelsReport +func (a *ReportsApiService) UpdateReportsExecute(r ApiUpdateReportsRequest) (*CSSCMSDataModelModelsReport, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsReport + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsReportRequestModel + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Reports/{id}/Parameters +type ApiUpdateReportsByIdParametersRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsReportParametersRequest *[]CSSCMSDataModelModelsReportParametersRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateReportsByIdParametersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateReportsByIdParametersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateReportsByIdParametersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateReportsByIdParametersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// A List of the parameters to be updated +func (r ApiUpdateReportsByIdParametersRequest) CSSCMSDataModelModelsReportParametersRequest(cSSCMSDataModelModelsReportParametersRequest []CSSCMSDataModelModelsReportParametersRequest) ApiUpdateReportsByIdParametersRequest { + r.cSSCMSDataModelModelsReportParametersRequest = &cSSCMSDataModelModelsReportParametersRequest + return r +} + +// Executes the V1 PUT /Reports/{id}/Parameters request context +func (r ApiUpdateReportsByIdParametersRequest) Execute() ([]CSSCMSDataModelModelsReportParameters, *http.Response, error) { + return r.ApiService.UpdateReportsByIdParametersExecute(r) +} + +/* +Creates a new V1 PUT /Reports/{id}/Parameters request. + +UpdateReportsByIdParameters Update a built-in report's parameters that matches the id of the report. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiUpdateReportsByIdParametersRequest +*/ +func (a *ReportsApiService) NewUpdateReportsByIdParametersRequest(ctx context.Context, id int32) ApiUpdateReportsByIdParametersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateReportsByIdParametersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Reports/{id}/Parameters +// +// @return []CSSCMSDataModelModelsReportParameters +func (a *ReportsApiService) UpdateReportsByIdParametersExecute(r ApiUpdateReportsByIdParametersRequest) ([]CSSCMSDataModelModelsReportParameters, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsReportParameters + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}/Parameters" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsReportParametersRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Reports/{id}/Schedules +type ApiUpdateReportsByIdSchedulesRequest struct { + ctx context.Context + ApiService *ReportsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + reportsReportSchedulesReportScheduleUpdateRequest *ReportsReportSchedulesReportScheduleUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateReportsByIdSchedulesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateReportsByIdSchedulesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateReportsByIdSchedulesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateReportsByIdSchedulesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Report Schedule +func (r ApiUpdateReportsByIdSchedulesRequest) ReportsReportSchedulesReportScheduleUpdateRequest(reportsReportSchedulesReportScheduleUpdateRequest ReportsReportSchedulesReportScheduleUpdateRequest) ApiUpdateReportsByIdSchedulesRequest { + r.reportsReportSchedulesReportScheduleUpdateRequest = &reportsReportSchedulesReportScheduleUpdateRequest + return r +} + +// Executes the V1 PUT /Reports/{id}/Schedules request context +func (r ApiUpdateReportsByIdSchedulesRequest) Execute() (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + return r.ApiService.UpdateReportsByIdSchedulesExecute(r) +} + +/* +Creates a new V1 PUT /Reports/{id}/Schedules request. + +UpdateReportsByIdSchedules Update a built-in report's schedule that matches the id of the report. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Report identifier + @return ApiUpdateReportsByIdSchedulesRequest +*/ +func (a *ReportsApiService) NewUpdateReportsByIdSchedulesRequest(ctx context.Context, id int32) ApiUpdateReportsByIdSchedulesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateReportsByIdSchedulesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Reports/{id}/Schedules +// +// @return ReportsReportSchedulesReportScheduleResponse +func (a *ReportsApiService) UpdateReportsByIdSchedulesExecute(r ApiUpdateReportsByIdSchedulesRequest) (*ReportsReportSchedulesReportScheduleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsReportSchedulesReportScheduleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.reportsReportSchedulesReportScheduleUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Reports/Custom +type ApiUpdateReportsCustomRequest struct { + ctx context.Context + ApiService *ReportsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + reportsCustomReportsCustomReportUpdateRequest *ReportsCustomReportsCustomReportUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateReportsCustomRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateReportsCustomRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateReportsCustomRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateReportsCustomRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Report Information +func (r ApiUpdateReportsCustomRequest) ReportsCustomReportsCustomReportUpdateRequest(reportsCustomReportsCustomReportUpdateRequest ReportsCustomReportsCustomReportUpdateRequest) ApiUpdateReportsCustomRequest { + r.reportsCustomReportsCustomReportUpdateRequest = &reportsCustomReportsCustomReportUpdateRequest + return r +} + +// Executes the V1 PUT /Reports/Custom request context +func (r ApiUpdateReportsCustomRequest) Execute() (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + return r.ApiService.UpdateReportsCustomExecute(r) +} + +/* +Creates a new V1 PUT /Reports/Custom request. + +UpdateReportsCustom Updates a custom report that matches the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateReportsCustomRequest +*/ +func (a *ReportsApiService) NewUpdateReportsCustomRequest(ctx context.Context) ApiUpdateReportsCustomRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateReportsCustomRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Reports/Custom +// +// @return ReportsCustomReportsCustomReportResponse +func (a *ReportsApiService) UpdateReportsCustomExecute(r ApiUpdateReportsCustomRequest) (*ReportsCustomReportsCustomReportResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ReportsCustomReportsCustomReportResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Reports/Custom" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.reportsCustomReportsCustomReportUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_scheduling.go b/v24/api/keyfactor/v1/api_scheduling.go new file mode 100644 index 0000000..5196fab --- /dev/null +++ b/v24/api/keyfactor/v1/api_scheduling.go @@ -0,0 +1,179 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// SchedulingApiService SchedulingApi service +type SchedulingApiService service + +// Request for V1 POST /Scheduling +type ApiCreateSchedulingRequest struct { + ctx context.Context + ApiService *SchedulingApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + schedulingScheduledTaskRequest *SchedulingScheduledTaskRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSchedulingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSchedulingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSchedulingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSchedulingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiCreateSchedulingRequest) SchedulingScheduledTaskRequest(schedulingScheduledTaskRequest SchedulingScheduledTaskRequest) ApiCreateSchedulingRequest { + r.schedulingScheduledTaskRequest = &schedulingScheduledTaskRequest + return r +} + +// Executes the V1 POST /Scheduling request context +func (r ApiCreateSchedulingRequest) Execute() (*SchedulingScheduledTaskResponse, *http.Response, error) { + return r.ApiService.CreateSchedulingExecute(r) +} + +/* +Creates a new V1 POST /Scheduling request. + +CreateScheduling Method for CreateScheduling + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSchedulingRequest +*/ +func (a *SchedulingApiService) NewCreateSchedulingRequest(ctx context.Context) ApiCreateSchedulingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSchedulingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Scheduling +// +// @return SchedulingScheduledTaskResponse +func (a *SchedulingApiService) CreateSchedulingExecute(r ApiCreateSchedulingRequest) (*SchedulingScheduledTaskResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SchedulingScheduledTaskResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Scheduling" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.schedulingScheduledTaskRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_security.go b/v24/api/keyfactor/v1/api_security.go new file mode 100644 index 0000000..b5cf081 --- /dev/null +++ b/v24/api/keyfactor/v1/api_security.go @@ -0,0 +1,1376 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SecurityApiService SecurityApi service +type SecurityApiService service + +// Request for V1 POST /Security/Containers/{id}/Roles +type ApiCreateSecurityContainersByIdRolesRequest struct { + ctx context.Context + ApiService *SecurityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsCertificateStoreContainerPermissions *[]CSSCMSDataModelModelsCertificateStoreContainerPermissions +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityContainersByIdRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityContainersByIdRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityContainersByIdRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityContainersByIdRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Information for the updated security role +func (r ApiCreateSecurityContainersByIdRolesRequest) CSSCMSDataModelModelsCertificateStoreContainerPermissions(cSSCMSDataModelModelsCertificateStoreContainerPermissions []CSSCMSDataModelModelsCertificateStoreContainerPermissions) ApiCreateSecurityContainersByIdRolesRequest { + r.cSSCMSDataModelModelsCertificateStoreContainerPermissions = &cSSCMSDataModelModelsCertificateStoreContainerPermissions + return r +} + +// Executes the V1 POST /Security/Containers/{id}/Roles request context +func (r ApiCreateSecurityContainersByIdRolesRequest) Execute() ([]CSSCMSDataModelModelsCertificateStoreContainerPermissions, *http.Response, error) { + return r.ApiService.CreateSecurityContainersByIdRolesExecute(r) +} + +/* +Creates a new V1 POST /Security/Containers/{id}/Roles request. + +CreateSecurityContainersByIdRoles Edit a certificate store container's permissions. Reminder: Name field should be left blank. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Information for the securitycontainer + @return ApiCreateSecurityContainersByIdRolesRequest +*/ +func (a *SecurityApiService) NewCreateSecurityContainersByIdRolesRequest(ctx context.Context, id int32) ApiCreateSecurityContainersByIdRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityContainersByIdRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Security/Containers/{id}/Roles +// +// @return []CSSCMSDataModelModelsCertificateStoreContainerPermissions +func (a *SecurityApiService) CreateSecurityContainersByIdRolesExecute(r ApiCreateSecurityContainersByIdRolesRequest) ([]CSSCMSDataModelModelsCertificateStoreContainerPermissions, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateStoreContainerPermissions + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Containers/{id}/Roles" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsCertificateStoreContainerPermissions + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Security/Identities +type ApiCreateSecurityIdentitiesRequest struct { + ctx context.Context + ApiService *SecurityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityIdentitiesSecurityIdentityRequest *SecuritySecurityIdentitiesSecurityIdentityRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityIdentitiesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityIdentitiesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityIdentitiesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityIdentitiesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security Identity Request +func (r ApiCreateSecurityIdentitiesRequest) SecuritySecurityIdentitiesSecurityIdentityRequest(securitySecurityIdentitiesSecurityIdentityRequest SecuritySecurityIdentitiesSecurityIdentityRequest) ApiCreateSecurityIdentitiesRequest { + r.securitySecurityIdentitiesSecurityIdentityRequest = &securitySecurityIdentitiesSecurityIdentityRequest + return r +} + +// Executes the V1 POST /Security/Identities request context +func (r ApiCreateSecurityIdentitiesRequest) Execute() (*SecuritySecurityIdentitiesSecurityIdentityResponse, *http.Response, error) { + return r.ApiService.CreateSecurityIdentitiesExecute(r) +} + +/* +Creates a new V1 POST /Security/Identities request. + +CreateSecurityIdentities Adds a new security identity to the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSecurityIdentitiesRequest +*/ +func (a *SecurityApiService) NewCreateSecurityIdentitiesRequest(ctx context.Context) ApiCreateSecurityIdentitiesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityIdentitiesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Security/Identities +// +// @return SecuritySecurityIdentitiesSecurityIdentityResponse +func (a *SecurityApiService) CreateSecurityIdentitiesExecute(r ApiCreateSecurityIdentitiesRequest) (*SecuritySecurityIdentitiesSecurityIdentityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityIdentitiesSecurityIdentityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Identities" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityIdentitiesSecurityIdentityRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Security/Identities/{id} +type ApiDeleteSecurityIdentitiesByIdRequest struct { + ctx context.Context + ApiService *SecurityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSecurityIdentitiesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSecurityIdentitiesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSecurityIdentitiesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSecurityIdentitiesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Security/Identities/{id} request context +func (r ApiDeleteSecurityIdentitiesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSecurityIdentitiesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Security/Identities/{id} request. + +DeleteSecurityIdentitiesById Deletes the security identity whose ID is provided. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the security identity to be deleted. + @return ApiDeleteSecurityIdentitiesByIdRequest +*/ +func (a *SecurityApiService) NewDeleteSecurityIdentitiesByIdRequest(ctx context.Context, id int32) ApiDeleteSecurityIdentitiesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSecurityIdentitiesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SecurityApiService) DeleteSecurityIdentitiesByIdExecute(r ApiDeleteSecurityIdentitiesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Identities/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Audit/Collections/{id} +type ApiGetSecurityAuditCollectionsByIdRequest struct { + ctx context.Context + ApiService *SecurityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityAuditCollectionsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityAuditCollectionsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityAuditCollectionsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityAuditCollectionsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Audit/Collections/{id} request context +func (r ApiGetSecurityAuditCollectionsByIdRequest) Execute() (*CertificateCollectionsCertificateCollectionPermissionsResponse, *http.Response, error) { + return r.ApiService.GetSecurityAuditCollectionsByIdExecute(r) +} + +/* +Creates a new V1 GET /Security/Audit/Collections/{id} request. + +GetSecurityAuditCollectionsById Gets a list of applicable security permissions for certificate collection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The certificate collection + @return ApiGetSecurityAuditCollectionsByIdRequest +*/ +func (a *SecurityApiService) NewGetSecurityAuditCollectionsByIdRequest(ctx context.Context, id int32) ApiGetSecurityAuditCollectionsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityAuditCollectionsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Audit/Collections/{id} +// +// @return CertificateCollectionsCertificateCollectionPermissionsResponse +func (a *SecurityApiService) GetSecurityAuditCollectionsByIdExecute(r ApiGetSecurityAuditCollectionsByIdRequest) (*CertificateCollectionsCertificateCollectionPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificateCollectionsCertificateCollectionPermissionsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Audit/Collections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Containers/{id}/Roles +type ApiGetSecurityContainersByIdRolesRequest struct { + ctx context.Context + ApiService *SecurityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityContainersByIdRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityContainersByIdRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityContainersByIdRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityContainersByIdRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Containers/{id}/Roles request context +func (r ApiGetSecurityContainersByIdRolesRequest) Execute() ([]CSSCMSDataModelModelsCertificateStoreContainerPermissions, *http.Response, error) { + return r.ApiService.GetSecurityContainersByIdRolesExecute(r) +} + +/* +Creates a new V1 GET /Security/Containers/{id}/Roles request. + +GetSecurityContainersByIdRoles Returns all the permissions of a certificate store container through the id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Information for the updated container + @return ApiGetSecurityContainersByIdRolesRequest +*/ +func (a *SecurityApiService) NewGetSecurityContainersByIdRolesRequest(ctx context.Context, id int32) ApiGetSecurityContainersByIdRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityContainersByIdRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Containers/{id}/Roles +// +// @return []CSSCMSDataModelModelsCertificateStoreContainerPermissions +func (a *SecurityApiService) GetSecurityContainersByIdRolesExecute(r ApiGetSecurityContainersByIdRolesRequest) ([]CSSCMSDataModelModelsCertificateStoreContainerPermissions, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsCertificateStoreContainerPermissions + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Containers/{id}/Roles" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Identities +type ApiGetSecurityIdentitiesRequest struct { + ctx context.Context + ApiService *SecurityApiService + xKeyfactorRequestedWith *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + validate *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityIdentitiesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityIdentitiesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSecurityIdentitiesRequest) PageReturned(pageReturned int32) ApiGetSecurityIdentitiesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSecurityIdentitiesRequest) ReturnLimit(returnLimit int32) ApiGetSecurityIdentitiesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSecurityIdentitiesRequest) SortField(sortField string) ApiGetSecurityIdentitiesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSecurityIdentitiesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSecurityIdentitiesRequest { + r.sortAscending = &sortAscending + return r +} + +func (r ApiGetSecurityIdentitiesRequest) Validate(validate bool) ApiGetSecurityIdentitiesRequest { + r.validate = &validate + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityIdentitiesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityIdentitiesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Identities request context +func (r ApiGetSecurityIdentitiesRequest) Execute() ([]SecuritySecurityIdentitiesSecurityIdentityResponse, *http.Response, error) { + return r.ApiService.GetSecurityIdentitiesExecute(r) +} + +/* +Creates a new V1 GET /Security/Identities request. + +GetSecurityIdentities Returns all security identities according to the provided filter and output parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityIdentitiesRequest +*/ +func (a *SecurityApiService) NewGetSecurityIdentitiesRequest(ctx context.Context) ApiGetSecurityIdentitiesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityIdentitiesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/Identities +// +// @return []SecuritySecurityIdentitiesSecurityIdentityResponse +func (a *SecurityApiService) GetSecurityIdentitiesExecute(r ApiGetSecurityIdentitiesRequest) ([]SecuritySecurityIdentitiesSecurityIdentityResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityIdentitiesSecurityIdentityResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Identities" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + if r.validate != nil { + parameterAddToQuery(localVarQueryParams, "Validate", r.validate, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Identities/{id} +type ApiGetSecurityIdentitiesByIdRequest struct { + ctx context.Context + ApiService *SecurityApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityIdentitiesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityIdentitiesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityIdentitiesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityIdentitiesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Identities/{id} request context +func (r ApiGetSecurityIdentitiesByIdRequest) Execute() (*SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse, *http.Response, error) { + return r.ApiService.GetSecurityIdentitiesByIdExecute(r) +} + +/* +Creates a new V1 GET /Security/Identities/{id} request. + +GetSecurityIdentitiesById Gets an object representing the permissions of the identity associated with the provided identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The identifier of the security identity + @return ApiGetSecurityIdentitiesByIdRequest +*/ +func (a *SecurityApiService) NewGetSecurityIdentitiesByIdRequest(ctx context.Context, id int32) ApiGetSecurityIdentitiesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityIdentitiesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Identities/{id} +// +// @return SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse +func (a *SecurityApiService) GetSecurityIdentitiesByIdExecute(r ApiGetSecurityIdentitiesByIdRequest) (*SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Identities/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Identities/Lookup +type ApiGetSecurityIdentitiesLookupRequest struct { + ctx context.Context + ApiService *SecurityApiService + xKeyfactorRequestedWith *string + accountName *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityIdentitiesLookupRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityIdentitiesLookupRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The name of an identity we wish to check. +func (r ApiGetSecurityIdentitiesLookupRequest) AccountName(accountName string) ApiGetSecurityIdentitiesLookupRequest { + r.accountName = &accountName + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityIdentitiesLookupRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityIdentitiesLookupRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Identities/Lookup request context +func (r ApiGetSecurityIdentitiesLookupRequest) Execute() (*SecuritySecurityIdentitiesSecurityIdentityLookupResponse, *http.Response, error) { + return r.ApiService.GetSecurityIdentitiesLookupExecute(r) +} + +/* +Creates a new V1 GET /Security/Identities/Lookup request. + +GetSecurityIdentitiesLookup Validates that the identity with the name given exists. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityIdentitiesLookupRequest +*/ +func (a *SecurityApiService) NewGetSecurityIdentitiesLookupRequest(ctx context.Context) ApiGetSecurityIdentitiesLookupRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityIdentitiesLookupRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/Identities/Lookup +// +// @return SecuritySecurityIdentitiesSecurityIdentityLookupResponse +func (a *SecurityApiService) GetSecurityIdentitiesLookupExecute(r ApiGetSecurityIdentitiesLookupRequest) (*SecuritySecurityIdentitiesSecurityIdentityLookupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityIdentitiesSecurityIdentityLookupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Identities/Lookup" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.accountName != nil { + parameterAddToQuery(localVarQueryParams, "accountName", r.accountName, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/My +type ApiGetSecurityMyRequest struct { + ctx context.Context + ApiService *SecurityApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityMyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityMyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityMyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityMyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/My request context +func (r ApiGetSecurityMyRequest) Execute() (*SecurityLegacySecurityRolesSecurityMyResponse, *http.Response, error) { + return r.ApiService.GetSecurityMyExecute(r) +} + +/* +Creates a new V1 GET /Security/My request. + +GetSecurityMy Looks at all the roles and global permissions for the user and returns them. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityMyRequest +*/ +func (a *SecurityApiService) NewGetSecurityMyRequest(ctx context.Context) ApiGetSecurityMyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityMyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/My +// +// @return SecurityLegacySecurityRolesSecurityMyResponse +func (a *SecurityApiService) GetSecurityMyExecute(r ApiGetSecurityMyRequest) (*SecurityLegacySecurityRolesSecurityMyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityLegacySecurityRolesSecurityMyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/My" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_security_claims.go b/v24/api/keyfactor/v1/api_security_claims.go new file mode 100644 index 0000000..8bcb817 --- /dev/null +++ b/v24/api/keyfactor/v1/api_security_claims.go @@ -0,0 +1,970 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SecurityClaimsApiService SecurityClaimsApi service +type SecurityClaimsApiService service + +// Request for V1 POST /Security/Claims +type ApiCreateSecurityClaimsRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityClaimsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityClaimsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityClaimsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityClaimsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Claim Definition Creation Request +func (r ApiCreateSecurityClaimsRequest) SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) ApiCreateSecurityClaimsRequest { + r.securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest = &securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest + return r +} + +// Executes the V1 POST /Security/Claims request context +func (r ApiCreateSecurityClaimsRequest) Execute() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateSecurityClaimsExecute(r) +} + +/* +Creates a new V1 POST /Security/Claims request. + +CreateSecurityClaims Adds a new claim definition to the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSecurityClaimsRequest +*/ +func (a *SecurityClaimsApiService) NewCreateSecurityClaimsRequest(ctx context.Context) ApiCreateSecurityClaimsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityClaimsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Security/Claims +// +// @return SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse +func (a *SecurityClaimsApiService) CreateSecurityClaimsExecute(r ApiCreateSecurityClaimsRequest) (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Security/Claims/{id} +type ApiDeleteSecurityClaimsByIdRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSecurityClaimsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSecurityClaimsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSecurityClaimsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSecurityClaimsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Security/Claims/{id} request context +func (r ApiDeleteSecurityClaimsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSecurityClaimsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Security/Claims/{id} request. + +DeleteSecurityClaimsById Removes a claim definition from the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id the Keyfactor identifier of the claim definition to delete + @return ApiDeleteSecurityClaimsByIdRequest +*/ +func (a *SecurityClaimsApiService) NewDeleteSecurityClaimsByIdRequest(ctx context.Context, id int32) ApiDeleteSecurityClaimsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSecurityClaimsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SecurityClaimsApiService) DeleteSecurityClaimsByIdExecute(r ApiDeleteSecurityClaimsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Claims +type ApiGetSecurityClaimsRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityClaimsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityClaimsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSecurityClaimsRequest) QueryString(queryString string) ApiGetSecurityClaimsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSecurityClaimsRequest) PageReturned(pageReturned int32) ApiGetSecurityClaimsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSecurityClaimsRequest) ReturnLimit(returnLimit int32) ApiGetSecurityClaimsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSecurityClaimsRequest) SortField(sortField string) ApiGetSecurityClaimsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSecurityClaimsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSecurityClaimsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityClaimsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityClaimsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Claims request context +func (r ApiGetSecurityClaimsRequest) Execute() ([]SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse, *http.Response, error) { + return r.ApiService.GetSecurityClaimsExecute(r) +} + +/* +Creates a new V1 GET /Security/Claims request. + +GetSecurityClaims Returns all claim definitions according to the provided filter and output parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityClaimsRequest +*/ +func (a *SecurityClaimsApiService) NewGetSecurityClaimsRequest(ctx context.Context) ApiGetSecurityClaimsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityClaimsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/Claims +// +// @return []SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse +func (a *SecurityClaimsApiService) GetSecurityClaimsExecute(r ApiGetSecurityClaimsRequest) ([]SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Claims/{id} +type ApiGetSecurityClaimsByIdRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityClaimsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityClaimsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityClaimsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityClaimsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Claims/{id} request context +func (r ApiGetSecurityClaimsByIdRequest) Execute() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + return r.ApiService.GetSecurityClaimsByIdExecute(r) +} + +/* +Creates a new V1 GET /Security/Claims/{id} request. + +GetSecurityClaimsById Returns a single claim definition that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id claim definition identifier + @return ApiGetSecurityClaimsByIdRequest +*/ +func (a *SecurityClaimsApiService) NewGetSecurityClaimsByIdRequest(ctx context.Context, id int32) ApiGetSecurityClaimsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityClaimsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Claims/{id} +// +// @return SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse +func (a *SecurityClaimsApiService) GetSecurityClaimsByIdExecute(r ApiGetSecurityClaimsByIdRequest) (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Claims/Roles +type ApiGetSecurityClaimsRolesRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + claimType *CSSCMSCoreEnumsClaimType + claimValue *string + providerAuthenticationScheme *string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +func (r ApiGetSecurityClaimsRolesRequest) ClaimType(claimType CSSCMSCoreEnumsClaimType) ApiGetSecurityClaimsRolesRequest { + r.claimType = &claimType + return r +} + +func (r ApiGetSecurityClaimsRolesRequest) ClaimValue(claimValue string) ApiGetSecurityClaimsRolesRequest { + r.claimValue = &claimValue + return r +} + +func (r ApiGetSecurityClaimsRolesRequest) ProviderAuthenticationScheme(providerAuthenticationScheme string) ApiGetSecurityClaimsRolesRequest { + r.providerAuthenticationScheme = &providerAuthenticationScheme + return r +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityClaimsRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityClaimsRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityClaimsRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityClaimsRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Claims/Roles request context +func (r ApiGetSecurityClaimsRolesRequest) Execute() ([]SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse, *http.Response, error) { + return r.ApiService.GetSecurityClaimsRolesExecute(r) +} + +/* +Creates a new V1 GET /Security/Claims/Roles request. + +GetSecurityClaimsRoles Returns a list of roles granted by the claim with the provided id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityClaimsRolesRequest +*/ +func (a *SecurityClaimsApiService) NewGetSecurityClaimsRolesRequest(ctx context.Context) ApiGetSecurityClaimsRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityClaimsRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/Claims/Roles +// +// @return []SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse +func (a *SecurityClaimsApiService) GetSecurityClaimsRolesExecute(r ApiGetSecurityClaimsRolesRequest) ([]SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.claimType == nil { + return localVarReturnValue, nil, reportError("claimType is required and must be specified") + } + if r.claimValue == nil { + return localVarReturnValue, nil, reportError("claimValue is required and must be specified") + } + if strlen(*r.claimValue) < 0 { + return localVarReturnValue, nil, reportError("claimValue must have at least 0 elements") + } + if strlen(*r.claimValue) > 512 { + return localVarReturnValue, nil, reportError("claimValue must have less than 512 elements") + } + if r.providerAuthenticationScheme == nil { + return localVarReturnValue, nil, reportError("providerAuthenticationScheme is required and must be specified") + } + if strlen(*r.providerAuthenticationScheme) < 0 { + return localVarReturnValue, nil, reportError("providerAuthenticationScheme must have at least 0 elements") + } + if strlen(*r.providerAuthenticationScheme) > 512 { + return localVarReturnValue, nil, reportError("providerAuthenticationScheme must have less than 512 elements") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + parameterAddToQuery(localVarQueryParams, "ClaimType", r.claimType, "") + parameterAddToQuery(localVarQueryParams, "ClaimValue", r.claimValue, "") + parameterAddToQuery(localVarQueryParams, "ProviderAuthenticationScheme", r.providerAuthenticationScheme, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Claims +type ApiUpdateSecurityClaimsRequest struct { + ctx context.Context + ApiService *SecurityClaimsApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityClaimsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityClaimsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityClaimsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityClaimsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Claim Definition Update Request +func (r ApiUpdateSecurityClaimsRequest) SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) ApiUpdateSecurityClaimsRequest { + r.securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest = &securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest + return r +} + +// Executes the V1 PUT /Security/Claims request context +func (r ApiUpdateSecurityClaimsRequest) Execute() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityClaimsExecute(r) +} + +/* +Creates a new V1 PUT /Security/Claims request. + +UpdateSecurityClaims Updates an existing claim definition. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSecurityClaimsRequest +*/ +func (a *SecurityClaimsApiService) NewUpdateSecurityClaimsRequest(ctx context.Context) ApiUpdateSecurityClaimsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityClaimsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Security/Claims +// +// @return SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse +func (a *SecurityClaimsApiService) UpdateSecurityClaimsExecute(r ApiUpdateSecurityClaimsRequest) (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Claims" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_security_role_permissions.go b/v24/api/keyfactor/v1/api_security_role_permissions.go new file mode 100644 index 0000000..55cf2d4 --- /dev/null +++ b/v24/api/keyfactor/v1/api_security_role_permissions.go @@ -0,0 +1,1986 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SecurityRolePermissionsApiService SecurityRolePermissionsApi service +type SecurityRolePermissionsApiService service + +// Request for V1 POST /Security/Roles/{id}/Permissions/Collections +type ApiCreateSecurityRolesByIdPermissionsCollectionsRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsCollectionPermissionRequest *[]SecuritySecurityRolePermissionsCollectionPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Collections permissions +func (r ApiCreateSecurityRolesByIdPermissionsCollectionsRequest) SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest []SecuritySecurityRolePermissionsCollectionPermissionRequest) ApiCreateSecurityRolesByIdPermissionsCollectionsRequest { + r.securitySecurityRolePermissionsCollectionPermissionRequest = &securitySecurityRolePermissionsCollectionPermissionRequest + return r +} + +// Executes the V1 POST /Security/Roles/{id}/Permissions/Collections request context +func (r ApiCreateSecurityRolesByIdPermissionsCollectionsRequest) Execute() ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesByIdPermissionsCollectionsExecute(r) +} + +/* +Creates a new V1 POST /Security/Roles/{id}/Permissions/Collections request. + +CreateSecurityRolesByIdPermissionsCollections Adds collection permissions to the security role that matches the id. + +### Valid Permissions ### +| Permission | Permission Display Name | +|---------------|---------------------------| +| Read | Read | +| EditMetadata | Edit Metadata | +| Recover | Download with Private Key | +| Revoke | Revoke | +| Delete | Delete | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiCreateSecurityRolesByIdPermissionsCollectionsRequest +*/ +func (a *SecurityRolePermissionsApiService) NewCreateSecurityRolesByIdPermissionsCollectionsRequest(ctx context.Context, id int32) ApiCreateSecurityRolesByIdPermissionsCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityRolesByIdPermissionsCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Security/Roles/{id}/Permissions/Collections +// +// @return []SecuritySecurityRolePermissionsCollectionPermissionResponse +func (a *SecurityRolePermissionsApiService) CreateSecurityRolesByIdPermissionsCollectionsExecute(r ApiCreateSecurityRolesByIdPermissionsCollectionsRequest) ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsCollectionPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsCollectionPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Security/Roles/{id}/Permissions/Containers +type ApiCreateSecurityRolesByIdPermissionsContainersRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsContainerPermissionRequest *[]SecuritySecurityRolePermissionsContainerPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesByIdPermissionsContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesByIdPermissionsContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Container permissions +func (r ApiCreateSecurityRolesByIdPermissionsContainersRequest) SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest []SecuritySecurityRolePermissionsContainerPermissionRequest) ApiCreateSecurityRolesByIdPermissionsContainersRequest { + r.securitySecurityRolePermissionsContainerPermissionRequest = &securitySecurityRolePermissionsContainerPermissionRequest + return r +} + +// Executes the V1 POST /Security/Roles/{id}/Permissions/Containers request context +func (r ApiCreateSecurityRolesByIdPermissionsContainersRequest) Execute() ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesByIdPermissionsContainersExecute(r) +} + +/* +Creates a new V1 POST /Security/Roles/{id}/Permissions/Containers request. + +CreateSecurityRolesByIdPermissionsContainers Adds container permissions to the security role that matches the id. + +### Valid Permissions ### +| Permission | Requisite Permissions | +|---------------|-----------------------| +| Read | | +| Schedule | Read | +| Modify | Read, Schedule | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiCreateSecurityRolesByIdPermissionsContainersRequest +*/ +func (a *SecurityRolePermissionsApiService) NewCreateSecurityRolesByIdPermissionsContainersRequest(ctx context.Context, id int32) ApiCreateSecurityRolesByIdPermissionsContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityRolesByIdPermissionsContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Security/Roles/{id}/Permissions/Containers +// +// @return []SecuritySecurityRolePermissionsContainerPermissionResponse +func (a *SecurityRolePermissionsApiService) CreateSecurityRolesByIdPermissionsContainersExecute(r ApiCreateSecurityRolesByIdPermissionsContainersRequest) ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsContainerPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsContainerPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Security/Roles/{id}/Permissions/Global +type ApiCreateSecurityRolesByIdPermissionsGlobalRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsGlobalPermissionRequest *[]SecuritySecurityRolePermissionsGlobalPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Global permissions +func (r ApiCreateSecurityRolesByIdPermissionsGlobalRequest) SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest []SecuritySecurityRolePermissionsGlobalPermissionRequest) ApiCreateSecurityRolesByIdPermissionsGlobalRequest { + r.securitySecurityRolePermissionsGlobalPermissionRequest = &securitySecurityRolePermissionsGlobalPermissionRequest + return r +} + +// Executes the V1 POST /Security/Roles/{id}/Permissions/Global request context +func (r ApiCreateSecurityRolesByIdPermissionsGlobalRequest) Execute() ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesByIdPermissionsGlobalExecute(r) +} + +/* +Creates a new V1 POST /Security/Roles/{id}/Permissions/Global request. + +CreateSecurityRolesByIdPermissionsGlobal Adds global permissions to the security role that matches the id. + +### Valid Global Permissions ### +| Area | Permission | +|-------------------------------|-------------------| +| AdminPortal | Read | +| AgentAutoRegistration | Read | +| AgentAutoRegistration | Modify | +| AgentManagement | Read | +| AgentManagement | Modify | +| API | Read | +| ApplicationSettings | Read | +| ApplicationSettings | Modify | +| Auditing | Read | +| CertificateCollections | Modify | +| CertificateEnrollment | EnrollPFX | +| CertificateEnrollment | EnrollCSR | +| CertificateEnrollment | CsrGeneration | +| CertificateEnrollment | PendingCsr | +| CertificateMetadataTypes | Read | +| CertificateMetadataTypes | Modify | +| Certificates | Read | +| Certificates | EditMetadata | +| Certificates | Import | +| Certificates | Recover | +| Certificates | Revoke | +| Certificates | Delete | +| Certificates | ImportPrivateKey | +| CertificateStoreManagement | Read | +| CertificateStoreManagement | Schedule | +| CertificateStoreManagement | Modify | +| Dashboard | Read | +| Dashboard | RiskHeader | +| EventHandlerRegistration | Read | +| EventHandlerRegistration | Modify | +| MacAutoEnrollManagement | Read | +| MacAutoEnrollManagement | Modify | +| PkiManagement | Read | +| PkiManagement | Modify | +| PrivilegedAccessManagement | Read | +| PrivilegedAccessManagement | Modify | +| Reports | Read | +| Reports | Modify | +| SecuritySettings | Read | +| SecuritySettings | Modify | +| SSH | User | +| SSH | ServerAdmin | +| SSH | EnterpriseAdmin | +| SslManagement | Read | +| SslManagement | Modify | +| SystemSettings | Read | +| SystemSettings | Modify | +| WorkflowDefinitions | Read | +| WorkflowDefinitions | Modify | +| WorkflowInstances | ReadAll | +| WorkflowInstances | ReadAssignedToMe | +| WorkflowInstances | ReadMy | +| WorkflowInstances | Manage | +| WorkflowManagement | Read | +| WorkflowManagement | Modify | +| WorkflowManagement | Test | +| WorkflowManagement | Participate | +| WorkflowManagement | Manage | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiCreateSecurityRolesByIdPermissionsGlobalRequest +*/ +func (a *SecurityRolePermissionsApiService) NewCreateSecurityRolesByIdPermissionsGlobalRequest(ctx context.Context, id int32) ApiCreateSecurityRolesByIdPermissionsGlobalRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityRolesByIdPermissionsGlobalRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Security/Roles/{id}/Permissions/Global +// +// @return []SecuritySecurityRolePermissionsGlobalPermissionResponse +func (a *SecurityRolePermissionsApiService) CreateSecurityRolesByIdPermissionsGlobalExecute(r ApiCreateSecurityRolesByIdPermissionsGlobalRequest) ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsGlobalPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsGlobalPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Permissions +type ApiGetSecurityRolesByIdPermissionsRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdPermissionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdPermissionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdPermissionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdPermissionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Permissions request context +func (r ApiGetSecurityRolesByIdPermissionsRequest) Execute() ([]SecuritySecurityRolePermissionsAreaPermissionResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdPermissionsExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Permissions request. + +GetSecurityRolesByIdPermissions Returns all permissions associated with the security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdPermissionsRequest +*/ +func (a *SecurityRolePermissionsApiService) NewGetSecurityRolesByIdPermissionsRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdPermissionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdPermissionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Permissions +// +// @return []SecuritySecurityRolePermissionsAreaPermissionResponse +func (a *SecurityRolePermissionsApiService) GetSecurityRolesByIdPermissionsExecute(r ApiGetSecurityRolesByIdPermissionsRequest) ([]SecuritySecurityRolePermissionsAreaPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsAreaPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Permissions/Collections +type ApiGetSecurityRolesByIdPermissionsCollectionsRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Permissions/Collections request context +func (r ApiGetSecurityRolesByIdPermissionsCollectionsRequest) Execute() ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdPermissionsCollectionsExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Permissions/Collections request. + +GetSecurityRolesByIdPermissionsCollections Returns all collection permissions associated with the security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdPermissionsCollectionsRequest +*/ +func (a *SecurityRolePermissionsApiService) NewGetSecurityRolesByIdPermissionsCollectionsRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdPermissionsCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdPermissionsCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Permissions/Collections +// +// @return []SecuritySecurityRolePermissionsCollectionPermissionResponse +func (a *SecurityRolePermissionsApiService) GetSecurityRolesByIdPermissionsCollectionsExecute(r ApiGetSecurityRolesByIdPermissionsCollectionsRequest) ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsCollectionPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Permissions/Containers +type ApiGetSecurityRolesByIdPermissionsContainersRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdPermissionsContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdPermissionsContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Permissions/Containers request context +func (r ApiGetSecurityRolesByIdPermissionsContainersRequest) Execute() ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdPermissionsContainersExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Permissions/Containers request. + +GetSecurityRolesByIdPermissionsContainers Returns all container permissions associated with the security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdPermissionsContainersRequest +*/ +func (a *SecurityRolePermissionsApiService) NewGetSecurityRolesByIdPermissionsContainersRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdPermissionsContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdPermissionsContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Permissions/Containers +// +// @return []SecuritySecurityRolePermissionsContainerPermissionResponse +func (a *SecurityRolePermissionsApiService) GetSecurityRolesByIdPermissionsContainersExecute(r ApiGetSecurityRolesByIdPermissionsContainersRequest) ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsContainerPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Permissions/Global +type ApiGetSecurityRolesByIdPermissionsGlobalRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Permissions/Global request context +func (r ApiGetSecurityRolesByIdPermissionsGlobalRequest) Execute() ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdPermissionsGlobalExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Permissions/Global request. + +GetSecurityRolesByIdPermissionsGlobal Returns all global permissions associated with the security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdPermissionsGlobalRequest +*/ +func (a *SecurityRolePermissionsApiService) NewGetSecurityRolesByIdPermissionsGlobalRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdPermissionsGlobalRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdPermissionsGlobalRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Permissions/Global +// +// @return []SecuritySecurityRolePermissionsGlobalPermissionResponse +func (a *SecurityRolePermissionsApiService) GetSecurityRolesByIdPermissionsGlobalExecute(r ApiGetSecurityRolesByIdPermissionsGlobalRequest) ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsGlobalPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Permissions/PamProviders +type ApiGetSecurityRolesByIdPermissionsPamProvidersRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdPermissionsPamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdPermissionsPamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdPermissionsPamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdPermissionsPamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Permissions/PamProviders request context +func (r ApiGetSecurityRolesByIdPermissionsPamProvidersRequest) Execute() ([]SecuritySecurityRolePermissionsPamProviderPermissionResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdPermissionsPamProvidersExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Permissions/PamProviders request. + +GetSecurityRolesByIdPermissionsPamProviders Returns all PAM provider permissions associated with the security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdPermissionsPamProvidersRequest +*/ +func (a *SecurityRolePermissionsApiService) NewGetSecurityRolesByIdPermissionsPamProvidersRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdPermissionsPamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdPermissionsPamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Permissions/PamProviders +// +// @return []SecuritySecurityRolePermissionsPamProviderPermissionResponse +func (a *SecurityRolePermissionsApiService) GetSecurityRolesByIdPermissionsPamProvidersExecute(r ApiGetSecurityRolesByIdPermissionsPamProvidersRequest) ([]SecuritySecurityRolePermissionsPamProviderPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsPamProviderPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/PamProviders" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles/{id}/Permissions/Collections +type ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsCollectionPermissionRequest *[]SecuritySecurityRolePermissionsCollectionPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Collections permissions +func (r ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest) SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest []SecuritySecurityRolePermissionsCollectionPermissionRequest) ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest { + r.securitySecurityRolePermissionsCollectionPermissionRequest = &securitySecurityRolePermissionsCollectionPermissionRequest + return r +} + +// Executes the V1 PUT /Security/Roles/{id}/Permissions/Collections request context +func (r ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest) Execute() ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesByIdPermissionsCollectionsExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles/{id}/Permissions/Collections request. + +UpdateSecurityRolesByIdPermissionsCollections Sets collection permissions to the security role that matches the id. + +### Valid Permissions ### +| Permission | Permission Display Name | +|---------------|---------------------------| +| Read | Read | +| EditMetadata | Edit Metadata | +| Recover | Download with Private Key | +| Revoke | Revoke | +| Delete | Delete | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest +*/ +func (a *SecurityRolePermissionsApiService) NewUpdateSecurityRolesByIdPermissionsCollectionsRequest(ctx context.Context, id int32) ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Security/Roles/{id}/Permissions/Collections +// +// @return []SecuritySecurityRolePermissionsCollectionPermissionResponse +func (a *SecurityRolePermissionsApiService) UpdateSecurityRolesByIdPermissionsCollectionsExecute(r ApiUpdateSecurityRolesByIdPermissionsCollectionsRequest) ([]SecuritySecurityRolePermissionsCollectionPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsCollectionPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsCollectionPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles/{id}/Permissions/Containers +type ApiUpdateSecurityRolesByIdPermissionsContainersRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsContainerPermissionRequest *[]SecuritySecurityRolePermissionsContainerPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesByIdPermissionsContainersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesByIdPermissionsContainersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesByIdPermissionsContainersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Container permissions +func (r ApiUpdateSecurityRolesByIdPermissionsContainersRequest) SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest []SecuritySecurityRolePermissionsContainerPermissionRequest) ApiUpdateSecurityRolesByIdPermissionsContainersRequest { + r.securitySecurityRolePermissionsContainerPermissionRequest = &securitySecurityRolePermissionsContainerPermissionRequest + return r +} + +// Executes the V1 PUT /Security/Roles/{id}/Permissions/Containers request context +func (r ApiUpdateSecurityRolesByIdPermissionsContainersRequest) Execute() ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesByIdPermissionsContainersExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles/{id}/Permissions/Containers request. + +UpdateSecurityRolesByIdPermissionsContainers Sets container permissions to the security role that matches the id. + +### Valid Permissions ### +| Permission | Requisite Permissions | +|---------------|-----------------------| +| Read | | +| Schedule | Read | +| Modify | Read, Schedule | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiUpdateSecurityRolesByIdPermissionsContainersRequest +*/ +func (a *SecurityRolePermissionsApiService) NewUpdateSecurityRolesByIdPermissionsContainersRequest(ctx context.Context, id int32) ApiUpdateSecurityRolesByIdPermissionsContainersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesByIdPermissionsContainersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Security/Roles/{id}/Permissions/Containers +// +// @return []SecuritySecurityRolePermissionsContainerPermissionResponse +func (a *SecurityRolePermissionsApiService) UpdateSecurityRolesByIdPermissionsContainersExecute(r ApiUpdateSecurityRolesByIdPermissionsContainersRequest) ([]SecuritySecurityRolePermissionsContainerPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsContainerPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsContainerPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles/{id}/Permissions/Global +type ApiUpdateSecurityRolesByIdPermissionsGlobalRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsGlobalPermissionRequest *[]SecuritySecurityRolePermissionsGlobalPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesByIdPermissionsGlobalRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesByIdPermissionsGlobalRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Global permissions +func (r ApiUpdateSecurityRolesByIdPermissionsGlobalRequest) SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest []SecuritySecurityRolePermissionsGlobalPermissionRequest) ApiUpdateSecurityRolesByIdPermissionsGlobalRequest { + r.securitySecurityRolePermissionsGlobalPermissionRequest = &securitySecurityRolePermissionsGlobalPermissionRequest + return r +} + +// Executes the V1 PUT /Security/Roles/{id}/Permissions/Global request context +func (r ApiUpdateSecurityRolesByIdPermissionsGlobalRequest) Execute() ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesByIdPermissionsGlobalExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles/{id}/Permissions/Global request. + +UpdateSecurityRolesByIdPermissionsGlobal Adds global permissions to the security role that matches the id. + +### Valid Global Permissions ### +| Area | Permission | +|-------------------------------|-------------------| +| AdminPortal | Read | +| AgentAutoRegistration | Read | +| AgentAutoRegistration | Modify | +| AgentManagement | Read | +| AgentManagement | Modify | +| API | Read | +| ApplicationSettings | Read | +| ApplicationSettings | Modify | +| Auditing | Read | +| CertificateCollections | Modify | +| CertificateEnrollment | EnrollPFX | +| CertificateEnrollment | EnrollCSR | +| CertificateEnrollment | CsrGeneration | +| CertificateEnrollment | PendingCsr | +| CertificateMetadataTypes | Read | +| CertificateMetadataTypes | Modify | +| Certificates | Read | +| Certificates | EditMetadata | +| Certificates | Import | +| Certificates | Recover | +| Certificates | Revoke | +| Certificates | Delete | +| Certificates | ImportPrivateKey | +| CertificateStoreManagement | Read | +| CertificateStoreManagement | Schedule | +| CertificateStoreManagement | Modify | +| Dashboard | Read | +| Dashboard | RiskHeader | +| EventHandlerRegistration | Read | +| EventHandlerRegistration | Modify | +| MacAutoEnrollManagement | Read | +| MacAutoEnrollManagement | Modify | +| PkiManagement | Read | +| PkiManagement | Modify | +| PrivilegedAccessManagement | Read | +| PrivilegedAccessManagement | Modify | +| Reports | Read | +| Reports | Modify | +| SecuritySettings | Read | +| SecuritySettings | Modify | +| SSH | User | +| SSH | ServerAdmin | +| SSH | EnterpriseAdmin | +| SslManagement | Read | +| SslManagement | Modify | +| SystemSettings | Read | +| SystemSettings | Modify | +| WorkflowDefinitions | Read | +| WorkflowDefinitions | Modify | +| WorkflowInstances | ReadAll | +| WorkflowInstances | ReadAssignedToMe | +| WorkflowInstances | ReadMy | +| WorkflowInstances | Manage | +| WorkflowManagement | Read | +| WorkflowManagement | Modify | +| WorkflowManagement | Test | +| WorkflowManagement | Participate | +| WorkflowManagement | Manage | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiUpdateSecurityRolesByIdPermissionsGlobalRequest +*/ +func (a *SecurityRolePermissionsApiService) NewUpdateSecurityRolesByIdPermissionsGlobalRequest(ctx context.Context, id int32) ApiUpdateSecurityRolesByIdPermissionsGlobalRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesByIdPermissionsGlobalRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Security/Roles/{id}/Permissions/Global +// +// @return []SecuritySecurityRolePermissionsGlobalPermissionResponse +func (a *SecurityRolePermissionsApiService) UpdateSecurityRolesByIdPermissionsGlobalExecute(r ApiUpdateSecurityRolesByIdPermissionsGlobalRequest) ([]SecuritySecurityRolePermissionsGlobalPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsGlobalPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsGlobalPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles/{id}/Permissions/PamProviders +type ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest struct { + ctx context.Context + ApiService *SecurityRolePermissionsApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolePermissionsPamProviderPermissionRequest *[]SecuritySecurityRolePermissionsPamProviderPermissionRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM Provider permissions +func (r ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest) SecuritySecurityRolePermissionsPamProviderPermissionRequest(securitySecurityRolePermissionsPamProviderPermissionRequest []SecuritySecurityRolePermissionsPamProviderPermissionRequest) ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest { + r.securitySecurityRolePermissionsPamProviderPermissionRequest = &securitySecurityRolePermissionsPamProviderPermissionRequest + return r +} + +// Executes the V1 PUT /Security/Roles/{id}/Permissions/PamProviders request context +func (r ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest) Execute() ([]SecuritySecurityRolePermissionsPamProviderPermissionResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesByIdPermissionsPamProvidersExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles/{id}/Permissions/PamProviders request. + +UpdateSecurityRolesByIdPermissionsPamProviders Sets PAM provider permissions to the security role that matches the id. + +### Valid Permissions ### +| Permission | Requisite Permissions | +|---------------|-----------------------| +| Read | | +| Modify | Read | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest +*/ +func (a *SecurityRolePermissionsApiService) NewUpdateSecurityRolesByIdPermissionsPamProvidersRequest(ctx context.Context, id int32) ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Security/Roles/{id}/Permissions/PamProviders +// +// @return []SecuritySecurityRolePermissionsPamProviderPermissionResponse +func (a *SecurityRolePermissionsApiService) UpdateSecurityRolesByIdPermissionsPamProvidersExecute(r ApiUpdateSecurityRolesByIdPermissionsPamProvidersRequest) ([]SecuritySecurityRolePermissionsPamProviderPermissionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolePermissionsPamProviderPermissionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/PamProviders" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolePermissionsPamProviderPermissionRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_security_roles.go b/v24/api/keyfactor/v1/api_security_roles.go new file mode 100644 index 0000000..46bb258 --- /dev/null +++ b/v24/api/keyfactor/v1/api_security_roles.go @@ -0,0 +1,1276 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SecurityRolesApiService SecurityRolesApi service +type SecurityRolesApiService service + +// Request for V1 POST /Security/Roles +type ApiCreateSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityLegacySecurityRolesSecurityRoleCreationRequest *SecurityLegacySecurityRolesSecurityRoleCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security Role Creation Request +func (r ApiCreateSecurityRolesRequest) SecurityLegacySecurityRolesSecurityRoleCreationRequest(securityLegacySecurityRolesSecurityRoleCreationRequest SecurityLegacySecurityRolesSecurityRoleCreationRequest) ApiCreateSecurityRolesRequest { + r.securityLegacySecurityRolesSecurityRoleCreationRequest = &securityLegacySecurityRolesSecurityRoleCreationRequest + return r +} + +// Executes the V1 POST /Security/Roles request context +func (r ApiCreateSecurityRolesRequest) Execute() (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesExecute(r) +} + +/* +Creates a new V1 POST /Security/Roles request. + +CreateSecurityRoles Adds a new security role to the system. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSecurityRolesRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewCreateSecurityRolesRequest(ctx context.Context) ApiCreateSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Security/Roles +// +// @return SecurityLegacySecurityRolesSecurityRoleResponse +// +// Deprecated +func (a *SecurityRolesApiService) CreateSecurityRolesExecute(r ApiCreateSecurityRolesRequest) (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityLegacySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityLegacySecurityRolesSecurityRoleCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Security/Roles/{id}/Copy +type ApiCreateSecurityRolesByIdCopyRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityLegacySecurityRolesSecurityRoleCopyRequest *SecurityLegacySecurityRolesSecurityRoleCopyRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesByIdCopyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesByIdCopyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesByIdCopyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesByIdCopyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// New security role's name and description +func (r ApiCreateSecurityRolesByIdCopyRequest) SecurityLegacySecurityRolesSecurityRoleCopyRequest(securityLegacySecurityRolesSecurityRoleCopyRequest SecurityLegacySecurityRolesSecurityRoleCopyRequest) ApiCreateSecurityRolesByIdCopyRequest { + r.securityLegacySecurityRolesSecurityRoleCopyRequest = &securityLegacySecurityRolesSecurityRoleCopyRequest + return r +} + +// Executes the V1 POST /Security/Roles/{id}/Copy request context +func (r ApiCreateSecurityRolesByIdCopyRequest) Execute() (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesByIdCopyExecute(r) +} + +/* +Creates a new V1 POST /Security/Roles/{id}/Copy request. + +CreateSecurityRolesByIdCopy Makes a copy of an existing security role. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier for target role to copy + @return ApiCreateSecurityRolesByIdCopyRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewCreateSecurityRolesByIdCopyRequest(ctx context.Context, id int32) ApiCreateSecurityRolesByIdCopyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSecurityRolesByIdCopyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /Security/Roles/{id}/Copy +// +// @return SecurityLegacySecurityRolesSecurityRoleResponse +// +// Deprecated +func (a *SecurityRolesApiService) CreateSecurityRolesByIdCopyExecute(r ApiCreateSecurityRolesByIdCopyRequest) (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityLegacySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Copy" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityLegacySecurityRolesSecurityRoleCopyRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Security/Roles/{id} +type ApiDeleteSecurityRolesByIdRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSecurityRolesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSecurityRolesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSecurityRolesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSecurityRolesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Security/Roles/{id} request context +func (r ApiDeleteSecurityRolesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSecurityRolesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /Security/Roles/{id} request. + +DeleteSecurityRolesById Deletes the security role whose ID is provided. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiDeleteSecurityRolesByIdRequest +*/ +func (a *SecurityRolesApiService) NewDeleteSecurityRolesByIdRequest(ctx context.Context, id int32) ApiDeleteSecurityRolesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSecurityRolesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SecurityRolesApiService) DeleteSecurityRolesByIdExecute(r ApiDeleteSecurityRolesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles +type ApiGetSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + validate *bool + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSecurityRolesRequest) Validate(validate bool) ApiGetSecurityRolesRequest { + r.validate = &validate + return r +} + +func (r ApiGetSecurityRolesRequest) QueryString(queryString string) ApiGetSecurityRolesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSecurityRolesRequest) PageReturned(pageReturned int32) ApiGetSecurityRolesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSecurityRolesRequest) ReturnLimit(returnLimit int32) ApiGetSecurityRolesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSecurityRolesRequest) SortField(sortField string) ApiGetSecurityRolesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSecurityRolesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSecurityRolesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles request context +func (r ApiGetSecurityRolesRequest) Execute() ([]SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles request. + +GetSecurityRoles Returns all security roles according to the provided filter and output parameters. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityRolesRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewGetSecurityRolesRequest(ctx context.Context) ApiGetSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Security/Roles +// +// @return []SecurityLegacySecurityRolesSecurityRoleResponse +// +// Deprecated +func (a *SecurityRolesApiService) GetSecurityRolesExecute(r ApiGetSecurityRolesRequest) ([]SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecurityLegacySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.validate != nil { + parameterAddToQuery(localVarQueryParams, "Validate", r.validate, "") + } + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id} +type ApiGetSecurityRolesByIdRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id} request context +func (r ApiGetSecurityRolesByIdRequest) Execute() (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id} request. + +GetSecurityRolesById Returns a single security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewGetSecurityRolesByIdRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id} +// +// @return SecurityLegacySecurityRolesSecurityRoleResponse +// +// Deprecated +func (a *SecurityRolesApiService) GetSecurityRolesByIdExecute(r ApiGetSecurityRolesByIdRequest) (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityLegacySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Security/Roles/{id}/Identities +type ApiGetSecurityRolesByIdIdentitiesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdIdentitiesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdIdentitiesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdIdentitiesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdIdentitiesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Security/Roles/{id}/Identities request context +func (r ApiGetSecurityRolesByIdIdentitiesRequest) Execute() ([]SecurityLegacySecurityRolesRoleIdentitiesResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdIdentitiesExecute(r) +} + +/* +Creates a new V1 GET /Security/Roles/{id}/Identities request. + +GetSecurityRolesByIdIdentities Returns all identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdIdentitiesRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewGetSecurityRolesByIdIdentitiesRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdIdentitiesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSecurityRolesByIdIdentitiesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Security/Roles/{id}/Identities +// +// @return []SecurityLegacySecurityRolesRoleIdentitiesResponse +// +// Deprecated +func (a *SecurityRolesApiService) GetSecurityRolesByIdIdentitiesExecute(r ApiGetSecurityRolesByIdIdentitiesRequest) ([]SecurityLegacySecurityRolesRoleIdentitiesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecurityLegacySecurityRolesRoleIdentitiesResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Identities" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles +type ApiUpdateSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityLegacySecurityRolesSecurityRoleUpdateRequest *SecurityLegacySecurityRolesSecurityRoleUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security Update Request +func (r ApiUpdateSecurityRolesRequest) SecurityLegacySecurityRolesSecurityRoleUpdateRequest(securityLegacySecurityRolesSecurityRoleUpdateRequest SecurityLegacySecurityRolesSecurityRoleUpdateRequest) ApiUpdateSecurityRolesRequest { + r.securityLegacySecurityRolesSecurityRoleUpdateRequest = &securityLegacySecurityRolesSecurityRoleUpdateRequest + return r +} + +// Executes the V1 PUT /Security/Roles request context +func (r ApiUpdateSecurityRolesRequest) Execute() (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles request. + +UpdateSecurityRoles Updates a security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSecurityRolesRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewUpdateSecurityRolesRequest(ctx context.Context) ApiUpdateSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Security/Roles +// +// @return SecurityLegacySecurityRolesSecurityRoleResponse +// +// Deprecated +func (a *SecurityRolesApiService) UpdateSecurityRolesExecute(r ApiUpdateSecurityRolesRequest) (*SecurityLegacySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecurityLegacySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityLegacySecurityRolesSecurityRoleUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Security/Roles/{id}/Identities +type ApiUpdateSecurityRolesByIdIdentitiesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securityLegacySecurityRolesRoleIdentitiesRequest *SecurityLegacySecurityRolesRoleIdentitiesRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesByIdIdentitiesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesByIdIdentitiesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesByIdIdentitiesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesByIdIdentitiesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Role identities request object which contains a list of Identity IDs to remove or add to the role +func (r ApiUpdateSecurityRolesByIdIdentitiesRequest) SecurityLegacySecurityRolesRoleIdentitiesRequest(securityLegacySecurityRolesRoleIdentitiesRequest SecurityLegacySecurityRolesRoleIdentitiesRequest) ApiUpdateSecurityRolesByIdIdentitiesRequest { + r.securityLegacySecurityRolesRoleIdentitiesRequest = &securityLegacySecurityRolesRoleIdentitiesRequest + return r +} + +// Executes the V1 PUT /Security/Roles/{id}/Identities request context +func (r ApiUpdateSecurityRolesByIdIdentitiesRequest) Execute() ([]SecurityLegacySecurityRolesRoleIdentitiesResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesByIdIdentitiesExecute(r) +} + +/* +Creates a new V1 PUT /Security/Roles/{id}/Identities request. + +UpdateSecurityRolesByIdIdentities Updates the identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiUpdateSecurityRolesByIdIdentitiesRequest + +Deprecated +*/ +func (a *SecurityRolesApiService) NewUpdateSecurityRolesByIdIdentitiesRequest(ctx context.Context, id int32) ApiUpdateSecurityRolesByIdIdentitiesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSecurityRolesByIdIdentitiesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 PUT /Security/Roles/{id}/Identities +// +// @return []SecurityLegacySecurityRolesRoleIdentitiesResponse +// +// Deprecated +func (a *SecurityRolesApiService) UpdateSecurityRolesByIdIdentitiesExecute(r ApiUpdateSecurityRolesByIdIdentitiesRequest) ([]SecurityLegacySecurityRolesRoleIdentitiesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecurityLegacySecurityRolesRoleIdentitiesResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}/Identities" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securityLegacySecurityRolesRoleIdentitiesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_server.go b/v24/api/keyfactor/v1/api_server.go new file mode 100644 index 0000000..2055d80 --- /dev/null +++ b/v24/api/keyfactor/v1/api_server.go @@ -0,0 +1,1247 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ServerApiService ServerApi service +type ServerApiService service + +// Request for V1 POST /SSH/Servers +type ApiCreateSSHServersRequest struct { + ctx context.Context + ApiService *ServerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServersServerCreationRequest *CSSCMSDataModelModelsSSHServersServerCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Server properties to be applied to the newserver +func (r ApiCreateSSHServersRequest) CSSCMSDataModelModelsSSHServersServerCreationRequest(cSSCMSDataModelModelsSSHServersServerCreationRequest CSSCMSDataModelModelsSSHServersServerCreationRequest) ApiCreateSSHServersRequest { + r.cSSCMSDataModelModelsSSHServersServerCreationRequest = &cSSCMSDataModelModelsSSHServersServerCreationRequest + return r +} + +// Executes the V1 POST /SSH/Servers request context +func (r ApiCreateSSHServersRequest) Execute() (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + return r.ApiService.CreateSSHServersExecute(r) +} + +/* +Creates a new V1 POST /SSH/Servers request. + +CreateSSHServers Creates a server with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHServersRequest +*/ +func (a *ServerApiService) NewCreateSSHServersRequest(ctx context.Context) ApiCreateSSHServersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Servers +// +// @return CSSCMSDataModelModelsSSHServersServerResponse +func (a *ServerApiService) CreateSSHServersExecute(r ApiCreateSSHServersRequest) (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServersServerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServersServerCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSH/Servers/Access +type ApiCreateSSHServersAccessRequest struct { + ctx context.Context + ApiService *ServerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHAccessServerAccessRequest *CSSCMSDataModelModelsSSHAccessServerAccessRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServersAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServersAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServersAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServersAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Logons and users to be applied to the existing server +func (r ApiCreateSSHServersAccessRequest) CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest CSSCMSDataModelModelsSSHAccessServerAccessRequest) ApiCreateSSHServersAccessRequest { + r.cSSCMSDataModelModelsSSHAccessServerAccessRequest = &cSSCMSDataModelModelsSSHAccessServerAccessRequest + return r +} + +// Executes the V1 POST /SSH/Servers/Access request context +func (r ApiCreateSSHServersAccessRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + return r.ApiService.CreateSSHServersAccessExecute(r) +} + +/* +Creates a new V1 POST /SSH/Servers/Access request. + +CreateSSHServersAccess Updates logons and users with access to those logons for an existing server + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHServersAccessRequest +*/ +func (a *ServerApiService) NewCreateSSHServersAccessRequest(ctx context.Context) ApiCreateSSHServersAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServersAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Servers/Access +// +// @return CSSCMSDataModelModelsSSHAccessServerAccessResponse +func (a *ServerApiService) CreateSSHServersAccessExecute(r ApiCreateSSHServersAccessRequest) (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHAccessServerAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Servers/Access +type ApiDeleteSSHServersAccessRequest struct { + ctx context.Context + ApiService *ServerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHAccessServerAccessRequest *CSSCMSDataModelModelsSSHAccessServerAccessRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServersAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServersAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServersAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServersAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Logons and users to be removed from the existing server +func (r ApiDeleteSSHServersAccessRequest) CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest CSSCMSDataModelModelsSSHAccessServerAccessRequest) ApiDeleteSSHServersAccessRequest { + r.cSSCMSDataModelModelsSSHAccessServerAccessRequest = &cSSCMSDataModelModelsSSHAccessServerAccessRequest + return r +} + +// Executes the V1 DELETE /SSH/Servers/Access request context +func (r ApiDeleteSSHServersAccessRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + return r.ApiService.DeleteSSHServersAccessExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Servers/Access request. + +DeleteSSHServersAccess Updates logons and users with access to those logons for an existing server + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteSSHServersAccessRequest +*/ +func (a *ServerApiService) NewDeleteSSHServersAccessRequest(ctx context.Context) ApiDeleteSSHServersAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServersAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 DELETE /SSH/Servers/Access +// +// @return CSSCMSDataModelModelsSSHAccessServerAccessResponse +func (a *ServerApiService) DeleteSSHServersAccessExecute(r ApiDeleteSSHServersAccessRequest) (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHAccessServerAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Servers/{id} +type ApiDeleteSSHServersByIdRequest struct { + ctx context.Context + ApiService *ServerApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/Servers/{id} request context +func (r ApiDeleteSSHServersByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHServersByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Servers/{id} request. + +DeleteSSHServersById Deletes a Server associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the Server to be deleted + @return ApiDeleteSSHServersByIdRequest +*/ +func (a *ServerApiService) NewDeleteSSHServersByIdRequest(ctx context.Context, id int32) ApiDeleteSSHServersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ServerApiService) DeleteSSHServersByIdExecute(r ApiDeleteSSHServersByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Servers +type ApiGetSSHServersRequest struct { + ctx context.Context + ApiService *ServerApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHServersRequest) QueryString(queryString string) ApiGetSSHServersRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHServersRequest) PageReturned(pageReturned int32) ApiGetSSHServersRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHServersRequest) ReturnLimit(returnLimit int32) ApiGetSSHServersRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHServersRequest) SortField(sortField string) ApiGetSSHServersRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHServersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHServersRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Servers request context +func (r ApiGetSSHServersRequest) Execute() ([]CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + return r.ApiService.GetSSHServersExecute(r) +} + +/* +Creates a new V1 GET /SSH/Servers request. + +GetSSHServers Returns all servers according to the provided filter parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHServersRequest +*/ +func (a *ServerApiService) NewGetSSHServersRequest(ctx context.Context) ApiGetSSHServersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/Servers +// +// @return []CSSCMSDataModelModelsSSHServersServerResponse +func (a *ServerApiService) GetSSHServersExecute(r ApiGetSSHServersRequest) ([]CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHServersServerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Servers/Access/{id} +type ApiGetSSHServersAccessByIdRequest struct { + ctx context.Context + ApiService *ServerApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServersAccessByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServersAccessByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServersAccessByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServersAccessByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Servers/Access/{id} request context +func (r ApiGetSSHServersAccessByIdRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + return r.ApiService.GetSSHServersAccessByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/Servers/Access/{id} request. + +GetSSHServersAccessById Retrieves logons and users with access to those logons for an existing server + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the existing server + @return ApiGetSSHServersAccessByIdRequest +*/ +func (a *ServerApiService) NewGetSSHServersAccessByIdRequest(ctx context.Context, id int32) ApiGetSSHServersAccessByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServersAccessByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/Servers/Access/{id} +// +// @return CSSCMSDataModelModelsSSHAccessServerAccessResponse +func (a *ServerApiService) GetSSHServersAccessByIdExecute(r ApiGetSSHServersAccessByIdRequest) (*CSSCMSDataModelModelsSSHAccessServerAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers/Access/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Servers/{id} +type ApiGetSSHServersByIdRequest struct { + ctx context.Context + ApiService *ServerApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Servers/{id} request context +func (r ApiGetSSHServersByIdRequest) Execute() (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + return r.ApiService.GetSSHServersByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/Servers/{id} request. + +GetSSHServersById Returns a Server associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the Server + @return ApiGetSSHServersByIdRequest +*/ +func (a *ServerApiService) NewGetSSHServersByIdRequest(ctx context.Context, id int32) ApiGetSSHServersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/Servers/{id} +// +// @return CSSCMSDataModelModelsSSHServersServerResponse +func (a *ServerApiService) GetSSHServersByIdExecute(r ApiGetSSHServersByIdRequest) (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServersServerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSH/Servers +type ApiUpdateSSHServersRequest struct { + ctx context.Context + ApiService *ServerApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServersServerUpdateRequest *CSSCMSDataModelModelsSSHServersServerUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSHServersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSHServersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSHServersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSHServersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Server properties to be applied to the existing server +func (r ApiUpdateSSHServersRequest) CSSCMSDataModelModelsSSHServersServerUpdateRequest(cSSCMSDataModelModelsSSHServersServerUpdateRequest CSSCMSDataModelModelsSSHServersServerUpdateRequest) ApiUpdateSSHServersRequest { + r.cSSCMSDataModelModelsSSHServersServerUpdateRequest = &cSSCMSDataModelModelsSSHServersServerUpdateRequest + return r +} + +// Executes the V1 PUT /SSH/Servers request context +func (r ApiUpdateSSHServersRequest) Execute() (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + return r.ApiService.UpdateSSHServersExecute(r) +} + +/* +Creates a new V1 PUT /SSH/Servers request. + +UpdateSSHServers Updates an existing server with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSHServersRequest +*/ +func (a *ServerApiService) NewUpdateSSHServersRequest(ctx context.Context) ApiUpdateSSHServersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSHServersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSH/Servers +// +// @return CSSCMSDataModelModelsSSHServersServerResponse +func (a *ServerApiService) UpdateSSHServersExecute(r ApiUpdateSSHServersRequest) (*CSSCMSDataModelModelsSSHServersServerResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServersServerResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Servers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServersServerUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_server_group.go b/v24/api/keyfactor/v1/api_server_group.go new file mode 100644 index 0000000..bbcb25b --- /dev/null +++ b/v24/api/keyfactor/v1/api_server_group.go @@ -0,0 +1,1371 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ServerGroupApiService ServerGroupApi service +type ServerGroupApiService service + +// Request for V1 POST /SSH/ServerGroups +type ApiCreateSSHServerGroupsRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServerGroupsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServerGroupsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServerGroupsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServerGroupsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Server group properties to be applied to the new group +func (r ApiCreateSSHServerGroupsRequest) CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) ApiCreateSSHServerGroupsRequest { + r.cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest = &cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest + return r +} + +// Executes the V1 POST /SSH/ServerGroups request context +func (r ApiCreateSSHServerGroupsRequest) Execute() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + return r.ApiService.CreateSSHServerGroupsExecute(r) +} + +/* +Creates a new V1 POST /SSH/ServerGroups request. + +CreateSSHServerGroups Creates a server group with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHServerGroupsRequest +*/ +func (a *ServerGroupApiService) NewCreateSSHServerGroupsRequest(ctx context.Context) ApiCreateSSHServerGroupsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServerGroupsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/ServerGroups +// +// @return CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +func (a *ServerGroupApiService) CreateSSHServerGroupsExecute(r ApiCreateSSHServerGroupsRequest) (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSH/ServerGroups/Access +type ApiCreateSSHServerGroupsAccessRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServerGroupsAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServerGroupsAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServerGroupsAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServerGroupsAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiCreateSSHServerGroupsAccessRequest) CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) ApiCreateSSHServerGroupsAccessRequest { + r.cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest = &cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + return r +} + +// Executes the V1 POST /SSH/ServerGroups/Access request context +func (r ApiCreateSSHServerGroupsAccessRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + return r.ApiService.CreateSSHServerGroupsAccessExecute(r) +} + +/* +Creates a new V1 POST /SSH/ServerGroups/Access request. + +CreateSSHServerGroupsAccess Add access rules to the server group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHServerGroupsAccessRequest +*/ +func (a *ServerGroupApiService) NewCreateSSHServerGroupsAccessRequest(ctx context.Context) ApiCreateSSHServerGroupsAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServerGroupsAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/ServerGroups/Access +// +// @return CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse +func (a *ServerGroupApiService) CreateSSHServerGroupsAccessExecute(r ApiCreateSSHServerGroupsAccessRequest) (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/ServerGroups/Access +type ApiDeleteSSHServerGroupsAccessRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServerGroupsAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServerGroupsAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServerGroupsAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServerGroupsAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiDeleteSSHServerGroupsAccessRequest) CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) ApiDeleteSSHServerGroupsAccessRequest { + r.cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest = &cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + return r +} + +// Executes the V1 DELETE /SSH/ServerGroups/Access request context +func (r ApiDeleteSSHServerGroupsAccessRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + return r.ApiService.DeleteSSHServerGroupsAccessExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/ServerGroups/Access request. + +DeleteSSHServerGroupsAccess Removes access mappings for the specified server group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteSSHServerGroupsAccessRequest +*/ +func (a *ServerGroupApiService) NewDeleteSSHServerGroupsAccessRequest(ctx context.Context) ApiDeleteSSHServerGroupsAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServerGroupsAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 DELETE /SSH/ServerGroups/Access +// +// @return CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse +func (a *ServerGroupApiService) DeleteSSHServerGroupsAccessExecute(r ApiDeleteSSHServerGroupsAccessRequest) (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/ServerGroups/{id} +type ApiDeleteSSHServerGroupsByIdRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServerGroupsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServerGroupsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServerGroupsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServerGroupsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/ServerGroups/{id} request context +func (r ApiDeleteSSHServerGroupsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHServerGroupsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/ServerGroups/{id} request. + +DeleteSSHServerGroupsById Deletes a ServerGroup associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the ServerGroup to be deleted + @return ApiDeleteSSHServerGroupsByIdRequest +*/ +func (a *ServerGroupApiService) NewDeleteSSHServerGroupsByIdRequest(ctx context.Context, id string) ApiDeleteSSHServerGroupsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServerGroupsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ServerGroupApiService) DeleteSSHServerGroupsByIdExecute(r ApiDeleteSSHServerGroupsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServerGroups +type ApiGetSSHServerGroupsRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServerGroupsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServerGroupsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHServerGroupsRequest) QueryString(queryString string) ApiGetSSHServerGroupsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHServerGroupsRequest) PageReturned(pageReturned int32) ApiGetSSHServerGroupsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHServerGroupsRequest) ReturnLimit(returnLimit int32) ApiGetSSHServerGroupsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHServerGroupsRequest) SortField(sortField string) ApiGetSSHServerGroupsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHServerGroupsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHServerGroupsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServerGroupsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServerGroupsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServerGroups request context +func (r ApiGetSSHServerGroupsRequest) Execute() ([]CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + return r.ApiService.GetSSHServerGroupsExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServerGroups request. + +GetSSHServerGroups Returns all server groups according to the provided filter parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHServerGroupsRequest +*/ +func (a *ServerGroupApiService) NewGetSSHServerGroupsRequest(ctx context.Context) ApiGetSSHServerGroupsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServerGroupsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/ServerGroups +// +// @return []CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +func (a *ServerGroupApiService) GetSSHServerGroupsExecute(r ApiGetSSHServerGroupsRequest) ([]CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServerGroups/Access/{id} +type ApiGetSSHServerGroupsAccessByIdRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServerGroupsAccessByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServerGroupsAccessByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServerGroupsAccessByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServerGroupsAccessByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServerGroups/Access/{id} request context +func (r ApiGetSSHServerGroupsAccessByIdRequest) Execute() (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + return r.ApiService.GetSSHServerGroupsAccessByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServerGroups/Access/{id} request. + +GetSSHServerGroupsAccessById Retrieves logons and users with access to those logons for an existing server group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Id of the existing server group + @return ApiGetSSHServerGroupsAccessByIdRequest +*/ +func (a *ServerGroupApiService) NewGetSSHServerGroupsAccessByIdRequest(ctx context.Context, id string) ApiGetSSHServerGroupsAccessByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServerGroupsAccessByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/ServerGroups/Access/{id} +// +// @return CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse +func (a *ServerGroupApiService) GetSSHServerGroupsAccessByIdExecute(r ApiGetSSHServerGroupsAccessByIdRequest) (*CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/Access/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServerGroups/{id} +type ApiGetSSHServerGroupsByIdRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServerGroupsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServerGroupsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServerGroupsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServerGroupsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServerGroups/{id} request context +func (r ApiGetSSHServerGroupsByIdRequest) Execute() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + return r.ApiService.GetSSHServerGroupsByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServerGroups/{id} request. + +GetSSHServerGroupsById Returns a ServerGroup associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the ServerGroup + @return ApiGetSSHServerGroupsByIdRequest +*/ +func (a *ServerGroupApiService) NewGetSSHServerGroupsByIdRequest(ctx context.Context, id string) ApiGetSSHServerGroupsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServerGroupsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/ServerGroups/{id} +// +// @return CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +func (a *ServerGroupApiService) GetSSHServerGroupsByIdExecute(r ApiGetSSHServerGroupsByIdRequest) (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServerGroups/{name} +type ApiGetSSHServerGroupsNameRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + name string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServerGroupsNameRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServerGroupsNameRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServerGroupsNameRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServerGroupsNameRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServerGroups/{name} request context +func (r ApiGetSSHServerGroupsNameRequest) Execute() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + return r.ApiService.GetSSHServerGroupsNameExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServerGroups/{name} request. + +GetSSHServerGroupsName Returns a ServerGroup associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServerGroup + @return ApiGetSSHServerGroupsNameRequest +*/ +func (a *ServerGroupApiService) NewGetSSHServerGroupsNameRequest(ctx context.Context, name string) ApiGetSSHServerGroupsNameRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServerGroupsNameRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + name: name, + } +} + +// Executes the API request V1 GET /SSH/ServerGroups/{name} +// +// @return CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +func (a *ServerGroupApiService) GetSSHServerGroupsNameExecute(r ApiGetSSHServerGroupsNameRequest) (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSH/ServerGroups +type ApiUpdateSSHServerGroupsRequest struct { + ctx context.Context + ApiService *ServerGroupApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSHServerGroupsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSHServerGroupsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSHServerGroupsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSHServerGroupsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Server group properties to be applied to the existing group +func (r ApiUpdateSSHServerGroupsRequest) CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) ApiUpdateSSHServerGroupsRequest { + r.cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest = &cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest + return r +} + +// Executes the V1 PUT /SSH/ServerGroups request context +func (r ApiUpdateSSHServerGroupsRequest) Execute() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + return r.ApiService.UpdateSSHServerGroupsExecute(r) +} + +/* +Creates a new V1 PUT /SSH/ServerGroups request. + +UpdateSSHServerGroups Updates an existing server group with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSHServerGroupsRequest +*/ +func (a *ServerGroupApiService) NewUpdateSSHServerGroupsRequest(ctx context.Context) ApiUpdateSSHServerGroupsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSHServerGroupsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSH/ServerGroups +// +// @return CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +func (a *ServerGroupApiService) UpdateSSHServerGroupsExecute(r ApiUpdateSSHServerGroupsRequest) (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServerGroups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_service_account.go b/v24/api/keyfactor/v1/api_service_account.go new file mode 100644 index 0000000..f730b60 --- /dev/null +++ b/v24/api/keyfactor/v1/api_service_account.go @@ -0,0 +1,1243 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// ServiceAccountApiService ServiceAccountApi service +type ServiceAccountApiService service + +// Request for V1 POST /SSH/ServiceAccounts +type ApiCreateSSHServiceAccountsRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServiceAccountsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServiceAccountsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServiceAccountsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServiceAccountsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// ServiceAccount properties to be applied to the new ServiceAccount +func (r ApiCreateSSHServiceAccountsRequest) CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) ApiCreateSSHServiceAccountsRequest { + r.cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest = &cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest + return r +} + +// Executes the V1 POST /SSH/ServiceAccounts request context +func (r ApiCreateSSHServiceAccountsRequest) Execute() (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + return r.ApiService.CreateSSHServiceAccountsExecute(r) +} + +/* +Creates a new V1 POST /SSH/ServiceAccounts request. + +CreateSSHServiceAccounts Creates a ServiceAccount with the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHServiceAccountsRequest +*/ +func (a *ServiceAccountApiService) NewCreateSSHServiceAccountsRequest(ctx context.Context) ApiCreateSSHServiceAccountsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/ServiceAccounts +// +// @return CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse +func (a *ServiceAccountApiService) CreateSSHServiceAccountsExecute(r ApiCreateSSHServiceAccountsRequest) (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSH/ServiceAccounts/Rotate/{id} +type ApiCreateSSHServiceAccountsRotateByIdRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHKeysKeyGenerationRequest *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHServiceAccountsRotateByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHServiceAccountsRotateByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHServiceAccountsRotateByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHServiceAccountsRotateByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiCreateSSHServiceAccountsRotateByIdRequest) CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) ApiCreateSSHServiceAccountsRotateByIdRequest { + r.cSSCMSDataModelModelsSSHKeysKeyGenerationRequest = &cSSCMSDataModelModelsSSHKeysKeyGenerationRequest + return r +} + +// Executes the V1 POST /SSH/ServiceAccounts/Rotate/{id} request context +func (r ApiCreateSSHServiceAccountsRotateByIdRequest) Execute() (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + return r.ApiService.CreateSSHServiceAccountsRotateByIdExecute(r) +} + +/* +Creates a new V1 POST /SSH/ServiceAccounts/Rotate/{id} request. + +CreateSSHServiceAccountsRotateById Rotate an SSH key for a specified service account. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the service account and the updated state of the SSH key. + @return ApiCreateSSHServiceAccountsRotateByIdRequest +*/ +func (a *ServiceAccountApiService) NewCreateSSHServiceAccountsRotateByIdRequest(ctx context.Context, id int32) ApiCreateSSHServiceAccountsRotateByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHServiceAccountsRotateByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 POST /SSH/ServiceAccounts/Rotate/{id} +// +// @return CSSCMSDataModelModelsSSHKeysKeyResponse +func (a *ServiceAccountApiService) CreateSSHServiceAccountsRotateByIdExecute(r ApiCreateSSHServiceAccountsRotateByIdRequest) (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts/Rotate/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHKeysKeyGenerationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/ServiceAccounts +type ApiDeleteSSHServiceAccountsRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServiceAccountsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServiceAccountsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServiceAccountsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServiceAccountsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Keyfactor identifers of the ServiceAccounts to be deleted +func (r ApiDeleteSSHServiceAccountsRequest) RequestBody(requestBody []int32) ApiDeleteSSHServiceAccountsRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 DELETE /SSH/ServiceAccounts request context +func (r ApiDeleteSSHServiceAccountsRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHServiceAccountsExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/ServiceAccounts request. + +DeleteSSHServiceAccounts Deletes Service Accounts associated with the provided identifiers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteSSHServiceAccountsRequest +*/ +func (a *ServiceAccountApiService) NewDeleteSSHServiceAccountsRequest(ctx context.Context) ApiDeleteSSHServiceAccountsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *ServiceAccountApiService) DeleteSSHServiceAccountsExecute(r ApiDeleteSSHServiceAccountsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/ServiceAccounts/{id} +type ApiDeleteSSHServiceAccountsByIdRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHServiceAccountsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHServiceAccountsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHServiceAccountsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHServiceAccountsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/ServiceAccounts/{id} request context +func (r ApiDeleteSSHServiceAccountsByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHServiceAccountsByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/ServiceAccounts/{id} request. + +DeleteSSHServiceAccountsById Deletes a ServiceAccount associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifer of the ServiceAccount to be deleted + @return ApiDeleteSSHServiceAccountsByIdRequest +*/ +func (a *ServiceAccountApiService) NewDeleteSSHServiceAccountsByIdRequest(ctx context.Context, id int32) ApiDeleteSSHServiceAccountsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHServiceAccountsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *ServiceAccountApiService) DeleteSSHServiceAccountsByIdExecute(r ApiDeleteSSHServiceAccountsByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServiceAccounts +type ApiGetSSHServiceAccountsRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServiceAccountsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServiceAccountsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHServiceAccountsRequest) QueryString(queryString string) ApiGetSSHServiceAccountsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHServiceAccountsRequest) PageReturned(pageReturned int32) ApiGetSSHServiceAccountsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHServiceAccountsRequest) ReturnLimit(returnLimit int32) ApiGetSSHServiceAccountsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHServiceAccountsRequest) SortField(sortField string) ApiGetSSHServiceAccountsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHServiceAccountsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHServiceAccountsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServiceAccountsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServiceAccountsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServiceAccounts request context +func (r ApiGetSSHServiceAccountsRequest) Execute() ([]CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + return r.ApiService.GetSSHServiceAccountsExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServiceAccounts request. + +GetSSHServiceAccounts Returns all ServiceAccounts according to the provided filter parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHServiceAccountsRequest +*/ +func (a *ServiceAccountApiService) NewGetSSHServiceAccountsRequest(ctx context.Context) ApiGetSSHServiceAccountsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/ServiceAccounts +// +// @return []CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse +func (a *ServiceAccountApiService) GetSSHServiceAccountsExecute(r ApiGetSSHServiceAccountsRequest) ([]CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServiceAccounts/{id} +type ApiGetSSHServiceAccountsByIdRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServiceAccountsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServiceAccountsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServiceAccountsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServiceAccountsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServiceAccounts/{id} request context +func (r ApiGetSSHServiceAccountsByIdRequest) Execute() (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + return r.ApiService.GetSSHServiceAccountsByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServiceAccounts/{id} request. + +GetSSHServiceAccountsById Returns a ServiceAccount associated with the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the ServiceAccount + @return ApiGetSSHServiceAccountsByIdRequest +*/ +func (a *ServiceAccountApiService) NewGetSSHServiceAccountsByIdRequest(ctx context.Context, id int32) ApiGetSSHServiceAccountsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServiceAccountsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/ServiceAccounts/{id} +// +// @return CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse +func (a *ServiceAccountApiService) GetSSHServiceAccountsByIdExecute(r ApiGetSSHServiceAccountsByIdRequest) (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/ServiceAccounts/Key/{id} +type ApiGetSSHServiceAccountsKeyByIdRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + id int32 + xKeyfactorRequestedWith *string + includePrivateKey *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHServiceAccountsKeyByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHServiceAccountsKeyByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Whether or not to include the private key in the response +func (r ApiGetSSHServiceAccountsKeyByIdRequest) IncludePrivateKey(includePrivateKey bool) ApiGetSSHServiceAccountsKeyByIdRequest { + r.includePrivateKey = &includePrivateKey + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHServiceAccountsKeyByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHServiceAccountsKeyByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/ServiceAccounts/Key/{id} request context +func (r ApiGetSSHServiceAccountsKeyByIdRequest) Execute() (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + return r.ApiService.GetSSHServiceAccountsKeyByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/ServiceAccounts/Key/{id} request. + +GetSSHServiceAccountsKeyById Returns an SSH key with or without private key based on the provided parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The id of the service account to obtain information on + @return ApiGetSSHServiceAccountsKeyByIdRequest +*/ +func (a *ServiceAccountApiService) NewGetSSHServiceAccountsKeyByIdRequest(ctx context.Context, id int32) ApiGetSSHServiceAccountsKeyByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHServiceAccountsKeyByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/ServiceAccounts/Key/{id} +// +// @return CSSCMSDataModelModelsSSHKeysKeyResponse +func (a *ServiceAccountApiService) GetSSHServiceAccountsKeyByIdExecute(r ApiGetSSHServiceAccountsKeyByIdRequest) (*CSSCMSDataModelModelsSSHKeysKeyResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHKeysKeyResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts/Key/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.includePrivateKey != nil { + parameterAddToQuery(localVarQueryParams, "includePrivateKey", r.includePrivateKey, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSH/ServiceAccounts +type ApiUpdateSSHServiceAccountsRequest struct { + ctx context.Context + ApiService *ServiceAccountApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSHServiceAccountsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSHServiceAccountsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSHServiceAccountsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSHServiceAccountsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The id of the service account and the updated state of the SSH key. +func (r ApiUpdateSSHServiceAccountsRequest) CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) ApiUpdateSSHServiceAccountsRequest { + r.cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest = &cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest + return r +} + +// Executes the V1 PUT /SSH/ServiceAccounts request context +func (r ApiUpdateSSHServiceAccountsRequest) Execute() (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + return r.ApiService.UpdateSSHServiceAccountsExecute(r) +} + +/* +Creates a new V1 PUT /SSH/ServiceAccounts request. + +UpdateSSHServiceAccounts Updates an SSH key for a specified service account. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSHServiceAccountsRequest +*/ +func (a *ServiceAccountApiService) NewUpdateSSHServiceAccountsRequest(ctx context.Context) ApiUpdateSSHServiceAccountsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSHServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSH/ServiceAccounts +// +// @return CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse +func (a *ServiceAccountApiService) UpdateSSHServiceAccountsExecute(r ApiUpdateSSHServiceAccountsRequest) (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/ServiceAccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_smtp.go b/v24/api/keyfactor/v1/api_smtp.go new file mode 100644 index 0000000..19ba89f --- /dev/null +++ b/v24/api/keyfactor/v1/api_smtp.go @@ -0,0 +1,465 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// SMTPApiService SMTPApi service +type SMTPApiService service + +// Request for V1 POST /SMTP/Test +type ApiCreateSMTPTestRequest struct { + ctx context.Context + ApiService *SMTPApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + sMTPSMTPTestRequest *SMTPSMTPTestRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSMTPTestRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSMTPTestRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSMTPTestRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSMTPTestRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiCreateSMTPTestRequest) SMTPSMTPTestRequest(sMTPSMTPTestRequest SMTPSMTPTestRequest) ApiCreateSMTPTestRequest { + r.sMTPSMTPTestRequest = &sMTPSMTPTestRequest + return r +} + +// Executes the V1 POST /SMTP/Test request context +func (r ApiCreateSMTPTestRequest) Execute() (*SMTPSMTPTestResponse, *http.Response, error) { + return r.ApiService.CreateSMTPTestExecute(r) +} + +/* +Creates a new V1 POST /SMTP/Test request. + +# CreateSMTPTest Tests SMTP profile data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSMTPTestRequest +*/ +func (a *SMTPApiService) NewCreateSMTPTestRequest(ctx context.Context) ApiCreateSMTPTestRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSMTPTestRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SMTP/Test +// +// @return SMTPSMTPTestResponse +func (a *SMTPApiService) CreateSMTPTestExecute(r ApiCreateSMTPTestRequest) (*SMTPSMTPTestResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SMTPSMTPTestResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SMTP/Test" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.sMTPSMTPTestRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SMTP +type ApiGetSMTPRequest struct { + ctx context.Context + ApiService *SMTPApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSMTPRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSMTPRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSMTPRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSMTPRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SMTP request context +func (r ApiGetSMTPRequest) Execute() (*SMTPSMTPResponse, *http.Response, error) { + return r.ApiService.GetSMTPExecute(r) +} + +/* +Creates a new V1 GET /SMTP request. + +# GetSMTP Gets SMTP profile data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSMTPRequest +*/ +func (a *SMTPApiService) NewGetSMTPRequest(ctx context.Context) ApiGetSMTPRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSMTPRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SMTP +// +// @return SMTPSMTPResponse +func (a *SMTPApiService) GetSMTPExecute(r ApiGetSMTPRequest) (*SMTPSMTPResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SMTPSMTPResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SMTP" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SMTP +type ApiUpdateSMTPRequest struct { + ctx context.Context + ApiService *SMTPApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + sMTPSMTPRequest *SMTPSMTPRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSMTPRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSMTPRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSMTPRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSMTPRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +func (r ApiUpdateSMTPRequest) SMTPSMTPRequest(sMTPSMTPRequest SMTPSMTPRequest) ApiUpdateSMTPRequest { + r.sMTPSMTPRequest = &sMTPSMTPRequest + return r +} + +// Executes the V1 PUT /SMTP request context +func (r ApiUpdateSMTPRequest) Execute() (*SMTPSMTPResponse, *http.Response, error) { + return r.ApiService.UpdateSMTPExecute(r) +} + +/* +Creates a new V1 PUT /SMTP request. + +# UpdateSMTP Updates SMTP profile data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSMTPRequest +*/ +func (a *SMTPApiService) NewUpdateSMTPRequest(ctx context.Context) ApiUpdateSMTPRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSMTPRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SMTP +// +// @return SMTPSMTPResponse +func (a *SMTPApiService) UpdateSMTPExecute(r ApiUpdateSMTPRequest) (*SMTPSMTPResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SMTPSMTPResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SMTP" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.sMTPSMTPRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_ssl.go b/v24/api/keyfactor/v1/api_ssl.go new file mode 100644 index 0000000..2a253c9 --- /dev/null +++ b/v24/api/keyfactor/v1/api_ssl.go @@ -0,0 +1,3156 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SslApiService SslApi service +type SslApiService service + +// Request for V1 POST /SSL/NetworkRanges +type ApiCreateSSLNetworkRangesRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSLNetworkRangesRequest *CSSCMSDataModelModelsSSLNetworkRangesRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSLNetworkRangesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSLNetworkRangesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSLNetworkRangesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSLNetworkRangesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Network definition identifier and the ranges to be added +func (r ApiCreateSSLNetworkRangesRequest) CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest CSSCMSDataModelModelsSSLNetworkRangesRequest) ApiCreateSSLNetworkRangesRequest { + r.cSSCMSDataModelModelsSSLNetworkRangesRequest = &cSSCMSDataModelModelsSSLNetworkRangesRequest + return r +} + +// Executes the V1 POST /SSL/NetworkRanges request context +func (r ApiCreateSSLNetworkRangesRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateSSLNetworkRangesExecute(r) +} + +/* +Creates a new V1 POST /SSL/NetworkRanges request. + +CreateSSLNetworkRanges Adds the provided network range definitions to the associated network definition + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSLNetworkRangesRequest +*/ +func (a *SslApiService) NewCreateSSLNetworkRangesRequest(ctx context.Context) ApiCreateSSLNetworkRangesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSLNetworkRangesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) CreateSSLNetworkRangesExecute(r ApiCreateSSLNetworkRangesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/NetworkRanges" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSLNetworkRangesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /SSL/NetworkRanges/Validate +type ApiCreateSSLNetworkRangesValidateRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSLNetworkRangesValidateRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSLNetworkRangesValidateRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSLNetworkRangesValidateRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSLNetworkRangesValidateRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// List of the network range definitions to verify +func (r ApiCreateSSLNetworkRangesValidateRequest) RequestBody(requestBody []string) ApiCreateSSLNetworkRangesValidateRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /SSL/NetworkRanges/Validate request context +func (r ApiCreateSSLNetworkRangesValidateRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateSSLNetworkRangesValidateExecute(r) +} + +/* +Creates a new V1 POST /SSL/NetworkRanges/Validate request. + +CreateSSLNetworkRangesValidate Validates the format (using regular expressions) of the provided network range definitions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSLNetworkRangesValidateRequest +*/ +func (a *SslApiService) NewCreateSSLNetworkRangesValidateRequest(ctx context.Context) ApiCreateSSLNetworkRangesValidateRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSLNetworkRangesValidateRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) CreateSSLNetworkRangesValidateExecute(r ApiCreateSSLNetworkRangesValidateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/NetworkRanges/Validate" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /SSL/Networks +type ApiCreateSSLNetworksRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + sslCreateNetworkRequest *SslCreateNetworkRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSLNetworksRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSLNetworksRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSLNetworksRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSLNetworksRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Properties of the network definition to be created +func (r ApiCreateSSLNetworksRequest) SslCreateNetworkRequest(sslCreateNetworkRequest SslCreateNetworkRequest) ApiCreateSSLNetworksRequest { + r.sslCreateNetworkRequest = &sslCreateNetworkRequest + return r +} + +// Executes the V1 POST /SSL/Networks request context +func (r ApiCreateSSLNetworksRequest) Execute() (*SslNetworkResponse, *http.Response, error) { + return r.ApiService.CreateSSLNetworksExecute(r) +} + +/* +Creates a new V1 POST /SSL/Networks request. + +CreateSSLNetworks Creates a network definition according to the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSLNetworksRequest +*/ +func (a *SslApiService) NewCreateSSLNetworksRequest(ctx context.Context) ApiCreateSSLNetworksRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSLNetworksRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSL/Networks +// +// @return SslNetworkResponse +func (a *SslApiService) CreateSSLNetworksExecute(r ApiCreateSSLNetworksRequest) (*SslNetworkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SslNetworkResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.sslCreateNetworkRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSL/Networks/{id}/Reset +type ApiCreateSSLNetworksByIdResetRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSLNetworksByIdResetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSLNetworksByIdResetRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSLNetworksByIdResetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSLNetworksByIdResetRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /SSL/Networks/{id}/Reset request context +func (r ApiCreateSSLNetworksByIdResetRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateSSLNetworksByIdResetExecute(r) +} + +/* +Creates a new V1 POST /SSL/Networks/{id}/Reset request. + +CreateSSLNetworksByIdReset Resets all SSL scans associated with a network + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network identifier + @return ApiCreateSSLNetworksByIdResetRequest +*/ +func (a *SslApiService) NewCreateSSLNetworksByIdResetRequest(ctx context.Context, id string) ApiCreateSSLNetworksByIdResetRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSLNetworksByIdResetRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SslApiService) CreateSSLNetworksByIdResetExecute(r ApiCreateSSLNetworksByIdResetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks/{id}/Reset" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /SSL/Networks/{id}/Scan +type ApiCreateSSLNetworksByIdScanRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSLImmediateSslScanRequest *CSSCMSDataModelModelsSSLImmediateSslScanRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSLNetworksByIdScanRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSLNetworksByIdScanRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSLNetworksByIdScanRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSLNetworksByIdScanRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Request for an immediate SSL Scan +func (r ApiCreateSSLNetworksByIdScanRequest) CSSCMSDataModelModelsSSLImmediateSslScanRequest(cSSCMSDataModelModelsSSLImmediateSslScanRequest CSSCMSDataModelModelsSSLImmediateSslScanRequest) ApiCreateSSLNetworksByIdScanRequest { + r.cSSCMSDataModelModelsSSLImmediateSslScanRequest = &cSSCMSDataModelModelsSSLImmediateSslScanRequest + return r +} + +// Executes the V1 POST /SSL/Networks/{id}/Scan request context +func (r ApiCreateSSLNetworksByIdScanRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateSSLNetworksByIdScanExecute(r) +} + +/* +Creates a new V1 POST /SSL/Networks/{id}/Scan request. + +CreateSSLNetworksByIdScan Starts an SSL Scan for the network according to the associated network definition + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network identifier + @return ApiCreateSSLNetworksByIdScanRequest +*/ +func (a *SslApiService) NewCreateSSLNetworksByIdScanRequest(ctx context.Context, id string) ApiCreateSSLNetworksByIdScanRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSLNetworksByIdScanRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SslApiService) CreateSSLNetworksByIdScanExecute(r ApiCreateSSLNetworksByIdScanRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks/{id}/Scan" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSLImmediateSslScanRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSL/NetworkRanges/{id} +type ApiDeleteSSLNetworkRangesByIdRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSLNetworkRangesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSLNetworkRangesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSLNetworkRangesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSLNetworkRangesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSL/NetworkRanges/{id} request context +func (r ApiDeleteSSLNetworkRangesByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSLNetworkRangesByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSL/NetworkRanges/{id} request. + +DeleteSSLNetworkRangesById Removes all network range definitions from the associated network definition + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network definition identifier + @return ApiDeleteSSLNetworkRangesByIdRequest +*/ +func (a *SslApiService) NewDeleteSSLNetworkRangesByIdRequest(ctx context.Context, id string) ApiDeleteSSLNetworkRangesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSLNetworkRangesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SslApiService) DeleteSSLNetworkRangesByIdExecute(r ApiDeleteSSLNetworkRangesByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/NetworkRanges/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSL/Networks/{id} +type ApiDeleteSSLNetworksByIdRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSLNetworksByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSLNetworksByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSLNetworksByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSLNetworksByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSL/Networks/{id} request context +func (r ApiDeleteSSLNetworksByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSLNetworksByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSL/Networks/{id} request. + +DeleteSSLNetworksById Removes a network definition according to the provided identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network identifier + @return ApiDeleteSSLNetworksByIdRequest +*/ +func (a *SslApiService) NewDeleteSSLNetworksByIdRequest(ctx context.Context, id string) ApiDeleteSSLNetworksByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSLNetworksByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *SslApiService) DeleteSSLNetworksByIdExecute(r ApiDeleteSSLNetworksByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL +type ApiGetSSLRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSLRequest) QueryString(queryString string) ApiGetSSLRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSLRequest) PageReturned(pageReturned int32) ApiGetSSLRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSLRequest) ReturnLimit(returnLimit int32) ApiGetSSLRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSLRequest) SortField(sortField string) ApiGetSSLRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSLRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSLRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL request context +func (r ApiGetSSLRequest) Execute() ([]CSSCMSDataModelModelsSSLSslScanResult, *http.Response, error) { + return r.ApiService.GetSSLExecute(r) +} + +/* +Creates a new V1 GET /SSL request. + +GetSSL Returns a list of the endpoint scan results according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSLRequest +*/ +func (a *SslApiService) NewGetSSLRequest(ctx context.Context) ApiGetSSLRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSL +// +// @return []CSSCMSDataModelModelsSSLSslScanResult +func (a *SslApiService) GetSSLExecute(r ApiGetSSLRequest) ([]CSSCMSDataModelModelsSSLSslScanResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSLSslScanResult + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Endpoints/{id} +type ApiGetSSLEndpointsByIdRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLEndpointsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLEndpointsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLEndpointsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLEndpointsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Endpoints/{id} request context +func (r ApiGetSSLEndpointsByIdRequest) Execute() (*CSSCMSDataModelModelsSSLEndpoint, *http.Response, error) { + return r.ApiService.GetSSLEndpointsByIdExecute(r) +} + +/* +Creates a new V1 GET /SSL/Endpoints/{id} request. + +GetSSLEndpointsById Returns the details of the associated scanning endpoint + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the endpoint + @return ApiGetSSLEndpointsByIdRequest +*/ +func (a *SslApiService) NewGetSSLEndpointsByIdRequest(ctx context.Context, id string) ApiGetSSLEndpointsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLEndpointsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSL/Endpoints/{id} +// +// @return CSSCMSDataModelModelsSSLEndpoint +func (a *SslApiService) GetSSLEndpointsByIdExecute(r ApiGetSSLEndpointsByIdRequest) (*CSSCMSDataModelModelsSSLEndpoint, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSLEndpoint + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Endpoints/{id}/History +type ApiGetSSLEndpointsByIdHistoryRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLEndpointsByIdHistoryRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLEndpointsByIdHistoryRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSLEndpointsByIdHistoryRequest) QueryString(queryString string) ApiGetSSLEndpointsByIdHistoryRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSLEndpointsByIdHistoryRequest) PageReturned(pageReturned int32) ApiGetSSLEndpointsByIdHistoryRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSLEndpointsByIdHistoryRequest) ReturnLimit(returnLimit int32) ApiGetSSLEndpointsByIdHistoryRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSLEndpointsByIdHistoryRequest) SortField(sortField string) ApiGetSSLEndpointsByIdHistoryRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSLEndpointsByIdHistoryRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSLEndpointsByIdHistoryRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLEndpointsByIdHistoryRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLEndpointsByIdHistoryRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Endpoints/{id}/History request context +func (r ApiGetSSLEndpointsByIdHistoryRequest) Execute() ([]CSSCMSDataModelModelsSSLEndpointHistoryResponse, *http.Response, error) { + return r.ApiService.GetSSLEndpointsByIdHistoryExecute(r) +} + +/* +Creates a new V1 GET /SSL/Endpoints/{id}/History request. + +GetSSLEndpointsByIdHistory Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the endpoint + @return ApiGetSSLEndpointsByIdHistoryRequest +*/ +func (a *SslApiService) NewGetSSLEndpointsByIdHistoryRequest(ctx context.Context, id string) ApiGetSSLEndpointsByIdHistoryRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLEndpointsByIdHistoryRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSL/Endpoints/{id}/History +// +// @return []CSSCMSDataModelModelsSSLEndpointHistoryResponse +func (a *SslApiService) GetSSLEndpointsByIdHistoryExecute(r ApiGetSSLEndpointsByIdHistoryRequest) ([]CSSCMSDataModelModelsSSLEndpointHistoryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSLEndpointHistoryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/{id}/History" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/NetworkRanges/{id} +type ApiGetSSLNetworkRangesByIdRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLNetworkRangesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLNetworkRangesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLNetworkRangesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLNetworkRangesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/NetworkRanges/{id} request context +func (r ApiGetSSLNetworkRangesByIdRequest) Execute() ([]CSSCMSDataModelModelsSSLNetworkDefinition, *http.Response, error) { + return r.ApiService.GetSSLNetworkRangesByIdExecute(r) +} + +/* +Creates a new V1 GET /SSL/NetworkRanges/{id} request. + +GetSSLNetworkRangesById Returns the network range definitions for the provided network definition + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network identifier + @return ApiGetSSLNetworkRangesByIdRequest +*/ +func (a *SslApiService) NewGetSSLNetworkRangesByIdRequest(ctx context.Context, id string) ApiGetSSLNetworkRangesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLNetworkRangesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSL/NetworkRanges/{id} +// +// @return []CSSCMSDataModelModelsSSLNetworkDefinition +func (a *SslApiService) GetSSLNetworkRangesByIdExecute(r ApiGetSSLNetworkRangesByIdRequest) ([]CSSCMSDataModelModelsSSLNetworkDefinition, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSLNetworkDefinition + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/NetworkRanges/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Networks +type ApiGetSSLNetworksRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLNetworksRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLNetworksRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetSSLNetworksRequest) QueryString(queryString string) ApiGetSSLNetworksRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetSSLNetworksRequest) PageReturned(pageReturned int32) ApiGetSSLNetworksRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetSSLNetworksRequest) ReturnLimit(returnLimit int32) ApiGetSSLNetworksRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetSSLNetworksRequest) SortField(sortField string) ApiGetSSLNetworksRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetSSLNetworksRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSLNetworksRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLNetworksRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLNetworksRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Networks request context +func (r ApiGetSSLNetworksRequest) Execute() ([]SslNetworkQueryResponse, *http.Response, error) { + return r.ApiService.GetSSLNetworksExecute(r) +} + +/* +Creates a new V1 GET /SSL/Networks request. + +GetSSLNetworks Returns all defined SSL networks according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSLNetworksRequest +*/ +func (a *SslApiService) NewGetSSLNetworksRequest(ctx context.Context) ApiGetSSLNetworksRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLNetworksRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSL/Networks +// +// @return []SslNetworkQueryResponse +func (a *SslApiService) GetSSLNetworksExecute(r ApiGetSSLNetworksRequest) ([]SslNetworkQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SslNetworkQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Networks/{id}/Parts +type ApiGetSSLNetworksByIdPartsRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + jobType *KeyfactorOrchestratorsCommonEnumsSslJobType + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLNetworksByIdPartsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLNetworksByIdPartsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) JobType(jobType KeyfactorOrchestratorsCommonEnumsSslJobType) ApiGetSSLNetworksByIdPartsRequest { + r.jobType = &jobType + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) QueryString(queryString string) ApiGetSSLNetworksByIdPartsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) PageReturned(pageReturned int32) ApiGetSSLNetworksByIdPartsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) ReturnLimit(returnLimit int32) ApiGetSSLNetworksByIdPartsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) SortField(sortField string) ApiGetSSLNetworksByIdPartsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSLNetworksByIdPartsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSLNetworksByIdPartsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLNetworksByIdPartsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLNetworksByIdPartsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Networks/{id}/Parts request context +func (r ApiGetSSLNetworksByIdPartsRequest) Execute() ([]CSSCMSDataModelModelsSSLDisplayScanJobPart, *http.Response, error) { + return r.ApiService.GetSSLNetworksByIdPartsExecute(r) +} + +/* +Creates a new V1 GET /SSL/Networks/{id}/Parts request. + +GetSSLNetworksByIdParts Returns the scan job components comprising the entire scan job to be executed + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor network definition identifier + @return ApiGetSSLNetworksByIdPartsRequest +*/ +func (a *SslApiService) NewGetSSLNetworksByIdPartsRequest(ctx context.Context, id string) ApiGetSSLNetworksByIdPartsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLNetworksByIdPartsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSL/Networks/{id}/Parts +// +// @return []CSSCMSDataModelModelsSSLDisplayScanJobPart +func (a *SslApiService) GetSSLNetworksByIdPartsExecute(r ApiGetSSLNetworksByIdPartsRequest) ([]CSSCMSDataModelModelsSSLDisplayScanJobPart, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSLDisplayScanJobPart + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks/{id}/Parts" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.jobType != nil { + parameterAddToQuery(localVarQueryParams, "JobType", r.jobType, "") + } + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Networks/{identifier} +type ApiGetSSLNetworksIdentifierRequest struct { + ctx context.Context + ApiService *SslApiService + identifier string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLNetworksIdentifierRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLNetworksIdentifierRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLNetworksIdentifierRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLNetworksIdentifierRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Networks/{identifier} request context +func (r ApiGetSSLNetworksIdentifierRequest) Execute() (*SslNetworkResponse, *http.Response, error) { + return r.ApiService.GetSSLNetworksIdentifierExecute(r) +} + +/* +Creates a new V1 GET /SSL/Networks/{identifier} request. + +GetSSLNetworksIdentifier Returns a defined SSL network according to the provided name + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param identifier Identifier (Guid or Name) of the defined network + @return ApiGetSSLNetworksIdentifierRequest +*/ +func (a *SslApiService) NewGetSSLNetworksIdentifierRequest(ctx context.Context, identifier string) ApiGetSSLNetworksIdentifierRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLNetworksIdentifierRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + identifier: identifier, + } +} + +// Executes the API request V1 GET /SSL/Networks/{identifier} +// +// @return SslNetworkResponse +func (a *SslApiService) GetSSLNetworksIdentifierExecute(r ApiGetSSLNetworksIdentifierRequest) (*SslNetworkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SslNetworkResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks/{identifier}" + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSL/Parts/{id} +type ApiGetSSLPartsByIdRequest struct { + ctx context.Context + ApiService *SslApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSLPartsByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSLPartsByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSLPartsByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSLPartsByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSL/Parts/{id} request context +func (r ApiGetSSLPartsByIdRequest) Execute() (*CSSCMSDataModelModelsSSLScanJobPart, *http.Response, error) { + return r.ApiService.GetSSLPartsByIdExecute(r) +} + +/* +Creates a new V1 GET /SSL/Parts/{id} request. + +GetSSLPartsById Returns the execution details of the associated network scan job part + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the scan job part + @return ApiGetSSLPartsByIdRequest +*/ +func (a *SslApiService) NewGetSSLPartsByIdRequest(ctx context.Context, id string) ApiGetSSLPartsByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSLPartsByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSL/Parts/{id} +// +// @return CSSCMSDataModelModelsSSLScanJobPart +func (a *SslApiService) GetSSLPartsByIdExecute(r ApiGetSSLPartsByIdRequest) (*CSSCMSDataModelModelsSSLScanJobPart, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSLScanJobPart + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Parts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/Endpoints/MonitorAll +type ApiUpdateSSLEndpointsMonitorAllRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + query *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLEndpointsMonitorAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLEndpointsMonitorAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Query to filter the endpoints for which the status should be set +func (r ApiUpdateSSLEndpointsMonitorAllRequest) Query(query string) ApiUpdateSSLEndpointsMonitorAllRequest { + r.query = &query + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLEndpointsMonitorAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLEndpointsMonitorAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 PUT /SSL/Endpoints/MonitorAll request context +func (r ApiUpdateSSLEndpointsMonitorAllRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSSLEndpointsMonitorAllExecute(r) +} + +/* +Creates a new V1 PUT /SSL/Endpoints/MonitorAll request. + +UpdateSSLEndpointsMonitorAll Sets all endpoints matching the provided query as 'monitored' + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLEndpointsMonitorAllRequest +*/ +func (a *SslApiService) NewUpdateSSLEndpointsMonitorAllRequest(ctx context.Context) ApiUpdateSSLEndpointsMonitorAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLEndpointsMonitorAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) UpdateSSLEndpointsMonitorAllExecute(r ApiUpdateSSLEndpointsMonitorAllRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/MonitorAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.query != nil { + parameterAddToQuery(localVarQueryParams, "query", r.query, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/Endpoints/MonitorStatus +type ApiUpdateSSLEndpointsMonitorStatusRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSLEndpointStatusRequest *[]CSSCMSDataModelModelsSSLEndpointStatusRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLEndpointsMonitorStatusRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLEndpointsMonitorStatusRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLEndpointsMonitorStatusRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLEndpointsMonitorStatusRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Endpoints and statuses to be set for each +func (r ApiUpdateSSLEndpointsMonitorStatusRequest) CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest []CSSCMSDataModelModelsSSLEndpointStatusRequest) ApiUpdateSSLEndpointsMonitorStatusRequest { + r.cSSCMSDataModelModelsSSLEndpointStatusRequest = &cSSCMSDataModelModelsSSLEndpointStatusRequest + return r +} + +// Executes the V1 PUT /SSL/Endpoints/MonitorStatus request context +func (r ApiUpdateSSLEndpointsMonitorStatusRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSSLEndpointsMonitorStatusExecute(r) +} + +/* +Creates a new V1 PUT /SSL/Endpoints/MonitorStatus request. + +UpdateSSLEndpointsMonitorStatus Sets the monitored status according to the provided endpoint and boolean status + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLEndpointsMonitorStatusRequest +*/ +func (a *SslApiService) NewUpdateSSLEndpointsMonitorStatusRequest(ctx context.Context) ApiUpdateSSLEndpointsMonitorStatusRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLEndpointsMonitorStatusRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) UpdateSSLEndpointsMonitorStatusExecute(r ApiUpdateSSLEndpointsMonitorStatusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/MonitorStatus" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSLEndpointStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/Endpoints/ReviewAll +type ApiUpdateSSLEndpointsReviewAllRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + query *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLEndpointsReviewAllRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLEndpointsReviewAllRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Query to filter the endpoints for which the status should be set +func (r ApiUpdateSSLEndpointsReviewAllRequest) Query(query string) ApiUpdateSSLEndpointsReviewAllRequest { + r.query = &query + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLEndpointsReviewAllRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLEndpointsReviewAllRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 PUT /SSL/Endpoints/ReviewAll request context +func (r ApiUpdateSSLEndpointsReviewAllRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSSLEndpointsReviewAllExecute(r) +} + +/* +Creates a new V1 PUT /SSL/Endpoints/ReviewAll request. + +UpdateSSLEndpointsReviewAll Sets all endpoints matching the provided query as 'reviewed' + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLEndpointsReviewAllRequest +*/ +func (a *SslApiService) NewUpdateSSLEndpointsReviewAllRequest(ctx context.Context) ApiUpdateSSLEndpointsReviewAllRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLEndpointsReviewAllRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) UpdateSSLEndpointsReviewAllExecute(r ApiUpdateSSLEndpointsReviewAllRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/ReviewAll" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.query != nil { + parameterAddToQuery(localVarQueryParams, "query", r.query, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/Endpoints/ReviewStatus +type ApiUpdateSSLEndpointsReviewStatusRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSLEndpointStatusRequest *[]CSSCMSDataModelModelsSSLEndpointStatusRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLEndpointsReviewStatusRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLEndpointsReviewStatusRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLEndpointsReviewStatusRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLEndpointsReviewStatusRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Endpoints and statuses for each +func (r ApiUpdateSSLEndpointsReviewStatusRequest) CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest []CSSCMSDataModelModelsSSLEndpointStatusRequest) ApiUpdateSSLEndpointsReviewStatusRequest { + r.cSSCMSDataModelModelsSSLEndpointStatusRequest = &cSSCMSDataModelModelsSSLEndpointStatusRequest + return r +} + +// Executes the V1 PUT /SSL/Endpoints/ReviewStatus request context +func (r ApiUpdateSSLEndpointsReviewStatusRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSSLEndpointsReviewStatusExecute(r) +} + +/* +Creates a new V1 PUT /SSL/Endpoints/ReviewStatus request. + +UpdateSSLEndpointsReviewStatus Sets the reviewed status according to the provided endpoint and boolean status + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLEndpointsReviewStatusRequest +*/ +func (a *SslApiService) NewUpdateSSLEndpointsReviewStatusRequest(ctx context.Context) ApiUpdateSSLEndpointsReviewStatusRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLEndpointsReviewStatusRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) UpdateSSLEndpointsReviewStatusExecute(r ApiUpdateSSLEndpointsReviewStatusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Endpoints/ReviewStatus" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSLEndpointStatusRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/NetworkRanges +type ApiUpdateSSLNetworkRangesRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSLNetworkRangesRequest *CSSCMSDataModelModelsSSLNetworkRangesRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLNetworkRangesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLNetworkRangesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLNetworkRangesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLNetworkRangesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Network range defitions and the network to which they should be set +func (r ApiUpdateSSLNetworkRangesRequest) CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest CSSCMSDataModelModelsSSLNetworkRangesRequest) ApiUpdateSSLNetworkRangesRequest { + r.cSSCMSDataModelModelsSSLNetworkRangesRequest = &cSSCMSDataModelModelsSSLNetworkRangesRequest + return r +} + +// Executes the V1 PUT /SSL/NetworkRanges request context +func (r ApiUpdateSSLNetworkRangesRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSSLNetworkRangesExecute(r) +} + +/* +Creates a new V1 PUT /SSL/NetworkRanges request. + +UpdateSSLNetworkRanges Configures network range definitions for the provided network + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLNetworkRangesRequest +*/ +func (a *SslApiService) NewUpdateSSLNetworkRangesRequest(ctx context.Context) ApiUpdateSSLNetworkRangesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLNetworkRangesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *SslApiService) UpdateSSLNetworkRangesExecute(r ApiUpdateSSLNetworkRangesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/NetworkRanges" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSLNetworkRangesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSL/Networks +type ApiUpdateSSLNetworksRequest struct { + ctx context.Context + ApiService *SslApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + sslUpdateNetworkRequest *SslUpdateNetworkRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSLNetworksRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSLNetworksRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSLNetworksRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSLNetworksRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Properties of the network definition to be updated +func (r ApiUpdateSSLNetworksRequest) SslUpdateNetworkRequest(sslUpdateNetworkRequest SslUpdateNetworkRequest) ApiUpdateSSLNetworksRequest { + r.sslUpdateNetworkRequest = &sslUpdateNetworkRequest + return r +} + +// Executes the V1 PUT /SSL/Networks request context +func (r ApiUpdateSSLNetworksRequest) Execute() (*SslNetworkResponse, *http.Response, error) { + return r.ApiService.UpdateSSLNetworksExecute(r) +} + +/* +Creates a new V1 PUT /SSL/Networks request. + +UpdateSSLNetworks Updates an existing network definition according to the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSLNetworksRequest +*/ +func (a *SslApiService) NewUpdateSSLNetworksRequest(ctx context.Context) ApiUpdateSSLNetworksRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSLNetworksRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSL/Networks +// +// @return SslNetworkResponse +func (a *SslApiService) UpdateSSLNetworksExecute(r ApiUpdateSSLNetworksRequest) (*SslNetworkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SslNetworkResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSL/Networks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.sslUpdateNetworkRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_status.go b/v24/api/keyfactor/v1/api_status.go new file mode 100644 index 0000000..c83d332 --- /dev/null +++ b/v24/api/keyfactor/v1/api_status.go @@ -0,0 +1,298 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// StatusApiService StatusApi service +type StatusApiService service + +// Request for V1 GET /Status/Endpoints +type ApiGetStatusEndpointsRequest struct { + ctx context.Context + ApiService *StatusApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetStatusEndpointsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetStatusEndpointsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetStatusEndpointsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetStatusEndpointsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Status/Endpoints request context +func (r ApiGetStatusEndpointsRequest) Execute() ([]string, *http.Response, error) { + return r.ApiService.GetStatusEndpointsExecute(r) +} + +/* +Creates a new V1 GET /Status/Endpoints request. + +GetStatusEndpoints Returns all endpoints to which the requesting identity has access + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStatusEndpointsRequest +*/ +func (a *StatusApiService) NewGetStatusEndpointsRequest(ctx context.Context) ApiGetStatusEndpointsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetStatusEndpointsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Status/Endpoints +// +// @return []string +func (a *StatusApiService) GetStatusEndpointsExecute(r ApiGetStatusEndpointsRequest) ([]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []string + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Status/Endpoints" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Status/HealthCheck +type ApiGetStatusHealthCheckRequest struct { + ctx context.Context + ApiService *StatusApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetStatusHealthCheckRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetStatusHealthCheckRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetStatusHealthCheckRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetStatusHealthCheckRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Status/HealthCheck request context +func (r ApiGetStatusHealthCheckRequest) Execute() (*http.Response, error) { + return r.ApiService.GetStatusHealthCheckExecute(r) +} + +/* +Creates a new V1 GET /Status/HealthCheck request. + +GetStatusHealthCheck Returns the current status of the API's ability to connect to the database. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStatusHealthCheckRequest +*/ +func (a *StatusApiService) NewGetStatusHealthCheckRequest(ctx context.Context) ApiGetStatusHealthCheckRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetStatusHealthCheckRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *StatusApiService) GetStatusHealthCheckExecute(r ApiGetStatusHealthCheckRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Status/HealthCheck" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_template.go b/v24/api/keyfactor/v1/api_template.go new file mode 100644 index 0000000..ee655da --- /dev/null +++ b/v24/api/keyfactor/v1/api_template.go @@ -0,0 +1,1071 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// TemplateApiService TemplateApi service +type TemplateApiService service + +// Request for V1 POST /Templates/Import +type ApiCreateTemplatesImportRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + configurationTenantConfigurationTenantRequest *ConfigurationTenantConfigurationTenantRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateTemplatesImportRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateTemplatesImportRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateTemplatesImportRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateTemplatesImportRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Configuration tenant to import from +func (r ApiCreateTemplatesImportRequest) ConfigurationTenantConfigurationTenantRequest(configurationTenantConfigurationTenantRequest ConfigurationTenantConfigurationTenantRequest) ApiCreateTemplatesImportRequest { + r.configurationTenantConfigurationTenantRequest = &configurationTenantConfigurationTenantRequest + return r +} + +// Executes the V1 POST /Templates/Import request context +func (r ApiCreateTemplatesImportRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateTemplatesImportExecute(r) +} + +/* +Creates a new V1 POST /Templates/Import request. + +CreateTemplatesImport Imports templates from the provided configuration tenant + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateTemplatesImportRequest +*/ +func (a *TemplateApiService) NewCreateTemplatesImportRequest(ctx context.Context) ApiCreateTemplatesImportRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateTemplatesImportRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request +func (a *TemplateApiService) CreateTemplatesImportExecute(r ApiCreateTemplatesImportRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates/Import" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.configurationTenantConfigurationTenantRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Templates +type ApiGetTemplatesRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetTemplatesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetTemplatesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetTemplatesRequest) QueryString(queryString string) ApiGetTemplatesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetTemplatesRequest) PageReturned(pageReturned int32) ApiGetTemplatesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetTemplatesRequest) ReturnLimit(returnLimit int32) ApiGetTemplatesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetTemplatesRequest) SortField(sortField string) ApiGetTemplatesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetTemplatesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetTemplatesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetTemplatesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetTemplatesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Templates request context +func (r ApiGetTemplatesRequest) Execute() ([]TemplatesTemplateCollectionRetrievalResponse, *http.Response, error) { + return r.ApiService.GetTemplatesExecute(r) +} + +/* +Creates a new V1 GET /Templates request. + +GetTemplates Returns all certificate templates according to the provided filter and output parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTemplatesRequest +*/ +func (a *TemplateApiService) NewGetTemplatesRequest(ctx context.Context) ApiGetTemplatesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetTemplatesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Templates +// +// @return []TemplatesTemplateCollectionRetrievalResponse +func (a *TemplateApiService) GetTemplatesExecute(r ApiGetTemplatesRequest) ([]TemplatesTemplateCollectionRetrievalResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TemplatesTemplateCollectionRetrievalResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Templates/{id} +type ApiGetTemplatesByIdRequest struct { + ctx context.Context + ApiService *TemplateApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetTemplatesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetTemplatesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetTemplatesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetTemplatesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Templates/{id} request context +func (r ApiGetTemplatesByIdRequest) Execute() (*TemplatesTemplateRetrievalResponse, *http.Response, error) { + return r.ApiService.GetTemplatesByIdExecute(r) +} + +/* +Creates a new V1 GET /Templates/{id} request. + +GetTemplatesById Returns the certificate template associated with the provided id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the certificate template + @return ApiGetTemplatesByIdRequest +*/ +func (a *TemplateApiService) NewGetTemplatesByIdRequest(ctx context.Context, id int32) ApiGetTemplatesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetTemplatesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Templates/{id} +// +// @return TemplatesTemplateRetrievalResponse +func (a *TemplateApiService) GetTemplatesByIdExecute(r ApiGetTemplatesByIdRequest) (*TemplatesTemplateRetrievalResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TemplatesTemplateRetrievalResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Templates/Settings +type ApiGetTemplatesSettingsRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetTemplatesSettingsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetTemplatesSettingsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetTemplatesSettingsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetTemplatesSettingsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Templates/Settings request context +func (r ApiGetTemplatesSettingsRequest) Execute() (*TemplatesGlobalGlobalTemplateSettingsResponse, *http.Response, error) { + return r.ApiService.GetTemplatesSettingsExecute(r) +} + +/* +Creates a new V1 GET /Templates/Settings request. + +GetTemplatesSettings Gets the global template settings. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTemplatesSettingsRequest +*/ +func (a *TemplateApiService) NewGetTemplatesSettingsRequest(ctx context.Context) ApiGetTemplatesSettingsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetTemplatesSettingsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Templates/Settings +// +// @return TemplatesGlobalGlobalTemplateSettingsResponse +func (a *TemplateApiService) GetTemplatesSettingsExecute(r ApiGetTemplatesSettingsRequest) (*TemplatesGlobalGlobalTemplateSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TemplatesGlobalGlobalTemplateSettingsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates/Settings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Templates/SubjectParts +type ApiGetTemplatesSubjectPartsRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetTemplatesSubjectPartsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetTemplatesSubjectPartsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetTemplatesSubjectPartsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetTemplatesSubjectPartsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Templates/SubjectParts request context +func (r ApiGetTemplatesSubjectPartsRequest) Execute() ([]EnrollmentPatternsValidSubjectPartResponse, *http.Response, error) { + return r.ApiService.GetTemplatesSubjectPartsExecute(r) +} + +/* +Creates a new V1 GET /Templates/SubjectParts request. + +GetTemplatesSubjectParts Returns the valid subject parts possible for regular expressions. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTemplatesSubjectPartsRequest +*/ +func (a *TemplateApiService) NewGetTemplatesSubjectPartsRequest(ctx context.Context) ApiGetTemplatesSubjectPartsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetTemplatesSubjectPartsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Templates/SubjectParts +// +// @return []EnrollmentPatternsValidSubjectPartResponse +func (a *TemplateApiService) GetTemplatesSubjectPartsExecute(r ApiGetTemplatesSubjectPartsRequest) ([]EnrollmentPatternsValidSubjectPartResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EnrollmentPatternsValidSubjectPartResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates/SubjectParts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Templates +type ApiUpdateTemplatesRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + templatesTemplateUpdateRequest *TemplatesTemplateUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateTemplatesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateTemplatesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateTemplatesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateTemplatesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Properties of the certificate template to be updated +func (r ApiUpdateTemplatesRequest) TemplatesTemplateUpdateRequest(templatesTemplateUpdateRequest TemplatesTemplateUpdateRequest) ApiUpdateTemplatesRequest { + r.templatesTemplateUpdateRequest = &templatesTemplateUpdateRequest + return r +} + +// Executes the V1 PUT /Templates request context +func (r ApiUpdateTemplatesRequest) Execute() (*TemplatesTemplateRetrievalResponse, *http.Response, error) { + return r.ApiService.UpdateTemplatesExecute(r) +} + +/* +Creates a new V1 PUT /Templates request. + +UpdateTemplates Updates a certificate template according to the provided properties + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateTemplatesRequest +*/ +func (a *TemplateApiService) NewUpdateTemplatesRequest(ctx context.Context) ApiUpdateTemplatesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateTemplatesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Templates +// +// @return TemplatesTemplateRetrievalResponse +func (a *TemplateApiService) UpdateTemplatesExecute(r ApiUpdateTemplatesRequest) (*TemplatesTemplateRetrievalResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TemplatesTemplateRetrievalResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.templatesTemplateUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Templates/Settings +type ApiUpdateTemplatesSettingsRequest struct { + ctx context.Context + ApiService *TemplateApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + templatesGlobalGlobalTemplateSettingsRequest *TemplatesGlobalGlobalTemplateSettingsRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateTemplatesSettingsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateTemplatesSettingsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateTemplatesSettingsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateTemplatesSettingsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The new global template settings. +func (r ApiUpdateTemplatesSettingsRequest) TemplatesGlobalGlobalTemplateSettingsRequest(templatesGlobalGlobalTemplateSettingsRequest TemplatesGlobalGlobalTemplateSettingsRequest) ApiUpdateTemplatesSettingsRequest { + r.templatesGlobalGlobalTemplateSettingsRequest = &templatesGlobalGlobalTemplateSettingsRequest + return r +} + +// Executes the V1 PUT /Templates/Settings request context +func (r ApiUpdateTemplatesSettingsRequest) Execute() (*TemplatesGlobalGlobalTemplateSettingsResponse, *http.Response, error) { + return r.ApiService.UpdateTemplatesSettingsExecute(r) +} + +/* +Creates a new V1 PUT /Templates/Settings request. + +UpdateTemplatesSettings Replaces the existing global template settings. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateTemplatesSettingsRequest +*/ +func (a *TemplateApiService) NewUpdateTemplatesSettingsRequest(ctx context.Context) ApiUpdateTemplatesSettingsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateTemplatesSettingsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /Templates/Settings +// +// @return TemplatesGlobalGlobalTemplateSettingsResponse +func (a *TemplateApiService) UpdateTemplatesSettingsExecute(r ApiUpdateTemplatesSettingsRequest) (*TemplatesGlobalGlobalTemplateSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TemplatesGlobalGlobalTemplateSettingsResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Templates/Settings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.templatesGlobalGlobalTemplateSettingsRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_user.go b/v24/api/keyfactor/v1/api_user.go new file mode 100644 index 0000000..a9957ec --- /dev/null +++ b/v24/api/keyfactor/v1/api_user.go @@ -0,0 +1,947 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// UserApiService UserApi service +type UserApiService service + +// Request for V1 POST /SSH/Users +type ApiCreateSSHUsersRequest struct { + ctx context.Context + ApiService *UserApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHUsersSshUserCreationRequest *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHUsersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHUsersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHUsersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHUsersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// SSH user to be created. +func (r ApiCreateSSHUsersRequest) CSSCMSDataModelModelsSSHUsersSshUserCreationRequest(cSSCMSDataModelModelsSSHUsersSshUserCreationRequest CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) ApiCreateSSHUsersRequest { + r.cSSCMSDataModelModelsSSHUsersSshUserCreationRequest = &cSSCMSDataModelModelsSSHUsersSshUserCreationRequest + return r +} + +// Executes the V1 POST /SSH/Users request context +func (r ApiCreateSSHUsersRequest) Execute() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + return r.ApiService.CreateSSHUsersExecute(r) +} + +/* +Creates a new V1 POST /SSH/Users request. + +CreateSSHUsers Creates a new SSH User. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHUsersRequest +*/ +func (a *UserApiService) NewCreateSSHUsersRequest(ctx context.Context) ApiCreateSSHUsersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHUsersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Users +// +// @return CSSCMSDataModelModelsSSHUsersSshUserResponse +func (a *UserApiService) CreateSSHUsersExecute(r ApiCreateSSHUsersRequest) (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHUsersSshUserResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHUsersSshUserCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /SSH/Users/Access +type ApiCreateSSHUsersAccessRequest struct { + ctx context.Context + ApiService *UserApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSSHUsersAccessRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSSHUsersAccessRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSSHUsersAccessRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSSHUsersAccessRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Logons to add the existing user +func (r ApiCreateSSHUsersAccessRequest) CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) ApiCreateSSHUsersAccessRequest { + r.cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest = &cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + return r +} + +// Executes the V1 POST /SSH/Users/Access request context +func (r ApiCreateSSHUsersAccessRequest) Execute() (*CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + return r.ApiService.CreateSSHUsersAccessExecute(r) +} + +/* +Creates a new V1 POST /SSH/Users/Access request. + +CreateSSHUsersAccess Updates logon access for a user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSSHUsersAccessRequest +*/ +func (a *UserApiService) NewCreateSSHUsersAccessRequest(ctx context.Context) ApiCreateSSHUsersAccessRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateSSHUsersAccessRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /SSH/Users/Access +// +// @return CSSCMSDataModelModelsSSHUsersSshUserAccessResponse +func (a *UserApiService) CreateSSHUsersAccessExecute(r ApiCreateSSHUsersAccessRequest) (*CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users/Access" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /SSH/Users/{id} +type ApiDeleteSSHUsersByIdRequest struct { + ctx context.Context + ApiService *UserApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteSSHUsersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteSSHUsersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteSSHUsersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteSSHUsersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /SSH/Users/{id} request context +func (r ApiDeleteSSHUsersByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSSHUsersByIdExecute(r) +} + +/* +Creates a new V1 DELETE /SSH/Users/{id} request. + +DeleteSSHUsersById Deletes an SSH user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the user to delete. + @return ApiDeleteSSHUsersByIdRequest +*/ +func (a *UserApiService) NewDeleteSSHUsersByIdRequest(ctx context.Context, id int32) ApiDeleteSSHUsersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteSSHUsersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *UserApiService) DeleteSSHUsersByIdExecute(r ApiDeleteSSHUsersByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Users +type ApiGetSSHUsersRequest struct { + ctx context.Context + ApiService *UserApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + showOwnedAccess *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHUsersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHUsersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHUsersRequest) QueryString(queryString string) ApiGetSSHUsersRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHUsersRequest) PageReturned(pageReturned int32) ApiGetSSHUsersRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHUsersRequest) ReturnLimit(returnLimit int32) ApiGetSSHUsersRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHUsersRequest) SortField(sortField string) ApiGetSSHUsersRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHUsersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHUsersRequest { + r.sortAscending = &sortAscending + return r +} + +// Whether or not to return only logons that have access to servers the requesting user owns +func (r ApiGetSSHUsersRequest) ShowOwnedAccess(showOwnedAccess bool) ApiGetSSHUsersRequest { + r.showOwnedAccess = &showOwnedAccess + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHUsersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHUsersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Users request context +func (r ApiGetSSHUsersRequest) Execute() ([]CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + return r.ApiService.GetSSHUsersExecute(r) +} + +/* +Creates a new V1 GET /SSH/Users request. + +GetSSHUsers Returns users matching the criteria from the provided query parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHUsersRequest +*/ +func (a *UserApiService) NewGetSSHUsersRequest(ctx context.Context) ApiGetSSHUsersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHUsersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /SSH/Users +// +// @return []CSSCMSDataModelModelsSSHUsersSshUserResponse +func (a *UserApiService) GetSSHUsersExecute(r ApiGetSSHUsersRequest) ([]CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHUsersSshUserResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + if r.showOwnedAccess != nil { + parameterAddToQuery(localVarQueryParams, "showOwnedAccess", r.showOwnedAccess, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /SSH/Users/{id} +type ApiGetSSHUsersByIdRequest struct { + ctx context.Context + ApiService *UserApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHUsersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHUsersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHUsersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHUsersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /SSH/Users/{id} request context +func (r ApiGetSSHUsersByIdRequest) Execute() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + return r.ApiService.GetSSHUsersByIdExecute(r) +} + +/* +Creates a new V1 GET /SSH/Users/{id} request. + +GetSSHUsersById Looks up information about an existing SSH user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the SSH user to retrieve. + @return ApiGetSSHUsersByIdRequest +*/ +func (a *UserApiService) NewGetSSHUsersByIdRequest(ctx context.Context, id int32) ApiGetSSHUsersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetSSHUsersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /SSH/Users/{id} +// +// @return CSSCMSDataModelModelsSSHUsersSshUserResponse +func (a *UserApiService) GetSSHUsersByIdExecute(r ApiGetSSHUsersByIdRequest) (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHUsersSshUserResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /SSH/Users +type ApiUpdateSSHUsersRequest struct { + ctx context.Context + ApiService *UserApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSSHUsersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSSHUsersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSSHUsersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSSHUsersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The new state of the SSH user to update. +func (r ApiUpdateSSHUsersRequest) CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) ApiUpdateSSHUsersRequest { + r.cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest = &cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + return r +} + +// Executes the V1 PUT /SSH/Users request context +func (r ApiUpdateSSHUsersRequest) Execute() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + return r.ApiService.UpdateSSHUsersExecute(r) +} + +/* +Creates a new V1 PUT /SSH/Users request. + +UpdateSSHUsers Updates information about a given user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSSHUsersRequest +*/ +func (a *UserApiService) NewUpdateSSHUsersRequest(ctx context.Context) ApiUpdateSSHUsersRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateSSHUsersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 PUT /SSH/Users +// +// @return CSSCMSDataModelModelsSSHUsersSshUserResponse +func (a *UserApiService) UpdateSSHUsersExecute(r ApiUpdateSSHUsersRequest) (*CSSCMSDataModelModelsSSHUsersSshUserResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHUsersSshUserResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_workflow.go b/v24/api/keyfactor/v1/api_workflow.go new file mode 100644 index 0000000..8bddbc8 --- /dev/null +++ b/v24/api/keyfactor/v1/api_workflow.go @@ -0,0 +1,1025 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// WorkflowApiService WorkflowApi service +type WorkflowApiService service + +// Request for V1 POST /Workflow/Certificates/Approve +type ApiCreateWorkflowCertificatesApproveRequest struct { + ctx context.Context + ApiService *WorkflowApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + requestBody *[]int32 +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowCertificatesApproveRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowCertificatesApproveRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowCertificatesApproveRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowCertificatesApproveRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Array of Keyfactor identifiers of the certificate requests +func (r ApiCreateWorkflowCertificatesApproveRequest) RequestBody(requestBody []int32) ApiCreateWorkflowCertificatesApproveRequest { + r.requestBody = &requestBody + return r +} + +// Executes the V1 POST /Workflow/Certificates/Approve request context +func (r ApiCreateWorkflowCertificatesApproveRequest) Execute() (*CSSCMSDataModelModelsWorkflowApproveDenyResult, *http.Response, error) { + return r.ApiService.CreateWorkflowCertificatesApproveExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Certificates/Approve request. + +CreateWorkflowCertificatesApprove Approves pending certificate requests associated with the provided ids + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateWorkflowCertificatesApproveRequest +*/ +func (a *WorkflowApiService) NewCreateWorkflowCertificatesApproveRequest(ctx context.Context) ApiCreateWorkflowCertificatesApproveRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowCertificatesApproveRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Workflow/Certificates/Approve +// +// @return CSSCMSDataModelModelsWorkflowApproveDenyResult +func (a *WorkflowApiService) CreateWorkflowCertificatesApproveExecute(r ApiCreateWorkflowCertificatesApproveRequest) (*CSSCMSDataModelModelsWorkflowApproveDenyResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsWorkflowApproveDenyResult + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/Approve" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Workflow/Certificates/Deny +type ApiCreateWorkflowCertificatesDenyRequest struct { + ctx context.Context + ApiService *WorkflowApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + cSSCMSDataModelModelsWorkflowDenialRequest *CSSCMSDataModelModelsWorkflowDenialRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowCertificatesDenyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowCertificatesDenyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowCertificatesDenyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowCertificatesDenyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Keyfactor identifiers of the certificate requests to be denied and any denial comments +func (r ApiCreateWorkflowCertificatesDenyRequest) CSSCMSDataModelModelsWorkflowDenialRequest(cSSCMSDataModelModelsWorkflowDenialRequest CSSCMSDataModelModelsWorkflowDenialRequest) ApiCreateWorkflowCertificatesDenyRequest { + r.cSSCMSDataModelModelsWorkflowDenialRequest = &cSSCMSDataModelModelsWorkflowDenialRequest + return r +} + +// Executes the V1 POST /Workflow/Certificates/Deny request context +func (r ApiCreateWorkflowCertificatesDenyRequest) Execute() (*CSSCMSDataModelModelsWorkflowApproveDenyResult, *http.Response, error) { + return r.ApiService.CreateWorkflowCertificatesDenyExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Certificates/Deny request. + +CreateWorkflowCertificatesDeny Denies pending certificate requests associated with the provided ids + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateWorkflowCertificatesDenyRequest +*/ +func (a *WorkflowApiService) NewCreateWorkflowCertificatesDenyRequest(ctx context.Context) ApiCreateWorkflowCertificatesDenyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowCertificatesDenyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Workflow/Certificates/Deny +// +// @return CSSCMSDataModelModelsWorkflowApproveDenyResult +func (a *WorkflowApiService) CreateWorkflowCertificatesDenyExecute(r ApiCreateWorkflowCertificatesDenyRequest) (*CSSCMSDataModelModelsWorkflowApproveDenyResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsWorkflowApproveDenyResult + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/Deny" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.cSSCMSDataModelModelsWorkflowDenialRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Certificates/{id} +type ApiGetWorkflowCertificatesByIdRequest struct { + ctx context.Context + ApiService *WorkflowApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowCertificatesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowCertificatesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowCertificatesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowCertificatesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Certificates/{id} request context +func (r ApiGetWorkflowCertificatesByIdRequest) Execute() (*CertificatesCertRequestResponseModel, *http.Response, error) { + return r.ApiService.GetWorkflowCertificatesByIdExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Certificates/{id} request. + +GetWorkflowCertificatesById Returns certificate request details based on the provided ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the certificate request. + @return ApiGetWorkflowCertificatesByIdRequest +*/ +func (a *WorkflowApiService) NewGetWorkflowCertificatesByIdRequest(ctx context.Context, id int32) ApiGetWorkflowCertificatesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowCertificatesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V1 GET /Workflow/Certificates/{id} +// +// @return CertificatesCertRequestResponseModel +func (a *WorkflowApiService) GetWorkflowCertificatesByIdExecute(r ApiGetWorkflowCertificatesByIdRequest) (*CertificatesCertRequestResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CertificatesCertRequestResponseModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Certificates/Denied +type ApiGetWorkflowCertificatesDeniedRequest struct { + ctx context.Context + ApiService *WorkflowApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowCertificatesDeniedRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowCertificatesDeniedRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowCertificatesDeniedRequest) QueryString(queryString string) ApiGetWorkflowCertificatesDeniedRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowCertificatesDeniedRequest) PageReturned(pageReturned int32) ApiGetWorkflowCertificatesDeniedRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowCertificatesDeniedRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowCertificatesDeniedRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowCertificatesDeniedRequest) SortField(sortField string) ApiGetWorkflowCertificatesDeniedRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowCertificatesDeniedRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowCertificatesDeniedRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowCertificatesDeniedRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowCertificatesDeniedRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Certificates/Denied request context +func (r ApiGetWorkflowCertificatesDeniedRequest) Execute() ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + return r.ApiService.GetWorkflowCertificatesDeniedExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Certificates/Denied request. + +GetWorkflowCertificatesDenied Gets a collection of denied certificate requests based on the provided query. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowCertificatesDeniedRequest +*/ +func (a *WorkflowApiService) NewGetWorkflowCertificatesDeniedRequest(ctx context.Context) ApiGetWorkflowCertificatesDeniedRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowCertificatesDeniedRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Certificates/Denied +// +// @return []CSSCMSDataModelModelsWorkflowCertificateRequestModel +func (a *WorkflowApiService) GetWorkflowCertificatesDeniedExecute(r ApiGetWorkflowCertificatesDeniedRequest) ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsWorkflowCertificateRequestModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/Denied" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Certificates/ExternalValidation +type ApiGetWorkflowCertificatesExternalValidationRequest struct { + ctx context.Context + ApiService *WorkflowApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowCertificatesExternalValidationRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowCertificatesExternalValidationRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowCertificatesExternalValidationRequest) QueryString(queryString string) ApiGetWorkflowCertificatesExternalValidationRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowCertificatesExternalValidationRequest) PageReturned(pageReturned int32) ApiGetWorkflowCertificatesExternalValidationRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowCertificatesExternalValidationRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowCertificatesExternalValidationRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowCertificatesExternalValidationRequest) SortField(sortField string) ApiGetWorkflowCertificatesExternalValidationRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowCertificatesExternalValidationRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowCertificatesExternalValidationRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowCertificatesExternalValidationRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowCertificatesExternalValidationRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Certificates/ExternalValidation request context +func (r ApiGetWorkflowCertificatesExternalValidationRequest) Execute() ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + return r.ApiService.GetWorkflowCertificatesExternalValidationExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Certificates/ExternalValidation request. + +GetWorkflowCertificatesExternalValidation Gets a collection of external validation certificate requests based on the provided query. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowCertificatesExternalValidationRequest +*/ +func (a *WorkflowApiService) NewGetWorkflowCertificatesExternalValidationRequest(ctx context.Context) ApiGetWorkflowCertificatesExternalValidationRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowCertificatesExternalValidationRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Certificates/ExternalValidation +// +// @return []CSSCMSDataModelModelsWorkflowCertificateRequestModel +func (a *WorkflowApiService) GetWorkflowCertificatesExternalValidationExecute(r ApiGetWorkflowCertificatesExternalValidationRequest) ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsWorkflowCertificateRequestModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/ExternalValidation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Certificates/Pending +type ApiGetWorkflowCertificatesPendingRequest struct { + ctx context.Context + ApiService *WorkflowApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowCertificatesPendingRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowCertificatesPendingRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowCertificatesPendingRequest) QueryString(queryString string) ApiGetWorkflowCertificatesPendingRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowCertificatesPendingRequest) PageReturned(pageReturned int32) ApiGetWorkflowCertificatesPendingRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowCertificatesPendingRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowCertificatesPendingRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowCertificatesPendingRequest) SortField(sortField string) ApiGetWorkflowCertificatesPendingRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowCertificatesPendingRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowCertificatesPendingRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowCertificatesPendingRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowCertificatesPendingRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Certificates/Pending request context +func (r ApiGetWorkflowCertificatesPendingRequest) Execute() ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + return r.ApiService.GetWorkflowCertificatesPendingExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Certificates/Pending request. + +GetWorkflowCertificatesPending Gets a collection of pending certificate requests based on the provided query. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowCertificatesPendingRequest +*/ +func (a *WorkflowApiService) NewGetWorkflowCertificatesPendingRequest(ctx context.Context) ApiGetWorkflowCertificatesPendingRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowCertificatesPendingRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Certificates/Pending +// +// @return []CSSCMSDataModelModelsWorkflowCertificateRequestModel +func (a *WorkflowApiService) GetWorkflowCertificatesPendingExecute(r ApiGetWorkflowCertificatesPendingRequest) ([]CSSCMSDataModelModelsWorkflowCertificateRequestModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsWorkflowCertificateRequestModel + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Certificates/Pending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_workflow_definition.go b/v24/api/keyfactor/v1/api_workflow_definition.go new file mode 100644 index 0000000..1cdbdad --- /dev/null +++ b/v24/api/keyfactor/v1/api_workflow_definition.go @@ -0,0 +1,1944 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// WorkflowDefinitionApiService WorkflowDefinitionApi service +type WorkflowDefinitionApiService service + +// Request for V1 POST /Workflow/Definitions +type ApiCreateWorkflowDefinitionsRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string + workflowsDefinitionCreateRequest *WorkflowsDefinitionCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowDefinitionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowDefinitionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Whether to force the creation of this definition in the case that it would run workflows immediately. +func (r ApiCreateWorkflowDefinitionsRequest) Force(force bool) ApiCreateWorkflowDefinitionsRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowDefinitionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowDefinitionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// A Workflows.DefinitionCreateRequest with the display name, description, key and type of the definition. +func (r ApiCreateWorkflowDefinitionsRequest) WorkflowsDefinitionCreateRequest(workflowsDefinitionCreateRequest WorkflowsDefinitionCreateRequest) ApiCreateWorkflowDefinitionsRequest { + r.workflowsDefinitionCreateRequest = &workflowsDefinitionCreateRequest + return r +} + +// Executes the V1 POST /Workflow/Definitions request context +func (r ApiCreateWorkflowDefinitionsRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateWorkflowDefinitionsExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Definitions request. + +CreateWorkflowDefinitions Creates a new base definition without any steps. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateWorkflowDefinitionsRequest +*/ +func (a *WorkflowDefinitionApiService) NewCreateWorkflowDefinitionsRequest(ctx context.Context) ApiCreateWorkflowDefinitionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowDefinitionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 POST /Workflow/Definitions +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) CreateWorkflowDefinitionsExecute(r ApiCreateWorkflowDefinitionsRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.workflowsDefinitionCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Workflow/Definitions/{definitionId}/Publish +type ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Workflow/Definitions/{definitionId}/Publish request context +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateWorkflowDefinitionsDefinitionIdPublishExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Definitions/{definitionId}/Publish request. + +CreateWorkflowDefinitionsDefinitionIdPublish Makes the most recent version of a Workflow Definition the published version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Workflow Definition Id. + @return ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest +*/ +func (a *WorkflowDefinitionApiService) NewCreateWorkflowDefinitionsDefinitionIdPublishRequest(ctx context.Context, definitionId string) ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request V1 POST /Workflow/Definitions/{definitionId}/Publish +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) CreateWorkflowDefinitionsDefinitionIdPublishExecute(r ApiCreateWorkflowDefinitionsDefinitionIdPublishRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Publish" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 POST /Workflow/Definitions/{definitionId}/Publish/{version} +type ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + version int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Workflow/Definitions/{definitionId}/Publish/{version} request context +func (r ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.CreateWorkflowDefinitionsDefinitionIdPublishVersionExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Definitions/{definitionId}/Publish/{version} request. + +CreateWorkflowDefinitionsDefinitionIdPublishVersion Makes the specified version of a Workflow Definition the published version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Workflow Definition Id. + @param version The Workflow Version Id. + @return ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest +*/ +func (a *WorkflowDefinitionApiService) NewCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest(ctx context.Context, definitionId string, version int32) ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + version: version, + } +} + +// Executes the API request V1 POST /Workflow/Definitions/{definitionId}/Publish/{version} +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) CreateWorkflowDefinitionsDefinitionIdPublishVersionExecute(r ApiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Publish/{version}" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterValueToString(r.version, "version")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Workflow/Definitions/{definitionId} +type ApiDeleteWorkflowDefinitionsDefinitionIdRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteWorkflowDefinitionsDefinitionIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteWorkflowDefinitionsDefinitionIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Workflow/Definitions/{definitionId} request context +func (r ApiDeleteWorkflowDefinitionsDefinitionIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteWorkflowDefinitionsDefinitionIdExecute(r) +} + +/* +Creates a new V1 DELETE /Workflow/Definitions/{definitionId} request. + +DeleteWorkflowDefinitionsDefinitionId Deletes the definition matching the given Id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Workflow Definition Id. + @return ApiDeleteWorkflowDefinitionsDefinitionIdRequest +*/ +func (a *WorkflowDefinitionApiService) NewDeleteWorkflowDefinitionsDefinitionIdRequest(ctx context.Context, definitionId string) ApiDeleteWorkflowDefinitionsDefinitionIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteWorkflowDefinitionsDefinitionIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request +func (a *WorkflowDefinitionApiService) DeleteWorkflowDefinitionsDefinitionIdExecute(r ApiDeleteWorkflowDefinitionsDefinitionIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Definitions +type ApiGetWorkflowDefinitionsRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowDefinitionsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowDefinitionsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowDefinitionsRequest) QueryString(queryString string) ApiGetWorkflowDefinitionsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowDefinitionsRequest) PageReturned(pageReturned int32) ApiGetWorkflowDefinitionsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowDefinitionsRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowDefinitionsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowDefinitionsRequest) SortField(sortField string) ApiGetWorkflowDefinitionsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowDefinitionsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowDefinitionsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowDefinitionsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowDefinitionsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Definitions request context +func (r ApiGetWorkflowDefinitionsRequest) Execute() ([]WorkflowsDefinitionQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowDefinitionsExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Definitions request. + +GetWorkflowDefinitions Gets the Definitions matching the query specifications. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowDefinitionsRequest +*/ +func (a *WorkflowDefinitionApiService) NewGetWorkflowDefinitionsRequest(ctx context.Context) ApiGetWorkflowDefinitionsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowDefinitionsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Definitions +// +// @return []WorkflowsDefinitionQueryResponse +func (a *WorkflowDefinitionApiService) GetWorkflowDefinitionsExecute(r ApiGetWorkflowDefinitionsRequest) ([]WorkflowsDefinitionQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsDefinitionQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Definitions/{definitionId} +type ApiGetWorkflowDefinitionsDefinitionIdRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + definitionVersion *int32 + exportable *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowDefinitionsDefinitionIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The version to retrieve. If this value is not specified, the latest version will be returned. +func (r ApiGetWorkflowDefinitionsDefinitionIdRequest) DefinitionVersion(definitionVersion int32) ApiGetWorkflowDefinitionsDefinitionIdRequest { + r.definitionVersion = &definitionVersion + return r +} + +// Indicates if the response should be cleansed of role ids for export. +func (r ApiGetWorkflowDefinitionsDefinitionIdRequest) Exportable(exportable bool) ApiGetWorkflowDefinitionsDefinitionIdRequest { + r.exportable = &exportable + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowDefinitionsDefinitionIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Definitions/{definitionId} request context +func (r ApiGetWorkflowDefinitionsDefinitionIdRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.GetWorkflowDefinitionsDefinitionIdExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Definitions/{definitionId} request. + +GetWorkflowDefinitionsDefinitionId Gets a workflow definition. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Id of the definition to retrieve. + @return ApiGetWorkflowDefinitionsDefinitionIdRequest +*/ +func (a *WorkflowDefinitionApiService) NewGetWorkflowDefinitionsDefinitionIdRequest(ctx context.Context, definitionId string) ApiGetWorkflowDefinitionsDefinitionIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowDefinitionsDefinitionIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request V1 GET /Workflow/Definitions/{definitionId} +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) GetWorkflowDefinitionsDefinitionIdExecute(r ApiGetWorkflowDefinitionsDefinitionIdRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.definitionVersion != nil { + parameterAddToQuery(localVarQueryParams, "definitionVersion", r.definitionVersion, "") + } + if r.exportable != nil { + parameterAddToQuery(localVarQueryParams, "exportable", r.exportable, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Definitions/Steps +type ApiGetWorkflowDefinitionsStepsRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowDefinitionsStepsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowDefinitionsStepsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowDefinitionsStepsRequest) QueryString(queryString string) ApiGetWorkflowDefinitionsStepsRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowDefinitionsStepsRequest) PageReturned(pageReturned int32) ApiGetWorkflowDefinitionsStepsRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowDefinitionsStepsRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowDefinitionsStepsRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowDefinitionsStepsRequest) SortField(sortField string) ApiGetWorkflowDefinitionsStepsRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowDefinitionsStepsRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowDefinitionsStepsRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowDefinitionsStepsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowDefinitionsStepsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Definitions/Steps request context +func (r ApiGetWorkflowDefinitionsStepsRequest) Execute() ([]WorkflowsAvailableStepQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowDefinitionsStepsExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Definitions/Steps request. + +GetWorkflowDefinitionsSteps Gets the result set of available steps for a given query. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowDefinitionsStepsRequest +*/ +func (a *WorkflowDefinitionApiService) NewGetWorkflowDefinitionsStepsRequest(ctx context.Context) ApiGetWorkflowDefinitionsStepsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowDefinitionsStepsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Definitions/Steps +// +// @return []WorkflowsAvailableStepQueryResponse +func (a *WorkflowDefinitionApiService) GetWorkflowDefinitionsStepsExecute(r ApiGetWorkflowDefinitionsStepsRequest) ([]WorkflowsAvailableStepQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsAvailableStepQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/Steps" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Definitions/Steps/{extensionName} +type ApiGetWorkflowDefinitionsStepsExtensionNameRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + extensionName string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowDefinitionsStepsExtensionNameRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowDefinitionsStepsExtensionNameRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowDefinitionsStepsExtensionNameRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowDefinitionsStepsExtensionNameRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Definitions/Steps/{extensionName} request context +func (r ApiGetWorkflowDefinitionsStepsExtensionNameRequest) Execute() (*WorkflowsAvailableStepResponse, *http.Response, error) { + return r.ApiService.GetWorkflowDefinitionsStepsExtensionNameExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Definitions/Steps/{extensionName} request. + +GetWorkflowDefinitionsStepsExtensionName Gets the schema of a given step with the specified extension name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param extensionName The extension name of a specific step in the step schema. + @return ApiGetWorkflowDefinitionsStepsExtensionNameRequest +*/ +func (a *WorkflowDefinitionApiService) NewGetWorkflowDefinitionsStepsExtensionNameRequest(ctx context.Context, extensionName string) ApiGetWorkflowDefinitionsStepsExtensionNameRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowDefinitionsStepsExtensionNameRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + extensionName: extensionName, + } +} + +// Executes the API request V1 GET /Workflow/Definitions/Steps/{extensionName} +// +// @return WorkflowsAvailableStepResponse +func (a *WorkflowDefinitionApiService) GetWorkflowDefinitionsStepsExtensionNameExecute(r ApiGetWorkflowDefinitionsStepsExtensionNameRequest) (*WorkflowsAvailableStepResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsAvailableStepResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/Steps/{extensionName}" + localVarPath = strings.Replace(localVarPath, "{"+"extensionName"+"}", url.PathEscape(parameterValueToString(r.extensionName, "extensionName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Definitions/Types +type ApiGetWorkflowDefinitionsTypesRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowDefinitionsTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowDefinitionsTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowDefinitionsTypesRequest) QueryString(queryString string) ApiGetWorkflowDefinitionsTypesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowDefinitionsTypesRequest) PageReturned(pageReturned int32) ApiGetWorkflowDefinitionsTypesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowDefinitionsTypesRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowDefinitionsTypesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowDefinitionsTypesRequest) SortField(sortField string) ApiGetWorkflowDefinitionsTypesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowDefinitionsTypesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowDefinitionsTypesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowDefinitionsTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowDefinitionsTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Definitions/Types request context +func (r ApiGetWorkflowDefinitionsTypesRequest) Execute() ([]WorkflowsWorkflowTypeQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowDefinitionsTypesExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Definitions/Types request. + +GetWorkflowDefinitionsTypes Performs a query against the workflow types in the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowDefinitionsTypesRequest +*/ +func (a *WorkflowDefinitionApiService) NewGetWorkflowDefinitionsTypesRequest(ctx context.Context) ApiGetWorkflowDefinitionsTypesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowDefinitionsTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Definitions/Types +// +// @return []WorkflowsWorkflowTypeQueryResponse +func (a *WorkflowDefinitionApiService) GetWorkflowDefinitionsTypesExecute(r ApiGetWorkflowDefinitionsTypesRequest) ([]WorkflowsWorkflowTypeQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsWorkflowTypeQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Workflow/Definitions/{definitionId} +type ApiUpdateWorkflowDefinitionsDefinitionIdRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string + workflowsDefinitionUpdateRequest *WorkflowsDefinitionUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Whether to force the update of this definition in the case that it would run workflows immediately. +func (r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) Force(force bool) ApiUpdateWorkflowDefinitionsDefinitionIdRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateWorkflowDefinitionsDefinitionIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The Workflows.DefinitionUpdateRequest holding the updated DisplayName and Description. +func (r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) WorkflowsDefinitionUpdateRequest(workflowsDefinitionUpdateRequest WorkflowsDefinitionUpdateRequest) ApiUpdateWorkflowDefinitionsDefinitionIdRequest { + r.workflowsDefinitionUpdateRequest = &workflowsDefinitionUpdateRequest + return r +} + +// Executes the V1 PUT /Workflow/Definitions/{definitionId} request context +func (r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateWorkflowDefinitionsDefinitionIdExecute(r) +} + +/* +Creates a new V1 PUT /Workflow/Definitions/{definitionId} request. + +UpdateWorkflowDefinitionsDefinitionId Updates the existing definition's DisplayName and Description. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Id of the definition to update. + @return ApiUpdateWorkflowDefinitionsDefinitionIdRequest +*/ +func (a *WorkflowDefinitionApiService) NewUpdateWorkflowDefinitionsDefinitionIdRequest(ctx context.Context, definitionId string) ApiUpdateWorkflowDefinitionsDefinitionIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateWorkflowDefinitionsDefinitionIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request V1 PUT /Workflow/Definitions/{definitionId} +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) UpdateWorkflowDefinitionsDefinitionIdExecute(r ApiUpdateWorkflowDefinitionsDefinitionIdRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.workflowsDefinitionUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 PUT /Workflow/Definitions/{definitionId}/Status +type ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + force *bool + xKeyfactorApiVersion *string + body *bool +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Whether to force the status to update. +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) Force(force bool) ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest { + r.force = &force + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The status to be updated. +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) Body(body bool) ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest { + r.body = &body + return r +} + +// Executes the V1 PUT /Workflow/Definitions/{definitionId}/Status request context +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateWorkflowDefinitionsDefinitionIdStatusExecute(r) +} + +/* +Creates a new V1 PUT /Workflow/Definitions/{definitionId}/Status request. + +UpdateWorkflowDefinitionsDefinitionIdStatus Updates the definition status matching the given Id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Workflow Definition Id. + @return ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest +*/ +func (a *WorkflowDefinitionApiService) NewUpdateWorkflowDefinitionsDefinitionIdStatusRequest(ctx context.Context, definitionId string) ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request +func (a *WorkflowDefinitionApiService) UpdateWorkflowDefinitionsDefinitionIdStatusExecute(r ApiUpdateWorkflowDefinitionsDefinitionIdStatusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Status" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.force != nil { + parameterAddToQuery(localVarQueryParams, "force", r.force, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 PUT /Workflow/Definitions/{definitionId}/Steps +type ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest struct { + ctx context.Context + ApiService *WorkflowDefinitionApiService + definitionId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + workflowsDefinitionStepRequest *[]WorkflowsDefinitionStepRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// A collection of Workflows.DefinitionStepRequest defining the steps to set on the definition. +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest) WorkflowsDefinitionStepRequest(workflowsDefinitionStepRequest []WorkflowsDefinitionStepRequest) ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest { + r.workflowsDefinitionStepRequest = &workflowsDefinitionStepRequest + return r +} + +// Executes the V1 PUT /Workflow/Definitions/{definitionId}/Steps request context +func (r ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest) Execute() (*WorkflowsDefinitionResponse, *http.Response, error) { + return r.ApiService.UpdateWorkflowDefinitionsDefinitionIdStepsExecute(r) +} + +/* +Creates a new V1 PUT /Workflow/Definitions/{definitionId}/Steps request. + +UpdateWorkflowDefinitionsDefinitionIdSteps Sets the provided steps on the latest version of the definition. + +If the latest version is also the published version, a new version will be created and the steps will be set on that new version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param definitionId The Id of the definition. + @return ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest +*/ +func (a *WorkflowDefinitionApiService) NewUpdateWorkflowDefinitionsDefinitionIdStepsRequest(ctx context.Context, definitionId string) ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + definitionId: definitionId, + } +} + +// Executes the API request V1 PUT /Workflow/Definitions/{definitionId}/Steps +// +// @return WorkflowsDefinitionResponse +func (a *WorkflowDefinitionApiService) UpdateWorkflowDefinitionsDefinitionIdStepsExecute(r ApiUpdateWorkflowDefinitionsDefinitionIdStepsRequest) (*WorkflowsDefinitionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsDefinitionResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Steps" + localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.workflowsDefinitionStepRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/api_workflow_instance.go b/v24/api/keyfactor/v1/api_workflow_instance.go new file mode 100644 index 0000000..07f02d1 --- /dev/null +++ b/v24/api/keyfactor/v1/api_workflow_instance.go @@ -0,0 +1,1276 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// WorkflowInstanceApiService WorkflowInstanceApi service +type WorkflowInstanceApiService service + +// Request for V1 POST /Workflow/Instances/{instanceId}/Restart +type ApiCreateWorkflowInstancesInstanceIdRestartRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + instanceId string + xKeyfactorRequestedWith *string + version *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowInstancesInstanceIdRestartRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowInstancesInstanceIdRestartRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// The version of the definition to restart the instance against. Defaults to the published version. +func (r ApiCreateWorkflowInstancesInstanceIdRestartRequest) Version(version int32) ApiCreateWorkflowInstancesInstanceIdRestartRequest { + r.version = &version + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowInstancesInstanceIdRestartRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowInstancesInstanceIdRestartRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Workflow/Instances/{instanceId}/Restart request context +func (r ApiCreateWorkflowInstancesInstanceIdRestartRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateWorkflowInstancesInstanceIdRestartExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Instances/{instanceId}/Restart request. + +CreateWorkflowInstancesInstanceIdRestart Restarts a failed instance against the specified definition version or the published version if no version is specified. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId The instance Id to restart. + @return ApiCreateWorkflowInstancesInstanceIdRestartRequest +*/ +func (a *WorkflowInstanceApiService) NewCreateWorkflowInstancesInstanceIdRestartRequest(ctx context.Context, instanceId string) ApiCreateWorkflowInstancesInstanceIdRestartRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowInstancesInstanceIdRestartRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + instanceId: instanceId, + } +} + +// Executes the API request +func (a *WorkflowInstanceApiService) CreateWorkflowInstancesInstanceIdRestartExecute(r ApiCreateWorkflowInstancesInstanceIdRestartRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Restart" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.version != nil { + parameterAddToQuery(localVarQueryParams, "version", r.version, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Workflow/Instances/{instanceId}/Signals +type ApiCreateWorkflowInstancesInstanceIdSignalsRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + instanceId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + workflowsSignalRequest *WorkflowsSignalRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowInstancesInstanceIdSignalsRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowInstancesInstanceIdSignalsRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowInstancesInstanceIdSignalsRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowInstancesInstanceIdSignalsRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The signal to receive. +func (r ApiCreateWorkflowInstancesInstanceIdSignalsRequest) WorkflowsSignalRequest(workflowsSignalRequest WorkflowsSignalRequest) ApiCreateWorkflowInstancesInstanceIdSignalsRequest { + r.workflowsSignalRequest = &workflowsSignalRequest + return r +} + +// Executes the V1 POST /Workflow/Instances/{instanceId}/Signals request context +func (r ApiCreateWorkflowInstancesInstanceIdSignalsRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateWorkflowInstancesInstanceIdSignalsExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Instances/{instanceId}/Signals request. + +CreateWorkflowInstancesInstanceIdSignals Receives the given signal for the given instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId The instance that is receiving the signal. + @return ApiCreateWorkflowInstancesInstanceIdSignalsRequest +*/ +func (a *WorkflowInstanceApiService) NewCreateWorkflowInstancesInstanceIdSignalsRequest(ctx context.Context, instanceId string) ApiCreateWorkflowInstancesInstanceIdSignalsRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowInstancesInstanceIdSignalsRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + instanceId: instanceId, + } +} + +// Executes the API request +func (a *WorkflowInstanceApiService) CreateWorkflowInstancesInstanceIdSignalsExecute(r ApiCreateWorkflowInstancesInstanceIdSignalsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Signals" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.workflowsSignalRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 POST /Workflow/Instances/{instanceId}/Stop +type ApiCreateWorkflowInstancesInstanceIdStopRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + instanceId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateWorkflowInstancesInstanceIdStopRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateWorkflowInstancesInstanceIdStopRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateWorkflowInstancesInstanceIdStopRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateWorkflowInstancesInstanceIdStopRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 POST /Workflow/Instances/{instanceId}/Stop request context +func (r ApiCreateWorkflowInstancesInstanceIdStopRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateWorkflowInstancesInstanceIdStopExecute(r) +} + +/* +Creates a new V1 POST /Workflow/Instances/{instanceId}/Stop request. + +CreateWorkflowInstancesInstanceIdStop Rejects an instance, preventing it from continuing. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId The Id of the instance to reject. + @return ApiCreateWorkflowInstancesInstanceIdStopRequest +*/ +func (a *WorkflowInstanceApiService) NewCreateWorkflowInstancesInstanceIdStopRequest(ctx context.Context, instanceId string) ApiCreateWorkflowInstancesInstanceIdStopRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiCreateWorkflowInstancesInstanceIdStopRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + instanceId: instanceId, + } +} + +// Executes the API request +func (a *WorkflowInstanceApiService) CreateWorkflowInstancesInstanceIdStopExecute(r ApiCreateWorkflowInstancesInstanceIdStopRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Stop" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 DELETE /Workflow/Instances/{instanceId} +type ApiDeleteWorkflowInstancesInstanceIdRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + instanceId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeleteWorkflowInstancesInstanceIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeleteWorkflowInstancesInstanceIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeleteWorkflowInstancesInstanceIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeleteWorkflowInstancesInstanceIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 DELETE /Workflow/Instances/{instanceId} request context +func (r ApiDeleteWorkflowInstancesInstanceIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteWorkflowInstancesInstanceIdExecute(r) +} + +/* +Creates a new V1 DELETE /Workflow/Instances/{instanceId} request. + +DeleteWorkflowInstancesInstanceId Deletes the specified instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId The Id of the instance to be deleted. + @return ApiDeleteWorkflowInstancesInstanceIdRequest +*/ +func (a *WorkflowInstanceApiService) NewDeleteWorkflowInstancesInstanceIdRequest(ctx context.Context, instanceId string) ApiDeleteWorkflowInstancesInstanceIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiDeleteWorkflowInstancesInstanceIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + instanceId: instanceId, + } +} + +// Executes the API request +func (a *WorkflowInstanceApiService) DeleteWorkflowInstancesInstanceIdExecute(r ApiDeleteWorkflowInstancesInstanceIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Instances +type ApiGetWorkflowInstancesRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowInstancesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowInstancesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowInstancesRequest) QueryString(queryString string) ApiGetWorkflowInstancesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowInstancesRequest) PageReturned(pageReturned int32) ApiGetWorkflowInstancesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowInstancesRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowInstancesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowInstancesRequest) SortField(sortField string) ApiGetWorkflowInstancesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowInstancesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowInstancesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowInstancesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowInstancesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Instances request context +func (r ApiGetWorkflowInstancesRequest) Execute() ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowInstancesExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Instances request. + +GetWorkflowInstances Gets the workflow instances matching the query specifications. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowInstancesRequest +*/ +func (a *WorkflowInstanceApiService) NewGetWorkflowInstancesRequest(ctx context.Context) ApiGetWorkflowInstancesRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowInstancesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Instances +// +// @return []WorkflowsInstanceQueryResponse +func (a *WorkflowInstanceApiService) GetWorkflowInstancesExecute(r ApiGetWorkflowInstancesRequest) ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsInstanceQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Instances/AssignedToMe +type ApiGetWorkflowInstancesAssignedToMeRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowInstancesAssignedToMeRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowInstancesAssignedToMeRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowInstancesAssignedToMeRequest) QueryString(queryString string) ApiGetWorkflowInstancesAssignedToMeRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowInstancesAssignedToMeRequest) PageReturned(pageReturned int32) ApiGetWorkflowInstancesAssignedToMeRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowInstancesAssignedToMeRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowInstancesAssignedToMeRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowInstancesAssignedToMeRequest) SortField(sortField string) ApiGetWorkflowInstancesAssignedToMeRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowInstancesAssignedToMeRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowInstancesAssignedToMeRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowInstancesAssignedToMeRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowInstancesAssignedToMeRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Instances/AssignedToMe request context +func (r ApiGetWorkflowInstancesAssignedToMeRequest) Execute() ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowInstancesAssignedToMeExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Instances/AssignedToMe request. + +GetWorkflowInstancesAssignedToMe Gets the workflow instances waiting on the user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowInstancesAssignedToMeRequest +*/ +func (a *WorkflowInstanceApiService) NewGetWorkflowInstancesAssignedToMeRequest(ctx context.Context) ApiGetWorkflowInstancesAssignedToMeRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowInstancesAssignedToMeRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Instances/AssignedToMe +// +// @return []WorkflowsInstanceQueryResponse +func (a *WorkflowInstanceApiService) GetWorkflowInstancesAssignedToMeExecute(r ApiGetWorkflowInstancesAssignedToMeRequest) ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsInstanceQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/AssignedToMe" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Instances/{instanceId} +type ApiGetWorkflowInstancesInstanceIdRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + instanceId string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowInstancesInstanceIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowInstancesInstanceIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowInstancesInstanceIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowInstancesInstanceIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Instances/{instanceId} request context +func (r ApiGetWorkflowInstancesInstanceIdRequest) Execute() (*WorkflowsInstanceResponse, *http.Response, error) { + return r.ApiService.GetWorkflowInstancesInstanceIdExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Instances/{instanceId} request. + +GetWorkflowInstancesInstanceId Get information relevant for knowing where an instance is in its workflow. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId The System.Guid identifying the instance. + @return ApiGetWorkflowInstancesInstanceIdRequest +*/ +func (a *WorkflowInstanceApiService) NewGetWorkflowInstancesInstanceIdRequest(ctx context.Context, instanceId string) ApiGetWorkflowInstancesInstanceIdRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowInstancesInstanceIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + instanceId: instanceId, + } +} + +// Executes the API request V1 GET /Workflow/Instances/{instanceId} +// +// @return WorkflowsInstanceResponse +func (a *WorkflowInstanceApiService) GetWorkflowInstancesInstanceIdExecute(r ApiGetWorkflowInstancesInstanceIdRequest) (*WorkflowsInstanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowsInstanceResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V1 GET /Workflow/Instances/My +type ApiGetWorkflowInstancesMyRequest struct { + ctx context.Context + ApiService *WorkflowInstanceApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetWorkflowInstancesMyRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetWorkflowInstancesMyRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetWorkflowInstancesMyRequest) QueryString(queryString string) ApiGetWorkflowInstancesMyRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetWorkflowInstancesMyRequest) PageReturned(pageReturned int32) ApiGetWorkflowInstancesMyRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetWorkflowInstancesMyRequest) ReturnLimit(returnLimit int32) ApiGetWorkflowInstancesMyRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetWorkflowInstancesMyRequest) SortField(sortField string) ApiGetWorkflowInstancesMyRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetWorkflowInstancesMyRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetWorkflowInstancesMyRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetWorkflowInstancesMyRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetWorkflowInstancesMyRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V1 GET /Workflow/Instances/My request context +func (r ApiGetWorkflowInstancesMyRequest) Execute() ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + return r.ApiService.GetWorkflowInstancesMyExecute(r) +} + +/* +Creates a new V1 GET /Workflow/Instances/My request. + +GetWorkflowInstancesMy Gets the workflow instances started by the user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetWorkflowInstancesMyRequest +*/ +func (a *WorkflowInstanceApiService) NewGetWorkflowInstancesMyRequest(ctx context.Context) ApiGetWorkflowInstancesMyRequest { + + requestedWith := "APIClient" + apiVersion := "1" + + return ApiGetWorkflowInstancesMyRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V1 GET /Workflow/Instances/My +// +// @return []WorkflowsInstanceQueryResponse +func (a *WorkflowInstanceApiService) GetWorkflowInstancesMyExecute(r ApiGetWorkflowInstancesMyRequest) ([]WorkflowsInstanceQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WorkflowsInstanceQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "1" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Workflow/Instances/My" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v1/client.go b/v24/api/keyfactor/v1/client.go new file mode 100644 index 0000000..f4e2b06 --- /dev/null +++ b/v24/api/keyfactor/v1/client.go @@ -0,0 +1,1019 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "bytes" + "context" + "crypto/tls" + "crypto/x509" + "encoding/json" + "encoding/pem" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the Keyfactor API Reference and Utility API v1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + AuthClient AuthConfig + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AgentApi *AgentApiService + + AgentBlueprintApi *AgentBlueprintApiService + + AgentPoolApi *AgentPoolApiService + + AppSettingApi *AppSettingApiService + + AuditLogApi *AuditLogApiService + + CAConnectorApi *CAConnectorApiService + + CSRGenerationApi *CSRGenerationApiService + + CertificateApi *CertificateApiService + + CertificateAuthorityApi *CertificateAuthorityApiService + + CertificateCollectionApi *CertificateCollectionApiService + + CertificateStoreApi *CertificateStoreApiService + + CertificateStoreContainerApi *CertificateStoreContainerApiService + + CertificateStoreTypeApi *CertificateStoreTypeApiService + + ComponentInstallationApi *ComponentInstallationApiService + + CustomJobTypeApi *CustomJobTypeApiService + + DeniedAlertApi *DeniedAlertApiService + + EnrollmentApi *EnrollmentApiService + + EventHandlerRegistrationApi *EventHandlerRegistrationApiService + + ExpirationAlertApi *ExpirationAlertApiService + + ExtensionsApi *ExtensionsApiService + + IdentityProviderApi *IdentityProviderApiService + + IssuedAlertApi *IssuedAlertApiService + + KeyApi *KeyApiService + + KeyRotationAlertApi *KeyRotationAlertApiService + + LicenseApi *LicenseApiService + + LogonApi *LogonApiService + + MacEnrollmentApi *MacEnrollmentApiService + + MetadataFieldApi *MetadataFieldApiService + + MonitoringApi *MonitoringApiService + + OrchestratorJobApi *OrchestratorJobApiService + + PAMLocalEntriesApi *PAMLocalEntriesApiService + + PAMProviderApi *PAMProviderApiService + + PendingAlertApi *PendingAlertApiService + + PermissionSetApi *PermissionSetApiService + + PermissionsApi *PermissionsApiService + + ReportsApi *ReportsApiService + + SMTPApi *SMTPApiService + + SchedulingApi *SchedulingApiService + + SecurityApi *SecurityApiService + + SecurityClaimsApi *SecurityClaimsApiService + + SecurityRolePermissionsApi *SecurityRolePermissionsApiService + + SecurityRolesApi *SecurityRolesApiService + + ServerApi *ServerApiService + + ServerGroupApi *ServerGroupApiService + + ServiceAccountApi *ServiceAccountApiService + + SslApi *SslApiService + + StatusApi *StatusApiService + + TemplateApi *TemplateApiService + + UserApi *UserApiService + + WorkflowApi *WorkflowApiService + + WorkflowDefinitionApi *WorkflowDefinitionApiService + + WorkflowInstanceApi *WorkflowInstanceApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *auth_providers.Server) (*APIClient, error) { + var err error + + authConfig, err := buildHttpClientV2(cfg) + if err != nil { + return nil, err + } + + c := &APIClient{} + c.AuthClient = authConfig + c.common.client = c + + // API Services + c.AgentApi = (*AgentApiService)(&c.common) + c.AgentBlueprintApi = (*AgentBlueprintApiService)(&c.common) + c.AgentPoolApi = (*AgentPoolApiService)(&c.common) + c.AppSettingApi = (*AppSettingApiService)(&c.common) + c.AuditLogApi = (*AuditLogApiService)(&c.common) + c.CAConnectorApi = (*CAConnectorApiService)(&c.common) + c.CSRGenerationApi = (*CSRGenerationApiService)(&c.common) + c.CertificateApi = (*CertificateApiService)(&c.common) + c.CertificateAuthorityApi = (*CertificateAuthorityApiService)(&c.common) + c.CertificateCollectionApi = (*CertificateCollectionApiService)(&c.common) + c.CertificateStoreApi = (*CertificateStoreApiService)(&c.common) + c.CertificateStoreContainerApi = (*CertificateStoreContainerApiService)(&c.common) + c.CertificateStoreTypeApi = (*CertificateStoreTypeApiService)(&c.common) + c.ComponentInstallationApi = (*ComponentInstallationApiService)(&c.common) + c.CustomJobTypeApi = (*CustomJobTypeApiService)(&c.common) + c.DeniedAlertApi = (*DeniedAlertApiService)(&c.common) + c.EnrollmentApi = (*EnrollmentApiService)(&c.common) + c.EventHandlerRegistrationApi = (*EventHandlerRegistrationApiService)(&c.common) + c.ExpirationAlertApi = (*ExpirationAlertApiService)(&c.common) + c.ExtensionsApi = (*ExtensionsApiService)(&c.common) + c.IdentityProviderApi = (*IdentityProviderApiService)(&c.common) + c.IssuedAlertApi = (*IssuedAlertApiService)(&c.common) + c.KeyApi = (*KeyApiService)(&c.common) + c.KeyRotationAlertApi = (*KeyRotationAlertApiService)(&c.common) + c.LicenseApi = (*LicenseApiService)(&c.common) + c.LogonApi = (*LogonApiService)(&c.common) + c.MacEnrollmentApi = (*MacEnrollmentApiService)(&c.common) + c.MetadataFieldApi = (*MetadataFieldApiService)(&c.common) + c.MonitoringApi = (*MonitoringApiService)(&c.common) + c.OrchestratorJobApi = (*OrchestratorJobApiService)(&c.common) + c.PAMLocalEntriesApi = (*PAMLocalEntriesApiService)(&c.common) + c.PAMProviderApi = (*PAMProviderApiService)(&c.common) + c.PendingAlertApi = (*PendingAlertApiService)(&c.common) + c.PermissionSetApi = (*PermissionSetApiService)(&c.common) + c.PermissionsApi = (*PermissionsApiService)(&c.common) + c.ReportsApi = (*ReportsApiService)(&c.common) + c.SMTPApi = (*SMTPApiService)(&c.common) + c.SchedulingApi = (*SchedulingApiService)(&c.common) + c.SecurityApi = (*SecurityApiService)(&c.common) + c.SecurityClaimsApi = (*SecurityClaimsApiService)(&c.common) + c.SecurityRolePermissionsApi = (*SecurityRolePermissionsApiService)(&c.common) + c.SecurityRolesApi = (*SecurityRolesApiService)(&c.common) + c.ServerApi = (*ServerApiService)(&c.common) + c.ServerGroupApi = (*ServerGroupApiService)(&c.common) + c.ServiceAccountApi = (*ServiceAccountApiService)(&c.common) + c.SslApi = (*SslApiService)(&c.common) + c.StatusApi = (*StatusApiService)(&c.common) + c.TemplateApi = (*TemplateApiService)(&c.common) + c.UserApi = (*UserApiService)(&c.common) + c.WorkflowApi = (*WorkflowApiService)(&c.common) + c.WorkflowDefinitionApi = (*WorkflowDefinitionApiService)(&c.common) + c.WorkflowInstanceApi = (*WorkflowInstanceApiService)(&c.common) + + return c, nil +} + +// Define an interface that both CommandConfigOauth and CommandAuthConfigBasic implement +type AuthConfig interface { + Authenticate() error + GetHttpClient() (*http.Client, error) + GetServerConfig() *auth_providers.Server +} + +func buildHttpClientV2(cfg *auth_providers.Server) (AuthConfig, error) { + clientAuthType := cfg.GetAuthType() + + baseConfig := auth_providers.CommandAuthConfig{ + CommandHostName: cfg.Host, + CommandPort: cfg.Port, + CommandAPIPath: cfg.APIPath, + CommandCACert: cfg.CACertPath, + SkipVerify: cfg.SkipTLSVerify, + } + + if clientAuthType == "basic" { + basicCfg := auth_providers.CommandAuthConfigBasic{ + CommandAuthConfig: baseConfig, + Username: cfg.Username, + Password: cfg.Password, + Domain: cfg.Domain, + } + aErr := basicCfg.Authenticate() + if aErr != nil { + return nil, aErr + } + _, cErr := basicCfg.GetHttpClient() + if cErr != nil { + return nil, cErr + } + return &basicCfg, nil + } else if clientAuthType == "oauth" { + oauthCfg := auth_providers.CommandConfigOauth{ + CommandAuthConfig: baseConfig, + ClientID: cfg.ClientID, + ClientSecret: cfg.ClientSecret, + TokenURL: cfg.OAuthTokenUrl, + } + aErr := oauthCfg.Authenticate() + if aErr != nil { + return nil, aErr + } + _, cErr := oauthCfg.GetHttpClient() + if cErr != nil { + return nil, cErr + } + return &oauthCfg, nil + } else { + if clientAuthType == "" { + return nil, fmt.Errorf("invalid or missing authentication configuration") + } + return nil, fmt.Errorf("unsupported auth type '%s'", clientAuthType) + } +} + +func buildHttpClient(config *Configuration) (*http.Client, error) { + // Configure new TLS object + tlsConfig := &tls.Config{ + Renegotiation: tls.RenegotiateOnceAsClient, + } + + // Load the CA certificate + caChain, err := findCaCertificate(config) + if err != nil { + return nil, err + } + + // Add the CA certificate to the TLS config, if any CA certificate were found + if len(caChain) > 0 { + tlsConfig.RootCAs = x509.NewCertPool() + for _, caCert := range caChain { + tlsConfig.RootCAs.AddCert(caCert) + } + + // Add the pool to the TLS config + tlsConfig.ClientCAs = tlsConfig.RootCAs + } + + // Configure HTTP transports with TLS config + customTransport := http.DefaultTransport.(*http.Transport).Clone() + customTransport.TLSClientConfig = tlsConfig + customTransport.TLSHandshakeTimeout = 10 * time.Second + + // Build new HTTP object to communicate with EJBCA + customHttpClient := http.DefaultClient + customHttpClient.Transport = customTransport + customHttpClient.Timeout = 10 * time.Second + + return customHttpClient, nil +} + +func debugMessage(isDebug bool, message string, args ...interface{}) { + if isDebug { + log.Printf(message+"\n", args...) + } +} + +func cleanHostname(hostname string) (string, error) { + if hostname == "" { + return "", errors.New("KEYFACTOR_HOSTNAME cannot be empty") + } + + // When parsing a hostname without a scheme, Go will assume it is a path. + if !strings.HasPrefix(hostname, "http://") && !strings.HasPrefix(hostname, "https://") { + hostname = "http://" + hostname + } + + if u, err := url.Parse(hostname); err == nil { + return u.Host, nil + } else { + fmt.Errorf("%s is not a valid URL: %s", hostname, err) + return "", err + } +} + +func findCaCertificate(config *Configuration) ([]*x509.Certificate, error) { + // Load CA certificate + if config.caCertificates != nil { + return config.caCertificates, nil + } + + // If no CA certificate path is specified, return nil since the default CA certificates will be used + if config.CaCertificatePath == "" { + return nil, nil + } + + // Read and parse the passed certificate file which should contain the CA certificate and chain + debugMessage(config.Debug, "Reading CA certificate from %s", config.CaCertificatePath) + buf, err := ioutil.ReadFile(config.CaCertificatePath) + if err != nil { + return nil, err + } + // Decode the PEM encoded certificates into a slice of PEM blocks + chainBlocks, _, err := decodePEMBytes(buf, config.Debug) + if err != nil { + return nil, err + } + if len(chainBlocks) <= 0 { + return nil, fmt.Errorf("didn't find certificate in file at path %s", config.CaCertificatePath) + } + + caChain := []*x509.Certificate{} + for _, block := range chainBlocks { + // Parse the PEM block into an x509 certificate + cert, err := x509.ParseCertificate(block.Bytes) + if err != nil { + return nil, err + } + + caChain = append(caChain, cert) + } + + return caChain, nil +} + +func decodePEMBytes(buf []byte, isDebug bool) ([]*pem.Block, []byte, error) { + var privKey []byte + var certificates []*pem.Block + var block *pem.Block + for { + block, buf = pem.Decode(buf) + if block == nil { + break + } else if strings.Contains(block.Type, "PRIVATE KEY") { + privKey = pem.EncodeToMemory(block) + } else { + certificates = append(certificates, block) + } + debugMessage(isDebug, "Found PEM block of type %s", block.Type) + } + return certificates, privKey, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToQuery adds the provided object to the url query supporting deep object syntax +func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + parameterAddToQuery(queryParams, keyPrefix, arrayValue.Interface(), collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToQuery(queryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToQuery(queryParams, keyPrefix, v.Elem().Interface(), collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := queryParams.(type) { + case url.Values: + valuesMap.Add(keyPrefix, value) + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + + if c.AuthClient == nil { + return nil, errors.New("invalid or missing client configuration") + } + + var httpClient *http.Client + var err error + + httpClient, err = c.AuthClient.GetHttpClient() + + //if c.AuthClient. { + // dump, err := httputil.DumpRequestOut(request, true) + // if err != nil { + // return nil, err + // } + // log.Printf("\n%s\n", string(dump)) + //} + + resp, err := httpClient.Do(request) + if err != nil { + return resp, err + } + + //if c.AuthClient.Debug { + // dump, err := httputil.DumpResponse(resp, true) + // if err != nil { + // return resp, err + // } + // log.Printf("\n%s\n", string(dump)) + //} + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *auth_providers.Server { + if c.AuthClient == nil { + return nil + } + return c.AuthClient.GetServerConfig() + +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + serverConfig := c.GetConfig() + if serverConfig.Host != "" { + if serverConfig.Port > 0 && serverConfig.Port <= 65535 { + url.Host = fmt.Sprintf("%s:%d", serverConfig.Host, serverConfig.Port) + } else { + url.Host = serverConfig.Host + } + } + + // Override request scheme + url.Scheme = "https" + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + //localVarRequest.Header.Add("User-Agent", c.AuthClient.U) + localVarRequest.Header.Add("User-Agent", "OpenAPI-Generator/1.0.0/go") + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + // localVarRequest.SetBasicAuth(c.cfg.BasicAuth.UserName, c.cfg.BasicAuth.Password) + + // for header, value := range c.cfg.DefaultHeader { + // localVarRequest.Header.Add(header, value) + //} + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + + // status title (detail) + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/v24/api/keyfactor/v1/config.yml b/v24/api/keyfactor/v1/config.yml new file mode 100644 index 0000000..92bb998 --- /dev/null +++ b/v24/api/keyfactor/v1/config.yml @@ -0,0 +1,38 @@ +additionalProperties: + licenseHeader: |- + Copyright 2023 Keyfactor + 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. + environmentVariables: + - name: KEYFACTOR_HOSTNAME + goVarName: envCommandHostname + description: "Hostname of the Keyfactor Command instance. Does not include the protocol (http/https) or API suffix (/KeyfactorAPI)" + required: true + - name: KEYFACTOR_USERNAME + goVarName: envCommandUsername + description: "Username of the Keyfactor Command user using the API" + required: true + - name: KEYFACTOR_PASSWORD + goVarName: envCommandPassword + description: "Password of the Keyfactor Command user using the API" + required: true + - name: KEYFACTOR_DOMAIN + goVarName: envCommandDomain + description: "Domain of the Keyfactor Command user using the API, if using Active Directory authentication" + required: false + - name: KEYFACTOR_API_PATH + goVarName: envCommandApiPath + description: "Path to the Keyfactor Command API. Defaults to /KeyfactorAPI" + required: false + defaultValue: "/KeyfactorAPI" + - name: KEYFACTOR_LOG_LEVEL + goVarName: envCommandLogLevel + description: "Log level for the Keyfactor Command API client. Defaults to info" + required: false + defaultValue: "error" diff --git a/v24/api/keyfactor/v1/configuration.go b/v24/api/keyfactor/v1/configuration.go new file mode 100644 index 0000000..a048850 --- /dev/null +++ b/v24/api/keyfactor/v1/configuration.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "crypto/x509" + "fmt" + "net/http" + "os" + "strings" + + kfauth "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") + + EnvCommandHostname = kfauth.EnvKeyfactorHostName + EnvCommandUsername = kfauth.EnvKeyfactorUsername + EnvCommandPassword = kfauth.EnvKeyfactorPassword + EnvCommandDomain = kfauth.EnvKeyfactorDomain + EnvCommandApiPath = kfauth.EnvKeyfactorAPIPath +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"username,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + BasicAuth BasicAuth `json:"basicAuth,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + CaCertificatePath string `json:"caCertificatePath,omitempty"` + APIPath string `json:"apiPath,omitempty"` + Domain string `json:"domain,omitempty"` + HTTPClient *http.Client + caCertificates []*x509.Certificate +} + +func ValidateConfiguration(configuration *Configuration) []error { + var errs []error + if configuration.Host == "" { + errs = append(errs, fmt.Errorf("hostname cannot be empty")) + } + if configuration.BasicAuth.UserName == "" { + errs = append(errs, fmt.Errorf("username cannot be empty")) + } + if configuration.BasicAuth.Password == "" { + errs = append(errs, fmt.Errorf("password cannot be empty")) + } + + if configuration.CaCertificatePath != "" { + if _, err := os.Stat(configuration.CaCertificatePath); os.IsNotExist(err) { + errs = append(errs, fmt.Errorf("caCertificatePath does not exist: %s", configuration.CaCertificatePath)) + } + } + + if configuration.APIPath == "" { + configuration.APIPath = "/KeyfactorAPI" + } + + if configuration.Domain == "" && configuration.BasicAuth.UserName != "" && (!strings.Contains(configuration.BasicAuth.UserName, "@") && !strings.Contains(configuration.BasicAuth.UserName, "\\")) { + errs = append(errs, fmt.Errorf("domain cannot be empty when username does not contain a domain or a slash (\\) or an at (@) symbol")) + } + + return errs +} + +// GetEnvConfig returns a map of environment variables +func GetEnvConfiguration() map[string]string { + config := make(map[string]string) + return config +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration(config map[string]string) (*Configuration, error) { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + } + + var ( + hostname string + ) + confHost := config["host"] + confUser := config["username"] + confPass := config["password"] + confDomain := config["domain"] + confCaPath := config["caCertificatePath"] + confAPIPath := config["apiPath"] + + // Get hostname from environment variable + if confHost == "" { + hostname = os.Getenv(EnvCommandHostname) + } else { + hostname = confHost + } + + if hostname != "" { + if hostnameCleaned, err := cleanHostname(hostname); err == nil { + cfg.Host = hostnameCleaned + } + } + + // Get username from environment variable + if confUser == "" { + cfg.BasicAuth.UserName = os.Getenv(EnvCommandUsername) + } else { + cfg.BasicAuth.UserName = confUser + } + + if confDomain != "" { + if cfg.BasicAuth.UserName != "" && !strings.Contains(cfg.BasicAuth.UserName, confDomain) { + cfg.BasicAuth.UserName = cfg.BasicAuth.UserName + "@" + confDomain + } + } else { + cfg.Domain = os.Getenv(EnvCommandDomain) + if cfg.BasicAuth.UserName != "" && !strings.Contains(cfg.BasicAuth.UserName, cfg.Domain) && cfg.Domain != "" && !strings.Contains(cfg.BasicAuth.UserName, "@") { + cfg.BasicAuth.UserName = cfg.BasicAuth.UserName + "@" + cfg.Domain + } + } + + // Get password from environment variable + if confPass == "" { + cfg.BasicAuth.Password = os.Getenv(EnvCommandPassword) + } else { + cfg.BasicAuth.Password = confPass + } + + // Get caCertificatePath from environment variable + if confCaPath == "" { + cfg.CaCertificatePath = os.Getenv("KEYFACTOR_CA_CERTIFICATE_PATH") + } else { + cfg.CaCertificatePath = confCaPath + } + + // Get apiPath from environment variable + if confAPIPath == "" { + cfg.APIPath = os.Getenv(EnvCommandApiPath) + } else { + cfg.APIPath = confAPIPath + } + + errs := ValidateConfiguration(cfg) + if len(errs) > 0 { + outputString := "Configuration errors:\n" + for _, err := range errs { + outputString += fmt.Sprintf(" - %s\n", err) + } + return nil, fmt.Errorf(outputString) + } + + return cfg, nil +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +func (c *Configuration) SetCaCertificates(caCertificates []*x509.Certificate) { + if caCertificates != nil { + c.caCertificates = caCertificates + } +} diff --git a/v24/api/keyfactor/v1/docs/AgentApi.md b/v24/api/keyfactor/v1/docs/AgentApi.md new file mode 100644 index 0000000..ab5f94f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AgentApi.md @@ -0,0 +1,643 @@ +# \AgentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAgentsApprove**](AgentApi.md#CreateAgentsApprove) | **POST** /Agents/Approve | Approve a list of agents +[**CreateAgentsByIdFetchLogs**](AgentApi.md#CreateAgentsByIdFetchLogs) | **POST** /Agents/{id}/FetchLogs | Schedules a job on the agent to retrieve log files +[**CreateAgentsByIdReset**](AgentApi.md#CreateAgentsByIdReset) | **POST** /Agents/{id}/Reset | Reset an agent to a new state +[**CreateAgentsDisapprove**](AgentApi.md#CreateAgentsDisapprove) | **POST** /Agents/Disapprove | Disapprove a list of agents +[**CreateAgentsReset**](AgentApi.md#CreateAgentsReset) | **POST** /Agents/Reset | Reset a list of agents +[**CreateAgentsSetAuthCertificateReenrollment**](AgentApi.md#CreateAgentsSetAuthCertificateReenrollment) | **POST** /Agents/SetAuthCertificateReenrollment | Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. +[**DeleteAgentsById**](AgentApi.md#DeleteAgentsById) | **DELETE** /Agents/{id} | Delete a single agent, specified by ID +[**GetAgents**](AgentApi.md#GetAgents) | **GET** /Agents | Returns all agents according to the provided filter and output parameters +[**GetAgentsById**](AgentApi.md#GetAgentsById) | **GET** /Agents/{id} | Returns details for a single agent, specified by ID + + + +## CreateAgentsApprove + +> NewCreateAgentsApproveRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Approve a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | List of Agent Ids to Approve (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsApproveRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsApprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsApproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | List of Agent Ids to Approve | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentsByIdFetchLogs + +> NewCreateAgentsByIdFetchLogsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Schedules a job on the agent to retrieve log files + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Guid Id of the agent to schedule the job for. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsByIdFetchLogsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsByIdFetchLogs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Guid Id of the agent to schedule the job for. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsByIdFetchLogsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentsByIdReset + +> NewCreateAgentsByIdResetRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Reset an agent to a new state + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Guid Id of Agent to reset + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsByIdResetRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsByIdReset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Guid Id of Agent to reset | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsByIdResetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentsDisapprove + +> NewCreateAgentsDisapproveRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Disapprove a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | List of Agent Ids to Disapprove (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsDisapproveRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsDisapprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsDisapproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | List of Agent Ids to Disapprove | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentsReset + +> NewCreateAgentsResetRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Reset a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | List of Agent Ids to Reset (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsResetRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsReset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsResetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | List of Agent Ids to Reset | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentsSetAuthCertificateReenrollment + +> OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse NewCreateAgentsSetAuthCertificateReenrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest).Execute() + +Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest := *openapiclient.NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest("Status_example") // OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest | Object containing orchestrator ids and the new status those orchestrators should have (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewCreateAgentsSetAuthCertificateReenrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.CreateAgentsSetAuthCertificateReenrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAgentsSetAuthCertificateReenrollment`: OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.CreateAgentsSetAuthCertificateReenrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentsSetAuthCertificateReenrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest** | [**OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest**](OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md) | Object containing orchestrator ids and the new status those orchestrators should have | + +### Return type + +[**OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse**](OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAgentsById + +> NewDeleteAgentsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a single agent, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent Id to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Forces deletion of the agent. Force deleting an agent will also delete dependent data (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewDeleteAgentsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.DeleteAgentsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Agent Id to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAgentsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Forces deletion of the agent. Force deleting an agent will also delete dependent data | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgents + +> []OrchestratorsAgentResponse NewGetAgentsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all agents according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewGetAgentsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.GetAgents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgents`: []OrchestratorsAgentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.GetAgents`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorsAgentResponse**](OrchestratorsAgentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentsById + +> OrchestratorsAgentResponse NewGetAgentsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns details for a single agent, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent Id to Search + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.NewGetAgentsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.GetAgentsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentsById`: OrchestratorsAgentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.GetAgentsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Agent Id to Search | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorsAgentResponse**](OrchestratorsAgentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/AgentBlueprintApi.md b/v24/api/keyfactor/v1/docs/AgentBlueprintApi.md new file mode 100644 index 0000000..6b07c64 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AgentBlueprintApi.md @@ -0,0 +1,531 @@ +# \AgentBlueprintApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAgentBluePrintApplyBlueprint**](AgentBlueprintApi.md#CreateAgentBluePrintApplyBlueprint) | **POST** /AgentBluePrint/ApplyBlueprint | Applies the selected agent blueprint to the provided agents +[**CreateAgentBluePrintGenerateBluePrint**](AgentBlueprintApi.md#CreateAgentBluePrintGenerateBluePrint) | **POST** /AgentBluePrint/GenerateBluePrint | Generates an agent blueprint from the provided agents +[**DeleteAgentBluePrintById**](AgentBlueprintApi.md#DeleteAgentBluePrintById) | **DELETE** /AgentBluePrint/{id} | Deletes an agent blueprint by its Keyfactor identifier +[**GetAgentBluePrint**](AgentBlueprintApi.md#GetAgentBluePrint) | **GET** /AgentBluePrint | Returns all agent blueprints according to the provided filter and output parameters +[**GetAgentBluePrintById**](AgentBlueprintApi.md#GetAgentBluePrintById) | **GET** /AgentBluePrint/{id} | Returns an agent blueprint according to the provided filter and output parameters +[**GetAgentBluePrintByIdJobs**](AgentBlueprintApi.md#GetAgentBluePrintByIdJobs) | **GET** /AgentBluePrint/{id}/Jobs | Gets the agent blueprint scheduled jobs +[**GetAgentBluePrintByIdStores**](AgentBlueprintApi.md#GetAgentBluePrintByIdStores) | **GET** /AgentBluePrint/{id}/Stores | Gets the agent blueprint certificate stores + + + +## CreateAgentBluePrintApplyBlueprint + +> NewCreateAgentBluePrintApplyBlueprintRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).TemplateId(templateId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Applies the selected agent blueprint to the provided agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + templateId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent blueprint to apply to the agents (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | Agents to apply the blueprints to (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewCreateAgentBluePrintApplyBlueprintRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).TemplateId(templateId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.CreateAgentBluePrintApplyBlueprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentBluePrintApplyBlueprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **templateId** | **string** | Agent blueprint to apply to the agents | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | Agents to apply the blueprints to | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAgentBluePrintGenerateBluePrint + +> OrchestratorsAgentBlueprintResponse NewCreateAgentBluePrintGenerateBluePrintRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentId(agentId).Name(name).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Generates an agent blueprint from the provided agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + agentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent to generate a blueprint from (optional) + name := "name_example" // string | Name of the new agent blueprint (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewCreateAgentBluePrintGenerateBluePrintRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentId(agentId).Name(name).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.CreateAgentBluePrintGenerateBluePrint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAgentBluePrintGenerateBluePrint`: OrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.CreateAgentBluePrintGenerateBluePrint`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentBluePrintGenerateBluePrintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **agentId** | **string** | Agent to generate a blueprint from | + **name** | **string** | Name of the new agent blueprint | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorsAgentBlueprintResponse**](OrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAgentBluePrintById + +> NewDeleteAgentBluePrintByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes an agent blueprint by its Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor agent blueprint identifier (GUID) + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewDeleteAgentBluePrintByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.DeleteAgentBluePrintById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor agent blueprint identifier (GUID) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAgentBluePrintByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentBluePrint + +> []OrchestratorsAgentBlueprintResponse NewGetAgentBluePrintRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all agent blueprints according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewGetAgentBluePrintRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.GetAgentBluePrint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentBluePrint`: []OrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.GetAgentBluePrint`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentBluePrintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorsAgentBlueprintResponse**](OrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentBluePrintById + +> OrchestratorsAgentBlueprintResponse NewGetAgentBluePrintByIdRequest(ctx, id2).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Id(id).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an agent blueprint according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id2 := "id_example" // string | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Returns a single agent blueprint associated with the provided id (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewGetAgentBluePrintByIdRequest(context.Background(), id2).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Id(id).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.GetAgentBluePrintById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentBluePrintById`: OrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.GetAgentBluePrintById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id2** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentBluePrintByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **id** | **string** | Returns a single agent blueprint associated with the provided id | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorsAgentBlueprintResponse**](OrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentBluePrintByIdJobs + +> []OrchestratorsAgentBlueprintJobsResponse NewGetAgentBluePrintByIdJobsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the agent blueprint scheduled jobs + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewGetAgentBluePrintByIdJobsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.GetAgentBluePrintByIdJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentBluePrintByIdJobs`: []OrchestratorsAgentBlueprintJobsResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.GetAgentBluePrintByIdJobs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentBluePrintByIdJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorsAgentBlueprintJobsResponse**](OrchestratorsAgentBlueprintJobsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentBluePrintByIdStores + +> []OrchestratorsAgentBlueprintStoresResponse NewGetAgentBluePrintByIdStoresRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the agent blueprint certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.NewGetAgentBluePrintByIdStoresRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.GetAgentBluePrintByIdStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentBluePrintByIdStores`: []OrchestratorsAgentBlueprintStoresResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.GetAgentBluePrintByIdStores`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentBluePrintByIdStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorsAgentBlueprintStoresResponse**](OrchestratorsAgentBlueprintStoresResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/AgentPoolApi.md b/v24/api/keyfactor/v1/docs/AgentPoolApi.md new file mode 100644 index 0000000..e3a15af --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AgentPoolApi.md @@ -0,0 +1,444 @@ +# \AgentPoolApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAgentPools**](AgentPoolApi.md#CreateAgentPools) | **POST** /AgentPools | Creates an agent pool with the provided properties +[**DeleteAgentPoolsById**](AgentPoolApi.md#DeleteAgentPoolsById) | **DELETE** /AgentPools/{id} | Deletes the agent pool associated with the provided id +[**GetAgentPools**](AgentPoolApi.md#GetAgentPools) | **GET** /AgentPools | Returns all agent pools according to the provided filter and output parameters +[**GetAgentPoolsAgents**](AgentPoolApi.md#GetAgentPoolsAgents) | **GET** /AgentPools/Agents | Returns all agents for the default agent pool +[**GetAgentPoolsById**](AgentPoolApi.md#GetAgentPoolsById) | **GET** /AgentPools/{id} | Returns a single agent pool associated with the provided id +[**UpdateAgentPools**](AgentPoolApi.md#UpdateAgentPools) | **PUT** /AgentPools | Updates an existing agent pool with the provided properties + + + +## CreateAgentPools + +> OrchestratorPoolsAgentPoolGetResponse NewCreateAgentPoolsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorPoolsAgentPoolCreationRequest(orchestratorPoolsAgentPoolCreationRequest).Execute() + +Creates an agent pool with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorPoolsAgentPoolCreationRequest := *openapiclient.NewOrchestratorPoolsAgentPoolCreationRequest("Name_example") // OrchestratorPoolsAgentPoolCreationRequest | Agent pool properties to be applied to the new pool (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewCreateAgentPoolsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorPoolsAgentPoolCreationRequest(orchestratorPoolsAgentPoolCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.CreateAgentPools``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAgentPools`: OrchestratorPoolsAgentPoolGetResponse + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.CreateAgentPools`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAgentPoolsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorPoolsAgentPoolCreationRequest** | [**OrchestratorPoolsAgentPoolCreationRequest**](OrchestratorPoolsAgentPoolCreationRequest.md) | Agent pool properties to be applied to the new pool | + +### Return type + +[**OrchestratorPoolsAgentPoolGetResponse**](OrchestratorPoolsAgentPoolGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAgentPoolsById + +> NewDeleteAgentPoolsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the agent pool associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the agent pool + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewDeleteAgentPoolsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.DeleteAgentPoolsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the agent pool | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAgentPoolsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentPools + +> []OrchestratorPoolsAgentPoolGetResponse NewGetAgentPoolsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all agent pools according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewGetAgentPoolsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.GetAgentPools``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentPools`: []OrchestratorPoolsAgentPoolGetResponse + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.GetAgentPools`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentPoolsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorPoolsAgentPoolGetResponse**](OrchestratorPoolsAgentPoolGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentPoolsAgents + +> []OrchestratorPoolsAgentPoolAgentGetResponse NewGetAgentPoolsAgentsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all agents for the default agent pool + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewGetAgentPoolsAgentsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.GetAgentPoolsAgents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentPoolsAgents`: []OrchestratorPoolsAgentPoolAgentGetResponse + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.GetAgentPoolsAgents`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentPoolsAgentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorPoolsAgentPoolAgentGetResponse**](OrchestratorPoolsAgentPoolAgentGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAgentPoolsById + +> OrchestratorPoolsAgentPoolGetResponse NewGetAgentPoolsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single agent pool associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor (GUID) identifier of the agent pool + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewGetAgentPoolsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.GetAgentPoolsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAgentPoolsById`: OrchestratorPoolsAgentPoolGetResponse + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.GetAgentPoolsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor (GUID) identifier of the agent pool | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAgentPoolsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorPoolsAgentPoolGetResponse**](OrchestratorPoolsAgentPoolGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAgentPools + +> OrchestratorPoolsAgentPoolGetResponse NewUpdateAgentPoolsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorPoolsAgentPoolUpdateRequest(orchestratorPoolsAgentPoolUpdateRequest).Execute() + +Updates an existing agent pool with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorPoolsAgentPoolUpdateRequest := *openapiclient.NewOrchestratorPoolsAgentPoolUpdateRequest("AgentPoolId_example", "Name_example") // OrchestratorPoolsAgentPoolUpdateRequest | Agent pool properties to be applied to the existing pool (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.NewUpdateAgentPoolsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorPoolsAgentPoolUpdateRequest(orchestratorPoolsAgentPoolUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.UpdateAgentPools``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAgentPools`: OrchestratorPoolsAgentPoolGetResponse + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.UpdateAgentPools`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAgentPoolsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorPoolsAgentPoolUpdateRequest** | [**OrchestratorPoolsAgentPoolUpdateRequest**](OrchestratorPoolsAgentPoolUpdateRequest.md) | Agent pool properties to be applied to the existing pool | + +### Return type + +[**OrchestratorPoolsAgentPoolGetResponse**](OrchestratorPoolsAgentPoolGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/AlertsAlertCertificateQueryAlertCertificateQueryResponse.md b/v24/api/keyfactor/v1/docs/AlertsAlertCertificateQueryAlertCertificateQueryResponse.md new file mode 100644 index 0000000..9fab992 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsAlertCertificateQueryAlertCertificateQueryResponse.md @@ -0,0 +1,92 @@ +# AlertsAlertCertificateQueryAlertCertificateQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAlertsAlertCertificateQueryAlertCertificateQueryResponse + +`func NewAlertsAlertCertificateQueryAlertCertificateQueryResponse() *AlertsAlertCertificateQueryAlertCertificateQueryResponse` + +NewAlertsAlertCertificateQueryAlertCertificateQueryResponse instantiates a new AlertsAlertCertificateQueryAlertCertificateQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults + +`func NewAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults() *AlertsAlertCertificateQueryAlertCertificateQueryResponse` + +NewAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults instantiates a new AlertsAlertCertificateQueryAlertCertificateQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleRequest.md b/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleRequest.md new file mode 100644 index 0000000..e7be516 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleRequest.md @@ -0,0 +1,56 @@ +# AlertsAlertScheduleAlertScheduleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewAlertsAlertScheduleAlertScheduleRequest + +`func NewAlertsAlertScheduleAlertScheduleRequest() *AlertsAlertScheduleAlertScheduleRequest` + +NewAlertsAlertScheduleAlertScheduleRequest instantiates a new AlertsAlertScheduleAlertScheduleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsAlertScheduleAlertScheduleRequestWithDefaults + +`func NewAlertsAlertScheduleAlertScheduleRequestWithDefaults() *AlertsAlertScheduleAlertScheduleRequest` + +NewAlertsAlertScheduleAlertScheduleRequestWithDefaults instantiates a new AlertsAlertScheduleAlertScheduleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchedule + +`func (o *AlertsAlertScheduleAlertScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *AlertsAlertScheduleAlertScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *AlertsAlertScheduleAlertScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *AlertsAlertScheduleAlertScheduleRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleResponse.md b/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleResponse.md new file mode 100644 index 0000000..2afce86 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsAlertScheduleAlertScheduleResponse.md @@ -0,0 +1,56 @@ +# AlertsAlertScheduleAlertScheduleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewAlertsAlertScheduleAlertScheduleResponse + +`func NewAlertsAlertScheduleAlertScheduleResponse() *AlertsAlertScheduleAlertScheduleResponse` + +NewAlertsAlertScheduleAlertScheduleResponse instantiates a new AlertsAlertScheduleAlertScheduleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsAlertScheduleAlertScheduleResponseWithDefaults + +`func NewAlertsAlertScheduleAlertScheduleResponseWithDefaults() *AlertsAlertScheduleAlertScheduleResponse` + +NewAlertsAlertScheduleAlertScheduleResponseWithDefaults instantiates a new AlertsAlertScheduleAlertScheduleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchedule + +`func (o *AlertsAlertScheduleAlertScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *AlertsAlertScheduleAlertScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *AlertsAlertScheduleAlertScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *AlertsAlertScheduleAlertScheduleResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsAlertTemplateAlertTemplateResponse.md b/v24/api/keyfactor/v1/docs/AlertsAlertTemplateAlertTemplateResponse.md new file mode 100644 index 0000000..ae41d9b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsAlertTemplateAlertTemplateResponse.md @@ -0,0 +1,164 @@ +# AlertsAlertTemplateAlertTemplateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAlertsAlertTemplateAlertTemplateResponse + +`func NewAlertsAlertTemplateAlertTemplateResponse() *AlertsAlertTemplateAlertTemplateResponse` + +NewAlertsAlertTemplateAlertTemplateResponse instantiates a new AlertsAlertTemplateAlertTemplateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsAlertTemplateAlertTemplateResponseWithDefaults + +`func NewAlertsAlertTemplateAlertTemplateResponseWithDefaults() *AlertsAlertTemplateAlertTemplateResponse` + +NewAlertsAlertTemplateAlertTemplateResponseWithDefaults instantiates a new AlertsAlertTemplateAlertTemplateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsAlertTemplateAlertTemplateResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsAlertTemplateAlertTemplateResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetForestRoot + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *AlertsAlertTemplateAlertTemplateResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *AlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *AlertsAlertTemplateAlertTemplateResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *AlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertCreationRequest.md b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertCreationRequest.md new file mode 100644 index 0000000..90f3331 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertCreationRequest.md @@ -0,0 +1,227 @@ +# AlertsDeniedDeniedAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsDeniedDeniedAlertCreationRequest + +`func NewAlertsDeniedDeniedAlertCreationRequest(displayName string, subject string, message string, ) *AlertsDeniedDeniedAlertCreationRequest` + +NewAlertsDeniedDeniedAlertCreationRequest instantiates a new AlertsDeniedDeniedAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsDeniedDeniedAlertCreationRequestWithDefaults + +`func NewAlertsDeniedDeniedAlertCreationRequestWithDefaults() *AlertsDeniedDeniedAlertCreationRequest` + +NewAlertsDeniedDeniedAlertCreationRequestWithDefaults instantiates a new AlertsDeniedDeniedAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsDeniedDeniedAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsDeniedDeniedAlertCreationRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsDeniedDeniedAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsDeniedDeniedAlertCreationRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsDeniedDeniedAlertCreationRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsDeniedDeniedAlertCreationRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertDefinitionResponse.md b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertDefinitionResponse.md new file mode 100644 index 0000000..14f9b42 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertDefinitionResponse.md @@ -0,0 +1,288 @@ +# AlertsDeniedDeniedAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**AlertsAlertTemplateAlertTemplateResponse**](AlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerResponse**](EventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterResponse**](EventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewAlertsDeniedDeniedAlertDefinitionResponse + +`func NewAlertsDeniedDeniedAlertDefinitionResponse() *AlertsDeniedDeniedAlertDefinitionResponse` + +NewAlertsDeniedDeniedAlertDefinitionResponse instantiates a new AlertsDeniedDeniedAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsDeniedDeniedAlertDefinitionResponseWithDefaults + +`func NewAlertsDeniedDeniedAlertDefinitionResponseWithDefaults() *AlertsDeniedDeniedAlertDefinitionResponse` + +NewAlertsDeniedDeniedAlertDefinitionResponseWithDefaults instantiates a new AlertsDeniedDeniedAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetSubject + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetTemplate + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertUpdateRequest.md b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertUpdateRequest.md new file mode 100644 index 0000000..1b2cb9f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsDeniedDeniedAlertUpdateRequest.md @@ -0,0 +1,253 @@ +# AlertsDeniedDeniedAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsDeniedDeniedAlertUpdateRequest + +`func NewAlertsDeniedDeniedAlertUpdateRequest(displayName string, subject string, message string, ) *AlertsDeniedDeniedAlertUpdateRequest` + +NewAlertsDeniedDeniedAlertUpdateRequest instantiates a new AlertsDeniedDeniedAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsDeniedDeniedAlertUpdateRequestWithDefaults + +`func NewAlertsDeniedDeniedAlertUpdateRequestWithDefaults() *AlertsDeniedDeniedAlertUpdateRequest` + +NewAlertsDeniedDeniedAlertUpdateRequestWithDefaults instantiates a new AlertsDeniedDeniedAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsDeniedDeniedAlertUpdateRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsDeniedDeniedAlertUpdateRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsDeniedDeniedAlertUpdateRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsDeniedDeniedAlertUpdateRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertCreationRequest.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertCreationRequest.md new file mode 100644 index 0000000..4f74c3e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertCreationRequest.md @@ -0,0 +1,294 @@ +# AlertsExpirationExpirationAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**ExpirationWarningDays** | **int32** | | +**CertificateQueryId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] [default to false] + +## Methods + +### NewAlertsExpirationExpirationAlertCreationRequest + +`func NewAlertsExpirationExpirationAlertCreationRequest(displayName string, expirationWarningDays int32, ) *AlertsExpirationExpirationAlertCreationRequest` + +NewAlertsExpirationExpirationAlertCreationRequest instantiates a new AlertsExpirationExpirationAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertCreationRequestWithDefaults + +`func NewAlertsExpirationExpirationAlertCreationRequestWithDefaults() *AlertsExpirationExpirationAlertCreationRequest` + +NewAlertsExpirationExpirationAlertCreationRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + + +### GetCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryId() int32` + +GetCertificateQueryId returns the CertificateQueryId field if non-nil, zero value otherwise. + +### GetCertificateQueryIdOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryIdOk() (*int32, bool)` + +GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetCertificateQueryId(v int32)` + +SetCertificateQueryId sets CertificateQueryId field to given value. + +### HasCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasCertificateQueryId() bool` + +HasCertificateQueryId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsExpirationExpirationAlertCreationRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertCreationRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsExpirationExpirationAlertCreationRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertDefinitionResponse.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertDefinitionResponse.md new file mode 100644 index 0000000..33b0f75 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertDefinitionResponse.md @@ -0,0 +1,484 @@ +# AlertsExpirationExpirationAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**ExpirationWarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**CertificateQuery** | Pointer to [**AlertsAlertCertificateQueryAlertCertificateQueryResponse**](AlertsAlertCertificateQueryAlertCertificateQueryResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerResponse**](EventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterResponse**](EventHandlerEventHandlerParameterResponse.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] +**WorkflowId** | Pointer to **NullableString** | | [optional] +**WorkflowName** | Pointer to **NullableString** | | [optional] +**WorkflowPublishedVersion** | Pointer to **NullableInt32** | | [optional] +**WorkflowEnabled** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewAlertsExpirationExpirationAlertDefinitionResponse + +`func NewAlertsExpirationExpirationAlertDefinitionResponse() *AlertsExpirationExpirationAlertDefinitionResponse` + +NewAlertsExpirationExpirationAlertDefinitionResponse instantiates a new AlertsExpirationExpirationAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertDefinitionResponseWithDefaults + +`func NewAlertsExpirationExpirationAlertDefinitionResponseWithDefaults() *AlertsExpirationExpirationAlertDefinitionResponse` + +NewAlertsExpirationExpirationAlertDefinitionResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetSubject + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + +### HasExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasExpirationWarningDays() bool` + +HasExpirationWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetCertificateQuery + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQuery() AlertsAlertCertificateQueryAlertCertificateQueryResponse` + +GetCertificateQuery returns the CertificateQuery field if non-nil, zero value otherwise. + +### GetCertificateQueryOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQueryOk() (*AlertsAlertCertificateQueryAlertCertificateQueryResponse, bool)` + +GetCertificateQueryOk returns a tuple with the CertificateQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQuery + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetCertificateQuery(v AlertsAlertCertificateQueryAlertCertificateQueryResponse)` + +SetCertificateQuery sets CertificateQuery field to given value. + +### HasCertificateQuery + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasCertificateQuery() bool` + +HasCertificateQuery returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### SetWorkflowIdNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowIdNil(b bool)` + + SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil + +### UnsetWorkflowId +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowId()` + +UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +### GetWorkflowName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowName() string` + +GetWorkflowName returns the WorkflowName field if non-nil, zero value otherwise. + +### GetWorkflowNameOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowNameOk() (*string, bool)` + +GetWorkflowNameOk returns a tuple with the WorkflowName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowName(v string)` + +SetWorkflowName sets WorkflowName field to given value. + +### HasWorkflowName + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowName() bool` + +HasWorkflowName returns a boolean if a field has been set. + +### SetWorkflowNameNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowNameNil(b bool)` + + SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil + +### UnsetWorkflowName +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowName()` + +UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +### GetWorkflowPublishedVersion + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowPublishedVersion() int32` + +GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field if non-nil, zero value otherwise. + +### GetWorkflowPublishedVersionOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool)` + +GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowPublishedVersion + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowPublishedVersion(v int32)` + +SetWorkflowPublishedVersion sets WorkflowPublishedVersion field to given value. + +### HasWorkflowPublishedVersion + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowPublishedVersion() bool` + +HasWorkflowPublishedVersion returns a boolean if a field has been set. + +### SetWorkflowPublishedVersionNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowPublishedVersionNil(b bool)` + + SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil + +### UnsetWorkflowPublishedVersion +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowPublishedVersion()` + +UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +### GetWorkflowEnabled + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowEnabled() bool` + +GetWorkflowEnabled returns the WorkflowEnabled field if non-nil, zero value otherwise. + +### GetWorkflowEnabledOk + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool)` + +GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowEnabled + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowEnabled(v bool)` + +SetWorkflowEnabled sets WorkflowEnabled field to given value. + +### HasWorkflowEnabled + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowEnabled() bool` + +HasWorkflowEnabled returns a boolean if a field has been set. + +### SetWorkflowEnabledNil + +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowEnabledNil(b bool)` + + SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil + +### UnsetWorkflowEnabled +`func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowEnabled()` + +UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertResponse.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertResponse.md new file mode 100644 index 0000000..f956241 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertResponse.md @@ -0,0 +1,308 @@ +# AlertsExpirationExpirationAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CAName** | Pointer to **NullableString** | | [optional] +**CARow** | Pointer to **int64** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**Expiry** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**SendDate** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAlertsExpirationExpirationAlertResponse + +`func NewAlertsExpirationExpirationAlertResponse() *AlertsExpirationExpirationAlertResponse` + +NewAlertsExpirationExpirationAlertResponse instantiates a new AlertsExpirationExpirationAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertResponseWithDefaults + +`func NewAlertsExpirationExpirationAlertResponseWithDefaults() *AlertsExpirationExpirationAlertResponse` + +NewAlertsExpirationExpirationAlertResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCAName + +`func (o *AlertsExpirationExpirationAlertResponse) GetCAName() string` + +GetCAName returns the CAName field if non-nil, zero value otherwise. + +### GetCANameOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetCANameOk() (*string, bool)` + +GetCANameOk returns a tuple with the CAName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAName + +`func (o *AlertsExpirationExpirationAlertResponse) SetCAName(v string)` + +SetCAName sets CAName field to given value. + +### HasCAName + +`func (o *AlertsExpirationExpirationAlertResponse) HasCAName() bool` + +HasCAName returns a boolean if a field has been set. + +### SetCANameNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetCANameNil(b bool)` + + SetCANameNil sets the value for CAName to be an explicit nil + +### UnsetCAName +`func (o *AlertsExpirationExpirationAlertResponse) UnsetCAName()` + +UnsetCAName ensures that no value is present for CAName, not even an explicit nil +### GetCARow + +`func (o *AlertsExpirationExpirationAlertResponse) GetCARow() int64` + +GetCARow returns the CARow field if non-nil, zero value otherwise. + +### GetCARowOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetCARowOk() (*int64, bool)` + +GetCARowOk returns a tuple with the CARow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARow + +`func (o *AlertsExpirationExpirationAlertResponse) SetCARow(v int64)` + +SetCARow sets CARow field to given value. + +### HasCARow + +`func (o *AlertsExpirationExpirationAlertResponse) HasCARow() bool` + +HasCARow returns a boolean if a field has been set. + +### GetIssuedCN + +`func (o *AlertsExpirationExpirationAlertResponse) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *AlertsExpirationExpirationAlertResponse) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *AlertsExpirationExpirationAlertResponse) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *AlertsExpirationExpirationAlertResponse) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetExpiry + +`func (o *AlertsExpirationExpirationAlertResponse) GetExpiry() string` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetExpiryOk() (*string, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *AlertsExpirationExpirationAlertResponse) SetExpiry(v string)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *AlertsExpirationExpirationAlertResponse) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### SetExpiryNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetExpiryNil(b bool)` + + SetExpiryNil sets the value for Expiry to be an explicit nil + +### UnsetExpiry +`func (o *AlertsExpirationExpirationAlertResponse) UnsetExpiry()` + +UnsetExpiry ensures that no value is present for Expiry, not even an explicit nil +### GetSubject + +`func (o *AlertsExpirationExpirationAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsExpirationExpirationAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsExpirationExpirationAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsExpirationExpirationAlertResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsExpirationExpirationAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsExpirationExpirationAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsExpirationExpirationAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsExpirationExpirationAlertResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *AlertsExpirationExpirationAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsExpirationExpirationAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsExpirationExpirationAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsExpirationExpirationAlertResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetSendDate + +`func (o *AlertsExpirationExpirationAlertResponse) GetSendDate() string` + +GetSendDate returns the SendDate field if non-nil, zero value otherwise. + +### GetSendDateOk + +`func (o *AlertsExpirationExpirationAlertResponse) GetSendDateOk() (*string, bool)` + +GetSendDateOk returns a tuple with the SendDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendDate + +`func (o *AlertsExpirationExpirationAlertResponse) SetSendDate(v string)` + +SetSendDate sets SendDate field to given value. + +### HasSendDate + +`func (o *AlertsExpirationExpirationAlertResponse) HasSendDate() bool` + +HasSendDate returns a boolean if a field has been set. + +### SetSendDateNil + +`func (o *AlertsExpirationExpirationAlertResponse) SetSendDateNil(b bool)` + + SetSendDateNil sets the value for SendDate to be an explicit nil + +### UnsetSendDate +`func (o *AlertsExpirationExpirationAlertResponse) UnsetSendDate()` + +UnsetSendDate ensures that no value is present for SendDate, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestAllRequest.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestAllRequest.md new file mode 100644 index 0000000..3334af9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestAllRequest.md @@ -0,0 +1,108 @@ +# AlertsExpirationExpirationAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsExpirationExpirationAlertTestAllRequest + +`func NewAlertsExpirationExpirationAlertTestAllRequest() *AlertsExpirationExpirationAlertTestAllRequest` + +NewAlertsExpirationExpirationAlertTestAllRequest instantiates a new AlertsExpirationExpirationAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertTestAllRequestWithDefaults + +`func NewAlertsExpirationExpirationAlertTestAllRequestWithDefaults() *AlertsExpirationExpirationAlertTestAllRequest` + +NewAlertsExpirationExpirationAlertTestAllRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestRequest.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestRequest.md new file mode 100644 index 0000000..d2829ea --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestRequest.md @@ -0,0 +1,134 @@ +# AlertsExpirationExpirationAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsExpirationExpirationAlertTestRequest + +`func NewAlertsExpirationExpirationAlertTestRequest() *AlertsExpirationExpirationAlertTestRequest` + +NewAlertsExpirationExpirationAlertTestRequest instantiates a new AlertsExpirationExpirationAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertTestRequestWithDefaults + +`func NewAlertsExpirationExpirationAlertTestRequestWithDefaults() *AlertsExpirationExpirationAlertTestRequest` + +NewAlertsExpirationExpirationAlertTestRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *AlertsExpirationExpirationAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *AlertsExpirationExpirationAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *AlertsExpirationExpirationAlertTestRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsExpirationExpirationAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsExpirationExpirationAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestResponse.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestResponse.md new file mode 100644 index 0000000..7202f28 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertTestResponse.md @@ -0,0 +1,92 @@ +# AlertsExpirationExpirationAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExpirationAlerts** | Pointer to [**[]AlertsExpirationExpirationAlertResponse**](AlertsExpirationExpirationAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to [**CSSCMSDataModelEnumsAlertBuildResult**](CSSCMSDataModelEnumsAlertBuildResult.md) | | [optional] + +## Methods + +### NewAlertsExpirationExpirationAlertTestResponse + +`func NewAlertsExpirationExpirationAlertTestResponse() *AlertsExpirationExpirationAlertTestResponse` + +NewAlertsExpirationExpirationAlertTestResponse instantiates a new AlertsExpirationExpirationAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertTestResponseWithDefaults + +`func NewAlertsExpirationExpirationAlertTestResponseWithDefaults() *AlertsExpirationExpirationAlertTestResponse` + +NewAlertsExpirationExpirationAlertTestResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpirationAlerts + +`func (o *AlertsExpirationExpirationAlertTestResponse) GetExpirationAlerts() []AlertsExpirationExpirationAlertResponse` + +GetExpirationAlerts returns the ExpirationAlerts field if non-nil, zero value otherwise. + +### GetExpirationAlertsOk + +`func (o *AlertsExpirationExpirationAlertTestResponse) GetExpirationAlertsOk() (*[]AlertsExpirationExpirationAlertResponse, bool)` + +GetExpirationAlertsOk returns a tuple with the ExpirationAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlerts + +`func (o *AlertsExpirationExpirationAlertTestResponse) SetExpirationAlerts(v []AlertsExpirationExpirationAlertResponse)` + +SetExpirationAlerts sets ExpirationAlerts field to given value. + +### HasExpirationAlerts + +`func (o *AlertsExpirationExpirationAlertTestResponse) HasExpirationAlerts() bool` + +HasExpirationAlerts returns a boolean if a field has been set. + +### SetExpirationAlertsNil + +`func (o *AlertsExpirationExpirationAlertTestResponse) SetExpirationAlertsNil(b bool)` + + SetExpirationAlertsNil sets the value for ExpirationAlerts to be an explicit nil + +### UnsetExpirationAlerts +`func (o *AlertsExpirationExpirationAlertTestResponse) UnsetExpirationAlerts()` + +UnsetExpirationAlerts ensures that no value is present for ExpirationAlerts, not even an explicit nil +### GetAlertBuildResult + +`func (o *AlertsExpirationExpirationAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *AlertsExpirationExpirationAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *AlertsExpirationExpirationAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *AlertsExpirationExpirationAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertUpdateRequest.md b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertUpdateRequest.md new file mode 100644 index 0000000..ace4ecc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsExpirationExpirationAlertUpdateRequest.md @@ -0,0 +1,320 @@ +# AlertsExpirationExpirationAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**ExpirationWarningDays** | **int32** | | +**CertificateQueryId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] [default to false] + +## Methods + +### NewAlertsExpirationExpirationAlertUpdateRequest + +`func NewAlertsExpirationExpirationAlertUpdateRequest(displayName string, expirationWarningDays int32, ) *AlertsExpirationExpirationAlertUpdateRequest` + +NewAlertsExpirationExpirationAlertUpdateRequest instantiates a new AlertsExpirationExpirationAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsExpirationExpirationAlertUpdateRequestWithDefaults + +`func NewAlertsExpirationExpirationAlertUpdateRequestWithDefaults() *AlertsExpirationExpirationAlertUpdateRequest` + +NewAlertsExpirationExpirationAlertUpdateRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + + +### GetCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryId() int32` + +GetCertificateQueryId returns the CertificateQueryId field if non-nil, zero value otherwise. + +### GetCertificateQueryIdOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryIdOk() (*int32, bool)` + +GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetCertificateQueryId(v int32)` + +SetCertificateQueryId sets CertificateQueryId field to given value. + +### HasCertificateQueryId + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasCertificateQueryId() bool` + +HasCertificateQueryId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsExpirationExpirationAlertUpdateRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertCreationRequest.md b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertCreationRequest.md new file mode 100644 index 0000000..c95157a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertCreationRequest.md @@ -0,0 +1,227 @@ +# AlertsIssuedIssuedAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsIssuedIssuedAlertCreationRequest + +`func NewAlertsIssuedIssuedAlertCreationRequest(displayName string, subject string, message string, ) *AlertsIssuedIssuedAlertCreationRequest` + +NewAlertsIssuedIssuedAlertCreationRequest instantiates a new AlertsIssuedIssuedAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsIssuedIssuedAlertCreationRequestWithDefaults + +`func NewAlertsIssuedIssuedAlertCreationRequestWithDefaults() *AlertsIssuedIssuedAlertCreationRequest` + +NewAlertsIssuedIssuedAlertCreationRequestWithDefaults instantiates a new AlertsIssuedIssuedAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsIssuedIssuedAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsIssuedIssuedAlertCreationRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsIssuedIssuedAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsIssuedIssuedAlertCreationRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsIssuedIssuedAlertCreationRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsIssuedIssuedAlertCreationRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertDefinitionResponse.md b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertDefinitionResponse.md new file mode 100644 index 0000000..8eef995 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertDefinitionResponse.md @@ -0,0 +1,288 @@ +# AlertsIssuedIssuedAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**AlertsAlertTemplateAlertTemplateResponse**](AlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerResponse**](EventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterResponse**](EventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewAlertsIssuedIssuedAlertDefinitionResponse + +`func NewAlertsIssuedIssuedAlertDefinitionResponse() *AlertsIssuedIssuedAlertDefinitionResponse` + +NewAlertsIssuedIssuedAlertDefinitionResponse instantiates a new AlertsIssuedIssuedAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsIssuedIssuedAlertDefinitionResponseWithDefaults + +`func NewAlertsIssuedIssuedAlertDefinitionResponseWithDefaults() *AlertsIssuedIssuedAlertDefinitionResponse` + +NewAlertsIssuedIssuedAlertDefinitionResponseWithDefaults instantiates a new AlertsIssuedIssuedAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetSubject + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetTemplate + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertUpdateRequest.md b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertUpdateRequest.md new file mode 100644 index 0000000..0855d1b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsIssuedIssuedAlertUpdateRequest.md @@ -0,0 +1,253 @@ +# AlertsIssuedIssuedAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsIssuedIssuedAlertUpdateRequest + +`func NewAlertsIssuedIssuedAlertUpdateRequest(displayName string, subject string, message string, ) *AlertsIssuedIssuedAlertUpdateRequest` + +NewAlertsIssuedIssuedAlertUpdateRequest instantiates a new AlertsIssuedIssuedAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsIssuedIssuedAlertUpdateRequestWithDefaults + +`func NewAlertsIssuedIssuedAlertUpdateRequestWithDefaults() *AlertsIssuedIssuedAlertUpdateRequest` + +NewAlertsIssuedIssuedAlertUpdateRequestWithDefaults instantiates a new AlertsIssuedIssuedAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsIssuedIssuedAlertUpdateRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsIssuedIssuedAlertUpdateRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsIssuedIssuedAlertUpdateRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsIssuedIssuedAlertUpdateRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertCreationRequest.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertCreationRequest.md new file mode 100644 index 0000000..b35199c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertCreationRequest.md @@ -0,0 +1,232 @@ +# AlertsKeyRotationKeyRotationAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**RotationWarningDays** | **int32** | | +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertCreationRequest + +`func NewAlertsKeyRotationKeyRotationAlertCreationRequest(displayName string, rotationWarningDays int32, ) *AlertsKeyRotationKeyRotationAlertCreationRequest` + +NewAlertsKeyRotationKeyRotationAlertCreationRequest instantiates a new AlertsKeyRotationKeyRotationAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertCreationRequest` + +NewAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + + +### GetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertDefinitionResponse.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertDefinitionResponse.md new file mode 100644 index 0000000..18d7f96 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertDefinitionResponse.md @@ -0,0 +1,458 @@ +# AlertsKeyRotationKeyRotationAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipient** | Pointer to **NullableString** | | [optional] +**RotationWarningDays** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerResponse**](EventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterResponse**](EventHandlerEventHandlerParameterResponse.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] +**WorkflowId** | Pointer to **NullableString** | | [optional] +**WorkflowName** | Pointer to **NullableString** | | [optional] +**WorkflowPublishedVersion** | Pointer to **NullableInt32** | | [optional] +**WorkflowEnabled** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertDefinitionResponse + +`func NewAlertsKeyRotationKeyRotationAlertDefinitionResponse() *AlertsKeyRotationKeyRotationAlertDefinitionResponse` + +NewAlertsKeyRotationKeyRotationAlertDefinitionResponse instantiates a new AlertsKeyRotationKeyRotationAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertDefinitionResponse` + +NewAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + +### SetRecipientNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipientNil(b bool)` + + SetRecipientNil sets the value for Recipient to be an explicit nil + +### UnsetRecipient +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetRecipient()` + +UnsetRecipient ensures that no value is present for Recipient, not even an explicit nil +### GetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + +### HasRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRotationWarningDays() bool` + +HasRotationWarningDays returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### SetWorkflowIdNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowIdNil(b bool)` + + SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil + +### UnsetWorkflowId +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowId()` + +UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +### GetWorkflowName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowName() string` + +GetWorkflowName returns the WorkflowName field if non-nil, zero value otherwise. + +### GetWorkflowNameOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowNameOk() (*string, bool)` + +GetWorkflowNameOk returns a tuple with the WorkflowName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowName(v string)` + +SetWorkflowName sets WorkflowName field to given value. + +### HasWorkflowName + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowName() bool` + +HasWorkflowName returns a boolean if a field has been set. + +### SetWorkflowNameNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowNameNil(b bool)` + + SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil + +### UnsetWorkflowName +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowName()` + +UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +### GetWorkflowPublishedVersion + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowPublishedVersion() int32` + +GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field if non-nil, zero value otherwise. + +### GetWorkflowPublishedVersionOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool)` + +GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowPublishedVersion + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowPublishedVersion(v int32)` + +SetWorkflowPublishedVersion sets WorkflowPublishedVersion field to given value. + +### HasWorkflowPublishedVersion + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowPublishedVersion() bool` + +HasWorkflowPublishedVersion returns a boolean if a field has been set. + +### SetWorkflowPublishedVersionNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowPublishedVersionNil(b bool)` + + SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil + +### UnsetWorkflowPublishedVersion +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowPublishedVersion()` + +UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +### GetWorkflowEnabled + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowEnabled() bool` + +GetWorkflowEnabled returns the WorkflowEnabled field if non-nil, zero value otherwise. + +### GetWorkflowEnabledOk + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool)` + +GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowEnabled + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowEnabled(v bool)` + +SetWorkflowEnabled sets WorkflowEnabled field to given value. + +### HasWorkflowEnabled + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowEnabled() bool` + +HasWorkflowEnabled returns a boolean if a field has been set. + +### SetWorkflowEnabledNil + +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowEnabledNil(b bool)` + + SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil + +### UnsetWorkflowEnabled +`func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowEnabled()` + +UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertResponse.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertResponse.md new file mode 100644 index 0000000..c483824 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertResponse.md @@ -0,0 +1,138 @@ +# AlertsKeyRotationKeyRotationAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipient** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertResponse + +`func NewAlertsKeyRotationKeyRotationAlertResponse() *AlertsKeyRotationKeyRotationAlertResponse` + +NewAlertsKeyRotationKeyRotationAlertResponse instantiates a new AlertsKeyRotationKeyRotationAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertResponseWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertResponse` + +NewAlertsKeyRotationKeyRotationAlertResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + +### SetRecipientNil + +`func (o *AlertsKeyRotationKeyRotationAlertResponse) SetRecipientNil(b bool)` + + SetRecipientNil sets the value for Recipient to be an explicit nil + +### UnsetRecipient +`func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetRecipient()` + +UnsetRecipient ensures that no value is present for Recipient, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestAllRequest.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestAllRequest.md new file mode 100644 index 0000000..cd0ec42 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestAllRequest.md @@ -0,0 +1,108 @@ +# AlertsKeyRotationKeyRotationAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertTestAllRequest + +`func NewAlertsKeyRotationKeyRotationAlertTestAllRequest() *AlertsKeyRotationKeyRotationAlertTestAllRequest` + +NewAlertsKeyRotationKeyRotationAlertTestAllRequest instantiates a new AlertsKeyRotationKeyRotationAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertTestAllRequest` + +NewAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestRequest.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestRequest.md new file mode 100644 index 0000000..d56a715 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestRequest.md @@ -0,0 +1,134 @@ +# AlertsKeyRotationKeyRotationAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertTestRequest + +`func NewAlertsKeyRotationKeyRotationAlertTestRequest() *AlertsKeyRotationKeyRotationAlertTestRequest` + +NewAlertsKeyRotationKeyRotationAlertTestRequest instantiates a new AlertsKeyRotationKeyRotationAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertTestRequest` + +NewAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestResponse.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestResponse.md new file mode 100644 index 0000000..ae98925 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertTestResponse.md @@ -0,0 +1,92 @@ +# AlertsKeyRotationKeyRotationAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyRotationAlerts** | Pointer to [**[]AlertsKeyRotationKeyRotationAlertResponse**](AlertsKeyRotationKeyRotationAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to [**CSSCMSDataModelEnumsAlertBuildResult**](CSSCMSDataModelEnumsAlertBuildResult.md) | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertTestResponse + +`func NewAlertsKeyRotationKeyRotationAlertTestResponse() *AlertsKeyRotationKeyRotationAlertTestResponse` + +NewAlertsKeyRotationKeyRotationAlertTestResponse instantiates a new AlertsKeyRotationKeyRotationAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertTestResponse` + +NewAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyRotationAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlerts() []AlertsKeyRotationKeyRotationAlertResponse` + +GetKeyRotationAlerts returns the KeyRotationAlerts field if non-nil, zero value otherwise. + +### GetKeyRotationAlertsOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlertsOk() (*[]AlertsKeyRotationKeyRotationAlertResponse, bool)` + +GetKeyRotationAlertsOk returns a tuple with the KeyRotationAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRotationAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) SetKeyRotationAlerts(v []AlertsKeyRotationKeyRotationAlertResponse)` + +SetKeyRotationAlerts sets KeyRotationAlerts field to given value. + +### HasKeyRotationAlerts + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) HasKeyRotationAlerts() bool` + +HasKeyRotationAlerts returns a boolean if a field has been set. + +### SetKeyRotationAlertsNil + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) SetKeyRotationAlertsNil(b bool)` + + SetKeyRotationAlertsNil sets the value for KeyRotationAlerts to be an explicit nil + +### UnsetKeyRotationAlerts +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) UnsetKeyRotationAlerts()` + +UnsetKeyRotationAlerts ensures that no value is present for KeyRotationAlerts, not even an explicit nil +### GetAlertBuildResult + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *AlertsKeyRotationKeyRotationAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertUpdateRequest.md b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertUpdateRequest.md new file mode 100644 index 0000000..001a5a7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsKeyRotationKeyRotationAlertUpdateRequest.md @@ -0,0 +1,258 @@ +# AlertsKeyRotationKeyRotationAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**RotationWarningDays** | **int32** | | +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsKeyRotationKeyRotationAlertUpdateRequest + +`func NewAlertsKeyRotationKeyRotationAlertUpdateRequest(displayName string, rotationWarningDays int32, ) *AlertsKeyRotationKeyRotationAlertUpdateRequest` + +NewAlertsKeyRotationKeyRotationAlertUpdateRequest instantiates a new AlertsKeyRotationKeyRotationAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults + +`func NewAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertUpdateRequest` + +NewAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + + +### GetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil +### GetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertCreationRequest.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertCreationRequest.md new file mode 100644 index 0000000..a99e922 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertCreationRequest.md @@ -0,0 +1,227 @@ +# AlertsPendingPendingAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertCreationRequest + +`func NewAlertsPendingPendingAlertCreationRequest(displayName string, subject string, message string, ) *AlertsPendingPendingAlertCreationRequest` + +NewAlertsPendingPendingAlertCreationRequest instantiates a new AlertsPendingPendingAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertCreationRequestWithDefaults + +`func NewAlertsPendingPendingAlertCreationRequestWithDefaults() *AlertsPendingPendingAlertCreationRequest` + +NewAlertsPendingPendingAlertCreationRequestWithDefaults instantiates a new AlertsPendingPendingAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *AlertsPendingPendingAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsPendingPendingAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsPendingPendingAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsPendingPendingAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsPendingPendingAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsPendingPendingAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsPendingPendingAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsPendingPendingAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsPendingPendingAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsPendingPendingAlertCreationRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsPendingPendingAlertCreationRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsPendingPendingAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsPendingPendingAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsPendingPendingAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsPendingPendingAlertCreationRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsPendingPendingAlertCreationRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsPendingPendingAlertCreationRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsPendingPendingAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsPendingPendingAlertCreationRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsPendingPendingAlertCreationRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertDefinitionResponse.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertDefinitionResponse.md new file mode 100644 index 0000000..a9dbfb7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertDefinitionResponse.md @@ -0,0 +1,288 @@ +# AlertsPendingPendingAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**AlertsAlertTemplateAlertTemplateResponse**](AlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerResponse**](EventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterResponse**](EventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertDefinitionResponse + +`func NewAlertsPendingPendingAlertDefinitionResponse() *AlertsPendingPendingAlertDefinitionResponse` + +NewAlertsPendingPendingAlertDefinitionResponse instantiates a new AlertsPendingPendingAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertDefinitionResponseWithDefaults + +`func NewAlertsPendingPendingAlertDefinitionResponseWithDefaults() *AlertsPendingPendingAlertDefinitionResponse` + +NewAlertsPendingPendingAlertDefinitionResponseWithDefaults instantiates a new AlertsPendingPendingAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetSubject + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetTemplate + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsPendingPendingAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsPendingPendingAlertDefinitionResponse) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertResponse.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertResponse.md new file mode 100644 index 0000000..9c3cec8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertResponse.md @@ -0,0 +1,236 @@ +# AlertsPendingPendingAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**CARequestId** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **NullableString** | | [optional] +**LogicalName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertResponse + +`func NewAlertsPendingPendingAlertResponse() *AlertsPendingPendingAlertResponse` + +NewAlertsPendingPendingAlertResponse instantiates a new AlertsPendingPendingAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertResponseWithDefaults + +`func NewAlertsPendingPendingAlertResponseWithDefaults() *AlertsPendingPendingAlertResponse` + +NewAlertsPendingPendingAlertResponseWithDefaults instantiates a new AlertsPendingPendingAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *AlertsPendingPendingAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsPendingPendingAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsPendingPendingAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *AlertsPendingPendingAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *AlertsPendingPendingAlertResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *AlertsPendingPendingAlertResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *AlertsPendingPendingAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsPendingPendingAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsPendingPendingAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlertsPendingPendingAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *AlertsPendingPendingAlertResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *AlertsPendingPendingAlertResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *AlertsPendingPendingAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsPendingPendingAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsPendingPendingAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsPendingPendingAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsPendingPendingAlertResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsPendingPendingAlertResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetCARequestId + +`func (o *AlertsPendingPendingAlertResponse) GetCARequestId() int32` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *AlertsPendingPendingAlertResponse) GetCARequestIdOk() (*int32, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *AlertsPendingPendingAlertResponse) SetCARequestId(v int32)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *AlertsPendingPendingAlertResponse) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *AlertsPendingPendingAlertResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *AlertsPendingPendingAlertResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *AlertsPendingPendingAlertResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *AlertsPendingPendingAlertResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### SetCommonNameNil + +`func (o *AlertsPendingPendingAlertResponse) SetCommonNameNil(b bool)` + + SetCommonNameNil sets the value for CommonName to be an explicit nil + +### UnsetCommonName +`func (o *AlertsPendingPendingAlertResponse) UnsetCommonName()` + +UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +### GetLogicalName + +`func (o *AlertsPendingPendingAlertResponse) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *AlertsPendingPendingAlertResponse) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *AlertsPendingPendingAlertResponse) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *AlertsPendingPendingAlertResponse) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### SetLogicalNameNil + +`func (o *AlertsPendingPendingAlertResponse) SetLogicalNameNil(b bool)` + + SetLogicalNameNil sets the value for LogicalName to be an explicit nil + +### UnsetLogicalName +`func (o *AlertsPendingPendingAlertResponse) UnsetLogicalName()` + +UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestAllRequest.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestAllRequest.md new file mode 100644 index 0000000..54e76c8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestAllRequest.md @@ -0,0 +1,56 @@ +# AlertsPendingPendingAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertTestAllRequest + +`func NewAlertsPendingPendingAlertTestAllRequest() *AlertsPendingPendingAlertTestAllRequest` + +NewAlertsPendingPendingAlertTestAllRequest instantiates a new AlertsPendingPendingAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertTestAllRequestWithDefaults + +`func NewAlertsPendingPendingAlertTestAllRequestWithDefaults() *AlertsPendingPendingAlertTestAllRequest` + +NewAlertsPendingPendingAlertTestAllRequestWithDefaults instantiates a new AlertsPendingPendingAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSendAlerts + +`func (o *AlertsPendingPendingAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsPendingPendingAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsPendingPendingAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsPendingPendingAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestRequest.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestRequest.md new file mode 100644 index 0000000..732f51c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestRequest.md @@ -0,0 +1,82 @@ +# AlertsPendingPendingAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertTestRequest + +`func NewAlertsPendingPendingAlertTestRequest() *AlertsPendingPendingAlertTestRequest` + +NewAlertsPendingPendingAlertTestRequest instantiates a new AlertsPendingPendingAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertTestRequestWithDefaults + +`func NewAlertsPendingPendingAlertTestRequestWithDefaults() *AlertsPendingPendingAlertTestRequest` + +NewAlertsPendingPendingAlertTestRequestWithDefaults instantiates a new AlertsPendingPendingAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *AlertsPendingPendingAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *AlertsPendingPendingAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *AlertsPendingPendingAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *AlertsPendingPendingAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *AlertsPendingPendingAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *AlertsPendingPendingAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *AlertsPendingPendingAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *AlertsPendingPendingAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestResponse.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestResponse.md new file mode 100644 index 0000000..cc2022a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertTestResponse.md @@ -0,0 +1,92 @@ +# AlertsPendingPendingAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PendingAlerts** | Pointer to [**[]AlertsPendingPendingAlertResponse**](AlertsPendingPendingAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to [**CSSCMSDataModelEnumsAlertBuildResult**](CSSCMSDataModelEnumsAlertBuildResult.md) | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertTestResponse + +`func NewAlertsPendingPendingAlertTestResponse() *AlertsPendingPendingAlertTestResponse` + +NewAlertsPendingPendingAlertTestResponse instantiates a new AlertsPendingPendingAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertTestResponseWithDefaults + +`func NewAlertsPendingPendingAlertTestResponseWithDefaults() *AlertsPendingPendingAlertTestResponse` + +NewAlertsPendingPendingAlertTestResponseWithDefaults instantiates a new AlertsPendingPendingAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPendingAlerts + +`func (o *AlertsPendingPendingAlertTestResponse) GetPendingAlerts() []AlertsPendingPendingAlertResponse` + +GetPendingAlerts returns the PendingAlerts field if non-nil, zero value otherwise. + +### GetPendingAlertsOk + +`func (o *AlertsPendingPendingAlertTestResponse) GetPendingAlertsOk() (*[]AlertsPendingPendingAlertResponse, bool)` + +GetPendingAlertsOk returns a tuple with the PendingAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingAlerts + +`func (o *AlertsPendingPendingAlertTestResponse) SetPendingAlerts(v []AlertsPendingPendingAlertResponse)` + +SetPendingAlerts sets PendingAlerts field to given value. + +### HasPendingAlerts + +`func (o *AlertsPendingPendingAlertTestResponse) HasPendingAlerts() bool` + +HasPendingAlerts returns a boolean if a field has been set. + +### SetPendingAlertsNil + +`func (o *AlertsPendingPendingAlertTestResponse) SetPendingAlertsNil(b bool)` + + SetPendingAlertsNil sets the value for PendingAlerts to be an explicit nil + +### UnsetPendingAlerts +`func (o *AlertsPendingPendingAlertTestResponse) UnsetPendingAlerts()` + +UnsetPendingAlerts ensures that no value is present for PendingAlerts, not even an explicit nil +### GetAlertBuildResult + +`func (o *AlertsPendingPendingAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *AlertsPendingPendingAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *AlertsPendingPendingAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *AlertsPendingPendingAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertUpdateRequest.md b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertUpdateRequest.md new file mode 100644 index 0000000..2553bc2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AlertsPendingPendingAlertUpdateRequest.md @@ -0,0 +1,253 @@ +# AlertsPendingPendingAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**RegisteredEventHandler** | Pointer to [**EventHandlerRegisteredEventHandlerRequest**](EventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]EventHandlerEventHandlerParameterRequest**](EventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewAlertsPendingPendingAlertUpdateRequest + +`func NewAlertsPendingPendingAlertUpdateRequest(displayName string, subject string, message string, ) *AlertsPendingPendingAlertUpdateRequest` + +NewAlertsPendingPendingAlertUpdateRequest instantiates a new AlertsPendingPendingAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAlertsPendingPendingAlertUpdateRequestWithDefaults + +`func NewAlertsPendingPendingAlertUpdateRequestWithDefaults() *AlertsPendingPendingAlertUpdateRequest` + +NewAlertsPendingPendingAlertUpdateRequestWithDefaults instantiates a new AlertsPendingPendingAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertsPendingPendingAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *AlertsPendingPendingAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *AlertsPendingPendingAlertUpdateRequest) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *AlertsPendingPendingAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertsPendingPendingAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *AlertsPendingPendingAlertUpdateRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil +### GetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *AlertsPendingPendingAlertUpdateRequest) GetEventHandlerParametersOk() (*[]EventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *AlertsPendingPendingAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + +### SetEventHandlerParametersNil + +`func (o *AlertsPendingPendingAlertUpdateRequest) SetEventHandlerParametersNil(b bool)` + + SetEventHandlerParametersNil sets the value for EventHandlerParameters to be an explicit nil + +### UnsetEventHandlerParameters +`func (o *AlertsPendingPendingAlertUpdateRequest) UnsetEventHandlerParameters()` + +UnsetEventHandlerParameters ensures that no value is present for EventHandlerParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AppSettingApi.md b/v24/api/keyfactor/v1/docs/AppSettingApi.md new file mode 100644 index 0000000..eda4f0b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AppSettingApi.md @@ -0,0 +1,367 @@ +# \AppSettingApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAppSetting**](AppSettingApi.md#GetAppSetting) | **GET** /AppSetting | Get available application settings +[**GetAppSettingById**](AppSettingApi.md#GetAppSettingById) | **GET** /AppSetting/{id} | Get application setting by id +[**UpdateAppSetting**](AppSettingApi.md#UpdateAppSetting) | **PUT** /AppSetting | Bulk update available application settings +[**UpdateAppSettingByIdSet**](AppSettingApi.md#UpdateAppSettingByIdSet) | **PUT** /AppSetting/{id}/Set | Update one application setting by id +[**UpdateAppSettingNameSet**](AppSettingApi.md#UpdateAppSettingNameSet) | **PUT** /AppSetting/{name}/Set | Update one application setting by short name + + + +## GetAppSetting + +> []AppSettingsAppSettingResponse NewGetAppSettingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get available application settings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSettingApi.NewGetAppSettingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSettingApi.GetAppSetting``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAppSetting`: []AppSettingsAppSettingResponse + fmt.Fprintf(os.Stdout, "Response from `AppSettingApi.GetAppSetting`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAppSettingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AppSettingsAppSettingResponse**](AppSettingsAppSettingResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAppSettingById + +> AppSettingsAppSettingResponse NewGetAppSettingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get application setting by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the application setting + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSettingApi.NewGetAppSettingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSettingApi.GetAppSettingById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAppSettingById`: AppSettingsAppSettingResponse + fmt.Fprintf(os.Stdout, "Response from `AppSettingApi.GetAppSettingById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the application setting | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAppSettingByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AppSettingsAppSettingResponse**](AppSettingsAppSettingResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAppSetting + +> []AppSettingsAppSettingResponse NewUpdateAppSettingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateBulkRequest(appSettingsAppSettingUpdateBulkRequest).Execute() + +Bulk update available application settings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + appSettingsAppSettingUpdateBulkRequest := []openapiclient.AppSettingsAppSettingUpdateBulkRequest{*openapiclient.NewAppSettingsAppSettingUpdateBulkRequest()} // []AppSettingsAppSettingUpdateBulkRequest | List of information to update application settings (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSettingApi.NewUpdateAppSettingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateBulkRequest(appSettingsAppSettingUpdateBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSettingApi.UpdateAppSetting``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAppSetting`: []AppSettingsAppSettingResponse + fmt.Fprintf(os.Stdout, "Response from `AppSettingApi.UpdateAppSetting`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAppSettingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **appSettingsAppSettingUpdateBulkRequest** | [**[]AppSettingsAppSettingUpdateBulkRequest**](AppSettingsAppSettingUpdateBulkRequest.md) | List of information to update application settings | + +### Return type + +[**[]AppSettingsAppSettingResponse**](AppSettingsAppSettingResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAppSettingByIdSet + +> AppSettingsAppSettingResponse NewUpdateAppSettingByIdSetRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest).Execute() + +Update one application setting by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the application setting + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + appSettingsAppSettingUpdateRequest := *openapiclient.NewAppSettingsAppSettingUpdateRequest() // AppSettingsAppSettingUpdateRequest | Infomation for updating the application setting (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSettingApi.NewUpdateAppSettingByIdSetRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSettingApi.UpdateAppSettingByIdSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAppSettingByIdSet`: AppSettingsAppSettingResponse + fmt.Fprintf(os.Stdout, "Response from `AppSettingApi.UpdateAppSettingByIdSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the application setting | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAppSettingByIdSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **appSettingsAppSettingUpdateRequest** | [**AppSettingsAppSettingUpdateRequest**](AppSettingsAppSettingUpdateRequest.md) | Infomation for updating the application setting | + +### Return type + +[**AppSettingsAppSettingResponse**](AppSettingsAppSettingResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAppSettingNameSet + +> AppSettingsAppSettingResponse NewUpdateAppSettingNameSetRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest).Execute() + +Update one application setting by short name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Short name for the application setting + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + appSettingsAppSettingUpdateRequest := *openapiclient.NewAppSettingsAppSettingUpdateRequest() // AppSettingsAppSettingUpdateRequest | Infomation for updating the application setting (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSettingApi.NewUpdateAppSettingNameSetRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AppSettingsAppSettingUpdateRequest(appSettingsAppSettingUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSettingApi.UpdateAppSettingNameSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAppSettingNameSet`: AppSettingsAppSettingResponse + fmt.Fprintf(os.Stdout, "Response from `AppSettingApi.UpdateAppSettingNameSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | Short name for the application setting | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAppSettingNameSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **appSettingsAppSettingUpdateRequest** | [**AppSettingsAppSettingUpdateRequest**](AppSettingsAppSettingUpdateRequest.md) | Infomation for updating the application setting | + +### Return type + +[**AppSettingsAppSettingResponse**](AppSettingsAppSettingResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/AppSettingsAppSettingResponse.md b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingResponse.md new file mode 100644 index 0000000..df31281 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingResponse.md @@ -0,0 +1,236 @@ +# AppSettingsAppSettingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**ShortName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**ValueType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAppSettingsAppSettingResponse + +`func NewAppSettingsAppSettingResponse() *AppSettingsAppSettingResponse` + +NewAppSettingsAppSettingResponse instantiates a new AppSettingsAppSettingResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppSettingsAppSettingResponseWithDefaults + +`func NewAppSettingsAppSettingResponseWithDefaults() *AppSettingsAppSettingResponse` + +NewAppSettingsAppSettingResponseWithDefaults instantiates a new AppSettingsAppSettingResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AppSettingsAppSettingResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AppSettingsAppSettingResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AppSettingsAppSettingResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AppSettingsAppSettingResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *AppSettingsAppSettingResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AppSettingsAppSettingResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AppSettingsAppSettingResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AppSettingsAppSettingResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *AppSettingsAppSettingResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *AppSettingsAppSettingResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetShortName + +`func (o *AppSettingsAppSettingResponse) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *AppSettingsAppSettingResponse) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *AppSettingsAppSettingResponse) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + +### HasShortName + +`func (o *AppSettingsAppSettingResponse) HasShortName() bool` + +HasShortName returns a boolean if a field has been set. + +### SetShortNameNil + +`func (o *AppSettingsAppSettingResponse) SetShortNameNil(b bool)` + + SetShortNameNil sets the value for ShortName to be an explicit nil + +### UnsetShortName +`func (o *AppSettingsAppSettingResponse) UnsetShortName()` + +UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +### GetDescription + +`func (o *AppSettingsAppSettingResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AppSettingsAppSettingResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *AppSettingsAppSettingResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AppSettingsAppSettingResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *AppSettingsAppSettingResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *AppSettingsAppSettingResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetValue + +`func (o *AppSettingsAppSettingResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AppSettingsAppSettingResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AppSettingsAppSettingResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AppSettingsAppSettingResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *AppSettingsAppSettingResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *AppSettingsAppSettingResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetValueType + +`func (o *AppSettingsAppSettingResponse) GetValueType() string` + +GetValueType returns the ValueType field if non-nil, zero value otherwise. + +### GetValueTypeOk + +`func (o *AppSettingsAppSettingResponse) GetValueTypeOk() (*string, bool)` + +GetValueTypeOk returns a tuple with the ValueType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueType + +`func (o *AppSettingsAppSettingResponse) SetValueType(v string)` + +SetValueType sets ValueType field to given value. + +### HasValueType + +`func (o *AppSettingsAppSettingResponse) HasValueType() bool` + +HasValueType returns a boolean if a field has been set. + +### SetValueTypeNil + +`func (o *AppSettingsAppSettingResponse) SetValueTypeNil(b bool)` + + SetValueTypeNil sets the value for ValueType to be an explicit nil + +### UnsetValueType +`func (o *AppSettingsAppSettingResponse) UnsetValueType()` + +UnsetValueType ensures that no value is present for ValueType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateBulkRequest.md b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateBulkRequest.md new file mode 100644 index 0000000..fc5d498 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateBulkRequest.md @@ -0,0 +1,92 @@ +# AppSettingsAppSettingUpdateBulkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAppSettingsAppSettingUpdateBulkRequest + +`func NewAppSettingsAppSettingUpdateBulkRequest() *AppSettingsAppSettingUpdateBulkRequest` + +NewAppSettingsAppSettingUpdateBulkRequest instantiates a new AppSettingsAppSettingUpdateBulkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppSettingsAppSettingUpdateBulkRequestWithDefaults + +`func NewAppSettingsAppSettingUpdateBulkRequestWithDefaults() *AppSettingsAppSettingUpdateBulkRequest` + +NewAppSettingsAppSettingUpdateBulkRequestWithDefaults instantiates a new AppSettingsAppSettingUpdateBulkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AppSettingsAppSettingUpdateBulkRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AppSettingsAppSettingUpdateBulkRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AppSettingsAppSettingUpdateBulkRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AppSettingsAppSettingUpdateBulkRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *AppSettingsAppSettingUpdateBulkRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AppSettingsAppSettingUpdateBulkRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AppSettingsAppSettingUpdateBulkRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AppSettingsAppSettingUpdateBulkRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *AppSettingsAppSettingUpdateBulkRequest) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *AppSettingsAppSettingUpdateBulkRequest) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateRequest.md b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateRequest.md new file mode 100644 index 0000000..54960f0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AppSettingsAppSettingUpdateRequest.md @@ -0,0 +1,66 @@ +# AppSettingsAppSettingUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewAppSettingsAppSettingUpdateRequest + +`func NewAppSettingsAppSettingUpdateRequest() *AppSettingsAppSettingUpdateRequest` + +NewAppSettingsAppSettingUpdateRequest instantiates a new AppSettingsAppSettingUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppSettingsAppSettingUpdateRequestWithDefaults + +`func NewAppSettingsAppSettingUpdateRequestWithDefaults() *AppSettingsAppSettingUpdateRequest` + +NewAppSettingsAppSettingUpdateRequestWithDefaults instantiates a new AppSettingsAppSettingUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *AppSettingsAppSettingUpdateRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AppSettingsAppSettingUpdateRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AppSettingsAppSettingUpdateRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AppSettingsAppSettingUpdateRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *AppSettingsAppSettingUpdateRequest) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *AppSettingsAppSettingUpdateRequest) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/AuditLogApi.md b/v24/api/keyfactor/v1/docs/AuditLogApi.md new file mode 100644 index 0000000..dba182b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/AuditLogApi.md @@ -0,0 +1,385 @@ +# \AuditLogApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAudit**](AuditLogApi.md#GetAudit) | **GET** /Audit | Returns all audit log entries according to the provided filter and output parameters +[**GetAuditById**](AuditLogApi.md#GetAuditById) | **GET** /Audit/{id} | Returns the audit log entry associated with the provided identifier +[**GetAuditByIdValidate**](AuditLogApi.md#GetAuditByIdValidate) | **GET** /Audit/{id}/Validate | Validates the audit log entry associated with the provided keyfactor id +[**GetAuditDownload**](AuditLogApi.md#GetAuditDownload) | **GET** /Audit/Download | Returns a Comma Separated file containing the audit log entries according to the provided filter +[**GetAuditRelatedEntities**](AuditLogApi.md#GetAuditRelatedEntities) | **GET** /Audit/RelatedEntities | Returns the audit log entry associated with the provided keyfactor id + + + +## GetAudit + +> []KeyfactorAuditingQueryingAuditLogEntry NewGetAuditRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all audit log entries according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.NewGetAuditRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.GetAudit``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAudit`: []KeyfactorAuditingQueryingAuditLogEntry + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.GetAudit`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuditRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]KeyfactorAuditingQueryingAuditLogEntry**](KeyfactorAuditingQueryingAuditLogEntry.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuditById + +> NewGetAuditByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the audit log entry associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the audit entry to be returned + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.NewGetAuditByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.GetAuditById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the audit entry to be returned | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuditByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuditByIdValidate + +> bool NewGetAuditByIdValidateRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the audit log entry associated with the provided keyfactor id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the audit log entry + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.NewGetAuditByIdValidateRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.GetAuditByIdValidate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuditByIdValidate`: bool + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.GetAuditByIdValidate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the audit log entry | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuditByIdValidateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuditDownload + +> string NewGetAuditDownloadRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a Comma Separated file containing the audit log entries according to the provided filter + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.NewGetAuditDownloadRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.GetAuditDownload``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuditDownload`: string + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.GetAuditDownload`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuditDownloadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuditRelatedEntities + +> []KeyfactorAuditingQueryingAuditLogEntry NewGetAuditRelatedEntitiesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the audit log entry associated with the provided keyfactor id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.NewGetAuditRelatedEntitiesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.GetAuditRelatedEntities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuditRelatedEntities`: []KeyfactorAuditingQueryingAuditLogEntry + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.GetAuditRelatedEntities`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuditRelatedEntitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]KeyfactorAuditingQueryingAuditLogEntry**](KeyfactorAuditingQueryingAuditLogEntry.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CAConnectorApi.md b/v24/api/keyfactor/v1/docs/CAConnectorApi.md new file mode 100644 index 0000000..872e38b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CAConnectorApi.md @@ -0,0 +1,363 @@ +# \CAConnectorApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateAuthorityCAConnectors**](CAConnectorApi.md#CreateCertificateAuthorityCAConnectors) | **POST** /CertificateAuthority/CAConnectors | Creates a new CA Connector object +[**DeleteCertificateAuthorityCAConnectorsById**](CAConnectorApi.md#DeleteCertificateAuthorityCAConnectorsById) | **DELETE** /CertificateAuthority/CAConnectors/{id} | Deletes a CA Connector with the specific ID +[**GetCertificateAuthorityCAConnectors**](CAConnectorApi.md#GetCertificateAuthorityCAConnectors) | **GET** /CertificateAuthority/CAConnectors | Returns all CA Connectors +[**GetCertificateAuthorityCAConnectorsById**](CAConnectorApi.md#GetCertificateAuthorityCAConnectorsById) | **GET** /CertificateAuthority/CAConnectors/{id} | Returns a CA Connector with the specific ID +[**UpdateCertificateAuthorityCAConnectorsById**](CAConnectorApi.md#UpdateCertificateAuthorityCAConnectorsById) | **PUT** /CertificateAuthority/CAConnectors/{id} | Updates an existing CA Connector + + + +## CreateCertificateAuthorityCAConnectors + +> CertificateAuthoritiesCAConnectorResponse NewCreateCertificateAuthorityCAConnectorsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest).Execute() + +Creates a new CA Connector object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAConnectorRequest := *openapiclient.NewCertificateAuthoritiesCAConnectorRequest() // CertificateAuthoritiesCAConnectorRequest | CA Connector object with the provided information. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CAConnectorApi.NewCreateCertificateAuthorityCAConnectorsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CAConnectorApi.CreateCertificateAuthorityCAConnectors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthorityCAConnectors`: CertificateAuthoritiesCAConnectorResponse + fmt.Fprintf(os.Stdout, "Response from `CAConnectorApi.CreateCertificateAuthorityCAConnectors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityCAConnectorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAConnectorRequest** | [**CertificateAuthoritiesCAConnectorRequest**](CertificateAuthoritiesCAConnectorRequest.md) | CA Connector object with the provided information. | + +### Return type + +[**CertificateAuthoritiesCAConnectorResponse**](CertificateAuthoritiesCAConnectorResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateAuthorityCAConnectorsById + +> NewDeleteCertificateAuthorityCAConnectorsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CA Connector with the specific ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the CA Connector + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CAConnectorApi.NewDeleteCertificateAuthorityCAConnectorsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CAConnectorApi.DeleteCertificateAuthorityCAConnectorsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the CA Connector | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityCAConnectorsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityCAConnectors + +> []CertificateAuthoritiesCAConnectorResponse NewGetCertificateAuthorityCAConnectorsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all CA Connectors + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CAConnectorApi.NewGetCertificateAuthorityCAConnectorsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CAConnectorApi.GetCertificateAuthorityCAConnectors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityCAConnectors`: []CertificateAuthoritiesCAConnectorResponse + fmt.Fprintf(os.Stdout, "Response from `CAConnectorApi.GetCertificateAuthorityCAConnectors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityCAConnectorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateAuthoritiesCAConnectorResponse**](CertificateAuthoritiesCAConnectorResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityCAConnectorsById + +> CertificateAuthoritiesCAConnectorResponse NewGetCertificateAuthorityCAConnectorsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a CA Connector with the specific ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the CA Connector + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CAConnectorApi.NewGetCertificateAuthorityCAConnectorsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CAConnectorApi.GetCertificateAuthorityCAConnectorsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityCAConnectorsById`: CertificateAuthoritiesCAConnectorResponse + fmt.Fprintf(os.Stdout, "Response from `CAConnectorApi.GetCertificateAuthorityCAConnectorsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the CA Connector | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityCAConnectorsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateAuthoritiesCAConnectorResponse**](CertificateAuthoritiesCAConnectorResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateAuthorityCAConnectorsById + +> CertificateAuthoritiesCAConnectorResponse NewUpdateCertificateAuthorityCAConnectorsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest).Execute() + +Updates an existing CA Connector + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the CA Connector we want to update + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAConnectorRequest := *openapiclient.NewCertificateAuthoritiesCAConnectorRequest() // CertificateAuthoritiesCAConnectorRequest | CA Connector object with the provided information. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CAConnectorApi.NewUpdateCertificateAuthorityCAConnectorsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAConnectorRequest(certificateAuthoritiesCAConnectorRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CAConnectorApi.UpdateCertificateAuthorityCAConnectorsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateAuthorityCAConnectorsById`: CertificateAuthoritiesCAConnectorResponse + fmt.Fprintf(os.Stdout, "Response from `CAConnectorApi.UpdateCertificateAuthorityCAConnectorsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the CA Connector we want to update | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityCAConnectorsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAConnectorRequest** | [**CertificateAuthoritiesCAConnectorRequest**](CertificateAuthoritiesCAConnectorRequest.md) | CA Connector object with the provided information. | + +### Return type + +[**CertificateAuthoritiesCAConnectorResponse**](CertificateAuthoritiesCAConnectorResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CSRGenerationApi.md b/v24/api/keyfactor/v1/docs/CSRGenerationApi.md new file mode 100644 index 0000000..d2843b9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSRGenerationApi.md @@ -0,0 +1,365 @@ +# \CSRGenerationApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCSRGenerationGenerate**](CSRGenerationApi.md#CreateCSRGenerationGenerate) | **POST** /CSRGeneration/Generate | Generates a CSR according the properties provided +[**DeleteCSRGenerationPending**](CSRGenerationApi.md#DeleteCSRGenerationPending) | **DELETE** /CSRGeneration/Pending | Deletes the CSRs associated with the provided identifiers +[**DeleteCSRGenerationPendingById**](CSRGenerationApi.md#DeleteCSRGenerationPendingById) | **DELETE** /CSRGeneration/Pending/{id} | Deletes a CSR associated with the provided identifier +[**GetCSRGenerationPending**](CSRGenerationApi.md#GetCSRGenerationPending) | **GET** /CSRGeneration/Pending | Returns a list of the currently pending CSRs according to the provided query +[**GetCSRGenerationPendingById**](CSRGenerationApi.md#GetCSRGenerationPendingById) | **GET** /CSRGeneration/Pending/{id} | Returns a previously generated CSR associated with the provided identifier + + + +## CreateCSRGenerationGenerate + +> CSSCMSDataModelModelsCSRContents NewCreateCSRGenerationGenerateRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSRGenerationRequest(enrollmentCSRGenerationRequest).Execute() + +Generates a CSR according the properties provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + enrollmentCSRGenerationRequest := *openapiclient.NewEnrollmentCSRGenerationRequest("Subject_example", "KeyType_example") // EnrollmentCSRGenerationRequest | CSR properties used to define the request - Key type [RSA, ECC], Key sizes (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521), template short name or OID (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.NewCreateCSRGenerationGenerateRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSRGenerationRequest(enrollmentCSRGenerationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CreateCSRGenerationGenerate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCSRGenerationGenerate`: CSSCMSDataModelModelsCSRContents + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.CreateCSRGenerationGenerate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCSRGenerationGenerateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **enrollmentCSRGenerationRequest** | [**EnrollmentCSRGenerationRequest**](EnrollmentCSRGenerationRequest.md) | CSR properties used to define the request - Key type [RSA, ECC], Key sizes (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521), template short name or OID | + +### Return type + +[**CSSCMSDataModelModelsCSRContents**](CSSCMSDataModelModelsCSRContents.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCSRGenerationPending + +> NewDeleteCSRGenerationPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes the CSRs associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers for the CSRs to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.NewDeleteCSRGenerationPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.DeleteCSRGenerationPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCSRGenerationPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Array of Keyfactor identifiers for the CSRs to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCSRGenerationPendingById + +> NewDeleteCSRGenerationPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CSR associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the CSR to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.NewDeleteCSRGenerationPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.DeleteCSRGenerationPendingById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the CSR to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCSRGenerationPendingByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCSRGenerationPending + +> []CSSCMSDataModelModelsPendingCSRResponse NewGetCSRGenerationPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of the currently pending CSRs according to the provided query + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.NewGetCSRGenerationPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.GetCSRGenerationPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCSRGenerationPending`: []CSSCMSDataModelModelsPendingCSRResponse + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.GetCSRGenerationPending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCSRGenerationPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsPendingCSRResponse**](CSSCMSDataModelModelsPendingCSRResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCSRGenerationPendingById + +> CSSCMSDataModelModelsCSRGenerationResponseModel NewGetCSRGenerationPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a previously generated CSR associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the CSR + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.NewGetCSRGenerationPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.GetCSRGenerationPendingById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCSRGenerationPendingById`: CSSCMSDataModelModelsCSRGenerationResponseModel + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.GetCSRGenerationPendingById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the CSR | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCSRGenerationPendingByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsCSRGenerationResponseModel**](CSSCMSDataModelModelsCSRGenerationResponseModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentPlatformType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentPlatformType.md new file mode 100644 index 0000000..59df25f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentPlatformType.md @@ -0,0 +1,25 @@ +# CSSCMSCoreEnumsAgentPlatformType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentStatusType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentStatusType.md new file mode 100644 index 0000000..ffb65ed --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsAgentStatusType.md @@ -0,0 +1,17 @@ +# CSSCMSCoreEnumsAgentStatusType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStoreEntryParameterType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStoreEntryParameterType.md new file mode 100644 index 0000000..6a225bb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStoreEntryParameterType.md @@ -0,0 +1,17 @@ +# CSSCMSCoreEnumsCertStoreEntryParameterType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStorePrivateKey.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStorePrivateKey.md new file mode 100644 index 0000000..8966b22 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertStorePrivateKey.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsCertStorePrivateKey + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateAuthorityType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateAuthorityType.md new file mode 100644 index 0000000..c72c2d3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateAuthorityType.md @@ -0,0 +1,13 @@ +# CSSCMSCoreEnumsCertificateAuthorityType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateFormat.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateFormat.md new file mode 100644 index 0000000..90d0cc5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateFormat.md @@ -0,0 +1,13 @@ +# CSSCMSCoreEnumsCertificateFormat + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateStoreTypePropertyType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateStoreTypePropertyType.md new file mode 100644 index 0000000..8bc49b6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsCertificateStoreTypePropertyType.md @@ -0,0 +1,17 @@ +# CSSCMSCoreEnumsCertificateStoreTypePropertyType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsClaimType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsClaimType.md new file mode 100644 index 0000000..6e84cac --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsClaimType.md @@ -0,0 +1,23 @@ +# CSSCMSCoreEnumsClaimType + +## Enum + + +* `User` (value: `0`) + +* `Group` (value: `1`) + +* `Computer` (value: `2`) + +* `OAuthOid` (value: `3`) + +* `OAuthRole` (value: `4`) + +* `OAuthSubject` (value: `5`) + +* `OAuthClientId` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsDuplicateSubjectType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsDuplicateSubjectType.md new file mode 100644 index 0000000..a6116ba --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsDuplicateSubjectType.md @@ -0,0 +1,19 @@ +# CSSCMSCoreEnumsDuplicateSubjectType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEnrollmentType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEnrollmentType.md new file mode 100644 index 0000000..2f1a9d5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEnrollmentType.md @@ -0,0 +1,17 @@ +# CSSCMSCoreEnumsEnrollmentType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_4` (value: `4`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEntryParameterUsageFlags.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEntryParameterUsageFlags.md new file mode 100644 index 0000000..c9650e7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsEntryParameterUsageFlags.md @@ -0,0 +1,19 @@ +# CSSCMSCoreEnumsEntryParameterUsageFlags + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_4` (value: `4`) + +* `_8` (value: `8`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsKeyRetentionPolicy.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsKeyRetentionPolicy.md new file mode 100644 index 0000000..e51e31b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsKeyRetentionPolicy.md @@ -0,0 +1,17 @@ +# CSSCMSCoreEnumsKeyRetentionPolicy + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataDataType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataDataType.md new file mode 100644 index 0000000..1ebd5ed --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataDataType.md @@ -0,0 +1,23 @@ +# CSSCMSCoreEnumsMetadataDataType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataTypeEnrollment.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataTypeEnrollment.md new file mode 100644 index 0000000..57e2915 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsMetadataTypeEnrollment.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsMetadataTypeEnrollment + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment.md new file mode 100644 index 0000000..4825a47 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterType.md new file mode 100644 index 0000000..567fdb3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterType.md @@ -0,0 +1,43 @@ +# CSSCMSCoreEnumsReportParameterType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_10` (value: `10`) + +* `_11` (value: `11`) + +* `_12` (value: `12`) + +* `_13` (value: `13`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterVisibility.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterVisibility.md new file mode 100644 index 0000000..71f62c1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsReportParameterVisibility.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsReportParameterVisibility + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsScheduledTaskType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsScheduledTaskType.md new file mode 100644 index 0000000..c633574 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsScheduledTaskType.md @@ -0,0 +1,69 @@ +# CSSCMSCoreEnumsScheduledTaskType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_7` (value: `7`) + +* `_9` (value: `9`) + +* `_10` (value: `10`) + +* `_11` (value: `11`) + +* `_12` (value: `12`) + +* `_13` (value: `13`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_26` (value: `26`) + +* `_27` (value: `27`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslNetworkJobStatus.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslNetworkJobStatus.md new file mode 100644 index 0000000..6cb8693 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslNetworkJobStatus.md @@ -0,0 +1,23 @@ +# CSSCMSCoreEnumsSslNetworkJobStatus + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslScanJobStatus.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslScanJobStatus.md new file mode 100644 index 0000000..010b91b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsSslScanJobStatus.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsSslScanJobStatus + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateCertificateOwnerRole.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateCertificateOwnerRole.md new file mode 100644 index 0000000..960aa97 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateCertificateOwnerRole.md @@ -0,0 +1,15 @@ +# CSSCMSCoreEnumsTemplateCertificateOwnerRole + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateEnrollmentFieldType.md b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateEnrollmentFieldType.md new file mode 100644 index 0000000..6bccef2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCoreEnumsTemplateEnrollmentFieldType.md @@ -0,0 +1,13 @@ +# CSSCMSCoreEnumsTemplateEnrollmentFieldType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSCorePermissionsWebConsoleAreaPermission.md b/v24/api/keyfactor/v1/docs/CSSCMSCorePermissionsWebConsoleAreaPermission.md new file mode 100644 index 0000000..1790c41 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSCorePermissionsWebConsoleAreaPermission.md @@ -0,0 +1,147 @@ +# CSSCMSCorePermissionsWebConsoleAreaPermission + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + +* `_10` (value: `10`) + +* `_11` (value: `11`) + +* `_12` (value: `12`) + +* `_13` (value: `13`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_23` (value: `23`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + +* `_34` (value: `34`) + +* `_35` (value: `35`) + +* `_36` (value: `36`) + +* `_37` (value: `37`) + +* `_39` (value: `39`) + +* `_40` (value: `40`) + +* `_41` (value: `41`) + +* `_42` (value: `42`) + +* `_43` (value: `43`) + +* `_44` (value: `44`) + +* `_45` (value: `45`) + +* `_46` (value: `46`) + +* `_47` (value: `47`) + +* `_48` (value: `48`) + +* `_49` (value: `49`) + +* `_50` (value: `50`) + +* `_51` (value: `51`) + +* `_52` (value: `52`) + +* `_53` (value: `53`) + +* `_54` (value: `54`) + +* `_55` (value: `55`) + +* `_56` (value: `56`) + +* `_57` (value: `57`) + +* `_58` (value: `58`) + +* `_59` (value: `59`) + +* `_60` (value: `60`) + +* `_61` (value: `61`) + +* `_62` (value: `62`) + +* `_63` (value: `63`) + +* `_64` (value: `64`) + +* `_65` (value: `65`) + +* `_66` (value: `66`) + +* `_67` (value: `67`) + +* `_68` (value: `68`) + +* `_69` (value: `69`) + +* `_70` (value: `70`) + +* `_71` (value: `71`) + +* `_72` (value: `72`) + +* `_73` (value: `73`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsAlertBuildResult.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsAlertBuildResult.md new file mode 100644 index 0000000..6461f6e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsAlertBuildResult.md @@ -0,0 +1,21 @@ +# CSSCMSDataModelEnumsAlertBuildResult + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertStoreTypesPasswordStyles.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertStoreTypesPasswordStyles.md new file mode 100644 index 0000000..9b46c7d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertStoreTypesPasswordStyles.md @@ -0,0 +1,13 @@ +# CSSCMSDataModelEnumsCertStoreTypesPasswordStyles + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateImportJobStatus.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateImportJobStatus.md new file mode 100644 index 0000000..7fdb088 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateImportJobStatus.md @@ -0,0 +1,15 @@ +# CSSCMSDataModelEnumsCertificateImportJobStatus + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateSavedState.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateSavedState.md new file mode 100644 index 0000000..9de73dc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsCertificateSavedState.md @@ -0,0 +1,37 @@ +# CSSCMSDataModelEnumsCertificateSavedState + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_4` (value: `4`) + +* `_8` (value: `8`) + +* `_16` (value: `16`) + +* `_32` (value: `32`) + +* `_64` (value: `64`) + +* `_128` (value: `128`) + +* `_256` (value: `256`) + +* `_512` (value: `512`) + +* `_1024` (value: `1024`) + +* `_2048` (value: `2048`) + +* `_4096` (value: `4096`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsDataType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsDataType.md new file mode 100644 index 0000000..25e3b14 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsDataType.md @@ -0,0 +1,19 @@ +# CSSCMSDataModelEnumsDataType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsFailureType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsFailureType.md new file mode 100644 index 0000000..c6923c3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsFailureType.md @@ -0,0 +1,25 @@ +# CSSCMSDataModelEnumsFailureType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsIdentityProviderDataType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsIdentityProviderDataType.md new file mode 100644 index 0000000..aa19f06 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsIdentityProviderDataType.md @@ -0,0 +1,15 @@ +# CSSCMSDataModelEnumsIdentityProviderDataType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsPamParameterDataType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsPamParameterDataType.md new file mode 100644 index 0000000..1ed4b87 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsPamParameterDataType.md @@ -0,0 +1,13 @@ +# CSSCMSDataModelEnumsPamParameterDataType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsRenewalType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsRenewalType.md new file mode 100644 index 0000000..07f211e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsRenewalType.md @@ -0,0 +1,15 @@ +# CSSCMSDataModelEnumsRenewalType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsScriptCategories.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsScriptCategories.md new file mode 100644 index 0000000..6f9477b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsScriptCategories.md @@ -0,0 +1,21 @@ +# CSSCMSDataModelEnumsScriptCategories + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsSecretType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsSecretType.md new file mode 100644 index 0000000..c6d38cd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelEnumsSecretType.md @@ -0,0 +1,19 @@ +# CSSCMSDataModelEnumsSecretType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCRLRequestModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCRLRequestModel.md new file mode 100644 index 0000000..4d6ba95 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCRLRequestModel.md @@ -0,0 +1,87 @@ +# CSSCMSDataModelModelsCRLRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateAuthorityLogicalName** | **string** | | +**CertificateAuthorityHostName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCRLRequestModel + +`func NewCSSCMSDataModelModelsCRLRequestModel(certificateAuthorityLogicalName string, ) *CSSCMSDataModelModelsCRLRequestModel` + +NewCSSCMSDataModelModelsCRLRequestModel instantiates a new CSSCMSDataModelModelsCRLRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCRLRequestModelWithDefaults + +`func NewCSSCMSDataModelModelsCRLRequestModelWithDefaults() *CSSCMSDataModelModelsCRLRequestModel` + +NewCSSCMSDataModelModelsCRLRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsCRLRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateAuthorityLogicalName + +`func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityLogicalName() string` + +GetCertificateAuthorityLogicalName returns the CertificateAuthorityLogicalName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityLogicalNameOk + +`func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityLogicalNameOk() (*string, bool)` + +GetCertificateAuthorityLogicalNameOk returns a tuple with the CertificateAuthorityLogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityLogicalName + +`func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityLogicalName(v string)` + +SetCertificateAuthorityLogicalName sets CertificateAuthorityLogicalName field to given value. + + +### GetCertificateAuthorityHostName + +`func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityHostName() string` + +GetCertificateAuthorityHostName returns the CertificateAuthorityHostName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityHostNameOk + +`func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityHostNameOk() (*string, bool)` + +GetCertificateAuthorityHostNameOk returns a tuple with the CertificateAuthorityHostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityHostName + +`func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityHostName(v string)` + +SetCertificateAuthorityHostName sets CertificateAuthorityHostName field to given value. + +### HasCertificateAuthorityHostName + +`func (o *CSSCMSDataModelModelsCRLRequestModel) HasCertificateAuthorityHostName() bool` + +HasCertificateAuthorityHostName returns a boolean if a field has been set. + +### SetCertificateAuthorityHostNameNil + +`func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityHostNameNil(b bool)` + + SetCertificateAuthorityHostNameNil sets the value for CertificateAuthorityHostName to be an explicit nil + +### UnsetCertificateAuthorityHostName +`func (o *CSSCMSDataModelModelsCRLRequestModel) UnsetCertificateAuthorityHostName()` + +UnsetCertificateAuthorityHostName ensures that no value is present for CertificateAuthorityHostName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRContents.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRContents.md new file mode 100644 index 0000000..6f8da6c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRContents.md @@ -0,0 +1,51 @@ +# CSSCMSDataModelModelsCSRContents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSR** | **string** | | + +## Methods + +### NewCSSCMSDataModelModelsCSRContents + +`func NewCSSCMSDataModelModelsCSRContents(cSR string, ) *CSSCMSDataModelModelsCSRContents` + +NewCSSCMSDataModelModelsCSRContents instantiates a new CSSCMSDataModelModelsCSRContents object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCSRContentsWithDefaults + +`func NewCSSCMSDataModelModelsCSRContentsWithDefaults() *CSSCMSDataModelModelsCSRContents` + +NewCSSCMSDataModelModelsCSRContentsWithDefaults instantiates a new CSSCMSDataModelModelsCSRContents object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSR + +`func (o *CSSCMSDataModelModelsCSRContents) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *CSSCMSDataModelModelsCSRContents) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *CSSCMSDataModelModelsCSRContents) SetCSR(v string)` + +SetCSR sets CSR field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRGenerationResponseModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRGenerationResponseModel.md new file mode 100644 index 0000000..f4602b5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCSRGenerationResponseModel.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsCSRGenerationResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSRFilePath** | Pointer to **NullableString** | | [optional] +**CSRText** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCSRGenerationResponseModel + +`func NewCSSCMSDataModelModelsCSRGenerationResponseModel() *CSSCMSDataModelModelsCSRGenerationResponseModel` + +NewCSSCMSDataModelModelsCSRGenerationResponseModel instantiates a new CSSCMSDataModelModelsCSRGenerationResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCSRGenerationResponseModelWithDefaults + +`func NewCSSCMSDataModelModelsCSRGenerationResponseModelWithDefaults() *CSSCMSDataModelModelsCSRGenerationResponseModel` + +NewCSSCMSDataModelModelsCSRGenerationResponseModelWithDefaults instantiates a new CSSCMSDataModelModelsCSRGenerationResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSRFilePath + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRFilePath() string` + +GetCSRFilePath returns the CSRFilePath field if non-nil, zero value otherwise. + +### GetCSRFilePathOk + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRFilePathOk() (*string, bool)` + +GetCSRFilePathOk returns a tuple with the CSRFilePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSRFilePath + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRFilePath(v string)` + +SetCSRFilePath sets CSRFilePath field to given value. + +### HasCSRFilePath + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) HasCSRFilePath() bool` + +HasCSRFilePath returns a boolean if a field has been set. + +### SetCSRFilePathNil + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRFilePathNil(b bool)` + + SetCSRFilePathNil sets the value for CSRFilePath to be an explicit nil + +### UnsetCSRFilePath +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) UnsetCSRFilePath()` + +UnsetCSRFilePath ensures that no value is present for CSRFilePath, not even an explicit nil +### GetCSRText + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRText() string` + +GetCSRText returns the CSRText field if non-nil, zero value otherwise. + +### GetCSRTextOk + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRTextOk() (*string, bool)` + +GetCSRTextOk returns a tuple with the CSRText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSRText + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRText(v string)` + +SetCSRText sets CSRText field to given value. + +### HasCSRText + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) HasCSRText() bool` + +HasCSRText returns a boolean if a field has been set. + +### SetCSRTextNil + +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRTextNil(b bool)` + + SetCSRTextNil sets the value for CSRText to be an explicit nil + +### UnsetCSRText +`func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) UnsetCSRText()` + +UnsetCSRText ensures that no value is present for CSRText, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreContainerRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreContainerRequest.md new file mode 100644 index 0000000..d8d6f1c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreContainerRequest.md @@ -0,0 +1,206 @@ +# CSSCMSDataModelModelsCertStoreContainerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**OverwriteSchedules** | Pointer to **bool** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CertificateStores** | Pointer to [**[]CSSCMSDataModelModelsCertificateStore**](CSSCMSDataModelModelsCertificateStore.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoreContainerRequest + +`func NewCSSCMSDataModelModelsCertStoreContainerRequest() *CSSCMSDataModelModelsCertStoreContainerRequest` + +NewCSSCMSDataModelModelsCertStoreContainerRequest instantiates a new CSSCMSDataModelModelsCertStoreContainerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreContainerRequestWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreContainerRequestWithDefaults() *CSSCMSDataModelModelsCertStoreContainerRequest` + +NewCSSCMSDataModelModelsCertStoreContainerRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreContainerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetOverwriteSchedules() bool` + +GetOverwriteSchedules returns the OverwriteSchedules field if non-nil, zero value otherwise. + +### GetOverwriteSchedulesOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetOverwriteSchedulesOk() (*bool, bool)` + +GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetOverwriteSchedules(v bool)` + +SetOverwriteSchedules sets OverwriteSchedules field to given value. + +### HasOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasOverwriteSchedules() bool` + +HasOverwriteSchedules returns a boolean if a field has been set. + +### GetSchedule + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCertificateStores + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateStore` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertificateStoresOk() (*[]CSSCMSDataModelModelsCertificateStore, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateStore)` + +SetCertificateStores sets CertificateStores field to given value. + +### HasCertificateStores + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasCertificateStores() bool` + +HasCertificateStores returns a boolean if a field has been set. + +### SetCertificateStoresNil + +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetCertificateStoresNil(b bool)` + + SetCertificateStoresNil sets the value for CertificateStores to be an explicit nil + +### UnsetCertificateStores +`func (o *CSSCMSDataModelModelsCertStoreContainerRequest) UnsetCertificateStores()` + +UnsetCertificateStores ensures that no value is present for CertificateStores, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup.md new file mode 100644 index 0000000..b62e0f6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreType** | Pointer to **NullableString** | | [optional] [readonly] +**StoreTypeId** | Pointer to **int32** | | [optional] [readonly] +**StoreCount** | Pointer to **int32** | | [optional] [readonly] +**Locations** | Pointer to [**[]CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail**](CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup + +`func NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup() *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup` + +NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroupWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroupWithDefaults() *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup` + +NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroupWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreType + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreType() string` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeOk() (*string, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreType(v string)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### SetStoreTypeNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeNil(b bool)` + + SetStoreTypeNil sets the value for StoreType to be an explicit nil + +### UnsetStoreType +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) UnsetStoreType()` + +UnsetStoreType ensures that no value is present for StoreType, not even an explicit nil +### GetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetStoreCount + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCount() int32` + +GetStoreCount returns the StoreCount field if non-nil, zero value otherwise. + +### GetStoreCountOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCountOk() (*int32, bool)` + +GetStoreCountOk returns a tuple with the StoreCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreCount + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreCount(v int32)` + +SetStoreCount sets StoreCount field to given value. + +### HasStoreCount + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreCount() bool` + +HasStoreCount returns a boolean if a field has been set. + +### GetLocations + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetLocations() []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail` + +GetLocations returns the Locations field if non-nil, zero value otherwise. + +### GetLocationsOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetLocationsOk() (*[]CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail, bool)` + +GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocations + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetLocations(v []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail)` + +SetLocations sets Locations field to given value. + +### HasLocations + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasLocations() bool` + +HasLocations returns a boolean if a field has been set. + +### SetLocationsNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetLocationsNil(b bool)` + + SetLocationsNil sets the value for Locations to be an explicit nil + +### UnsetLocations +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) UnsetLocations()` + +UnsetLocations ensures that no value is present for Locations, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail.md new file mode 100644 index 0000000..567b6d2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail.md @@ -0,0 +1,334 @@ +# CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | Pointer to **string** | | [optional] +**StoreTypeId** | Pointer to **int32** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] +**AgentPool** | Pointer to **NullableString** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**IPAddress** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] +**NetworkName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail + +`func NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail() *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail` + +NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults() *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail` + +NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreId() string` + +GetStoreId returns the StoreId field if non-nil, zero value otherwise. + +### GetStoreIdOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreIdOk() (*string, bool)` + +GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreId(v string)` + +SetStoreId sets StoreId field to given value. + +### HasStoreId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreId() bool` + +HasStoreId returns a boolean if a field has been set. + +### GetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorePath + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetAgentPool + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPool() string` + +GetAgentPool returns the AgentPool field if non-nil, zero value otherwise. + +### GetAgentPoolOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPoolOk() (*string, bool)` + +GetAgentPoolOk returns a tuple with the AgentPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPool + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPool(v string)` + +SetAgentPool sets AgentPool field to given value. + +### HasAgentPool + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAgentPool() bool` + +HasAgentPool returns a boolean if a field has been set. + +### SetAgentPoolNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPoolNil(b bool)` + + SetAgentPoolNil sets the value for AgentPool to be an explicit nil + +### UnsetAgentPool +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetAgentPool()` + +UnsetAgentPool ensures that no value is present for AgentPool, not even an explicit nil +### GetAlias + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetIPAddress + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddress() string` + +GetIPAddress returns the IPAddress field if non-nil, zero value otherwise. + +### GetIPAddressOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddressOk() (*string, bool)` + +GetIPAddressOk returns a tuple with the IPAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIPAddress + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddress(v string)` + +SetIPAddress sets IPAddress field to given value. + +### HasIPAddress + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasIPAddress() bool` + +HasIPAddress returns a boolean if a field has been set. + +### SetIPAddressNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddressNil(b bool)` + + SetIPAddressNil sets the value for IPAddress to be an explicit nil + +### UnsetIPAddress +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetIPAddress()` + +UnsetIPAddress ensures that no value is present for IPAddress, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil +### GetNetworkName + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + +### SetNetworkNameNil + +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkNameNil(b bool)` + + SetNetworkNameNil sets the value for NetworkName to be an explicit nil + +### UnsetNetworkName +`func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetNetworkName()` + +UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreNewPasswordRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreNewPasswordRequest.md new file mode 100644 index 0000000..8e61446 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreNewPasswordRequest.md @@ -0,0 +1,82 @@ +# CSSCMSDataModelModelsCertStoreNewPasswordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertStoreId** | **string** | | +**NewPassword** | **interface{}** | | + +## Methods + +### NewCSSCMSDataModelModelsCertStoreNewPasswordRequest + +`func NewCSSCMSDataModelModelsCertStoreNewPasswordRequest(certStoreId string, newPassword interface{}, ) *CSSCMSDataModelModelsCertStoreNewPasswordRequest` + +NewCSSCMSDataModelModelsCertStoreNewPasswordRequest instantiates a new CSSCMSDataModelModelsCertStoreNewPasswordRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreNewPasswordRequestWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreNewPasswordRequestWithDefaults() *CSSCMSDataModelModelsCertStoreNewPasswordRequest` + +NewCSSCMSDataModelModelsCertStoreNewPasswordRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreNewPasswordRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertStoreId + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetCertStoreId() string` + +GetCertStoreId returns the CertStoreId field if non-nil, zero value otherwise. + +### GetCertStoreIdOk + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetCertStoreIdOk() (*string, bool)` + +GetCertStoreIdOk returns a tuple with the CertStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreId + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) SetCertStoreId(v string)` + +SetCertStoreId sets CertStoreId field to given value. + + +### GetNewPassword + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetNewPassword() interface{}` + +GetNewPassword returns the NewPassword field if non-nil, zero value otherwise. + +### GetNewPasswordOk + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetNewPasswordOk() (*interface{}, bool)` + +GetNewPasswordOk returns a tuple with the NewPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewPassword + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) SetNewPassword(v interface{})` + +SetNewPassword sets NewPassword field to given value. + + +### SetNewPasswordNil + +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) SetNewPasswordNil(b bool)` + + SetNewPasswordNil sets the value for NewPassword to be an explicit nil + +### UnsetNewPassword +`func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) UnsetNewPassword()` + +UnsetNewPassword ensures that no value is present for NewPassword, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypePasswordOptions.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypePasswordOptions.md new file mode 100644 index 0000000..a65b7b2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypePasswordOptions.md @@ -0,0 +1,108 @@ +# CSSCMSDataModelModelsCertStoreTypePasswordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntrySupported** | Pointer to **bool** | | [optional] +**StoreRequired** | Pointer to **bool** | | [optional] +**Style** | Pointer to [**CSSCMSDataModelEnumsCertStoreTypesPasswordStyles**](CSSCMSDataModelEnumsCertStoreTypesPasswordStyles.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoreTypePasswordOptions + +`func NewCSSCMSDataModelModelsCertStoreTypePasswordOptions() *CSSCMSDataModelModelsCertStoreTypePasswordOptions` + +NewCSSCMSDataModelModelsCertStoreTypePasswordOptions instantiates a new CSSCMSDataModelModelsCertStoreTypePasswordOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreTypePasswordOptionsWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreTypePasswordOptionsWithDefaults() *CSSCMSDataModelModelsCertStoreTypePasswordOptions` + +NewCSSCMSDataModelModelsCertStoreTypePasswordOptionsWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreTypePasswordOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntrySupported + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetEntrySupported() bool` + +GetEntrySupported returns the EntrySupported field if non-nil, zero value otherwise. + +### GetEntrySupportedOk + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetEntrySupportedOk() (*bool, bool)` + +GetEntrySupportedOk returns a tuple with the EntrySupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntrySupported + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetEntrySupported(v bool)` + +SetEntrySupported sets EntrySupported field to given value. + +### HasEntrySupported + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasEntrySupported() bool` + +HasEntrySupported returns a boolean if a field has been set. + +### GetStoreRequired + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStoreRequired() bool` + +GetStoreRequired returns the StoreRequired field if non-nil, zero value otherwise. + +### GetStoreRequiredOk + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStoreRequiredOk() (*bool, bool)` + +GetStoreRequiredOk returns a tuple with the StoreRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreRequired + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetStoreRequired(v bool)` + +SetStoreRequired sets StoreRequired field to given value. + +### HasStoreRequired + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasStoreRequired() bool` + +HasStoreRequired returns a boolean if a field has been set. + +### GetStyle + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStyle() CSSCMSDataModelEnumsCertStoreTypesPasswordStyles` + +GetStyle returns the Style field if non-nil, zero value otherwise. + +### GetStyleOk + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStyleOk() (*CSSCMSDataModelEnumsCertStoreTypesPasswordStyles, bool)` + +GetStyleOk returns a tuple with the Style field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStyle + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetStyle(v CSSCMSDataModelEnumsCertStoreTypesPasswordStyles)` + +SetStyle sets Style field to given value. + +### HasStyle + +`func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasStyle() bool` + +HasStyle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md new file mode 100644 index 0000000..8f7377c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md @@ -0,0 +1,160 @@ +# CSSCMSDataModelModelsCertStoreTypeSupportedOperations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Add** | Pointer to **bool** | | [optional] +**Create** | Pointer to **bool** | | [optional] +**Discovery** | Pointer to **bool** | | [optional] +**Enrollment** | Pointer to **bool** | | [optional] +**Remove** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoreTypeSupportedOperations + +`func NewCSSCMSDataModelModelsCertStoreTypeSupportedOperations() *CSSCMSDataModelModelsCertStoreTypeSupportedOperations` + +NewCSSCMSDataModelModelsCertStoreTypeSupportedOperations instantiates a new CSSCMSDataModelModelsCertStoreTypeSupportedOperations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoreTypeSupportedOperationsWithDefaults + +`func NewCSSCMSDataModelModelsCertStoreTypeSupportedOperationsWithDefaults() *CSSCMSDataModelModelsCertStoreTypeSupportedOperations` + +NewCSSCMSDataModelModelsCertStoreTypeSupportedOperationsWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreTypeSupportedOperations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdd + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetAdd() bool` + +GetAdd returns the Add field if non-nil, zero value otherwise. + +### GetAddOk + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetAddOk() (*bool, bool)` + +GetAddOk returns a tuple with the Add field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdd + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetAdd(v bool)` + +SetAdd sets Add field to given value. + +### HasAdd + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasAdd() bool` + +HasAdd returns a boolean if a field has been set. + +### GetCreate + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetCreate() bool` + +GetCreate returns the Create field if non-nil, zero value otherwise. + +### GetCreateOk + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetCreateOk() (*bool, bool)` + +GetCreateOk returns a tuple with the Create field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreate + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetCreate(v bool)` + +SetCreate sets Create field to given value. + +### HasCreate + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasCreate() bool` + +HasCreate returns a boolean if a field has been set. + +### GetDiscovery + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetDiscovery() bool` + +GetDiscovery returns the Discovery field if non-nil, zero value otherwise. + +### GetDiscoveryOk + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetDiscoveryOk() (*bool, bool)` + +GetDiscoveryOk returns a tuple with the Discovery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovery + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetDiscovery(v bool)` + +SetDiscovery sets Discovery field to given value. + +### HasDiscovery + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasDiscovery() bool` + +HasDiscovery returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetEnrollment() bool` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetEnrollmentOk() (*bool, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetEnrollment(v bool)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetRemove + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetRemove() bool` + +GetRemove returns the Remove field if non-nil, zero value otherwise. + +### GetRemoveOk + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetRemoveOk() (*bool, bool)` + +GetRemoveOk returns a tuple with the Remove field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemove + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetRemove(v bool)` + +SetRemove sets Remove field to given value. + +### HasRemove + +`func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasRemove() bool` + +HasRemove returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoresSchedule.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoresSchedule.md new file mode 100644 index 0000000..8142379 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertStoresSchedule.md @@ -0,0 +1,77 @@ +# CSSCMSDataModelModelsCertStoresSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **[]string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertStoresSchedule + +`func NewCSSCMSDataModelModelsCertStoresSchedule(storeIds []string, ) *CSSCMSDataModelModelsCertStoresSchedule` + +NewCSSCMSDataModelModelsCertStoresSchedule instantiates a new CSSCMSDataModelModelsCertStoresSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertStoresScheduleWithDefaults + +`func NewCSSCMSDataModelModelsCertStoresScheduleWithDefaults() *CSSCMSDataModelModelsCertStoresSchedule` + +NewCSSCMSDataModelModelsCertStoresScheduleWithDefaults instantiates a new CSSCMSDataModelModelsCertStoresSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreIds + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + + +### GetSchedule + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsCertStoresSchedule) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md new file mode 100644 index 0000000..dce93b3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md @@ -0,0 +1,164 @@ +# CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + +`func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults + +`func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetExpirationDate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest.md new file mode 100644 index 0000000..b7f198b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest.md @@ -0,0 +1,624 @@ +# CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CAType** | Pointer to [**CSSCMSCoreEnumsCertificateAuthorityType**](CSSCMSCoreEnumsCertificateAuthorityType.md) | | [optional] +**ExplicitCredentials** | Pointer to **bool** | | [optional] +**ExplicitPassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**ExplicitUser** | Pointer to **NullableString** | | [optional] +**AuthCertificatePassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**AuthCertificate** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**LogicalName** | Pointer to **NullableString** | | [optional] +**HostName** | Pointer to **NullableString** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] +**ClientSecret** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**ClientId** | Pointer to **NullableString** | | [optional] +**TokenURL** | Pointer to **NullableString** | | [optional] +**Scope** | Pointer to **NullableString** | | [optional] +**UseCAConnector** | Pointer to **bool** | | [optional] +**ConnectorPool** | Pointer to **NullableString** | | [optional] +**Audience** | Pointer to **NullableString** | | [optional] +**Remote** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest + +`func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest` + +NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequestWithDefaults + +`func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequestWithDefaults() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest` + +NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCAType + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + +### GetExplicitCredentials + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitCredentials() bool` + +GetExplicitCredentials returns the ExplicitCredentials field if non-nil, zero value otherwise. + +### GetExplicitCredentialsOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitCredentialsOk() (*bool, bool)` + +GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitCredentials + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitCredentials(v bool)` + +SetExplicitCredentials sets ExplicitCredentials field to given value. + +### HasExplicitCredentials + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitCredentials() bool` + +HasExplicitCredentials returns a boolean if a field has been set. + +### GetExplicitPassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetExplicitPassword returns the ExplicitPassword field if non-nil, zero value otherwise. + +### GetExplicitPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetExplicitPasswordOk returns a tuple with the ExplicitPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitPassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetExplicitPassword sets ExplicitPassword field to given value. + +### HasExplicitPassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitPassword() bool` + +HasExplicitPassword returns a boolean if a field has been set. + +### GetExplicitUser + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitUser() string` + +GetExplicitUser returns the ExplicitUser field if non-nil, zero value otherwise. + +### GetExplicitUserOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitUserOk() (*string, bool)` + +GetExplicitUserOk returns a tuple with the ExplicitUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUser + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitUser(v string)` + +SetExplicitUser sets ExplicitUser field to given value. + +### HasExplicitUser + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitUser() bool` + +HasExplicitUser returns a boolean if a field has been set. + +### SetExplicitUserNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitUserNil(b bool)` + + SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil + +### UnsetExplicitUser +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetExplicitUser()` + +UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +### GetAuthCertificatePassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificatePassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetAuthCertificatePassword returns the AuthCertificatePassword field if non-nil, zero value otherwise. + +### GetAuthCertificatePasswordOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificatePasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificatePassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAuthCertificatePassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetAuthCertificatePassword sets AuthCertificatePassword field to given value. + +### HasAuthCertificatePassword + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAuthCertificatePassword() bool` + +HasAuthCertificatePassword returns a boolean if a field has been set. + +### GetAuthCertificate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificate() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetAuthCertificate returns the AuthCertificate field if non-nil, zero value otherwise. + +### GetAuthCertificateOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificateOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetAuthCertificateOk returns a tuple with the AuthCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAuthCertificate(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetAuthCertificate sets AuthCertificate field to given value. + +### HasAuthCertificate + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAuthCertificate() bool` + +HasAuthCertificate returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### SetLogicalNameNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetLogicalNameNil(b bool)` + + SetLogicalNameNil sets the value for LogicalName to be an explicit nil + +### UnsetLogicalName +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetLogicalName()` + +UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +### GetHostName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### SetHostNameNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetHostNameNil(b bool)` + + SetHostNameNil sets the value for HostName to be an explicit nil + +### UnsetHostName +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetHostName()` + +UnsetHostName ensures that no value is present for HostName, not even an explicit nil +### GetForestRoot + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +### GetClientSecret + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetClientId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### SetClientIdNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetTokenURL + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetTokenURL() string` + +GetTokenURL returns the TokenURL field if non-nil, zero value otherwise. + +### GetTokenURLOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetTokenURLOk() (*string, bool)` + +GetTokenURLOk returns a tuple with the TokenURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenURL + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetTokenURL(v string)` + +SetTokenURL sets TokenURL field to given value. + +### HasTokenURL + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasTokenURL() bool` + +HasTokenURL returns a boolean if a field has been set. + +### SetTokenURLNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetTokenURLNil(b bool)` + + SetTokenURLNil sets the value for TokenURL to be an explicit nil + +### UnsetTokenURL +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetTokenURL()` + +UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +### GetScope + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetUseCAConnector + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetUseCAConnector() bool` + +GetUseCAConnector returns the UseCAConnector field if non-nil, zero value otherwise. + +### GetUseCAConnectorOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetUseCAConnectorOk() (*bool, bool)` + +GetUseCAConnectorOk returns a tuple with the UseCAConnector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseCAConnector + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetUseCAConnector(v bool)` + +SetUseCAConnector sets UseCAConnector field to given value. + +### HasUseCAConnector + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasUseCAConnector() bool` + +HasUseCAConnector returns a boolean if a field has been set. + +### GetConnectorPool + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConnectorPool() string` + +GetConnectorPool returns the ConnectorPool field if non-nil, zero value otherwise. + +### GetConnectorPoolOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConnectorPoolOk() (*string, bool)` + +GetConnectorPoolOk returns a tuple with the ConnectorPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorPool + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConnectorPool(v string)` + +SetConnectorPool sets ConnectorPool field to given value. + +### HasConnectorPool + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasConnectorPool() bool` + +HasConnectorPool returns a boolean if a field has been set. + +### SetConnectorPoolNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConnectorPoolNil(b bool)` + + SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil + +### UnsetConnectorPool +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetConnectorPool()` + +UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +### GetAudience + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### SetAudienceNil + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAudienceNil(b bool)` + + SetAudienceNil sets the value for Audience to be an explicit nil + +### UnsetAudience +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetAudience()` + +UnsetAudience ensures that no value is present for Audience, not even an explicit nil +### GetRemote + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateCollectionNavItem.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateCollectionNavItem.md new file mode 100644 index 0000000..b5f7d49 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateCollectionNavItem.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsCertificateCollectionNavItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateCollectionNavItem + +`func NewCSSCMSDataModelModelsCertificateCollectionNavItem() *CSSCMSDataModelModelsCertificateCollectionNavItem` + +NewCSSCMSDataModelModelsCertificateCollectionNavItem instantiates a new CSSCMSDataModelModelsCertificateCollectionNavItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateCollectionNavItemWithDefaults + +`func NewCSSCMSDataModelModelsCertificateCollectionNavItemWithDefaults() *CSSCMSDataModelModelsCertificateCollectionNavItem` + +NewCSSCMSDataModelModelsCertificateCollectionNavItemWithDefaults instantiates a new CSSCMSDataModelModelsCertificateCollectionNavItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDetails.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDetails.md new file mode 100644 index 0000000..38e7053 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDetails.md @@ -0,0 +1,252 @@ +# CSSCMSDataModelModelsCertificateDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] +**IsEndEntity** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateDetails + +`func NewCSSCMSDataModelModelsCertificateDetails() *CSSCMSDataModelModelsCertificateDetails` + +NewCSSCMSDataModelModelsCertificateDetails instantiates a new CSSCMSDataModelModelsCertificateDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateDetailsWithDefaults + +`func NewCSSCMSDataModelModelsCertificateDetailsWithDefaults() *CSSCMSDataModelModelsCertificateDetails` + +NewCSSCMSDataModelModelsCertificateDetailsWithDefaults instantiates a new CSSCMSDataModelModelsCertificateDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *CSSCMSDataModelModelsCertificateDetails) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsCertificateDetails) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsCertificateDetails) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetNotAfter + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CSSCMSDataModelModelsCertificateDetails) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetIsEndEntity + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIsEndEntity() bool` + +GetIsEndEntity returns the IsEndEntity field if non-nil, zero value otherwise. + +### GetIsEndEntityOk + +`func (o *CSSCMSDataModelModelsCertificateDetails) GetIsEndEntityOk() (*bool, bool)` + +GetIsEndEntityOk returns a tuple with the IsEndEntity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEndEntity + +`func (o *CSSCMSDataModelModelsCertificateDetails) SetIsEndEntity(v bool)` + +SetIsEndEntity sets IsEndEntity field to given value. + +### HasIsEndEntity + +`func (o *CSSCMSDataModelModelsCertificateDetails) HasIsEndEntity() bool` + +HasIsEndEntity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDownloadResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDownloadResponse.md new file mode 100644 index 0000000..d5b7199 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateDownloadResponse.md @@ -0,0 +1,66 @@ +# CSSCMSDataModelModelsCertificateDownloadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateDownloadResponse + +`func NewCSSCMSDataModelModelsCertificateDownloadResponse() *CSSCMSDataModelModelsCertificateDownloadResponse` + +NewCSSCMSDataModelModelsCertificateDownloadResponse instantiates a new CSSCMSDataModelModelsCertificateDownloadResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateDownloadResponseWithDefaults + +`func NewCSSCMSDataModelModelsCertificateDownloadResponseWithDefaults() *CSSCMSDataModelModelsCertificateDownloadResponse` + +NewCSSCMSDataModelModelsCertificateDownloadResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateDownloadResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContent + +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### SetContentNil + +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) SetContentNil(b bool)` + + SetContentNil sets the value for Content to be an explicit nil + +### UnsetContent +`func (o *CSSCMSDataModelModelsCertificateDownloadResponse) UnsetContent()` + +UnsetContent ensures that no value is present for Content, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportRequestModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportRequestModel.md new file mode 100644 index 0000000..3acbafb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportRequestModel.md @@ -0,0 +1,303 @@ +# CSSCMSDataModelModelsCertificateImportRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Certificate** | **string** | | +**Password** | Pointer to **NullableString** | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] +**StoreIds** | Pointer to **[]string** | | [optional] +**StoreTypes** | Pointer to [**[]CSSCMSDataModelModelsEnrollmentManagementStoreType**](CSSCMSDataModelModelsEnrollmentManagementStoreType.md) | | [optional] +**Schedule** | Pointer to **NullableTime** | | [optional] +**OwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**OwnerRoleName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateImportRequestModel + +`func NewCSSCMSDataModelModelsCertificateImportRequestModel(certificate string, ) *CSSCMSDataModelModelsCertificateImportRequestModel` + +NewCSSCMSDataModelModelsCertificateImportRequestModel instantiates a new CSSCMSDataModelModelsCertificateImportRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateImportRequestModelWithDefaults + +`func NewCSSCMSDataModelModelsCertificateImportRequestModelWithDefaults() *CSSCMSDataModelModelsCertificateImportRequestModel` + +NewCSSCMSDataModelModelsCertificateImportRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsCertificateImportRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificate + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetCertificateOk() (*string, bool)` + +GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificate + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + + +### GetPassword + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetMetadata + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetStoreIds + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + +### HasStoreIds + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasStoreIds() bool` + +HasStoreIds returns a boolean if a field has been set. + +### SetStoreIdsNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreIdsNil(b bool)` + + SetStoreIdsNil sets the value for StoreIds to be an explicit nil + +### UnsetStoreIds +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetStoreIds()` + +UnsetStoreIds ensures that no value is present for StoreIds, not even an explicit nil +### GetStoreTypes + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreTypes() []CSSCMSDataModelModelsEnrollmentManagementStoreType` + +GetStoreTypes returns the StoreTypes field if non-nil, zero value otherwise. + +### GetStoreTypesOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreTypesOk() (*[]CSSCMSDataModelModelsEnrollmentManagementStoreType, bool)` + +GetStoreTypesOk returns a tuple with the StoreTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypes + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreTypes(v []CSSCMSDataModelModelsEnrollmentManagementStoreType)` + +SetStoreTypes sets StoreTypes field to given value. + +### HasStoreTypes + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasStoreTypes() bool` + +HasStoreTypes returns a boolean if a field has been set. + +### SetStoreTypesNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreTypesNil(b bool)` + + SetStoreTypesNil sets the value for StoreTypes to be an explicit nil + +### UnsetStoreTypes +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetStoreTypes()` + +UnsetStoreTypes ensures that no value is present for StoreTypes, not even an explicit nil +### GetSchedule + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetSchedule() time.Time` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetScheduleOk() (*time.Time, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetSchedule(v time.Time)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### SetScheduleNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetScheduleNil(b bool)` + + SetScheduleNil sets the value for Schedule to be an explicit nil + +### UnsetSchedule +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetSchedule()` + +UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +### GetOwnerRoleId + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleId() int32` + +GetOwnerRoleId returns the OwnerRoleId field if non-nil, zero value otherwise. + +### GetOwnerRoleIdOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleIdOk() (*int32, bool)` + +GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleId + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleId(v int32)` + +SetOwnerRoleId sets OwnerRoleId field to given value. + +### HasOwnerRoleId + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasOwnerRoleId() bool` + +HasOwnerRoleId returns a boolean if a field has been set. + +### SetOwnerRoleIdNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleIdNil(b bool)` + + SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil + +### UnsetOwnerRoleId +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetOwnerRoleId()` + +UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +### GetOwnerRoleName + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleName() string` + +GetOwnerRoleName returns the OwnerRoleName field if non-nil, zero value otherwise. + +### GetOwnerRoleNameOk + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleNameOk() (*string, bool)` + +GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleName + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleName(v string)` + +SetOwnerRoleName sets OwnerRoleName field to given value. + +### HasOwnerRoleName + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasOwnerRoleName() bool` + +HasOwnerRoleName returns a boolean if a field has been set. + +### SetOwnerRoleNameNil + +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleNameNil(b bool)` + + SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil + +### UnsetOwnerRoleName +`func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetOwnerRoleName()` + +UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportResponseModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportResponseModel.md new file mode 100644 index 0000000..63639ef --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateImportResponseModel.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsCertificateImportResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImportStatus** | Pointer to [**CSSCMSDataModelEnumsCertificateSavedState**](CSSCMSDataModelEnumsCertificateSavedState.md) | | [optional] +**JobStatus** | Pointer to [**CSSCMSDataModelEnumsCertificateImportJobStatus**](CSSCMSDataModelEnumsCertificateImportJobStatus.md) | | [optional] +**InvalidKeystores** | Pointer to [**[]CSSCMSDataModelModelsInvalidKeystore**](CSSCMSDataModelModelsInvalidKeystore.md) | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateImportResponseModel + +`func NewCSSCMSDataModelModelsCertificateImportResponseModel() *CSSCMSDataModelModelsCertificateImportResponseModel` + +NewCSSCMSDataModelModelsCertificateImportResponseModel instantiates a new CSSCMSDataModelModelsCertificateImportResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateImportResponseModelWithDefaults + +`func NewCSSCMSDataModelModelsCertificateImportResponseModelWithDefaults() *CSSCMSDataModelModelsCertificateImportResponseModel` + +NewCSSCMSDataModelModelsCertificateImportResponseModelWithDefaults instantiates a new CSSCMSDataModelModelsCertificateImportResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImportStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetImportStatus() CSSCMSDataModelEnumsCertificateSavedState` + +GetImportStatus returns the ImportStatus field if non-nil, zero value otherwise. + +### GetImportStatusOk + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetImportStatusOk() (*CSSCMSDataModelEnumsCertificateSavedState, bool)` + +GetImportStatusOk returns a tuple with the ImportStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetImportStatus(v CSSCMSDataModelEnumsCertificateSavedState)` + +SetImportStatus sets ImportStatus field to given value. + +### HasImportStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasImportStatus() bool` + +HasImportStatus returns a boolean if a field has been set. + +### GetJobStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetJobStatus() CSSCMSDataModelEnumsCertificateImportJobStatus` + +GetJobStatus returns the JobStatus field if non-nil, zero value otherwise. + +### GetJobStatusOk + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetJobStatusOk() (*CSSCMSDataModelEnumsCertificateImportJobStatus, bool)` + +GetJobStatusOk returns a tuple with the JobStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetJobStatus(v CSSCMSDataModelEnumsCertificateImportJobStatus)` + +SetJobStatus sets JobStatus field to given value. + +### HasJobStatus + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasJobStatus() bool` + +HasJobStatus returns a boolean if a field has been set. + +### GetInvalidKeystores + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetInvalidKeystores() []CSSCMSDataModelModelsInvalidKeystore` + +GetInvalidKeystores returns the InvalidKeystores field if non-nil, zero value otherwise. + +### GetInvalidKeystoresOk + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetInvalidKeystoresOk() (*[]CSSCMSDataModelModelsInvalidKeystore, bool)` + +GetInvalidKeystoresOk returns a tuple with the InvalidKeystores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidKeystores + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetInvalidKeystores(v []CSSCMSDataModelModelsInvalidKeystore)` + +SetInvalidKeystores sets InvalidKeystores field to given value. + +### HasInvalidKeystores + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasInvalidKeystores() bool` + +HasInvalidKeystores returns a boolean if a field has been set. + +### SetInvalidKeystoresNil + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetInvalidKeystoresNil(b bool)` + + SetInvalidKeystoresNil sets the value for InvalidKeystores to be an explicit nil + +### UnsetInvalidKeystores +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) UnsetInvalidKeystores()` + +UnsetInvalidKeystores ensures that no value is present for InvalidKeystores, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsCertificateImportResponseModel) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateLocationSpecifier.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateLocationSpecifier.md new file mode 100644 index 0000000..c3b4a1b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateLocationSpecifier.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsCertificateLocationSpecifier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | Pointer to **NullableString** | | [optional] +**CertificateStoreId** | Pointer to **string** | | [optional] +**JobFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateLocationSpecifier + +`func NewCSSCMSDataModelModelsCertificateLocationSpecifier() *CSSCMSDataModelModelsCertificateLocationSpecifier` + +NewCSSCMSDataModelModelsCertificateLocationSpecifier instantiates a new CSSCMSDataModelModelsCertificateLocationSpecifier object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateLocationSpecifierWithDefaults + +`func NewCSSCMSDataModelModelsCertificateLocationSpecifierWithDefaults() *CSSCMSDataModelModelsCertificateLocationSpecifier` + +NewCSSCMSDataModelModelsCertificateLocationSpecifierWithDefaults instantiates a new CSSCMSDataModelModelsCertificateLocationSpecifier object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlias + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetCertificateStoreId + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetCertificateStoreId() string` + +GetCertificateStoreId returns the CertificateStoreId field if non-nil, zero value otherwise. + +### GetCertificateStoreIdOk + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetCertificateStoreIdOk() (*string, bool)` + +GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStoreId + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetCertificateStoreId(v string)` + +SetCertificateStoreId sets CertificateStoreId field to given value. + +### HasCertificateStoreId + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasCertificateStoreId() bool` + +HasCertificateStoreId returns a boolean if a field has been set. + +### GetJobFields + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetJobFields() map[string]interface{}` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetJobFieldsOk() (*map[string]interface{}, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetJobFields(v map[string]interface{})` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateQuery.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateQuery.md new file mode 100644 index 0000000..a748071 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateQuery.md @@ -0,0 +1,330 @@ +# CSSCMSDataModelModelsCertificateQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Automated** | Pointer to **bool** | | [optional] +**Content** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to [**CSSCMSCoreEnumsDuplicateSubjectType**](CSSCMSCoreEnumsDuplicateSubjectType.md) | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**EstimatedCertCount** | Pointer to **int32** | | [optional] +**LastEstimated** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateQuery + +`func NewCSSCMSDataModelModelsCertificateQuery() *CSSCMSDataModelModelsCertificateQuery` + +NewCSSCMSDataModelModelsCertificateQuery instantiates a new CSSCMSDataModelModelsCertificateQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateQueryWithDefaults + +`func NewCSSCMSDataModelModelsCertificateQueryWithDefaults() *CSSCMSDataModelModelsCertificateQuery` + +NewCSSCMSDataModelModelsCertificateQueryWithDefaults instantiates a new CSSCMSDataModelModelsCertificateQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateQuery) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsCertificateQuery) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetAutomated + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetAutomated() bool` + +GetAutomated returns the Automated field if non-nil, zero value otherwise. + +### GetAutomatedOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetAutomatedOk() (*bool, bool)` + +GetAutomatedOk returns a tuple with the Automated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutomated + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetAutomated(v bool)` + +SetAutomated sets Automated field to given value. + +### HasAutomated + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasAutomated() bool` + +HasAutomated returns a boolean if a field has been set. + +### GetContent + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### SetContentNil + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetContentNil(b bool)` + + SetContentNil sets the value for Content to be an explicit nil + +### UnsetContent +`func (o *CSSCMSDataModelModelsCertificateQuery) UnsetContent()` + +UnsetContent ensures that no value is present for Content, not even an explicit nil +### GetDuplicationField + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetEstimatedCertCount + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetEstimatedCertCount() int32` + +GetEstimatedCertCount returns the EstimatedCertCount field if non-nil, zero value otherwise. + +### GetEstimatedCertCountOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetEstimatedCertCountOk() (*int32, bool)` + +GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedCertCount + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetEstimatedCertCount(v int32)` + +SetEstimatedCertCount sets EstimatedCertCount field to given value. + +### HasEstimatedCertCount + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasEstimatedCertCount() bool` + +HasEstimatedCertCount returns a boolean if a field has been set. + +### GetLastEstimated + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetLastEstimated() time.Time` + +GetLastEstimated returns the LastEstimated field if non-nil, zero value otherwise. + +### GetLastEstimatedOk + +`func (o *CSSCMSDataModelModelsCertificateQuery) GetLastEstimatedOk() (*time.Time, bool)` + +GetLastEstimatedOk returns a tuple with the LastEstimated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastEstimated + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetLastEstimated(v time.Time)` + +SetLastEstimated sets LastEstimated field to given value. + +### HasLastEstimated + +`func (o *CSSCMSDataModelModelsCertificateQuery) HasLastEstimated() bool` + +HasLastEstimated returns a boolean if a field has been set. + +### SetLastEstimatedNil + +`func (o *CSSCMSDataModelModelsCertificateQuery) SetLastEstimatedNil(b bool)` + + SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil + +### UnsetLastEstimated +`func (o *CSSCMSDataModelModelsCertificateQuery) UnsetLastEstimated()` + +UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStore.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStore.md new file mode 100644 index 0000000..e3181ee --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStore.md @@ -0,0 +1,552 @@ +# CSSCMSDataModelModelsCertificateStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] [readonly] +**ContainerId** | Pointer to **NullableInt32** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**Storepath** | Pointer to **NullableString** | | [optional] +**CertStoreInventoryJobId** | Pointer to **NullableString** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**AgentAssigned** | Pointer to **bool** | | [optional] +**ContainerName** | Pointer to **NullableString** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ReenrollmentStatus** | Pointer to [**CSSCMSDataModelModelsReenrollmentStatus**](CSSCMSDataModelModelsReenrollmentStatus.md) | | [optional] +**SetNewPasswordAllowed** | Pointer to **bool** | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorSecret**](CSSCMSDataModelModelsKeyfactorSecret.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStore + +`func NewCSSCMSDataModelModelsCertificateStore() *CSSCMSDataModelModelsCertificateStore` + +NewCSSCMSDataModelModelsCertificateStore instantiates a new CSSCMSDataModelModelsCertificateStore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreWithDefaults() *CSSCMSDataModelModelsCertificateStore` + +NewCSSCMSDataModelModelsCertificateStoreWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateStore) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateStore) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateStore) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStore) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStore) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStore) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStore) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStore) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *CSSCMSDataModelModelsCertificateStore) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### SetContainerIdNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetContainerIdNil(b bool)` + + SetContainerIdNil sets the value for ContainerId to be an explicit nil + +### UnsetContainerId +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetContainerId()` + +UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +### GetClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStore) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStore) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStore) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorepath + +`func (o *CSSCMSDataModelModelsCertificateStore) GetStorepath() string` + +GetStorepath returns the Storepath field if non-nil, zero value otherwise. + +### GetStorepathOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetStorepathOk() (*string, bool)` + +GetStorepathOk returns a tuple with the Storepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorepath + +`func (o *CSSCMSDataModelModelsCertificateStore) SetStorepath(v string)` + +SetStorepath sets Storepath field to given value. + +### HasStorepath + +`func (o *CSSCMSDataModelModelsCertificateStore) HasStorepath() bool` + +HasStorepath returns a boolean if a field has been set. + +### SetStorepathNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetStorepathNil(b bool)` + + SetStorepathNil sets the value for Storepath to be an explicit nil + +### UnsetStorepath +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetStorepath()` + +UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +### GetCertStoreInventoryJobId + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreInventoryJobId() string` + +GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field if non-nil, zero value otherwise. + +### GetCertStoreInventoryJobIdOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreInventoryJobIdOk() (*string, bool)` + +GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreInventoryJobId + +`func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreInventoryJobId(v string)` + +SetCertStoreInventoryJobId sets CertStoreInventoryJobId field to given value. + +### HasCertStoreInventoryJobId + +`func (o *CSSCMSDataModelModelsCertificateStore) HasCertStoreInventoryJobId() bool` + +HasCertStoreInventoryJobId returns a boolean if a field has been set. + +### SetCertStoreInventoryJobIdNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreInventoryJobIdNil(b bool)` + + SetCertStoreInventoryJobIdNil sets the value for CertStoreInventoryJobId to be an explicit nil + +### UnsetCertStoreInventoryJobId +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetCertStoreInventoryJobId()` + +UnsetCertStoreInventoryJobId ensures that no value is present for CertStoreInventoryJobId, not even an explicit nil +### GetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStore) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetApproved + +`func (o *CSSCMSDataModelModelsCertificateStore) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *CSSCMSDataModelModelsCertificateStore) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *CSSCMSDataModelModelsCertificateStore) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStore) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStore) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *CSSCMSDataModelModelsCertificateStore) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CSSCMSDataModelModelsCertificateStore) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CSSCMSDataModelModelsCertificateStore) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStore) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStore) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsCertificateStore) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStore) GetAgentAssigned() bool` + +GetAgentAssigned returns the AgentAssigned field if non-nil, zero value otherwise. + +### GetAgentAssignedOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetAgentAssignedOk() (*bool, bool)` + +GetAgentAssignedOk returns a tuple with the AgentAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStore) SetAgentAssigned(v bool)` + +SetAgentAssigned sets AgentAssigned field to given value. + +### HasAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStore) HasAgentAssigned() bool` + +HasAgentAssigned returns a boolean if a field has been set. + +### GetContainerName + +`func (o *CSSCMSDataModelModelsCertificateStore) GetContainerName() string` + +GetContainerName returns the ContainerName field if non-nil, zero value otherwise. + +### GetContainerNameOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetContainerNameOk() (*string, bool)` + +GetContainerNameOk returns a tuple with the ContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerName + +`func (o *CSSCMSDataModelModelsCertificateStore) SetContainerName(v string)` + +SetContainerName sets ContainerName field to given value. + +### HasContainerName + +`func (o *CSSCMSDataModelModelsCertificateStore) HasContainerName() bool` + +HasContainerName returns a boolean if a field has been set. + +### SetContainerNameNil + +`func (o *CSSCMSDataModelModelsCertificateStore) SetContainerNameNil(b bool)` + + SetContainerNameNil sets the value for ContainerName to be an explicit nil + +### UnsetContainerName +`func (o *CSSCMSDataModelModelsCertificateStore) UnsetContainerName()` + +UnsetContainerName ensures that no value is present for ContainerName, not even an explicit nil +### GetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStore) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStore) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStore) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetReenrollmentStatus + +`func (o *CSSCMSDataModelModelsCertificateStore) GetReenrollmentStatus() CSSCMSDataModelModelsReenrollmentStatus` + +GetReenrollmentStatus returns the ReenrollmentStatus field if non-nil, zero value otherwise. + +### GetReenrollmentStatusOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetReenrollmentStatusOk() (*CSSCMSDataModelModelsReenrollmentStatus, bool)` + +GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReenrollmentStatus + +`func (o *CSSCMSDataModelModelsCertificateStore) SetReenrollmentStatus(v CSSCMSDataModelModelsReenrollmentStatus)` + +SetReenrollmentStatus sets ReenrollmentStatus field to given value. + +### HasReenrollmentStatus + +`func (o *CSSCMSDataModelModelsCertificateStore) HasReenrollmentStatus() bool` + +HasReenrollmentStatus returns a boolean if a field has been set. + +### GetSetNewPasswordAllowed + +`func (o *CSSCMSDataModelModelsCertificateStore) GetSetNewPasswordAllowed() bool` + +GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field if non-nil, zero value otherwise. + +### GetSetNewPasswordAllowedOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetSetNewPasswordAllowedOk() (*bool, bool)` + +GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetNewPasswordAllowed + +`func (o *CSSCMSDataModelModelsCertificateStore) SetSetNewPasswordAllowed(v bool)` + +SetSetNewPasswordAllowed sets SetNewPasswordAllowed field to given value. + +### HasSetNewPasswordAllowed + +`func (o *CSSCMSDataModelModelsCertificateStore) HasSetNewPasswordAllowed() bool` + +HasSetNewPasswordAllowed returns a boolean if a field has been set. + +### GetPassword + +`func (o *CSSCMSDataModelModelsCertificateStore) GetPassword() CSSCMSDataModelModelsKeyfactorSecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateStore) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorSecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsCertificateStore) SetPassword(v CSSCMSDataModelModelsKeyfactorSecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsCertificateStore) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerListResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerListResponse.md new file mode 100644 index 0000000..f79cb9b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerListResponse.md @@ -0,0 +1,216 @@ +# CSSCMSDataModelModelsCertificateStoreContainerListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**OverwriteSchedules** | Pointer to **bool** | | [optional] +**Schedule** | Pointer to **NullableString** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**StoreCount** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoreContainerListResponse + +`func NewCSSCMSDataModelModelsCertificateStoreContainerListResponse() *CSSCMSDataModelModelsCertificateStoreContainerListResponse` + +NewCSSCMSDataModelModelsCertificateStoreContainerListResponse instantiates a new CSSCMSDataModelModelsCertificateStoreContainerListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreContainerListResponseWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreContainerListResponseWithDefaults() *CSSCMSDataModelModelsCertificateStoreContainerListResponse` + +NewCSSCMSDataModelModelsCertificateStoreContainerListResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreContainerListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetOverwriteSchedules() bool` + +GetOverwriteSchedules returns the OverwriteSchedules field if non-nil, zero value otherwise. + +### GetOverwriteSchedulesOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetOverwriteSchedulesOk() (*bool, bool)` + +GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetOverwriteSchedules(v bool)` + +SetOverwriteSchedules sets OverwriteSchedules field to given value. + +### HasOverwriteSchedules + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasOverwriteSchedules() bool` + +HasOverwriteSchedules returns a boolean if a field has been set. + +### GetSchedule + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetSchedule() string` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetScheduleOk() (*string, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetSchedule(v string)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### SetScheduleNil + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetScheduleNil(b bool)` + + SetScheduleNil sets the value for Schedule to be an explicit nil + +### UnsetSchedule +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetSchedule()` + +UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +### GetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetStoreCount + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetStoreCount() int32` + +GetStoreCount returns the StoreCount field if non-nil, zero value otherwise. + +### GetStoreCountOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetStoreCountOk() (*int32, bool)` + +GetStoreCountOk returns a tuple with the StoreCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreCount + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetStoreCount(v int32)` + +SetStoreCount sets StoreCount field to given value. + +### HasStoreCount + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasStoreCount() bool` + +HasStoreCount returns a boolean if a field has been set. + +### SetStoreCountNil + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetStoreCountNil(b bool)` + + SetStoreCountNil sets the value for StoreCount to be an explicit nil + +### UnsetStoreCount +`func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetStoreCount()` + +UnsetStoreCount ensures that no value is present for StoreCount, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerPermissions.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerPermissions.md new file mode 100644 index 0000000..b211e6b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreContainerPermissions.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsCertificateStoreContainerPermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecurityRoleId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoreContainerPermissions + +`func NewCSSCMSDataModelModelsCertificateStoreContainerPermissions() *CSSCMSDataModelModelsCertificateStoreContainerPermissions` + +NewCSSCMSDataModelModelsCertificateStoreContainerPermissions instantiates a new CSSCMSDataModelModelsCertificateStoreContainerPermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreContainerPermissionsWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreContainerPermissionsWithDefaults() *CSSCMSDataModelModelsCertificateStoreContainerPermissions` + +NewCSSCMSDataModelModelsCertificateStoreContainerPermissionsWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreContainerPermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecurityRoleId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetSecurityRoleId() int32` + +GetSecurityRoleId returns the SecurityRoleId field if non-nil, zero value otherwise. + +### GetSecurityRoleIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetSecurityRoleIdOk() (*int32, bool)` + +GetSecurityRoleIdOk returns a tuple with the SecurityRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityRoleId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetSecurityRoleId(v int32)` + +SetSecurityRoleId sets SecurityRoleId field to given value. + +### HasSecurityRoleId + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasSecurityRoleId() bool` + +HasSecurityRoleId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreEntry.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreEntry.md new file mode 100644 index 0000000..516831f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreEntry.md @@ -0,0 +1,237 @@ +# CSSCMSDataModelModelsCertificateStoreEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateStoreId** | **string** | | +**Alias** | Pointer to **NullableString** | | [optional] +**JobFields** | Pointer to **map[string]interface{}** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**EntryPassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**PfxPassword** | Pointer to **NullableString** | | [optional] +**IncludePrivateKey** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoreEntry + +`func NewCSSCMSDataModelModelsCertificateStoreEntry(certificateStoreId string, ) *CSSCMSDataModelModelsCertificateStoreEntry` + +NewCSSCMSDataModelModelsCertificateStoreEntry instantiates a new CSSCMSDataModelModelsCertificateStoreEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreEntryWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreEntryWithDefaults() *CSSCMSDataModelModelsCertificateStoreEntry` + +NewCSSCMSDataModelModelsCertificateStoreEntryWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateStoreId + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetCertificateStoreId() string` + +GetCertificateStoreId returns the CertificateStoreId field if non-nil, zero value otherwise. + +### GetCertificateStoreIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetCertificateStoreIdOk() (*string, bool)` + +GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStoreId + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetCertificateStoreId(v string)` + +SetCertificateStoreId sets CertificateStoreId field to given value. + + +### GetAlias + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetJobFields + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetJobFields() map[string]interface{}` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetJobFieldsOk() (*map[string]interface{}, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetJobFields(v map[string]interface{})` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil +### GetOverwrite + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetEntryPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetEntryPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetEntryPassword returns the EntryPassword field if non-nil, zero value otherwise. + +### GetEntryPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetEntryPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetEntryPasswordOk returns a tuple with the EntryPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetEntryPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetEntryPassword sets EntryPassword field to given value. + +### HasEntryPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasEntryPassword() bool` + +HasEntryPassword returns a boolean if a field has been set. + +### GetPfxPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetPfxPassword() string` + +GetPfxPassword returns the PfxPassword field if non-nil, zero value otherwise. + +### GetPfxPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetPfxPasswordOk() (*string, bool)` + +GetPfxPasswordOk returns a tuple with the PfxPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPfxPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetPfxPassword(v string)` + +SetPfxPassword sets PfxPassword field to given value. + +### HasPfxPassword + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasPfxPassword() bool` + +HasPfxPassword returns a boolean if a field has been set. + +### SetPfxPasswordNil + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetPfxPasswordNil(b bool)` + + SetPfxPasswordNil sets the value for PfxPassword to be an explicit nil + +### UnsetPfxPassword +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) UnsetPfxPassword()` + +UnsetPfxPassword ensures that no value is present for PfxPassword, not even an explicit nil +### GetIncludePrivateKey + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetIncludePrivateKey() bool` + +GetIncludePrivateKey returns the IncludePrivateKey field if non-nil, zero value otherwise. + +### GetIncludePrivateKeyOk + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetIncludePrivateKeyOk() (*bool, bool)` + +GetIncludePrivateKeyOk returns a tuple with the IncludePrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludePrivateKey + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetIncludePrivateKey(v bool)` + +SetIncludePrivateKey sets IncludePrivateKey field to given value. + +### HasIncludePrivateKey + +`func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasIncludePrivateKey() bool` + +HasIncludePrivateKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypeProperty.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypeProperty.md new file mode 100644 index 0000000..44eb61d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypeProperty.md @@ -0,0 +1,278 @@ +# CSSCMSDataModelModelsCertificateStoreTypeProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to [**CSSCMSCoreEnumsCertificateStoreTypePropertyType**](CSSCMSCoreEnumsCertificateStoreTypePropertyType.md) | | [optional] +**DependsOn** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**Required** | Pointer to **bool** | | [optional] +**Id** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoreTypeProperty + +`func NewCSSCMSDataModelModelsCertificateStoreTypeProperty() *CSSCMSDataModelModelsCertificateStoreTypeProperty` + +NewCSSCMSDataModelModelsCertificateStoreTypeProperty instantiates a new CSSCMSDataModelModelsCertificateStoreTypeProperty object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreTypePropertyWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreTypePropertyWithDefaults() *CSSCMSDataModelModelsCertificateStoreTypeProperty` + +NewCSSCMSDataModelModelsCertificateStoreTypePropertyWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreTypeProperty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetType() CSSCMSCoreEnumsCertificateStoreTypePropertyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetTypeOk() (*CSSCMSCoreEnumsCertificateStoreTypePropertyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetType(v CSSCMSCoreEnumsCertificateStoreTypePropertyType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDependsOn() string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDependsOnOk() (*string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDependsOn(v string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### SetDependsOnNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDependsOnNil(b bool)` + + SetDependsOnNil sets the value for DependsOn to be an explicit nil + +### UnsetDependsOn +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDependsOn()` + +UnsetDependsOn ensures that no value is present for DependsOn, not even an explicit nil +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetRequired + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md new file mode 100644 index 0000000..73b0d30 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md @@ -0,0 +1,314 @@ +# CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to [**CSSCMSCoreEnumsCertStoreEntryParameterType**](CSSCMSCoreEnumsCertStoreEntryParameterType.md) | | [optional] +**RequiredWhen** | Pointer to [**CSSCMSCoreEnumsEntryParameterUsageFlags**](CSSCMSCoreEnumsEntryParameterUsageFlags.md) | | [optional] +**DependsOn** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + +`func NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter() *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter instantiates a new CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults() *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetType() CSSCMSCoreEnumsCertStoreEntryParameterType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetTypeOk() (*CSSCMSCoreEnumsCertStoreEntryParameterType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetType(v CSSCMSCoreEnumsCertStoreEntryParameterType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRequiredWhen + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhen() CSSCMSCoreEnumsEntryParameterUsageFlags` + +GetRequiredWhen returns the RequiredWhen field if non-nil, zero value otherwise. + +### GetRequiredWhenOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhenOk() (*CSSCMSCoreEnumsEntryParameterUsageFlags, bool)` + +GetRequiredWhenOk returns a tuple with the RequiredWhen field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredWhen + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetRequiredWhen(v CSSCMSCoreEnumsEntryParameterUsageFlags)` + +SetRequiredWhen sets RequiredWhen field to given value. + +### HasRequiredWhen + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasRequiredWhen() bool` + +HasRequiredWhen returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOn() string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOnOk() (*string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOn(v string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### SetDependsOnNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOnNil(b bool)` + + SetDependsOnNil sets the value for DependsOn to be an explicit nil + +### UnsetDependsOn +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDependsOn()` + +UnsetDependsOn ensures that no value is present for DependsOn, not even an explicit nil +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetOptions + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest.md new file mode 100644 index 0000000..c5ee0cd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest.md @@ -0,0 +1,340 @@ +# CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **NullableInt32** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**Storepath** | Pointer to **NullableString** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**AgentAssigned** | Pointer to **bool** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest + +`func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest() *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest` + +NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequestWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequestWithDefaults() *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest` + +NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### SetContainerIdNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetContainerIdNil(b bool)` + + SetContainerIdNil sets the value for ContainerId to be an explicit nil + +### UnsetContainerId +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetContainerId()` + +UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +### GetClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorepath + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetStorepath() string` + +GetStorepath returns the Storepath field if non-nil, zero value otherwise. + +### GetStorepathOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetStorepathOk() (*string, bool)` + +GetStorepathOk returns a tuple with the Storepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorepath + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetStorepath(v string)` + +SetStorepath sets Storepath field to given value. + +### HasStorepath + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasStorepath() bool` + +HasStorepath returns a boolean if a field has been set. + +### SetStorepathNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetStorepathNil(b bool)` + + SetStorepathNil sets the value for Storepath to be an explicit nil + +### UnsetStorepath +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetStorepath()` + +UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +### GetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssigned() bool` + +GetAgentAssigned returns the AgentAssigned field if non-nil, zero value otherwise. + +### GetAgentAssignedOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssignedOk() (*bool, bool)` + +GetAgentAssignedOk returns a tuple with the AgentAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentAssigned(v bool)` + +SetAgentAssigned sets AgentAssigned field to given value. + +### HasAgentAssigned + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasAgentAssigned() bool` + +HasAgentAssigned returns a boolean if a field has been set. + +### GetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest.md new file mode 100644 index 0000000..2362d01 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest.md @@ -0,0 +1,242 @@ +# CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **NullableInt32** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest + +`func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest() *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest` + +NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults() *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest` + +NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### SetContainerIdNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerIdNil(b bool)` + + SetContainerIdNil sets the value for ContainerId to be an explicit nil + +### UnsetContainerId +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetContainerId()` + +UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +### GetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateValidationResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateValidationResponse.md new file mode 100644 index 0000000..34de4d9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsCertificateValidationResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsCertificateValidationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | Pointer to **bool** | | [optional] +**Results** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsCertificateValidationResponse + +`func NewCSSCMSDataModelModelsCertificateValidationResponse() *CSSCMSDataModelModelsCertificateValidationResponse` + +NewCSSCMSDataModelModelsCertificateValidationResponse instantiates a new CSSCMSDataModelModelsCertificateValidationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsCertificateValidationResponseWithDefaults + +`func NewCSSCMSDataModelModelsCertificateValidationResponseWithDefaults() *CSSCMSDataModelModelsCertificateValidationResponse` + +NewCSSCMSDataModelModelsCertificateValidationResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateValidationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValid + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + +### GetResults + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetResults() map[string]string` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetResultsOk() (*map[string]string, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) SetResults(v map[string]string)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) HasResults() bool` + +HasResults returns a boolean if a field has been set. + +### SetResultsNil + +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) SetResultsNil(b bool)` + + SetResultsNil sets the value for Results to be an explicit nil + +### UnsetResults +`func (o *CSSCMSDataModelModelsCertificateValidationResponse) UnsetResults()` + +UnsetResults ensures that no value is present for Results, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsContainerAssignment.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsContainerAssignment.md new file mode 100644 index 0000000..493568b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsContainerAssignment.md @@ -0,0 +1,139 @@ +# CSSCMSDataModelModelsContainerAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertStoreContainerId** | Pointer to **int32** | | [optional] +**NewContainerName** | Pointer to **NullableString** | | [optional] +**NewContainerType** | Pointer to **int32** | | [optional] +**KeystoreIds** | **[]string** | | + +## Methods + +### NewCSSCMSDataModelModelsContainerAssignment + +`func NewCSSCMSDataModelModelsContainerAssignment(keystoreIds []string, ) *CSSCMSDataModelModelsContainerAssignment` + +NewCSSCMSDataModelModelsContainerAssignment instantiates a new CSSCMSDataModelModelsContainerAssignment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsContainerAssignmentWithDefaults + +`func NewCSSCMSDataModelModelsContainerAssignmentWithDefaults() *CSSCMSDataModelModelsContainerAssignment` + +NewCSSCMSDataModelModelsContainerAssignmentWithDefaults instantiates a new CSSCMSDataModelModelsContainerAssignment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertStoreContainerId + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetCertStoreContainerId() int32` + +GetCertStoreContainerId returns the CertStoreContainerId field if non-nil, zero value otherwise. + +### GetCertStoreContainerIdOk + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetCertStoreContainerIdOk() (*int32, bool)` + +GetCertStoreContainerIdOk returns a tuple with the CertStoreContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreContainerId + +`func (o *CSSCMSDataModelModelsContainerAssignment) SetCertStoreContainerId(v int32)` + +SetCertStoreContainerId sets CertStoreContainerId field to given value. + +### HasCertStoreContainerId + +`func (o *CSSCMSDataModelModelsContainerAssignment) HasCertStoreContainerId() bool` + +HasCertStoreContainerId returns a boolean if a field has been set. + +### GetNewContainerName + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerName() string` + +GetNewContainerName returns the NewContainerName field if non-nil, zero value otherwise. + +### GetNewContainerNameOk + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerNameOk() (*string, bool)` + +GetNewContainerNameOk returns a tuple with the NewContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewContainerName + +`func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerName(v string)` + +SetNewContainerName sets NewContainerName field to given value. + +### HasNewContainerName + +`func (o *CSSCMSDataModelModelsContainerAssignment) HasNewContainerName() bool` + +HasNewContainerName returns a boolean if a field has been set. + +### SetNewContainerNameNil + +`func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerNameNil(b bool)` + + SetNewContainerNameNil sets the value for NewContainerName to be an explicit nil + +### UnsetNewContainerName +`func (o *CSSCMSDataModelModelsContainerAssignment) UnsetNewContainerName()` + +UnsetNewContainerName ensures that no value is present for NewContainerName, not even an explicit nil +### GetNewContainerType + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerType() int32` + +GetNewContainerType returns the NewContainerType field if non-nil, zero value otherwise. + +### GetNewContainerTypeOk + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerTypeOk() (*int32, bool)` + +GetNewContainerTypeOk returns a tuple with the NewContainerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewContainerType + +`func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerType(v int32)` + +SetNewContainerType sets NewContainerType field to given value. + +### HasNewContainerType + +`func (o *CSSCMSDataModelModelsContainerAssignment) HasNewContainerType() bool` + +HasNewContainerType returns a boolean if a field has been set. + +### GetKeystoreIds + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetKeystoreIds() []string` + +GetKeystoreIds returns the KeystoreIds field if non-nil, zero value otherwise. + +### GetKeystoreIdsOk + +`func (o *CSSCMSDataModelModelsContainerAssignment) GetKeystoreIdsOk() (*[]string, bool)` + +GetKeystoreIdsOk returns a tuple with the KeystoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreIds + +`func (o *CSSCMSDataModelModelsContainerAssignment) SetKeystoreIds(v []string)` + +SetKeystoreIds sets KeystoreIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsDiscoveryJobRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsDiscoveryJobRequest.md new file mode 100644 index 0000000..85f46a6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsDiscoveryJobRequest.md @@ -0,0 +1,433 @@ +# CSSCMSDataModelModelsDiscoveryJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientMachine** | Pointer to **NullableString** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**Type** | **int32** | | +**JobExecutionTimestamp** | Pointer to **NullableTime** | | [optional] +**Dirs** | Pointer to **NullableString** | | [optional] +**IgnoredDirs** | Pointer to **NullableString** | | [optional] +**Extensions** | Pointer to **NullableString** | | [optional] +**NamePatterns** | Pointer to **NullableString** | | [optional] +**SymLinks** | Pointer to **bool** | | [optional] +**Compatibility** | Pointer to **bool** | | [optional] +**ServerUsername** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**ServerPassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**ServerUseSsl** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsDiscoveryJobRequest + +`func NewCSSCMSDataModelModelsDiscoveryJobRequest(type_ int32, ) *CSSCMSDataModelModelsDiscoveryJobRequest` + +NewCSSCMSDataModelModelsDiscoveryJobRequest instantiates a new CSSCMSDataModelModelsDiscoveryJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsDiscoveryJobRequestWithDefaults + +`func NewCSSCMSDataModelModelsDiscoveryJobRequestWithDefaults() *CSSCMSDataModelModelsDiscoveryJobRequest` + +NewCSSCMSDataModelModelsDiscoveryJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsDiscoveryJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientMachine + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetType + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetType(v int32)` + +SetType sets Type field to given value. + + +### GetJobExecutionTimestamp + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetJobExecutionTimestamp() time.Time` + +GetJobExecutionTimestamp returns the JobExecutionTimestamp field if non-nil, zero value otherwise. + +### GetJobExecutionTimestampOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetJobExecutionTimestampOk() (*time.Time, bool)` + +GetJobExecutionTimestampOk returns a tuple with the JobExecutionTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobExecutionTimestamp + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetJobExecutionTimestamp(v time.Time)` + +SetJobExecutionTimestamp sets JobExecutionTimestamp field to given value. + +### HasJobExecutionTimestamp + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasJobExecutionTimestamp() bool` + +HasJobExecutionTimestamp returns a boolean if a field has been set. + +### SetJobExecutionTimestampNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetJobExecutionTimestampNil(b bool)` + + SetJobExecutionTimestampNil sets the value for JobExecutionTimestamp to be an explicit nil + +### UnsetJobExecutionTimestamp +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetJobExecutionTimestamp()` + +UnsetJobExecutionTimestamp ensures that no value is present for JobExecutionTimestamp, not even an explicit nil +### GetDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetDirs() string` + +GetDirs returns the Dirs field if non-nil, zero value otherwise. + +### GetDirsOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetDirsOk() (*string, bool)` + +GetDirsOk returns a tuple with the Dirs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetDirs(v string)` + +SetDirs sets Dirs field to given value. + +### HasDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasDirs() bool` + +HasDirs returns a boolean if a field has been set. + +### SetDirsNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetDirsNil(b bool)` + + SetDirsNil sets the value for Dirs to be an explicit nil + +### UnsetDirs +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetDirs()` + +UnsetDirs ensures that no value is present for Dirs, not even an explicit nil +### GetIgnoredDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetIgnoredDirs() string` + +GetIgnoredDirs returns the IgnoredDirs field if non-nil, zero value otherwise. + +### GetIgnoredDirsOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetIgnoredDirsOk() (*string, bool)` + +GetIgnoredDirsOk returns a tuple with the IgnoredDirs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoredDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetIgnoredDirs(v string)` + +SetIgnoredDirs sets IgnoredDirs field to given value. + +### HasIgnoredDirs + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasIgnoredDirs() bool` + +HasIgnoredDirs returns a boolean if a field has been set. + +### SetIgnoredDirsNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetIgnoredDirsNil(b bool)` + + SetIgnoredDirsNil sets the value for IgnoredDirs to be an explicit nil + +### UnsetIgnoredDirs +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetIgnoredDirs()` + +UnsetIgnoredDirs ensures that no value is present for IgnoredDirs, not even an explicit nil +### GetExtensions + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetExtensions() string` + +GetExtensions returns the Extensions field if non-nil, zero value otherwise. + +### GetExtensionsOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetExtensionsOk() (*string, bool)` + +GetExtensionsOk returns a tuple with the Extensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensions + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetExtensions(v string)` + +SetExtensions sets Extensions field to given value. + +### HasExtensions + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasExtensions() bool` + +HasExtensions returns a boolean if a field has been set. + +### SetExtensionsNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetExtensionsNil(b bool)` + + SetExtensionsNil sets the value for Extensions to be an explicit nil + +### UnsetExtensions +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetExtensions()` + +UnsetExtensions ensures that no value is present for Extensions, not even an explicit nil +### GetNamePatterns + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetNamePatterns() string` + +GetNamePatterns returns the NamePatterns field if non-nil, zero value otherwise. + +### GetNamePatternsOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetNamePatternsOk() (*string, bool)` + +GetNamePatternsOk returns a tuple with the NamePatterns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamePatterns + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetNamePatterns(v string)` + +SetNamePatterns sets NamePatterns field to given value. + +### HasNamePatterns + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasNamePatterns() bool` + +HasNamePatterns returns a boolean if a field has been set. + +### SetNamePatternsNil + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetNamePatternsNil(b bool)` + + SetNamePatternsNil sets the value for NamePatterns to be an explicit nil + +### UnsetNamePatterns +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetNamePatterns()` + +UnsetNamePatterns ensures that no value is present for NamePatterns, not even an explicit nil +### GetSymLinks + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetSymLinks() bool` + +GetSymLinks returns the SymLinks field if non-nil, zero value otherwise. + +### GetSymLinksOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetSymLinksOk() (*bool, bool)` + +GetSymLinksOk returns a tuple with the SymLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSymLinks + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetSymLinks(v bool)` + +SetSymLinks sets SymLinks field to given value. + +### HasSymLinks + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasSymLinks() bool` + +HasSymLinks returns a boolean if a field has been set. + +### GetCompatibility + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetCompatibility() bool` + +GetCompatibility returns the Compatibility field if non-nil, zero value otherwise. + +### GetCompatibilityOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetCompatibilityOk() (*bool, bool)` + +GetCompatibilityOk returns a tuple with the Compatibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompatibility + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetCompatibility(v bool)` + +SetCompatibility sets Compatibility field to given value. + +### HasCompatibility + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasCompatibility() bool` + +HasCompatibility returns a boolean if a field has been set. + +### GetServerUsername + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUsername() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetServerUsername returns the ServerUsername field if non-nil, zero value otherwise. + +### GetServerUsernameOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUsernameOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetServerUsernameOk returns a tuple with the ServerUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUsername + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerUsername(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetServerUsername sets ServerUsername field to given value. + +### HasServerUsername + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerUsername() bool` + +HasServerUsername returns a boolean if a field has been set. + +### GetServerPassword + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetServerPassword returns the ServerPassword field if non-nil, zero value otherwise. + +### GetServerPasswordOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetServerPasswordOk returns a tuple with the ServerPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerPassword + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetServerPassword sets ServerPassword field to given value. + +### HasServerPassword + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerPassword() bool` + +HasServerPassword returns a boolean if a field has been set. + +### GetServerUseSsl + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUseSsl() bool` + +GetServerUseSsl returns the ServerUseSsl field if non-nil, zero value otherwise. + +### GetServerUseSslOk + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUseSslOk() (*bool, bool)` + +GetServerUseSslOk returns a tuple with the ServerUseSsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUseSsl + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerUseSsl(v bool)` + +SetServerUseSsl sets ServerUseSsl field to given value. + +### HasServerUseSsl + +`func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerUseSsl() bool` + +HasServerUseSsl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentAvailableRenewal.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentAvailableRenewal.md new file mode 100644 index 0000000..0b8d0e2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentAvailableRenewal.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsEnrollmentAvailableRenewal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableRenewalType** | Pointer to [**CSSCMSDataModelEnumsRenewalType**](CSSCMSDataModelEnumsRenewalType.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentAvailableRenewal + +`func NewCSSCMSDataModelModelsEnrollmentAvailableRenewal() *CSSCMSDataModelModelsEnrollmentAvailableRenewal` + +NewCSSCMSDataModelModelsEnrollmentAvailableRenewal instantiates a new CSSCMSDataModelModelsEnrollmentAvailableRenewal object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentAvailableRenewalWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentAvailableRenewalWithDefaults() *CSSCMSDataModelModelsEnrollmentAvailableRenewal` + +NewCSSCMSDataModelModelsEnrollmentAvailableRenewalWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentAvailableRenewal object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailableRenewalType + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetAvailableRenewalType() CSSCMSDataModelEnumsRenewalType` + +GetAvailableRenewalType returns the AvailableRenewalType field if non-nil, zero value otherwise. + +### GetAvailableRenewalTypeOk + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetAvailableRenewalTypeOk() (*CSSCMSDataModelEnumsRenewalType, bool)` + +GetAvailableRenewalTypeOk returns a tuple with the AvailableRenewalType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableRenewalType + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetAvailableRenewalType(v CSSCMSDataModelEnumsRenewalType)` + +SetAvailableRenewalType sets AvailableRenewalType field to given value. + +### HasAvailableRenewalType + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) HasAvailableRenewalType() bool` + +HasAvailableRenewalType returns a boolean if a field has been set. + +### GetMessage + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse.md new file mode 100644 index 0000000..17f9333 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateInformation** | Pointer to [**CSSCMSDataModelModelsPkcs10CertificateResponse**](CSSCMSDataModelModelsPkcs10CertificateResponse.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse + +`func NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse() *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse` + +NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse instantiates a new CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponseWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponseWithDefaults() *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse` + +NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponseWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs10CertificateResponse` + +GetCertificateInformation returns the CertificateInformation field if non-nil, zero value otherwise. + +### GetCertificateInformationOk + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs10CertificateResponse, bool)` + +GetCertificateInformationOk returns a tuple with the CertificateInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs10CertificateResponse)` + +SetCertificateInformation sets CertificateInformation field to given value. + +### HasCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) HasCertificateInformation() bool` + +HasCertificateInformation returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest.md new file mode 100644 index 0000000..09cea76 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest.md @@ -0,0 +1,170 @@ +# CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExistingCertificateId** | Pointer to **int32** | | [optional] +**CertificateId** | Pointer to **int32** | | [optional] +**RequestId** | Pointer to **int32** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] +**JobTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest + +`func NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest() *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest` + +NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest instantiates a new CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults() *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest` + +NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExistingCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateId() int32` + +GetExistingCertificateId returns the ExistingCertificateId field if non-nil, zero value otherwise. + +### GetExistingCertificateIdOk + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateIdOk() (*int32, bool)` + +GetExistingCertificateIdOk returns a tuple with the ExistingCertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExistingCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetExistingCertificateId(v int32)` + +SetExistingCertificateId sets ExistingCertificateId field to given value. + +### HasExistingCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasExistingCertificateId() bool` + +HasExistingCertificateId returns a boolean if a field has been set. + +### GetCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### GetRequestId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestId() int32` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetRequestId(v int32)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetPassword + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetJobTime + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTime() time.Time` + +GetJobTime returns the JobTime field if non-nil, zero value otherwise. + +### GetJobTimeOk + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool)` + +GetJobTimeOk returns a tuple with the JobTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTime + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetJobTime(v time.Time)` + +SetJobTime sets JobTime field to given value. + +### HasJobTime + +`func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasJobTime() bool` + +HasJobTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentManagementStoreType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentManagementStoreType.md new file mode 100644 index 0000000..a6dbf2d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentManagementStoreType.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsEnrollmentManagementStoreType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentManagementStoreType + +`func NewCSSCMSDataModelModelsEnrollmentManagementStoreType() *CSSCMSDataModelModelsEnrollmentManagementStoreType` + +NewCSSCMSDataModelModelsEnrollmentManagementStoreType instantiates a new CSSCMSDataModelModelsEnrollmentManagementStoreType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentManagementStoreTypeWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentManagementStoreTypeWithDefaults() *CSSCMSDataModelModelsEnrollmentManagementStoreType` + +NewCSSCMSDataModelModelsEnrollmentManagementStoreTypeWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentManagementStoreType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetAlias + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetOverwrite + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetProperties() []interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetPropertiesOk() (*[]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetProperties(v []interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse.md new file mode 100644 index 0000000..099fef7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateInformation** | Pointer to [**CSSCMSDataModelModelsPkcs12CertificateResponse**](CSSCMSDataModelModelsPkcs12CertificateResponse.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse + +`func NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse() *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse` + +NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse instantiates a new CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponseWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponseWithDefaults() *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse` + +NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponseWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs12CertificateResponse` + +GetCertificateInformation returns the CertificateInformation field if non-nil, zero value otherwise. + +### GetCertificateInformationOk + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs12CertificateResponse, bool)` + +GetCertificateInformationOk returns a tuple with the CertificateInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs12CertificateResponse)` + +SetCertificateInformation sets CertificateInformation field to given value. + +### HasCertificateInformation + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) HasCertificateInformation() bool` + +HasCertificateInformation returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentRenewalRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentRenewalRequest.md new file mode 100644 index 0000000..cb0037c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsEnrollmentRenewalRequest.md @@ -0,0 +1,200 @@ +# CSSCMSDataModelModelsEnrollmentRenewalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateId** | Pointer to **NullableInt32** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsEnrollmentRenewalRequest + +`func NewCSSCMSDataModelModelsEnrollmentRenewalRequest() *CSSCMSDataModelModelsEnrollmentRenewalRequest` + +NewCSSCMSDataModelModelsEnrollmentRenewalRequest instantiates a new CSSCMSDataModelModelsEnrollmentRenewalRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsEnrollmentRenewalRequestWithDefaults + +`func NewCSSCMSDataModelModelsEnrollmentRenewalRequestWithDefaults() *CSSCMSDataModelModelsEnrollmentRenewalRequest` + +NewCSSCMSDataModelModelsEnrollmentRenewalRequestWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentRenewalRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### SetCertificateIdNil + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateIdNil(b bool)` + + SetCertificateIdNil sets the value for CertificateId to be an explicit nil + +### UnsetCertificateId +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetCertificateId()` + +UnsetCertificateId ensures that no value is present for CertificateId, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetCertificateAuthority + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetTemplate + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetTimestamp + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsExtendedKeyUsage.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsExtendedKeyUsage.md new file mode 100644 index 0000000..f76a861 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsExtendedKeyUsage.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsExtendedKeyUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsExtendedKeyUsage + +`func NewCSSCMSDataModelModelsExtendedKeyUsage() *CSSCMSDataModelModelsExtendedKeyUsage` + +NewCSSCMSDataModelModelsExtendedKeyUsage instantiates a new CSSCMSDataModelModelsExtendedKeyUsage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsExtendedKeyUsageWithDefaults + +`func NewCSSCMSDataModelModelsExtendedKeyUsageWithDefaults() *CSSCMSDataModelModelsExtendedKeyUsage` + +NewCSSCMSDataModelModelsExtendedKeyUsageWithDefaults instantiates a new CSSCMSDataModelModelsExtendedKeyUsage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### SetOidNil + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetOidNil(b bool)` + + SetOidNil sets the value for Oid to be an explicit nil + +### UnsetOid +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) UnsetOid()` + +UnsetOid ensures that no value is present for Oid, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsExtendedKeyUsage) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsInvalidKeystore.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsInvalidKeystore.md new file mode 100644 index 0000000..a0f0b8d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsInvalidKeystore.md @@ -0,0 +1,226 @@ +# CSSCMSDataModelModelsInvalidKeystore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeystoreId** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**Reason** | Pointer to [**CSSCMSDataModelEnumsFailureType**](CSSCMSDataModelEnumsFailureType.md) | | [optional] +**Explanation** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsInvalidKeystore + +`func NewCSSCMSDataModelModelsInvalidKeystore() *CSSCMSDataModelModelsInvalidKeystore` + +NewCSSCMSDataModelModelsInvalidKeystore instantiates a new CSSCMSDataModelModelsInvalidKeystore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsInvalidKeystoreWithDefaults + +`func NewCSSCMSDataModelModelsInvalidKeystoreWithDefaults() *CSSCMSDataModelModelsInvalidKeystore` + +NewCSSCMSDataModelModelsInvalidKeystoreWithDefaults instantiates a new CSSCMSDataModelModelsInvalidKeystore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeystoreId + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetKeystoreId() string` + +GetKeystoreId returns the KeystoreId field if non-nil, zero value otherwise. + +### GetKeystoreIdOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetKeystoreIdOk() (*string, bool)` + +GetKeystoreIdOk returns a tuple with the KeystoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreId + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetKeystoreId(v string)` + +SetKeystoreId sets KeystoreId field to given value. + +### HasKeystoreId + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasKeystoreId() bool` + +HasKeystoreId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorePath + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetAlias + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetReason + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetReason() CSSCMSDataModelEnumsFailureType` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetReasonOk() (*CSSCMSDataModelEnumsFailureType, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetReason(v CSSCMSDataModelEnumsFailureType)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetExplanation + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetExplanation() string` + +GetExplanation returns the Explanation field if non-nil, zero value otherwise. + +### GetExplanationOk + +`func (o *CSSCMSDataModelModelsInvalidKeystore) GetExplanationOk() (*string, bool)` + +GetExplanationOk returns a tuple with the Explanation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplanation + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetExplanation(v string)` + +SetExplanation sets Explanation field to given value. + +### HasExplanation + +`func (o *CSSCMSDataModelModelsInvalidKeystore) HasExplanation() bool` + +HasExplanation returns a boolean if a field has been set. + +### SetExplanationNil + +`func (o *CSSCMSDataModelModelsInvalidKeystore) SetExplanationNil(b bool)` + + SetExplanationNil sets the value for Explanation to be an explicit nil + +### UnsetExplanation +`func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetExplanation()` + +UnsetExplanation ensures that no value is present for Explanation, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorAPISecret.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorAPISecret.md new file mode 100644 index 0000000..207d804 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorAPISecret.md @@ -0,0 +1,138 @@ +# CSSCMSDataModelModelsKeyfactorAPISecret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecretValue** | Pointer to **NullableString** | | [optional] +**Parameters** | Pointer to **map[string]string** | | [optional] +**Provider** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsKeyfactorAPISecret + +`func NewCSSCMSDataModelModelsKeyfactorAPISecret() *CSSCMSDataModelModelsKeyfactorAPISecret` + +NewCSSCMSDataModelModelsKeyfactorAPISecret instantiates a new CSSCMSDataModelModelsKeyfactorAPISecret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsKeyfactorAPISecretWithDefaults + +`func NewCSSCMSDataModelModelsKeyfactorAPISecretWithDefaults() *CSSCMSDataModelModelsKeyfactorAPISecret` + +NewCSSCMSDataModelModelsKeyfactorAPISecretWithDefaults instantiates a new CSSCMSDataModelModelsKeyfactorAPISecret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecretValue + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetSecretValue() string` + +GetSecretValue returns the SecretValue field if non-nil, zero value otherwise. + +### GetSecretValueOk + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetSecretValueOk() (*string, bool)` + +GetSecretValueOk returns a tuple with the SecretValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretValue + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetSecretValue(v string)` + +SetSecretValue sets SecretValue field to given value. + +### HasSecretValue + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasSecretValue() bool` + +HasSecretValue returns a boolean if a field has been set. + +### SetSecretValueNil + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetSecretValueNil(b bool)` + + SetSecretValueNil sets the value for SecretValue to be an explicit nil + +### UnsetSecretValue +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) UnsetSecretValue()` + +UnsetSecretValue ensures that no value is present for SecretValue, not even an explicit nil +### GetParameters + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetParameters() map[string]string` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetParametersOk() (*map[string]string, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetParameters(v map[string]string)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetProvider + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetProvider() int32` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetProviderOk() (*int32, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetProvider(v int32)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### SetProviderNil + +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetProviderNil(b bool)` + + SetProviderNil sets the value for Provider to be an explicit nil + +### UnsetProvider +`func (o *CSSCMSDataModelModelsKeyfactorAPISecret) UnsetProvider()` + +UnsetProvider ensures that no value is present for Provider, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorSecret.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorSecret.md new file mode 100644 index 0000000..47d0ba6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsKeyfactorSecret.md @@ -0,0 +1,350 @@ +# CSSCMSDataModelModelsKeyfactorSecret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **interface{}** | | [optional] +**SecretTypeGuid** | Pointer to **string** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**ProviderTypeParameterValues** | Pointer to [**[]CSSCMSDataModelModelsPamProviderTypeParamValue**](CSSCMSDataModelModelsPamProviderTypeParamValue.md) | | [optional] +**ProviderId** | Pointer to **NullableInt32** | | [optional] +**IsManaged** | Pointer to **bool** | | [optional] [readonly] +**SecretType** | Pointer to [**CSSCMSDataModelEnumsSecretType**](CSSCMSDataModelEnumsSecretType.md) | | [optional] +**RemoteProviderName** | Pointer to **NullableString** | | [optional] +**DoesHaveValue** | Pointer to **bool** | | [optional] [readonly] + +## Methods + +### NewCSSCMSDataModelModelsKeyfactorSecret + +`func NewCSSCMSDataModelModelsKeyfactorSecret() *CSSCMSDataModelModelsKeyfactorSecret` + +NewCSSCMSDataModelModelsKeyfactorSecret instantiates a new CSSCMSDataModelModelsKeyfactorSecret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsKeyfactorSecretWithDefaults + +`func NewCSSCMSDataModelModelsKeyfactorSecretWithDefaults() *CSSCMSDataModelModelsKeyfactorSecret` + +NewCSSCMSDataModelModelsKeyfactorSecretWithDefaults instantiates a new CSSCMSDataModelModelsKeyfactorSecret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetValue() interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetValueOk() (*interface{}, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetValue(v interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetSecretTypeGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeGuid() string` + +GetSecretTypeGuid returns the SecretTypeGuid field if non-nil, zero value otherwise. + +### GetSecretTypeGuidOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeGuidOk() (*string, bool)` + +GetSecretTypeGuidOk returns a tuple with the SecretTypeGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretTypeGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetSecretTypeGuid(v string)` + +SetSecretTypeGuid sets SecretTypeGuid field to given value. + +### HasSecretTypeGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasSecretTypeGuid() bool` + +HasSecretTypeGuid returns a boolean if a field has been set. + +### GetInstanceId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProviderTypeParameterValues + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderTypeParameterValues() []CSSCMSDataModelModelsPamProviderTypeParamValue` + +GetProviderTypeParameterValues returns the ProviderTypeParameterValues field if non-nil, zero value otherwise. + +### GetProviderTypeParameterValuesOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderTypeParameterValuesOk() (*[]CSSCMSDataModelModelsPamProviderTypeParamValue, bool)` + +GetProviderTypeParameterValuesOk returns a tuple with the ProviderTypeParameterValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParameterValues + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderTypeParameterValues(v []CSSCMSDataModelModelsPamProviderTypeParamValue)` + +SetProviderTypeParameterValues sets ProviderTypeParameterValues field to given value. + +### HasProviderTypeParameterValues + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasProviderTypeParameterValues() bool` + +HasProviderTypeParameterValues returns a boolean if a field has been set. + +### SetProviderTypeParameterValuesNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderTypeParameterValuesNil(b bool)` + + SetProviderTypeParameterValuesNil sets the value for ProviderTypeParameterValues to be an explicit nil + +### UnsetProviderTypeParameterValues +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetProviderTypeParameterValues()` + +UnsetProviderTypeParameterValues ensures that no value is present for ProviderTypeParameterValues, not even an explicit nil +### GetProviderId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderId() int32` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderIdOk() (*int32, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderId(v int32)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### SetProviderIdNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderIdNil(b bool)` + + SetProviderIdNil sets the value for ProviderId to be an explicit nil + +### UnsetProviderId +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetProviderId()` + +UnsetProviderId ensures that no value is present for ProviderId, not even an explicit nil +### GetIsManaged + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetIsManaged() bool` + +GetIsManaged returns the IsManaged field if non-nil, zero value otherwise. + +### GetIsManagedOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetIsManagedOk() (*bool, bool)` + +GetIsManagedOk returns a tuple with the IsManaged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsManaged + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetIsManaged(v bool)` + +SetIsManaged sets IsManaged field to given value. + +### HasIsManaged + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasIsManaged() bool` + +HasIsManaged returns a boolean if a field has been set. + +### GetSecretType + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretType() CSSCMSDataModelEnumsSecretType` + +GetSecretType returns the SecretType field if non-nil, zero value otherwise. + +### GetSecretTypeOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeOk() (*CSSCMSDataModelEnumsSecretType, bool)` + +GetSecretTypeOk returns a tuple with the SecretType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretType + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetSecretType(v CSSCMSDataModelEnumsSecretType)` + +SetSecretType sets SecretType field to given value. + +### HasSecretType + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasSecretType() bool` + +HasSecretType returns a boolean if a field has been set. + +### GetRemoteProviderName + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetRemoteProviderName() string` + +GetRemoteProviderName returns the RemoteProviderName field if non-nil, zero value otherwise. + +### GetRemoteProviderNameOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetRemoteProviderNameOk() (*string, bool)` + +GetRemoteProviderNameOk returns a tuple with the RemoteProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteProviderName + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetRemoteProviderName(v string)` + +SetRemoteProviderName sets RemoteProviderName field to given value. + +### HasRemoteProviderName + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasRemoteProviderName() bool` + +HasRemoteProviderName returns a boolean if a field has been set. + +### SetRemoteProviderNameNil + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetRemoteProviderNameNil(b bool)` + + SetRemoteProviderNameNil sets the value for RemoteProviderName to be an explicit nil + +### UnsetRemoteProviderName +`func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetRemoteProviderName()` + +UnsetRemoteProviderName ensures that no value is present for RemoteProviderName, not even an explicit nil +### GetDoesHaveValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetDoesHaveValue() bool` + +GetDoesHaveValue returns the DoesHaveValue field if non-nil, zero value otherwise. + +### GetDoesHaveValueOk + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) GetDoesHaveValueOk() (*bool, bool)` + +GetDoesHaveValueOk returns a tuple with the DoesHaveValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDoesHaveValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) SetDoesHaveValue(v bool)` + +SetDoesHaveValue sets DoesHaveValue field to given value. + +### HasDoesHaveValue + +`func (o *CSSCMSDataModelModelsKeyfactorSecret) HasDoesHaveValue() bool` + +HasDoesHaveValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataAllUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataAllUpdateRequest.md new file mode 100644 index 0000000..adca17e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataAllUpdateRequest.md @@ -0,0 +1,123 @@ +# CSSCMSDataModelModelsMetadataAllUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | Pointer to **NullableString** | | [optional] +**CertificateIds** | Pointer to **[]int32** | | [optional] +**Metadata** | [**[]CSSCMSDataModelModelsMetadataSingleUpdateRequest**](CSSCMSDataModelModelsMetadataSingleUpdateRequest.md) | | + +## Methods + +### NewCSSCMSDataModelModelsMetadataAllUpdateRequest + +`func NewCSSCMSDataModelModelsMetadataAllUpdateRequest(metadata []CSSCMSDataModelModelsMetadataSingleUpdateRequest, ) *CSSCMSDataModelModelsMetadataAllUpdateRequest` + +NewCSSCMSDataModelModelsMetadataAllUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataAllUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMetadataAllUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsMetadataAllUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataAllUpdateRequest` + +NewCSSCMSDataModelModelsMetadataAllUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataAllUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetCertificateIds + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetCertificateIds() []int32` + +GetCertificateIds returns the CertificateIds field if non-nil, zero value otherwise. + +### GetCertificateIdsOk + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetCertificateIdsOk() (*[]int32, bool)` + +GetCertificateIdsOk returns a tuple with the CertificateIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateIds + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetCertificateIds(v []int32)` + +SetCertificateIds sets CertificateIds field to given value. + +### HasCertificateIds + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) HasCertificateIds() bool` + +HasCertificateIds returns a boolean if a field has been set. + +### SetCertificateIdsNil + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetCertificateIdsNil(b bool)` + + SetCertificateIdsNil sets the value for CertificateIds to be an explicit nil + +### UnsetCertificateIds +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) UnsetCertificateIds()` + +UnsetCertificateIds ensures that no value is present for CertificateIds, not even an explicit nil +### GetMetadata + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetMetadata() []CSSCMSDataModelModelsMetadataSingleUpdateRequest` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetMetadataOk() (*[]CSSCMSDataModelModelsMetadataSingleUpdateRequest, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetMetadata(v []CSSCMSDataModelModelsMetadataSingleUpdateRequest)` + +SetMetadata sets Metadata field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataSingleUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataSingleUpdateRequest.md new file mode 100644 index 0000000..2ba3b9f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataSingleUpdateRequest.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsMetadataSingleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetadataName** | Pointer to **NullableString** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**OverwriteExisting** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMetadataSingleUpdateRequest + +`func NewCSSCMSDataModelModelsMetadataSingleUpdateRequest() *CSSCMSDataModelModelsMetadataSingleUpdateRequest` + +NewCSSCMSDataModelModelsMetadataSingleUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataSingleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMetadataSingleUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsMetadataSingleUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataSingleUpdateRequest` + +NewCSSCMSDataModelModelsMetadataSingleUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataSingleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadataName + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetMetadataName() string` + +GetMetadataName returns the MetadataName field if non-nil, zero value otherwise. + +### GetMetadataNameOk + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetMetadataNameOk() (*string, bool)` + +GetMetadataNameOk returns a tuple with the MetadataName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataName + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetMetadataName(v string)` + +SetMetadataName sets MetadataName field to given value. + +### HasMetadataName + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasMetadataName() bool` + +HasMetadataName returns a boolean if a field has been set. + +### SetMetadataNameNil + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetMetadataNameNil(b bool)` + + SetMetadataNameNil sets the value for MetadataName to be an explicit nil + +### UnsetMetadataName +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) UnsetMetadataName()` + +UnsetMetadataName ensures that no value is present for MetadataName, not even an explicit nil +### GetValue + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetOverwriteExisting + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetOverwriteExisting() bool` + +GetOverwriteExisting returns the OverwriteExisting field if non-nil, zero value otherwise. + +### GetOverwriteExistingOk + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetOverwriteExistingOk() (*bool, bool)` + +GetOverwriteExistingOk returns a tuple with the OverwriteExisting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwriteExisting + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetOverwriteExisting(v bool)` + +SetOverwriteExisting sets OverwriteExisting field to given value. + +### HasOverwriteExisting + +`func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasOverwriteExisting() bool` + +HasOverwriteExisting returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataType.md new file mode 100644 index 0000000..15c4c1e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataType.md @@ -0,0 +1,500 @@ +# CSSCMSDataModelModelsMetadataType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSCoreEnumsMetadataDataType**](CSSCMSCoreEnumsMetadataDataType.md) | | [optional] +**Hint** | Pointer to **NullableString** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**AllowAPI** | Pointer to **bool** | | [optional] +**ExplicitUpdate** | Pointer to **bool** | | [optional] +**DisplayOrder** | Pointer to **NullableInt32** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] +**ExemptFromActionedCount** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMetadataType + +`func NewCSSCMSDataModelModelsMetadataType() *CSSCMSDataModelModelsMetadataType` + +NewCSSCMSDataModelModelsMetadataType instantiates a new CSSCMSDataModelModelsMetadataType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMetadataTypeWithDefaults + +`func NewCSSCMSDataModelModelsMetadataTypeWithDefaults() *CSSCMSDataModelModelsMetadataType` + +NewCSSCMSDataModelModelsMetadataTypeWithDefaults instantiates a new CSSCMSDataModelModelsMetadataType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsMetadataType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsMetadataType) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsMetadataType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsMetadataType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsMetadataType) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsMetadataType) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsMetadataType) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *CSSCMSDataModelModelsMetadataType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsMetadataType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsMetadataType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsMetadataType) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDataType + +`func (o *CSSCMSDataModelModelsMetadataType) GetDataType() CSSCMSCoreEnumsMetadataDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *CSSCMSDataModelModelsMetadataType) SetDataType(v CSSCMSCoreEnumsMetadataDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *CSSCMSDataModelModelsMetadataType) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetHint + +`func (o *CSSCMSDataModelModelsMetadataType) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *CSSCMSDataModelModelsMetadataType) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *CSSCMSDataModelModelsMetadataType) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### SetHintNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetHintNil(b bool)` + + SetHintNil sets the value for Hint to be an explicit nil + +### UnsetHint +`func (o *CSSCMSDataModelModelsMetadataType) UnsetHint()` + +UnsetHint ensures that no value is present for Hint, not even an explicit nil +### GetValidation + +`func (o *CSSCMSDataModelModelsMetadataType) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *CSSCMSDataModelModelsMetadataType) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *CSSCMSDataModelModelsMetadataType) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *CSSCMSDataModelModelsMetadataType) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetEnrollment + +`func (o *CSSCMSDataModelModelsMetadataType) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *CSSCMSDataModelModelsMetadataType) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *CSSCMSDataModelModelsMetadataType) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *CSSCMSDataModelModelsMetadataType) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsMetadataType) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsMetadataType) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsMetadataType) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetOptions + +`func (o *CSSCMSDataModelModelsMetadataType) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *CSSCMSDataModelModelsMetadataType) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *CSSCMSDataModelModelsMetadataType) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *CSSCMSDataModelModelsMetadataType) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsMetadataType) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsMetadataType) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsMetadataType) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsMetadataType) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetAllowAPI + +`func (o *CSSCMSDataModelModelsMetadataType) GetAllowAPI() bool` + +GetAllowAPI returns the AllowAPI field if non-nil, zero value otherwise. + +### GetAllowAPIOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetAllowAPIOk() (*bool, bool)` + +GetAllowAPIOk returns a tuple with the AllowAPI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowAPI + +`func (o *CSSCMSDataModelModelsMetadataType) SetAllowAPI(v bool)` + +SetAllowAPI sets AllowAPI field to given value. + +### HasAllowAPI + +`func (o *CSSCMSDataModelModelsMetadataType) HasAllowAPI() bool` + +HasAllowAPI returns a boolean if a field has been set. + +### GetExplicitUpdate + +`func (o *CSSCMSDataModelModelsMetadataType) GetExplicitUpdate() bool` + +GetExplicitUpdate returns the ExplicitUpdate field if non-nil, zero value otherwise. + +### GetExplicitUpdateOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetExplicitUpdateOk() (*bool, bool)` + +GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUpdate + +`func (o *CSSCMSDataModelModelsMetadataType) SetExplicitUpdate(v bool)` + +SetExplicitUpdate sets ExplicitUpdate field to given value. + +### HasExplicitUpdate + +`func (o *CSSCMSDataModelModelsMetadataType) HasExplicitUpdate() bool` + +HasExplicitUpdate returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *CSSCMSDataModelModelsMetadataType) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *CSSCMSDataModelModelsMetadataType) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *CSSCMSDataModelModelsMetadataType) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + +### SetDisplayOrderNil + +`func (o *CSSCMSDataModelModelsMetadataType) SetDisplayOrderNil(b bool)` + + SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil + +### UnsetDisplayOrder +`func (o *CSSCMSDataModelModelsMetadataType) UnsetDisplayOrder()` + +UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +### GetCaseSensitive + +`func (o *CSSCMSDataModelModelsMetadataType) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *CSSCMSDataModelModelsMetadataType) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *CSSCMSDataModelModelsMetadataType) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetExemptFromActionedCount + +`func (o *CSSCMSDataModelModelsMetadataType) GetExemptFromActionedCount() bool` + +GetExemptFromActionedCount returns the ExemptFromActionedCount field if non-nil, zero value otherwise. + +### GetExemptFromActionedCountOk + +`func (o *CSSCMSDataModelModelsMetadataType) GetExemptFromActionedCountOk() (*bool, bool)` + +GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExemptFromActionedCount + +`func (o *CSSCMSDataModelModelsMetadataType) SetExemptFromActionedCount(v bool)` + +SetExemptFromActionedCount sets ExemptFromActionedCount field to given value. + +### HasExemptFromActionedCount + +`func (o *CSSCMSDataModelModelsMetadataType) HasExemptFromActionedCount() bool` + +HasExemptFromActionedCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataUpdateRequest.md new file mode 100644 index 0000000..9ea83dd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMetadataUpdateRequest.md @@ -0,0 +1,77 @@ +# CSSCMSDataModelModelsMetadataUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Metadata** | **map[string]string** | | + +## Methods + +### NewCSSCMSDataModelModelsMetadataUpdateRequest + +`func NewCSSCMSDataModelModelsMetadataUpdateRequest(metadata map[string]string, ) *CSSCMSDataModelModelsMetadataUpdateRequest` + +NewCSSCMSDataModelModelsMetadataUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMetadataUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsMetadataUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataUpdateRequest` + +NewCSSCMSDataModelModelsMetadataUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsMetadataUpdateRequest) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestRequest.md new file mode 100644 index 0000000..82a1d4a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestRequest.md @@ -0,0 +1,66 @@ +# CSSCMSDataModelModelsMonitoringCRLTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMonitoringCRLTestRequest + +`func NewCSSCMSDataModelModelsMonitoringCRLTestRequest() *CSSCMSDataModelModelsMonitoringCRLTestRequest` + +NewCSSCMSDataModelModelsMonitoringCRLTestRequest instantiates a new CSSCMSDataModelModelsMonitoringCRLTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMonitoringCRLTestRequestWithDefaults + +`func NewCSSCMSDataModelModelsMonitoringCRLTestRequestWithDefaults() *CSSCMSDataModelModelsMonitoringCRLTestRequest` + +NewCSSCMSDataModelModelsMonitoringCRLTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringCRLTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### SetUrlNil + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) SetUrlNil(b bool)` + + SetUrlNil sets the value for Url to be an explicit nil + +### UnsetUrl +`func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) UnsetUrl()` + +UnsetUrl ensures that no value is present for Url, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestResponse.md new file mode 100644 index 0000000..7d7688d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringCRLTestResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsMonitoringCRLTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMonitoringCRLTestResponse + +`func NewCSSCMSDataModelModelsMonitoringCRLTestResponse() *CSSCMSDataModelModelsMonitoringCRLTestResponse` + +NewCSSCMSDataModelModelsMonitoringCRLTestResponse instantiates a new CSSCMSDataModelModelsMonitoringCRLTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMonitoringCRLTestResponseWithDefaults + +`func NewCSSCMSDataModelModelsMonitoringCRLTestResponseWithDefaults() *CSSCMSDataModelModelsMonitoringCRLTestResponse` + +NewCSSCMSDataModelModelsMonitoringCRLTestResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringCRLTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestRequest.md new file mode 100644 index 0000000..cb2c2bc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestRequest.md @@ -0,0 +1,210 @@ +# CSSCMSDataModelModelsMonitoringOCSPTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorityName** | Pointer to **NullableString** | | [optional] +**AuthorityNameId** | Pointer to **NullableString** | | [optional] +**AuthorityKeyId** | Pointer to **NullableString** | | [optional] +**SampleSerialNumber** | Pointer to **NullableString** | | [optional] +**Url** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMonitoringOCSPTestRequest + +`func NewCSSCMSDataModelModelsMonitoringOCSPTestRequest() *CSSCMSDataModelModelsMonitoringOCSPTestRequest` + +NewCSSCMSDataModelModelsMonitoringOCSPTestRequest instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMonitoringOCSPTestRequestWithDefaults + +`func NewCSSCMSDataModelModelsMonitoringOCSPTestRequestWithDefaults() *CSSCMSDataModelModelsMonitoringOCSPTestRequest` + +NewCSSCMSDataModelModelsMonitoringOCSPTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorityName + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityName() string` + +GetAuthorityName returns the AuthorityName field if non-nil, zero value otherwise. + +### GetAuthorityNameOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameOk() (*string, bool)` + +GetAuthorityNameOk returns a tuple with the AuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityName + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityName(v string)` + +SetAuthorityName sets AuthorityName field to given value. + +### HasAuthorityName + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityName() bool` + +HasAuthorityName returns a boolean if a field has been set. + +### SetAuthorityNameNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameNil(b bool)` + + SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil + +### UnsetAuthorityName +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityName()` + +UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +### GetAuthorityNameId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameId() string` + +GetAuthorityNameId returns the AuthorityNameId field if non-nil, zero value otherwise. + +### GetAuthorityNameIdOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameIdOk() (*string, bool)` + +GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityNameId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameId(v string)` + +SetAuthorityNameId sets AuthorityNameId field to given value. + +### HasAuthorityNameId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityNameId() bool` + +HasAuthorityNameId returns a boolean if a field has been set. + +### SetAuthorityNameIdNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameIdNil(b bool)` + + SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil + +### UnsetAuthorityNameId +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityNameId()` + +UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +### GetAuthorityKeyId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityKeyId() string` + +GetAuthorityKeyId returns the AuthorityKeyId field if non-nil, zero value otherwise. + +### GetAuthorityKeyIdOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityKeyIdOk() (*string, bool)` + +GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityKeyId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityKeyId(v string)` + +SetAuthorityKeyId sets AuthorityKeyId field to given value. + +### HasAuthorityKeyId + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityKeyId() bool` + +HasAuthorityKeyId returns a boolean if a field has been set. + +### SetAuthorityKeyIdNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityKeyIdNil(b bool)` + + SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil + +### UnsetAuthorityKeyId +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityKeyId()` + +UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +### GetSampleSerialNumber + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetSampleSerialNumber() string` + +GetSampleSerialNumber returns the SampleSerialNumber field if non-nil, zero value otherwise. + +### GetSampleSerialNumberOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetSampleSerialNumberOk() (*string, bool)` + +GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSampleSerialNumber + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetSampleSerialNumber(v string)` + +SetSampleSerialNumber sets SampleSerialNumber field to given value. + +### HasSampleSerialNumber + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasSampleSerialNumber() bool` + +HasSampleSerialNumber returns a boolean if a field has been set. + +### SetSampleSerialNumberNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetSampleSerialNumberNil(b bool)` + + SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil + +### UnsetSampleSerialNumber +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetSampleSerialNumber()` + +UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +### GetUrl + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### SetUrlNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetUrlNil(b bool)` + + SetUrlNil sets the value for Url to be an explicit nil + +### UnsetUrl +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetUrl()` + +UnsetUrl ensures that no value is present for Url, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestResponse.md new file mode 100644 index 0000000..e5b5662 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringOCSPTestResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsMonitoringOCSPTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMonitoringOCSPTestResponse + +`func NewCSSCMSDataModelModelsMonitoringOCSPTestResponse() *CSSCMSDataModelModelsMonitoringOCSPTestResponse` + +NewCSSCMSDataModelModelsMonitoringOCSPTestResponse instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMonitoringOCSPTestResponseWithDefaults + +`func NewCSSCMSDataModelModelsMonitoringOCSPTestResponseWithDefaults() *CSSCMSDataModelModelsMonitoringOCSPTestResponse` + +NewCSSCMSDataModelModelsMonitoringOCSPTestResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse.md new file mode 100644 index 0000000..c6bc0d9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse.md @@ -0,0 +1,138 @@ +# CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse + +`func NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse() *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse` + +NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse instantiates a new CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponseWithDefaults + +`func NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponseWithDefaults() *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse` + +NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetMessage + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetRecipients + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair.md new file mode 100644 index 0000000..2ccdc61 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair.md @@ -0,0 +1,82 @@ +# CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | Pointer to **string** | | [optional] +**OrchestratorId** | Pointer to **string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair + +`func NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair() *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair` + +NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair instantiates a new CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair` + +NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetOrchestratorId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorId() string` + +GetOrchestratorId returns the OrchestratorId field if non-nil, zero value otherwise. + +### GetOrchestratorIdOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorIdOk() (*string, bool)` + +GetOrchestratorIdOk returns a tuple with the OrchestratorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) SetOrchestratorId(v string)` + +SetOrchestratorId sets OrchestratorId field to given value. + +### HasOrchestratorId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) HasOrchestratorId() bool` + +HasOrchestratorId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJob.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJob.md new file mode 100644 index 0000000..9e9830d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJob.md @@ -0,0 +1,226 @@ +# CSSCMSDataModelModelsOrchestratorJobsJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**Target** | Pointer to **NullableString** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Requested** | Pointer to **NullableString** | | [optional] +**JobType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsJob + +`func NewCSSCMSDataModelModelsOrchestratorJobsJob() *CSSCMSDataModelModelsOrchestratorJobsJob` + +NewCSSCMSDataModelModelsOrchestratorJobsJob instantiates a new CSSCMSDataModelModelsOrchestratorJobsJob object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsJobWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJob` + +NewCSSCMSDataModelModelsOrchestratorJobsJobWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJob object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetTarget + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetTarget(v string)` + +SetTarget sets Target field to given value. + +### HasTarget + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasTarget() bool` + +HasTarget returns a boolean if a field has been set. + +### SetTargetNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetTargetNil(b bool)` + + SetTargetNil sets the value for Target to be an explicit nil + +### UnsetTarget +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetTarget()` + +UnsetTarget ensures that no value is present for Target, not even an explicit nil +### GetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetRequested + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetRequested() string` + +GetRequested returns the Requested field if non-nil, zero value otherwise. + +### GetRequestedOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetRequestedOk() (*string, bool)` + +GetRequestedOk returns a tuple with the Requested field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequested + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetRequested(v string)` + +SetRequested sets Requested field to given value. + +### HasRequested + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasRequested() bool` + +HasRequested returns a boolean if a field has been set. + +### SetRequestedNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetRequestedNil(b bool)` + + SetRequestedNil sets the value for Requested to be an explicit nil + +### UnsetRequested +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetRequested()` + +UnsetRequested ensures that no value is present for Requested, not even an explicit nil +### GetJobType + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### SetJobTypeNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetJobTypeNil(b bool)` + + SetJobTypeNil sets the value for JobType to be an explicit nil + +### UnsetJobType +`func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetJobType()` + +UnsetJobType ensures that no value is present for JobType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest.md new file mode 100644 index 0000000..aa4a052 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest.md @@ -0,0 +1,123 @@ +# CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobTypeName** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**JobTypeFields** | Pointer to [**[]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest**](CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(jobTypeName string, ) *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequestWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFields() []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFieldsOk() (*[]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeFields(v []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + +### SetJobTypeFieldsNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeFieldsNil(b bool)` + + SetJobTypeFieldsNil sets the value for JobTypeFields to be an explicit nil + +### UnsetJobTypeFields +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) UnsetJobTypeFields()` + +UnsetJobTypeFields ensures that no value is present for JobTypeFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md new file mode 100644 index 0000000..056ddef --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md @@ -0,0 +1,134 @@ +# CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | [**CSSCMSDataModelEnumsDataType**](CSSCMSDataModelEnumsDataType.md) | | +**DefaultValue** | Pointer to **NullableString** | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest(name string, type_ CSSCMSDataModelEnumsDataType, ) *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequestWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetType + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetType() CSSCMSDataModelEnumsDataType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetTypeOk() (*CSSCMSDataModelEnumsDataType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetType(v CSSCMSDataModelEnumsDataType)` + +SetType sets Type field to given value. + + +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetRequired + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest.md new file mode 100644 index 0000000..e1e9649 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest.md @@ -0,0 +1,144 @@ +# CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**JobTypeName** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**JobTypeFields** | Pointer to [**[]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest**](CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(id string, jobTypeName string, ) *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFields() []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFieldsOk() (*[]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeFields(v []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + +### SetJobTypeFieldsNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeFieldsNil(b bool)` + + SetJobTypeFieldsNil sets the value for JobTypeFields to be an explicit nil + +### UnsetJobTypeFields +`func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) UnsetJobTypeFields()` + +UnsetJobTypeFields ensures that no value is present for JobTypeFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest.md new file mode 100644 index 0000000..ea032e8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest.md @@ -0,0 +1,134 @@ +# CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorIds** | **[]string** | | +**JobTypeName** | **string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest + +`func NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(orchestratorIds []string, jobTypeName string, ) *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorIds + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIds() []string` + +GetOrchestratorIds returns the OrchestratorIds field if non-nil, zero value otherwise. + +### GetOrchestratorIdsOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIdsOk() (*[]string, bool)` + +GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorIds + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetOrchestratorIds(v []string)` + +SetOrchestratorIds sets OrchestratorIds field to given value. + + +### GetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFields() map[string]string` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFieldsOk() (*map[string]string, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetJobFields(v map[string]string)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest.md new file mode 100644 index 0000000..ecdb355 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest.md @@ -0,0 +1,134 @@ +# CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | **string** | | +**JobTypeName** | **string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest + +`func NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(agentId string, jobTypeName string, ) *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequestWithDefaults + +`func NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest` + +NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobFields() map[string]string` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobFieldsOk() (*map[string]string, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetJobFields(v map[string]string)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPKICertificateOperation.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPKICertificateOperation.md new file mode 100644 index 0000000..c9d3bfe --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPKICertificateOperation.md @@ -0,0 +1,236 @@ +# CSSCMSDataModelModelsPKICertificateOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int64** | | [optional] +**OperationStart** | Pointer to **NullableTime** | | [optional] +**OperationEnd** | Pointer to **NullableTime** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**Comment** | Pointer to **NullableString** | | [optional] +**Action** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPKICertificateOperation + +`func NewCSSCMSDataModelModelsPKICertificateOperation() *CSSCMSDataModelModelsPKICertificateOperation` + +NewCSSCMSDataModelModelsPKICertificateOperation instantiates a new CSSCMSDataModelModelsPKICertificateOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPKICertificateOperationWithDefaults + +`func NewCSSCMSDataModelModelsPKICertificateOperationWithDefaults() *CSSCMSDataModelModelsPKICertificateOperation` + +NewCSSCMSDataModelModelsPKICertificateOperationWithDefaults instantiates a new CSSCMSDataModelModelsPKICertificateOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetId() int64` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetIdOk() (*int64, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetId(v int64)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOperationStart + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationStart() time.Time` + +GetOperationStart returns the OperationStart field if non-nil, zero value otherwise. + +### GetOperationStartOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationStartOk() (*time.Time, bool)` + +GetOperationStartOk returns a tuple with the OperationStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationStart + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationStart(v time.Time)` + +SetOperationStart sets OperationStart field to given value. + +### HasOperationStart + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasOperationStart() bool` + +HasOperationStart returns a boolean if a field has been set. + +### SetOperationStartNil + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationStartNil(b bool)` + + SetOperationStartNil sets the value for OperationStart to be an explicit nil + +### UnsetOperationStart +`func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetOperationStart()` + +UnsetOperationStart ensures that no value is present for OperationStart, not even an explicit nil +### GetOperationEnd + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationEnd() time.Time` + +GetOperationEnd returns the OperationEnd field if non-nil, zero value otherwise. + +### GetOperationEndOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationEndOk() (*time.Time, bool)` + +GetOperationEndOk returns a tuple with the OperationEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationEnd + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationEnd(v time.Time)` + +SetOperationEnd sets OperationEnd field to given value. + +### HasOperationEnd + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasOperationEnd() bool` + +HasOperationEnd returns a boolean if a field has been set. + +### SetOperationEndNil + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationEndNil(b bool)` + + SetOperationEndNil sets the value for OperationEnd to be an explicit nil + +### UnsetOperationEnd +`func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetOperationEnd()` + +UnsetOperationEnd ensures that no value is present for OperationEnd, not even an explicit nil +### GetUsername + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetComment + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil +### GetAction + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### SetActionNil + +`func (o *CSSCMSDataModelModelsPKICertificateOperation) SetActionNil(b bool)` + + SetActionNil sets the value for Action to be an explicit nil + +### UnsetAction +`func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetAction()` + +UnsetAction ensures that no value is present for Action, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md new file mode 100644 index 0000000..75ad01c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md @@ -0,0 +1,242 @@ +# CSSCMSDataModelModelsPamProviderTypeParamValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**ParameterId** | Pointer to **int32** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**Provider** | Pointer to [**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) | | [optional] +**ProviderTypeParam** | Pointer to [**CSSCMSDataModelModelsProviderTypeParam**](CSSCMSDataModelModelsProviderTypeParam.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPamProviderTypeParamValue + +`func NewCSSCMSDataModelModelsPamProviderTypeParamValue() *CSSCMSDataModelModelsPamProviderTypeParamValue` + +NewCSSCMSDataModelModelsPamProviderTypeParamValue instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults + +`func NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults() *CSSCMSDataModelModelsPamProviderTypeParamValue` + +NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetParameterId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetParameterId() int32` + +GetParameterId returns the ParameterId field if non-nil, zero value otherwise. + +### GetParameterIdOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetParameterIdOk() (*int32, bool)` + +GetParameterIdOk returns a tuple with the ParameterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetParameterId(v int32)` + +SetParameterId sets ParameterId field to given value. + +### HasParameterId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasParameterId() bool` + +HasParameterId returns a boolean if a field has been set. + +### GetInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProvider() CSSCMSDataModelModelsProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderOk() (*CSSCMSDataModelModelsProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProvider(v CSSCMSDataModelModelsProvider)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParam() CSSCMSDataModelModelsProviderTypeParam` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParamOk() (*CSSCMSDataModelModelsProviderTypeParam, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProviderTypeParam(v CSSCMSDataModelModelsProviderTypeParam)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPendingCSRResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPendingCSRResponse.md new file mode 100644 index 0000000..65e626e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPendingCSRResponse.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsPendingCSRResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CSR** | Pointer to **NullableString** | | [optional] +**RequestTime** | Pointer to **time.Time** | | [optional] +**Subject** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPendingCSRResponse + +`func NewCSSCMSDataModelModelsPendingCSRResponse() *CSSCMSDataModelModelsPendingCSRResponse` + +NewCSSCMSDataModelModelsPendingCSRResponse instantiates a new CSSCMSDataModelModelsPendingCSRResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPendingCSRResponseWithDefaults + +`func NewCSSCMSDataModelModelsPendingCSRResponseWithDefaults() *CSSCMSDataModelModelsPendingCSRResponse` + +NewCSSCMSDataModelModelsPendingCSRResponseWithDefaults instantiates a new CSSCMSDataModelModelsPendingCSRResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCSR + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetCSR(v string)` + +SetCSR sets CSR field to given value. + +### HasCSR + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) HasCSR() bool` + +HasCSR returns a boolean if a field has been set. + +### SetCSRNil + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetCSRNil(b bool)` + + SetCSRNil sets the value for CSR to be an explicit nil + +### UnsetCSR +`func (o *CSSCMSDataModelModelsPendingCSRResponse) UnsetCSR()` + +UnsetCSR ensures that no value is present for CSR, not even an explicit nil +### GetRequestTime + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetRequestTime() time.Time` + +GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. + +### GetRequestTimeOk + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetRequestTimeOk() (*time.Time, bool)` + +GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTime + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetRequestTime(v time.Time)` + +SetRequestTime sets RequestTime field to given value. + +### HasRequestTime + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) HasRequestTime() bool` + +HasRequestTime returns a boolean if a field has been set. + +### GetSubject + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetSubject() []string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) GetSubjectOk() (*[]string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetSubject(v []string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *CSSCMSDataModelModelsPendingCSRResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *CSSCMSDataModelModelsPendingCSRResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs10CertificateResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs10CertificateResponse.md new file mode 100644 index 0000000..a7d17e7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs10CertificateResponse.md @@ -0,0 +1,386 @@ +# CSSCMSDataModelModelsPkcs10CertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**KeyfactorID** | Pointer to **int32** | | [optional] +**Certificates** | Pointer to **[]string** | | [optional] +**WorkflowInstanceId** | Pointer to **string** | | [optional] +**WorkflowReferenceId** | Pointer to **int64** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**RequestDisposition** | Pointer to **NullableString** | | [optional] +**DispositionMessage** | Pointer to **NullableString** | | [optional] +**EnrollmentContext** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPkcs10CertificateResponse + +`func NewCSSCMSDataModelModelsPkcs10CertificateResponse() *CSSCMSDataModelModelsPkcs10CertificateResponse` + +NewCSSCMSDataModelModelsPkcs10CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs10CertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPkcs10CertificateResponseWithDefaults + +`func NewCSSCMSDataModelModelsPkcs10CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs10CertificateResponse` + +NewCSSCMSDataModelModelsPkcs10CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs10CertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetKeyfactorID + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorID() int32` + +GetKeyfactorID returns the KeyfactorID field if non-nil, zero value otherwise. + +### GetKeyfactorIDOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorIDOk() (*int32, bool)` + +GetKeyfactorIDOk returns a tuple with the KeyfactorID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorID + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetKeyfactorID(v int32)` + +SetKeyfactorID sets KeyfactorID field to given value. + +### HasKeyfactorID + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasKeyfactorID() bool` + +HasKeyfactorID returns a boolean if a field has been set. + +### GetCertificates + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetCertificates() []string` + +GetCertificates returns the Certificates field if non-nil, zero value otherwise. + +### GetCertificatesOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetCertificatesOk() (*[]string, bool)` + +GetCertificatesOk returns a tuple with the Certificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificates + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetCertificates(v []string)` + +SetCertificates sets Certificates field to given value. + +### HasCertificates + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasCertificates() bool` + +HasCertificates returns a boolean if a field has been set. + +### SetCertificatesNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetCertificatesNil(b bool)` + + SetCertificatesNil sets the value for Certificates to be an explicit nil + +### UnsetCertificates +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetCertificates()` + +UnsetCertificates ensures that no value is present for Certificates, not even an explicit nil +### GetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowInstanceId() string` + +GetWorkflowInstanceId returns the WorkflowInstanceId field if non-nil, zero value otherwise. + +### GetWorkflowInstanceIdOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool)` + +GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetWorkflowInstanceId(v string)` + +SetWorkflowInstanceId sets WorkflowInstanceId field to given value. + +### HasWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasWorkflowInstanceId() bool` + +HasWorkflowInstanceId returns a boolean if a field has been set. + +### GetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowReferenceId() int64` + +GetWorkflowReferenceId returns the WorkflowReferenceId field if non-nil, zero value otherwise. + +### GetWorkflowReferenceIdOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool)` + +GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetWorkflowReferenceId(v int64)` + +SetWorkflowReferenceId sets WorkflowReferenceId field to given value. + +### HasWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasWorkflowReferenceId() bool` + +HasWorkflowReferenceId returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### SetRequestDispositionNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetRequestDispositionNil(b bool)` + + SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil + +### UnsetRequestDisposition +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetRequestDisposition()` + +UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +### GetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### SetDispositionMessageNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetDispositionMessageNil(b bool)` + + SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil + +### UnsetDispositionMessage +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetDispositionMessage()` + +UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +### GetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetEnrollmentContext() map[string]string` + +GetEnrollmentContext returns the EnrollmentContext field if non-nil, zero value otherwise. + +### GetEnrollmentContextOk + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool)` + +GetEnrollmentContextOk returns a tuple with the EnrollmentContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetEnrollmentContext(v map[string]string)` + +SetEnrollmentContext sets EnrollmentContext field to given value. + +### HasEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasEnrollmentContext() bool` + +HasEnrollmentContext returns a boolean if a field has been set. + +### SetEnrollmentContextNil + +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetEnrollmentContextNil(b bool)` + + SetEnrollmentContextNil sets the value for EnrollmentContext to be an explicit nil + +### UnsetEnrollmentContext +`func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetEnrollmentContext()` + +UnsetEnrollmentContext ensures that no value is present for EnrollmentContext, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md new file mode 100644 index 0000000..d6f9f42 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md @@ -0,0 +1,458 @@ +# CSSCMSDataModelModelsPkcs12CertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**KeyfactorId** | Pointer to **int32** | | [optional] +**Pkcs12Blob** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] +**WorkflowInstanceId** | Pointer to **string** | | [optional] +**WorkflowReferenceId** | Pointer to **int64** | | [optional] +**StoreIdsInvalidForRenewal** | Pointer to **[]string** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**RequestDisposition** | Pointer to **NullableString** | | [optional] +**DispositionMessage** | Pointer to **NullableString** | | [optional] +**EnrollmentContext** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPkcs12CertificateResponse + +`func NewCSSCMSDataModelModelsPkcs12CertificateResponse() *CSSCMSDataModelModelsPkcs12CertificateResponse` + +NewCSSCMSDataModelModelsPkcs12CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults + +`func NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs12CertificateResponse` + +NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorId() int32` + +GetKeyfactorId returns the KeyfactorId field if non-nil, zero value otherwise. + +### GetKeyfactorIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool)` + +GetKeyfactorIdOk returns a tuple with the KeyfactorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorId(v int32)` + +SetKeyfactorId sets KeyfactorId field to given value. + +### HasKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorId() bool` + +HasKeyfactorId returns a boolean if a field has been set. + +### GetPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12Blob() string` + +GetPkcs12Blob returns the Pkcs12Blob field if non-nil, zero value otherwise. + +### GetPkcs12BlobOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool)` + +GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12Blob(v string)` + +SetPkcs12Blob sets Pkcs12Blob field to given value. + +### HasPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPkcs12Blob() bool` + +HasPkcs12Blob returns a boolean if a field has been set. + +### SetPkcs12BlobNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12BlobNil(b bool)` + + SetPkcs12BlobNil sets the value for Pkcs12Blob to be an explicit nil + +### UnsetPkcs12Blob +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPkcs12Blob()` + +UnsetPkcs12Blob ensures that no value is present for Pkcs12Blob, not even an explicit nil +### GetPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceId() string` + +GetWorkflowInstanceId returns the WorkflowInstanceId field if non-nil, zero value otherwise. + +### GetWorkflowInstanceIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool)` + +GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowInstanceId(v string)` + +SetWorkflowInstanceId sets WorkflowInstanceId field to given value. + +### HasWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowInstanceId() bool` + +HasWorkflowInstanceId returns a boolean if a field has been set. + +### GetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceId() int64` + +GetWorkflowReferenceId returns the WorkflowReferenceId field if non-nil, zero value otherwise. + +### GetWorkflowReferenceIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool)` + +GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowReferenceId(v int64)` + +SetWorkflowReferenceId sets WorkflowReferenceId field to given value. + +### HasWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowReferenceId() bool` + +HasWorkflowReferenceId returns a boolean if a field has been set. + +### GetStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewal() []string` + +GetStoreIdsInvalidForRenewal returns the StoreIdsInvalidForRenewal field if non-nil, zero value otherwise. + +### GetStoreIdsInvalidForRenewalOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewalOk() (*[]string, bool)` + +GetStoreIdsInvalidForRenewalOk returns a tuple with the StoreIdsInvalidForRenewal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewal(v []string)` + +SetStoreIdsInvalidForRenewal sets StoreIdsInvalidForRenewal field to given value. + +### HasStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasStoreIdsInvalidForRenewal() bool` + +HasStoreIdsInvalidForRenewal returns a boolean if a field has been set. + +### SetStoreIdsInvalidForRenewalNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewalNil(b bool)` + + SetStoreIdsInvalidForRenewalNil sets the value for StoreIdsInvalidForRenewal to be an explicit nil + +### UnsetStoreIdsInvalidForRenewal +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetStoreIdsInvalidForRenewal()` + +UnsetStoreIdsInvalidForRenewal ensures that no value is present for StoreIdsInvalidForRenewal, not even an explicit nil +### GetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### SetRequestDispositionNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDispositionNil(b bool)` + + SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil + +### UnsetRequestDisposition +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetRequestDisposition()` + +UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +### GetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### SetDispositionMessageNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessageNil(b bool)` + + SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil + +### UnsetDispositionMessage +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetDispositionMessage()` + +UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +### GetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string` + +GetEnrollmentContext returns the EnrollmentContext field if non-nil, zero value otherwise. + +### GetEnrollmentContextOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool)` + +GetEnrollmentContextOk returns a tuple with the EnrollmentContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string)` + +SetEnrollmentContext sets EnrollmentContext field to given value. + +### HasEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasEnrollmentContext() bool` + +HasEnrollmentContext returns a boolean if a field has been set. + +### SetEnrollmentContextNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContextNil(b bool)` + + SetEnrollmentContextNil sets the value for EnrollmentContext to be an explicit nil + +### UnsetEnrollmentContext +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetEnrollmentContext()` + +UnsetEnrollmentContext ensures that no value is present for EnrollmentContext, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProvider.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProvider.md new file mode 100644 index 0000000..fad1dec --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProvider.md @@ -0,0 +1,274 @@ +# CSSCMSDataModelModelsProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | +**ProviderTypeParamValues** | Pointer to [**[]CSSCMSDataModelModelsPamProviderTypeParamValue**](CSSCMSDataModelModelsPamProviderTypeParamValue.md) | | [optional] +**SecuredAreaId** | Pointer to **NullableInt32** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**IsInUse** | Pointer to **bool** | | [optional] [readonly] +**IsLocalDB** | Pointer to **bool** | | [optional] [readonly] + +## Methods + +### NewCSSCMSDataModelModelsProvider + +`func NewCSSCMSDataModelModelsProvider(name string, providerType CSSCMSDataModelModelsProviderType, ) *CSSCMSDataModelModelsProvider` + +NewCSSCMSDataModelModelsProvider instantiates a new CSSCMSDataModelModelsProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderWithDefaults + +`func NewCSSCMSDataModelModelsProviderWithDefaults() *CSSCMSDataModelModelsProvider` + +NewCSSCMSDataModelModelsProviderWithDefaults instantiates a new CSSCMSDataModelModelsProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProvider) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProvider) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProvider) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProvider) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetArea + +`func (o *CSSCMSDataModelModelsProvider) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *CSSCMSDataModelModelsProvider) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *CSSCMSDataModelModelsProvider) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *CSSCMSDataModelModelsProvider) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *CSSCMSDataModelModelsProvider) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *CSSCMSDataModelModelsProvider) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + + +### GetProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValues() []CSSCMSDataModelModelsPamProviderTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValuesOk() (*[]CSSCMSDataModelModelsPamProviderTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) SetProviderTypeParamValues(v []CSSCMSDataModelModelsPamProviderTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *CSSCMSDataModelModelsProvider) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *CSSCMSDataModelModelsProvider) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + +### SetSecuredAreaIdNil + +`func (o *CSSCMSDataModelModelsProvider) SetSecuredAreaIdNil(b bool)` + + SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil + +### UnsetSecuredAreaId +`func (o *CSSCMSDataModelModelsProvider) UnsetSecuredAreaId()` + +UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +### GetRemote + +`func (o *CSSCMSDataModelModelsProvider) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *CSSCMSDataModelModelsProvider) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *CSSCMSDataModelModelsProvider) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *CSSCMSDataModelModelsProvider) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetIsInUse + +`func (o *CSSCMSDataModelModelsProvider) GetIsInUse() bool` + +GetIsInUse returns the IsInUse field if non-nil, zero value otherwise. + +### GetIsInUseOk + +`func (o *CSSCMSDataModelModelsProvider) GetIsInUseOk() (*bool, bool)` + +GetIsInUseOk returns a tuple with the IsInUse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsInUse + +`func (o *CSSCMSDataModelModelsProvider) SetIsInUse(v bool)` + +SetIsInUse sets IsInUse field to given value. + +### HasIsInUse + +`func (o *CSSCMSDataModelModelsProvider) HasIsInUse() bool` + +HasIsInUse returns a boolean if a field has been set. + +### GetIsLocalDB + +`func (o *CSSCMSDataModelModelsProvider) GetIsLocalDB() bool` + +GetIsLocalDB returns the IsLocalDB field if non-nil, zero value otherwise. + +### GetIsLocalDBOk + +`func (o *CSSCMSDataModelModelsProvider) GetIsLocalDBOk() (*bool, bool)` + +GetIsLocalDBOk returns a tuple with the IsLocalDB field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocalDB + +`func (o *CSSCMSDataModelModelsProvider) SetIsLocalDB(v bool)` + +SetIsLocalDB sets IsLocalDB field to given value. + +### HasIsLocalDB + +`func (o *CSSCMSDataModelModelsProvider) HasIsLocalDB() bool` + +HasIsLocalDB returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderType.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderType.md new file mode 100644 index 0000000..0d9bb98 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderType.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsProviderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**ProviderTypeParams** | Pointer to [**[]CSSCMSDataModelModelsProviderTypeParam**](CSSCMSDataModelModelsProviderTypeParam.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderType + +`func NewCSSCMSDataModelModelsProviderType() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderType instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeWithDefaults() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderTypeWithDefaults instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderType) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderType) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsProviderType) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsProviderType) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParams() []CSSCMSDataModelModelsProviderTypeParam` + +GetProviderTypeParams returns the ProviderTypeParams field if non-nil, zero value otherwise. + +### GetProviderTypeParamsOk + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParamsOk() (*[]CSSCMSDataModelModelsProviderTypeParam, bool)` + +GetProviderTypeParamsOk returns a tuple with the ProviderTypeParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParams(v []CSSCMSDataModelModelsProviderTypeParam)` + +SetProviderTypeParams sets ProviderTypeParams field to given value. + +### HasProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) HasProviderTypeParams() bool` + +HasProviderTypeParams returns a boolean if a field has been set. + +### SetProviderTypeParamsNil + +`func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParamsNil(b bool)` + + SetProviderTypeParamsNil sets the value for ProviderTypeParams to be an explicit nil + +### UnsetProviderTypeParams +`func (o *CSSCMSDataModelModelsProviderType) UnsetProviderTypeParams()` + +UnsetProviderTypeParams ensures that no value is present for ProviderTypeParams, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md new file mode 100644 index 0000000..620b06b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md @@ -0,0 +1,206 @@ +# CSSCMSDataModelModelsProviderTypeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] +**ProviderType** | Pointer to [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderTypeParam + +`func NewCSSCMSDataModelModelsProviderTypeParam() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParam instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeParamWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeParamWithDefaults() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParamWithDefaults instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + +### GetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsRecoveryResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsRecoveryResponse.md new file mode 100644 index 0000000..9cb3a01 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsRecoveryResponse.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsRecoveryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PFX** | Pointer to **NullableString** | | [optional] +**FileName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsRecoveryResponse + +`func NewCSSCMSDataModelModelsRecoveryResponse() *CSSCMSDataModelModelsRecoveryResponse` + +NewCSSCMSDataModelModelsRecoveryResponse instantiates a new CSSCMSDataModelModelsRecoveryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsRecoveryResponseWithDefaults + +`func NewCSSCMSDataModelModelsRecoveryResponseWithDefaults() *CSSCMSDataModelModelsRecoveryResponse` + +NewCSSCMSDataModelModelsRecoveryResponseWithDefaults instantiates a new CSSCMSDataModelModelsRecoveryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPFX + +`func (o *CSSCMSDataModelModelsRecoveryResponse) GetPFX() string` + +GetPFX returns the PFX field if non-nil, zero value otherwise. + +### GetPFXOk + +`func (o *CSSCMSDataModelModelsRecoveryResponse) GetPFXOk() (*string, bool)` + +GetPFXOk returns a tuple with the PFX field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPFX + +`func (o *CSSCMSDataModelModelsRecoveryResponse) SetPFX(v string)` + +SetPFX sets PFX field to given value. + +### HasPFX + +`func (o *CSSCMSDataModelModelsRecoveryResponse) HasPFX() bool` + +HasPFX returns a boolean if a field has been set. + +### SetPFXNil + +`func (o *CSSCMSDataModelModelsRecoveryResponse) SetPFXNil(b bool)` + + SetPFXNil sets the value for PFX to be an explicit nil + +### UnsetPFX +`func (o *CSSCMSDataModelModelsRecoveryResponse) UnsetPFX()` + +UnsetPFX ensures that no value is present for PFX, not even an explicit nil +### GetFileName + +`func (o *CSSCMSDataModelModelsRecoveryResponse) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *CSSCMSDataModelModelsRecoveryResponse) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *CSSCMSDataModelModelsRecoveryResponse) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *CSSCMSDataModelModelsRecoveryResponse) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + +### SetFileNameNil + +`func (o *CSSCMSDataModelModelsRecoveryResponse) SetFileNameNil(b bool)` + + SetFileNameNil sets the value for FileName to be an explicit nil + +### UnsetFileName +`func (o *CSSCMSDataModelModelsRecoveryResponse) UnsetFileName()` + +UnsetFileName ensures that no value is present for FileName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReenrollmentStatus.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReenrollmentStatus.md new file mode 100644 index 0000000..282434f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReenrollmentStatus.md @@ -0,0 +1,226 @@ +# CSSCMSDataModelModelsReenrollmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **bool** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**JobProperties** | Pointer to **NullableString** | | [optional] +**CustomAliasAllowed** | Pointer to **int32** | | [optional] +**EntryParameters** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReenrollmentStatus + +`func NewCSSCMSDataModelModelsReenrollmentStatus() *CSSCMSDataModelModelsReenrollmentStatus` + +NewCSSCMSDataModelModelsReenrollmentStatus instantiates a new CSSCMSDataModelModelsReenrollmentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReenrollmentStatusWithDefaults + +`func NewCSSCMSDataModelModelsReenrollmentStatusWithDefaults() *CSSCMSDataModelModelsReenrollmentStatus` + +NewCSSCMSDataModelModelsReenrollmentStatusWithDefaults instantiates a new CSSCMSDataModelModelsReenrollmentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetData() bool` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetDataOk() (*bool, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetData(v bool)` + +SetData sets Data field to given value. + +### HasData + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetAgentId + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetMessage + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetJobProperties + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetJobProperties() string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetJobPropertiesOk() (*string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetJobProperties(v string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### SetJobPropertiesNil + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetJobPropertiesNil(b bool)` + + SetJobPropertiesNil sets the value for JobProperties to be an explicit nil + +### UnsetJobProperties +`func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetJobProperties()` + +UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +### GetCustomAliasAllowed + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetCustomAliasAllowed() int32` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetCustomAliasAllowedOk() (*int32, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetCustomAliasAllowed(v int32)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetEntryParameters + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) GetEntryParametersOk() (*[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + +### SetEntryParametersNil + +`func (o *CSSCMSDataModelModelsReenrollmentStatus) SetEntryParametersNil(b bool)` + + SetEntryParametersNil sets the value for EntryParameters to be an explicit nil + +### UnsetEntryParameters +`func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetEntryParameters()` + +UnsetEntryParameters ensures that no value is present for EntryParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReport.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReport.md new file mode 100644 index 0000000..7cb9aee --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReport.md @@ -0,0 +1,520 @@ +# CSSCMSDataModelModelsReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Scheduled** | Pointer to **NullableInt32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**ReportPath** | Pointer to **NullableString** | | [optional] +**VersionNumber** | Pointer to **NullableString** | | [optional] +**Categories** | Pointer to **NullableString** | | [optional] +**ShortName** | Pointer to **NullableString** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**RemoveDuplicates** | Pointer to **bool** | | [optional] +**UsesCollection** | Pointer to **bool** | | [optional] +**ReportParameter** | Pointer to [**[]CSSCMSDataModelModelsReportParameters**](CSSCMSDataModelModelsReportParameters.md) | | [optional] +**Schedules** | Pointer to [**[]CSSCMSDataModelModelsReportSchedule**](CSSCMSDataModelModelsReportSchedule.md) | | [optional] +**AcceptedScheduleFormats** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReport + +`func NewCSSCMSDataModelModelsReport() *CSSCMSDataModelModelsReport` + +NewCSSCMSDataModelModelsReport instantiates a new CSSCMSDataModelModelsReport object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReportWithDefaults + +`func NewCSSCMSDataModelModelsReportWithDefaults() *CSSCMSDataModelModelsReport` + +NewCSSCMSDataModelModelsReportWithDefaults instantiates a new CSSCMSDataModelModelsReport object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsReport) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsReport) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsReport) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsReport) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetScheduled + +`func (o *CSSCMSDataModelModelsReport) GetScheduled() int32` + +GetScheduled returns the Scheduled field if non-nil, zero value otherwise. + +### GetScheduledOk + +`func (o *CSSCMSDataModelModelsReport) GetScheduledOk() (*int32, bool)` + +GetScheduledOk returns a tuple with the Scheduled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduled + +`func (o *CSSCMSDataModelModelsReport) SetScheduled(v int32)` + +SetScheduled sets Scheduled field to given value. + +### HasScheduled + +`func (o *CSSCMSDataModelModelsReport) HasScheduled() bool` + +HasScheduled returns a boolean if a field has been set. + +### SetScheduledNil + +`func (o *CSSCMSDataModelModelsReport) SetScheduledNil(b bool)` + + SetScheduledNil sets the value for Scheduled to be an explicit nil + +### UnsetScheduled +`func (o *CSSCMSDataModelModelsReport) UnsetScheduled()` + +UnsetScheduled ensures that no value is present for Scheduled, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsReport) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsReport) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsReport) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsReport) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsReport) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsReport) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *CSSCMSDataModelModelsReport) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsReport) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsReport) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsReport) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsReport) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsReport) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetReportPath + +`func (o *CSSCMSDataModelModelsReport) GetReportPath() string` + +GetReportPath returns the ReportPath field if non-nil, zero value otherwise. + +### GetReportPathOk + +`func (o *CSSCMSDataModelModelsReport) GetReportPathOk() (*string, bool)` + +GetReportPathOk returns a tuple with the ReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportPath + +`func (o *CSSCMSDataModelModelsReport) SetReportPath(v string)` + +SetReportPath sets ReportPath field to given value. + +### HasReportPath + +`func (o *CSSCMSDataModelModelsReport) HasReportPath() bool` + +HasReportPath returns a boolean if a field has been set. + +### SetReportPathNil + +`func (o *CSSCMSDataModelModelsReport) SetReportPathNil(b bool)` + + SetReportPathNil sets the value for ReportPath to be an explicit nil + +### UnsetReportPath +`func (o *CSSCMSDataModelModelsReport) UnsetReportPath()` + +UnsetReportPath ensures that no value is present for ReportPath, not even an explicit nil +### GetVersionNumber + +`func (o *CSSCMSDataModelModelsReport) GetVersionNumber() string` + +GetVersionNumber returns the VersionNumber field if non-nil, zero value otherwise. + +### GetVersionNumberOk + +`func (o *CSSCMSDataModelModelsReport) GetVersionNumberOk() (*string, bool)` + +GetVersionNumberOk returns a tuple with the VersionNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionNumber + +`func (o *CSSCMSDataModelModelsReport) SetVersionNumber(v string)` + +SetVersionNumber sets VersionNumber field to given value. + +### HasVersionNumber + +`func (o *CSSCMSDataModelModelsReport) HasVersionNumber() bool` + +HasVersionNumber returns a boolean if a field has been set. + +### SetVersionNumberNil + +`func (o *CSSCMSDataModelModelsReport) SetVersionNumberNil(b bool)` + + SetVersionNumberNil sets the value for VersionNumber to be an explicit nil + +### UnsetVersionNumber +`func (o *CSSCMSDataModelModelsReport) UnsetVersionNumber()` + +UnsetVersionNumber ensures that no value is present for VersionNumber, not even an explicit nil +### GetCategories + +`func (o *CSSCMSDataModelModelsReport) GetCategories() string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *CSSCMSDataModelModelsReport) GetCategoriesOk() (*string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *CSSCMSDataModelModelsReport) SetCategories(v string)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *CSSCMSDataModelModelsReport) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### SetCategoriesNil + +`func (o *CSSCMSDataModelModelsReport) SetCategoriesNil(b bool)` + + SetCategoriesNil sets the value for Categories to be an explicit nil + +### UnsetCategories +`func (o *CSSCMSDataModelModelsReport) UnsetCategories()` + +UnsetCategories ensures that no value is present for Categories, not even an explicit nil +### GetShortName + +`func (o *CSSCMSDataModelModelsReport) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *CSSCMSDataModelModelsReport) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *CSSCMSDataModelModelsReport) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + +### HasShortName + +`func (o *CSSCMSDataModelModelsReport) HasShortName() bool` + +HasShortName returns a boolean if a field has been set. + +### SetShortNameNil + +`func (o *CSSCMSDataModelModelsReport) SetShortNameNil(b bool)` + + SetShortNameNil sets the value for ShortName to be an explicit nil + +### UnsetShortName +`func (o *CSSCMSDataModelModelsReport) UnsetShortName()` + +UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +### GetInNavigator + +`func (o *CSSCMSDataModelModelsReport) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *CSSCMSDataModelModelsReport) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *CSSCMSDataModelModelsReport) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *CSSCMSDataModelModelsReport) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CSSCMSDataModelModelsReport) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CSSCMSDataModelModelsReport) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CSSCMSDataModelModelsReport) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CSSCMSDataModelModelsReport) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReport) GetRemoveDuplicates() bool` + +GetRemoveDuplicates returns the RemoveDuplicates field if non-nil, zero value otherwise. + +### GetRemoveDuplicatesOk + +`func (o *CSSCMSDataModelModelsReport) GetRemoveDuplicatesOk() (*bool, bool)` + +GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReport) SetRemoveDuplicates(v bool)` + +SetRemoveDuplicates sets RemoveDuplicates field to given value. + +### HasRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReport) HasRemoveDuplicates() bool` + +HasRemoveDuplicates returns a boolean if a field has been set. + +### GetUsesCollection + +`func (o *CSSCMSDataModelModelsReport) GetUsesCollection() bool` + +GetUsesCollection returns the UsesCollection field if non-nil, zero value otherwise. + +### GetUsesCollectionOk + +`func (o *CSSCMSDataModelModelsReport) GetUsesCollectionOk() (*bool, bool)` + +GetUsesCollectionOk returns a tuple with the UsesCollection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsesCollection + +`func (o *CSSCMSDataModelModelsReport) SetUsesCollection(v bool)` + +SetUsesCollection sets UsesCollection field to given value. + +### HasUsesCollection + +`func (o *CSSCMSDataModelModelsReport) HasUsesCollection() bool` + +HasUsesCollection returns a boolean if a field has been set. + +### GetReportParameter + +`func (o *CSSCMSDataModelModelsReport) GetReportParameter() []CSSCMSDataModelModelsReportParameters` + +GetReportParameter returns the ReportParameter field if non-nil, zero value otherwise. + +### GetReportParameterOk + +`func (o *CSSCMSDataModelModelsReport) GetReportParameterOk() (*[]CSSCMSDataModelModelsReportParameters, bool)` + +GetReportParameterOk returns a tuple with the ReportParameter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportParameter + +`func (o *CSSCMSDataModelModelsReport) SetReportParameter(v []CSSCMSDataModelModelsReportParameters)` + +SetReportParameter sets ReportParameter field to given value. + +### HasReportParameter + +`func (o *CSSCMSDataModelModelsReport) HasReportParameter() bool` + +HasReportParameter returns a boolean if a field has been set. + +### SetReportParameterNil + +`func (o *CSSCMSDataModelModelsReport) SetReportParameterNil(b bool)` + + SetReportParameterNil sets the value for ReportParameter to be an explicit nil + +### UnsetReportParameter +`func (o *CSSCMSDataModelModelsReport) UnsetReportParameter()` + +UnsetReportParameter ensures that no value is present for ReportParameter, not even an explicit nil +### GetSchedules + +`func (o *CSSCMSDataModelModelsReport) GetSchedules() []CSSCMSDataModelModelsReportSchedule` + +GetSchedules returns the Schedules field if non-nil, zero value otherwise. + +### GetSchedulesOk + +`func (o *CSSCMSDataModelModelsReport) GetSchedulesOk() (*[]CSSCMSDataModelModelsReportSchedule, bool)` + +GetSchedulesOk returns a tuple with the Schedules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedules + +`func (o *CSSCMSDataModelModelsReport) SetSchedules(v []CSSCMSDataModelModelsReportSchedule)` + +SetSchedules sets Schedules field to given value. + +### HasSchedules + +`func (o *CSSCMSDataModelModelsReport) HasSchedules() bool` + +HasSchedules returns a boolean if a field has been set. + +### SetSchedulesNil + +`func (o *CSSCMSDataModelModelsReport) SetSchedulesNil(b bool)` + + SetSchedulesNil sets the value for Schedules to be an explicit nil + +### UnsetSchedules +`func (o *CSSCMSDataModelModelsReport) UnsetSchedules()` + +UnsetSchedules ensures that no value is present for Schedules, not even an explicit nil +### GetAcceptedScheduleFormats + +`func (o *CSSCMSDataModelModelsReport) GetAcceptedScheduleFormats() []string` + +GetAcceptedScheduleFormats returns the AcceptedScheduleFormats field if non-nil, zero value otherwise. + +### GetAcceptedScheduleFormatsOk + +`func (o *CSSCMSDataModelModelsReport) GetAcceptedScheduleFormatsOk() (*[]string, bool)` + +GetAcceptedScheduleFormatsOk returns a tuple with the AcceptedScheduleFormats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcceptedScheduleFormats + +`func (o *CSSCMSDataModelModelsReport) SetAcceptedScheduleFormats(v []string)` + +SetAcceptedScheduleFormats sets AcceptedScheduleFormats field to given value. + +### HasAcceptedScheduleFormats + +`func (o *CSSCMSDataModelModelsReport) HasAcceptedScheduleFormats() bool` + +HasAcceptedScheduleFormats returns a boolean if a field has been set. + +### SetAcceptedScheduleFormatsNil + +`func (o *CSSCMSDataModelModelsReport) SetAcceptedScheduleFormatsNil(b bool)` + + SetAcceptedScheduleFormatsNil sets the value for AcceptedScheduleFormats to be an explicit nil + +### UnsetAcceptedScheduleFormats +`func (o *CSSCMSDataModelModelsReport) UnsetAcceptedScheduleFormats()` + +UnsetAcceptedScheduleFormats ensures that no value is present for AcceptedScheduleFormats, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParameters.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParameters.md new file mode 100644 index 0000000..199f2f1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParameters.md @@ -0,0 +1,278 @@ +# CSSCMSDataModelModelsReportParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**ParameterName** | Pointer to **NullableString** | | [optional] +**ParameterType** | Pointer to [**CSSCMSCoreEnumsReportParameterType**](CSSCMSCoreEnumsReportParameterType.md) | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] +**ParameterVisibility** | Pointer to [**CSSCMSCoreEnumsReportParameterVisibility**](CSSCMSCoreEnumsReportParameterVisibility.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReportParameters + +`func NewCSSCMSDataModelModelsReportParameters() *CSSCMSDataModelModelsReportParameters` + +NewCSSCMSDataModelModelsReportParameters instantiates a new CSSCMSDataModelModelsReportParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReportParametersWithDefaults + +`func NewCSSCMSDataModelModelsReportParametersWithDefaults() *CSSCMSDataModelModelsReportParameters` + +NewCSSCMSDataModelModelsReportParametersWithDefaults instantiates a new CSSCMSDataModelModelsReportParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsReportParameters) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsReportParameters) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsReportParameters) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetParameterName + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterName() string` + +GetParameterName returns the ParameterName field if non-nil, zero value otherwise. + +### GetParameterNameOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterNameOk() (*string, bool)` + +GetParameterNameOk returns a tuple with the ParameterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterName + +`func (o *CSSCMSDataModelModelsReportParameters) SetParameterName(v string)` + +SetParameterName sets ParameterName field to given value. + +### HasParameterName + +`func (o *CSSCMSDataModelModelsReportParameters) HasParameterName() bool` + +HasParameterName returns a boolean if a field has been set. + +### SetParameterNameNil + +`func (o *CSSCMSDataModelModelsReportParameters) SetParameterNameNil(b bool)` + + SetParameterNameNil sets the value for ParameterName to be an explicit nil + +### UnsetParameterName +`func (o *CSSCMSDataModelModelsReportParameters) UnsetParameterName()` + +UnsetParameterName ensures that no value is present for ParameterName, not even an explicit nil +### GetParameterType + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterType() CSSCMSCoreEnumsReportParameterType` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterTypeOk() (*CSSCMSCoreEnumsReportParameterType, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *CSSCMSDataModelModelsReportParameters) SetParameterType(v CSSCMSCoreEnumsReportParameterType)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *CSSCMSDataModelModelsReportParameters) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CSSCMSDataModelModelsReportParameters) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsReportParameters) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsReportParameters) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsReportParameters) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsReportParameters) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *CSSCMSDataModelModelsReportParameters) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsReportParameters) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsReportParameters) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsReportParameters) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsReportParameters) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsReportParameters) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsReportParameters) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsReportParameters) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsReportParameters) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsReportParameters) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetDisplayOrder + +`func (o *CSSCMSDataModelModelsReportParameters) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *CSSCMSDataModelModelsReportParameters) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *CSSCMSDataModelModelsReportParameters) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + +### GetParameterVisibility + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterVisibility() CSSCMSCoreEnumsReportParameterVisibility` + +GetParameterVisibility returns the ParameterVisibility field if non-nil, zero value otherwise. + +### GetParameterVisibilityOk + +`func (o *CSSCMSDataModelModelsReportParameters) GetParameterVisibilityOk() (*CSSCMSCoreEnumsReportParameterVisibility, bool)` + +GetParameterVisibilityOk returns a tuple with the ParameterVisibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterVisibility + +`func (o *CSSCMSDataModelModelsReportParameters) SetParameterVisibility(v CSSCMSCoreEnumsReportParameterVisibility)` + +SetParameterVisibility sets ParameterVisibility field to given value. + +### HasParameterVisibility + +`func (o *CSSCMSDataModelModelsReportParameters) HasParameterVisibility() bool` + +HasParameterVisibility returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParametersRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParametersRequest.md new file mode 100644 index 0000000..44daf27 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportParametersRequest.md @@ -0,0 +1,164 @@ +# CSSCMSDataModelModelsReportParametersRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReportParametersRequest + +`func NewCSSCMSDataModelModelsReportParametersRequest() *CSSCMSDataModelModelsReportParametersRequest` + +NewCSSCMSDataModelModelsReportParametersRequest instantiates a new CSSCMSDataModelModelsReportParametersRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReportParametersRequestWithDefaults + +`func NewCSSCMSDataModelModelsReportParametersRequestWithDefaults() *CSSCMSDataModelModelsReportParametersRequest` + +NewCSSCMSDataModelModelsReportParametersRequestWithDefaults instantiates a new CSSCMSDataModelModelsReportParametersRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsReportParametersRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsReportParametersRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CSSCMSDataModelModelsReportParametersRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsReportParametersRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsReportParametersRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsReportParametersRequest) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportRequestModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportRequestModel.md new file mode 100644 index 0000000..7646fba --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportRequestModel.md @@ -0,0 +1,174 @@ +# CSSCMSDataModelModelsReportRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableInt32** | | [optional] +**InNavigator** | Pointer to **NullableBool** | | [optional] +**Favorite** | Pointer to **NullableBool** | | [optional] +**RemoveDuplicates** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReportRequestModel + +`func NewCSSCMSDataModelModelsReportRequestModel() *CSSCMSDataModelModelsReportRequestModel` + +NewCSSCMSDataModelModelsReportRequestModel instantiates a new CSSCMSDataModelModelsReportRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReportRequestModelWithDefaults + +`func NewCSSCMSDataModelModelsReportRequestModelWithDefaults() *CSSCMSDataModelModelsReportRequestModel` + +NewCSSCMSDataModelModelsReportRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsReportRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsReportRequestModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CSSCMSDataModelModelsReportRequestModel) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetInNavigator + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *CSSCMSDataModelModelsReportRequestModel) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### SetInNavigatorNil + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetInNavigatorNil(b bool)` + + SetInNavigatorNil sets the value for InNavigator to be an explicit nil + +### UnsetInNavigator +`func (o *CSSCMSDataModelModelsReportRequestModel) UnsetInNavigator()` + +UnsetInNavigator ensures that no value is present for InNavigator, not even an explicit nil +### GetFavorite + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CSSCMSDataModelModelsReportRequestModel) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### SetFavoriteNil + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetFavoriteNil(b bool)` + + SetFavoriteNil sets the value for Favorite to be an explicit nil + +### UnsetFavorite +`func (o *CSSCMSDataModelModelsReportRequestModel) UnsetFavorite()` + +UnsetFavorite ensures that no value is present for Favorite, not even an explicit nil +### GetRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetRemoveDuplicates() bool` + +GetRemoveDuplicates returns the RemoveDuplicates field if non-nil, zero value otherwise. + +### GetRemoveDuplicatesOk + +`func (o *CSSCMSDataModelModelsReportRequestModel) GetRemoveDuplicatesOk() (*bool, bool)` + +GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetRemoveDuplicates(v bool)` + +SetRemoveDuplicates sets RemoveDuplicates field to given value. + +### HasRemoveDuplicates + +`func (o *CSSCMSDataModelModelsReportRequestModel) HasRemoveDuplicates() bool` + +HasRemoveDuplicates returns a boolean if a field has been set. + +### SetRemoveDuplicatesNil + +`func (o *CSSCMSDataModelModelsReportRequestModel) SetRemoveDuplicatesNil(b bool)` + + SetRemoveDuplicatesNil sets the value for RemoveDuplicates to be an explicit nil + +### UnsetRemoveDuplicates +`func (o *CSSCMSDataModelModelsReportRequestModel) UnsetRemoveDuplicates()` + +UnsetRemoveDuplicates ensures that no value is present for RemoveDuplicates, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportSchedule.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportSchedule.md new file mode 100644 index 0000000..cf31976 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsReportSchedule.md @@ -0,0 +1,314 @@ +# CSSCMSDataModelModelsReportSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**SendReport** | Pointer to **bool** | | [optional] +**SaveReport** | Pointer to **bool** | | [optional] +**SaveReportPath** | Pointer to **NullableString** | | [optional] +**ReportFormat** | Pointer to **NullableString** | | [optional] +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertificateCollectionId** | Pointer to **NullableInt32** | | [optional] +**EmailRecipients** | Pointer to **[]string** | | [optional] +**RuntimeParameters** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsReportSchedule + +`func NewCSSCMSDataModelModelsReportSchedule() *CSSCMSDataModelModelsReportSchedule` + +NewCSSCMSDataModelModelsReportSchedule instantiates a new CSSCMSDataModelModelsReportSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsReportScheduleWithDefaults + +`func NewCSSCMSDataModelModelsReportScheduleWithDefaults() *CSSCMSDataModelModelsReportSchedule` + +NewCSSCMSDataModelModelsReportScheduleWithDefaults instantiates a new CSSCMSDataModelModelsReportSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsReportSchedule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsReportSchedule) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsReportSchedule) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSendReport + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSendReport() bool` + +GetSendReport returns the SendReport field if non-nil, zero value otherwise. + +### GetSendReportOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSendReportOk() (*bool, bool)` + +GetSendReportOk returns a tuple with the SendReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendReport + +`func (o *CSSCMSDataModelModelsReportSchedule) SetSendReport(v bool)` + +SetSendReport sets SendReport field to given value. + +### HasSendReport + +`func (o *CSSCMSDataModelModelsReportSchedule) HasSendReport() bool` + +HasSendReport returns a boolean if a field has been set. + +### GetSaveReport + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReport() bool` + +GetSaveReport returns the SaveReport field if non-nil, zero value otherwise. + +### GetSaveReportOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportOk() (*bool, bool)` + +GetSaveReportOk returns a tuple with the SaveReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReport + +`func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReport(v bool)` + +SetSaveReport sets SaveReport field to given value. + +### HasSaveReport + +`func (o *CSSCMSDataModelModelsReportSchedule) HasSaveReport() bool` + +HasSaveReport returns a boolean if a field has been set. + +### GetSaveReportPath + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportPath() string` + +GetSaveReportPath returns the SaveReportPath field if non-nil, zero value otherwise. + +### GetSaveReportPathOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportPathOk() (*string, bool)` + +GetSaveReportPathOk returns a tuple with the SaveReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReportPath + +`func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReportPath(v string)` + +SetSaveReportPath sets SaveReportPath field to given value. + +### HasSaveReportPath + +`func (o *CSSCMSDataModelModelsReportSchedule) HasSaveReportPath() bool` + +HasSaveReportPath returns a boolean if a field has been set. + +### SetSaveReportPathNil + +`func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReportPathNil(b bool)` + + SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil + +### UnsetSaveReportPath +`func (o *CSSCMSDataModelModelsReportSchedule) UnsetSaveReportPath()` + +UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +### GetReportFormat + +`func (o *CSSCMSDataModelModelsReportSchedule) GetReportFormat() string` + +GetReportFormat returns the ReportFormat field if non-nil, zero value otherwise. + +### GetReportFormatOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetReportFormatOk() (*string, bool)` + +GetReportFormatOk returns a tuple with the ReportFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportFormat + +`func (o *CSSCMSDataModelModelsReportSchedule) SetReportFormat(v string)` + +SetReportFormat sets ReportFormat field to given value. + +### HasReportFormat + +`func (o *CSSCMSDataModelModelsReportSchedule) HasReportFormat() bool` + +HasReportFormat returns a boolean if a field has been set. + +### SetReportFormatNil + +`func (o *CSSCMSDataModelModelsReportSchedule) SetReportFormatNil(b bool)` + + SetReportFormatNil sets the value for ReportFormat to be an explicit nil + +### UnsetReportFormat +`func (o *CSSCMSDataModelModelsReportSchedule) UnsetReportFormat()` + +UnsetReportFormat ensures that no value is present for ReportFormat, not even an explicit nil +### GetKeyfactorSchedule + +`func (o *CSSCMSDataModelModelsReportSchedule) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *CSSCMSDataModelModelsReportSchedule) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *CSSCMSDataModelModelsReportSchedule) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetCertificateCollectionId + +`func (o *CSSCMSDataModelModelsReportSchedule) GetCertificateCollectionId() int32` + +GetCertificateCollectionId returns the CertificateCollectionId field if non-nil, zero value otherwise. + +### GetCertificateCollectionIdOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetCertificateCollectionIdOk() (*int32, bool)` + +GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCollectionId + +`func (o *CSSCMSDataModelModelsReportSchedule) SetCertificateCollectionId(v int32)` + +SetCertificateCollectionId sets CertificateCollectionId field to given value. + +### HasCertificateCollectionId + +`func (o *CSSCMSDataModelModelsReportSchedule) HasCertificateCollectionId() bool` + +HasCertificateCollectionId returns a boolean if a field has been set. + +### SetCertificateCollectionIdNil + +`func (o *CSSCMSDataModelModelsReportSchedule) SetCertificateCollectionIdNil(b bool)` + + SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil + +### UnsetCertificateCollectionId +`func (o *CSSCMSDataModelModelsReportSchedule) UnsetCertificateCollectionId()` + +UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +### GetEmailRecipients + +`func (o *CSSCMSDataModelModelsReportSchedule) GetEmailRecipients() []string` + +GetEmailRecipients returns the EmailRecipients field if non-nil, zero value otherwise. + +### GetEmailRecipientsOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetEmailRecipientsOk() (*[]string, bool)` + +GetEmailRecipientsOk returns a tuple with the EmailRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailRecipients + +`func (o *CSSCMSDataModelModelsReportSchedule) SetEmailRecipients(v []string)` + +SetEmailRecipients sets EmailRecipients field to given value. + +### HasEmailRecipients + +`func (o *CSSCMSDataModelModelsReportSchedule) HasEmailRecipients() bool` + +HasEmailRecipients returns a boolean if a field has been set. + +### SetEmailRecipientsNil + +`func (o *CSSCMSDataModelModelsReportSchedule) SetEmailRecipientsNil(b bool)` + + SetEmailRecipientsNil sets the value for EmailRecipients to be an explicit nil + +### UnsetEmailRecipients +`func (o *CSSCMSDataModelModelsReportSchedule) UnsetEmailRecipients()` + +UnsetEmailRecipients ensures that no value is present for EmailRecipients, not even an explicit nil +### GetRuntimeParameters + +`func (o *CSSCMSDataModelModelsReportSchedule) GetRuntimeParameters() map[string]string` + +GetRuntimeParameters returns the RuntimeParameters field if non-nil, zero value otherwise. + +### GetRuntimeParametersOk + +`func (o *CSSCMSDataModelModelsReportSchedule) GetRuntimeParametersOk() (*map[string]string, bool)` + +GetRuntimeParametersOk returns a tuple with the RuntimeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuntimeParameters + +`func (o *CSSCMSDataModelModelsReportSchedule) SetRuntimeParameters(v map[string]string)` + +SetRuntimeParameters sets RuntimeParameters field to given value. + +### HasRuntimeParameters + +`func (o *CSSCMSDataModelModelsReportSchedule) HasRuntimeParameters() bool` + +HasRuntimeParameters returns a boolean if a field has been set. + +### SetRuntimeParametersNil + +`func (o *CSSCMSDataModelModelsReportSchedule) SetRuntimeParametersNil(b bool)` + + SetRuntimeParametersNil sets the value for RuntimeParameters to be an explicit nil + +### UnsetRuntimeParameters +`func (o *CSSCMSDataModelModelsReportSchedule) UnsetRuntimeParameters()` + +UnsetRuntimeParameters ensures that no value is present for RuntimeParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md new file mode 100644 index 0000000..2ebd3f2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonName** | Pointer to **NullableString** | | [optional] +**Users** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest + +`func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest() *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetLogonName() string` + +GetLogonName returns the LogonName field if non-nil, zero value otherwise. + +### GetLogonNameOk + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetLogonNameOk() (*string, bool)` + +GetLogonNameOk returns a tuple with the LogonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetLogonName(v string)` + +SetLogonName sets LogonName field to given value. + +### HasLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) HasLogonName() bool` + +HasLogonName returns a boolean if a field has been set. + +### SetLogonNameNil + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetLogonNameNil(b bool)` + + SetLogonNameNil sets the value for LogonName to be an explicit nil + +### UnsetLogonName +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) UnsetLogonName()` + +UnsetLogonName ensures that no value is present for LogonName, not even an explicit nil +### GetUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetUsers() []string` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetUsersOk() (*[]string, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetUsers(v []string)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + +### SetUsersNil + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetUsersNil(b bool)` + + SetUsersNil sets the value for Users to be an explicit nil + +### UnsetUsers +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) UnsetUsers()` + +UnsetUsers ensures that no value is present for Users, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md new file mode 100644 index 0000000..44ff8f9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md @@ -0,0 +1,138 @@ +# CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonId** | Pointer to **NullableInt32** | | [optional] +**LogonName** | Pointer to **NullableString** | | [optional] +**Users** | Pointer to [**[]CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + +`func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse() *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonId + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonId() int32` + +GetLogonId returns the LogonId field if non-nil, zero value otherwise. + +### GetLogonIdOk + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonIdOk() (*int32, bool)` + +GetLogonIdOk returns a tuple with the LogonId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonId + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonId(v int32)` + +SetLogonId sets LogonId field to given value. + +### HasLogonId + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasLogonId() bool` + +HasLogonId returns a boolean if a field has been set. + +### SetLogonIdNil + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonIdNil(b bool)` + + SetLogonIdNil sets the value for LogonId to be an explicit nil + +### UnsetLogonId +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnsetLogonId()` + +UnsetLogonId ensures that no value is present for LogonId, not even an explicit nil +### GetLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonName() string` + +GetLogonName returns the LogonName field if non-nil, zero value otherwise. + +### GetLogonNameOk + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonNameOk() (*string, bool)` + +GetLogonNameOk returns a tuple with the LogonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonName(v string)` + +SetLogonName sets LogonName field to given value. + +### HasLogonName + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasLogonName() bool` + +HasLogonName returns a boolean if a field has been set. + +### SetLogonNameNil + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonNameNil(b bool)` + + SetLogonNameNil sets the value for LogonName to be an explicit nil + +### UnsetLogonName +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnsetLogonName()` + +UnsetLogonName ensures that no value is present for LogonName, not even an explicit nil +### GetUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetUsers() []CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetUsersOk() (*[]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetUsers(v []CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + +### SetUsersNil + +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetUsersNil(b bool)` + + SetUsersNil sets the value for Users to be an explicit nil + +### UnsetUsers +`func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnsetUsers()` + +UnsetUsers ensures that no value is present for Users, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessRequest.md new file mode 100644 index 0000000..7ecdec8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSHAccessServerAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerId** | **int32** | | +**LogonUsers** | [**[]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest**](CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md) | | + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessServerAccessRequest + +`func NewCSSCMSDataModelModelsSSHAccessServerAccessRequest(serverId int32, logonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, ) *CSSCMSDataModelModelsSSHAccessServerAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessServerAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessServerAccessRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessServerAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessServerAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessServerAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerId + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + + +### GetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetLogonUsersOk() (*[]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest)` + +SetLogonUsers sets LogonUsers field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessResponse.md new file mode 100644 index 0000000..2de0bd1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerAccessResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsSSHAccessServerAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerId** | Pointer to **int32** | | [optional] +**LogonUsers** | Pointer to [**[]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse**](CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessServerAccessResponse + +`func NewCSSCMSDataModelModelsSSHAccessServerAccessResponse() *CSSCMSDataModelModelsSSHAccessServerAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessServerAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessServerAccessResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessServerAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessServerAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessServerAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerId + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + +### HasServerId + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) HasServerId() bool` + +HasServerId returns a boolean if a field has been set. + +### GetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetLogonUsersOk() (*[]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse)` + +SetLogonUsers sets LogonUsers field to given value. + +### HasLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) HasLogonUsers() bool` + +HasLogonUsers returns a boolean if a field has been set. + +### SetLogonUsersNil + +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) SetLogonUsersNil(b bool)` + + SetLogonUsersNil sets the value for LogonUsers to be an explicit nil + +### UnsetLogonUsers +`func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) UnsetLogonUsers()` + +UnsetLogonUsers ensures that no value is present for LogonUsers, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md new file mode 100644 index 0000000..b2ae678 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerGroupId** | **string** | | +**LogonUsers** | [**[]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest**](CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest.md) | | + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + +`func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(serverGroupId string, logonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, ) *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest` + +NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + +### GetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetLogonUsersOk() (*[]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest)` + +SetLogonUsers sets LogonUsers field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md new file mode 100644 index 0000000..dd33ef3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerGroupId** | Pointer to **string** | | [optional] +**LogonUsers** | Pointer to [**[]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse**](CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + +`func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse() *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse` + +NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + +### HasServerGroupId + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) HasServerGroupId() bool` + +HasServerGroupId returns a boolean if a field has been set. + +### GetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetLogonUsersOk() (*[]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse)` + +SetLogonUsers sets LogonUsers field to given value. + +### HasLogonUsers + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) HasLogonUsers() bool` + +HasLogonUsers returns a boolean if a field has been set. + +### SetLogonUsersNil + +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) SetLogonUsersNil(b bool)` + + SetLogonUsersNil sets the value for LogonUsers to be an explicit nil + +### UnsetLogonUsers +`func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) UnsetLogonUsers()` + +UnsetLogonUsers ensures that no value is present for LogonUsers, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md new file mode 100644 index 0000000..87a69da --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md @@ -0,0 +1,171 @@ +# CSSCMSDataModelModelsSSHKeysKeyGenerationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyType** | **string** | | +**PrivateKeyFormat** | **string** | | +**KeyLength** | **int32** | | +**Email** | **string** | | +**Password** | **string** | | +**Comment** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest + +`func NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest(keyType string, privateKeyFormat string, keyLength int32, email string, password string, ) *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest` + +NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest instantiates a new CSSCMSDataModelModelsSSHKeysKeyGenerationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequestWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest` + +NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyGenerationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + + +### GetPrivateKeyFormat + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormat() string` + +GetPrivateKeyFormat returns the PrivateKeyFormat field if non-nil, zero value otherwise. + +### GetPrivateKeyFormatOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormatOk() (*string, bool)` + +GetPrivateKeyFormatOk returns a tuple with the PrivateKeyFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyFormat + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetPrivateKeyFormat(v string)` + +SetPrivateKeyFormat sets PrivateKeyFormat field to given value. + + +### GetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + + +### GetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetPassword + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md new file mode 100644 index 0000000..bec594d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md @@ -0,0 +1,396 @@ +# CSSCMSDataModelModelsSSHKeysKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Fingerprint** | Pointer to **NullableString** | | [optional] +**PublicKey** | Pointer to **NullableString** | | [optional] +**PrivateKey** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**CreationDate** | Pointer to **NullableTime** | | [optional] +**StaleDate** | Pointer to **NullableTime** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**Comments** | Pointer to **[]string** | | [optional] +**LogonCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHKeysKeyResponse + +`func NewCSSCMSDataModelModelsSSHKeysKeyResponse() *CSSCMSDataModelModelsSSHKeysKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprint() string` + +GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. + +### GetFingerprintOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool)` + +GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprint(v string)` + +SetFingerprint sets Fingerprint field to given value. + +### HasFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasFingerprint() bool` + +HasFingerprint returns a boolean if a field has been set. + +### SetFingerprintNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprintNil(b bool)` + + SetFingerprintNil sets the value for Fingerprint to be an explicit nil + +### UnsetFingerprint +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetFingerprint()` + +UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +### GetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### SetPublicKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### SetPrivateKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKeyNil(b bool)` + + SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil + +### UnsetPrivateKey +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPrivateKey()` + +UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +### GetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDate() time.Time` + +GetCreationDate returns the CreationDate field if non-nil, zero value otherwise. + +### GetCreationDateOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool)` + +GetCreationDateOk returns a tuple with the CreationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDate(v time.Time)` + +SetCreationDate sets CreationDate field to given value. + +### HasCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasCreationDate() bool` + +HasCreationDate returns a boolean if a field has been set. + +### SetCreationDateNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDateNil(b bool)` + + SetCreationDateNil sets the value for CreationDate to be an explicit nil + +### UnsetCreationDate +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetCreationDate()` + +UnsetCreationDate ensures that no value is present for CreationDate, not even an explicit nil +### GetStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDate() time.Time` + +GetStaleDate returns the StaleDate field if non-nil, zero value otherwise. + +### GetStaleDateOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool)` + +GetStaleDateOk returns a tuple with the StaleDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDate(v time.Time)` + +SetStaleDate sets StaleDate field to given value. + +### HasStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasStaleDate() bool` + +HasStaleDate returns a boolean if a field has been set. + +### SetStaleDateNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDateNil(b bool)` + + SetStaleDateNil sets the value for StaleDate to be an explicit nil + +### UnsetStaleDate +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetStaleDate()` + +UnsetStaleDate ensures that no value is present for StaleDate, not even an explicit nil +### GetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetComments() []string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCommentsOk() (*[]string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetComments(v []string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### SetCommentsNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCommentsNil(b bool)` + + SetCommentsNil sets the value for Comments to be an explicit nil + +### UnsetComments +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetComments()` + +UnsetComments ensures that no value is present for Comments, not even an explicit nil +### GetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCount() int32` + +GetLogonCount returns the LogonCount field if non-nil, zero value otherwise. + +### GetLogonCountOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool)` + +GetLogonCountOk returns a tuple with the LogonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetLogonCount(v int32)` + +SetLogonCount sets LogonCount field to given value. + +### HasLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasLogonCount() bool` + +HasLogonCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md new file mode 100644 index 0000000..190f05e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md @@ -0,0 +1,108 @@ +# CSSCMSDataModelModelsSSHKeysKeyUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Email** | **string** | | +**Comment** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest + +`func NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest(id int32, email string, ) *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest` + +NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest instantiates a new CSSCMSDataModelModelsSSHKeysKeyUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest` + +NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md new file mode 100644 index 0000000..896e094 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md @@ -0,0 +1,396 @@ +# CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Fingerprint** | Pointer to **NullableString** | | [optional] +**PublicKey** | Pointer to **NullableString** | | [optional] +**PrivateKey** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**DiscoveredDate** | Pointer to **NullableTime** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**Comments** | Pointer to **[]string** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LogonCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + +`func NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse() *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetFingerprint() string` + +GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. + +### GetFingerprintOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetFingerprintOk() (*string, bool)` + +GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetFingerprint(v string)` + +SetFingerprint sets Fingerprint field to given value. + +### HasFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasFingerprint() bool` + +HasFingerprint returns a boolean if a field has been set. + +### SetFingerprintNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetFingerprintNil(b bool)` + + SetFingerprintNil sets the value for Fingerprint to be an explicit nil + +### UnsetFingerprint +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetFingerprint()` + +UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +### GetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### SetPublicKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### SetPrivateKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPrivateKeyNil(b bool)` + + SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil + +### UnsetPrivateKey +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetPrivateKey()` + +UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +### GetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetDiscoveredDate + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDate() time.Time` + +GetDiscoveredDate returns the DiscoveredDate field if non-nil, zero value otherwise. + +### GetDiscoveredDateOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDateOk() (*time.Time, bool)` + +GetDiscoveredDateOk returns a tuple with the DiscoveredDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveredDate + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDate(v time.Time)` + +SetDiscoveredDate sets DiscoveredDate field to given value. + +### HasDiscoveredDate + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasDiscoveredDate() bool` + +HasDiscoveredDate returns a boolean if a field has been set. + +### SetDiscoveredDateNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDateNil(b bool)` + + SetDiscoveredDateNil sets the value for DiscoveredDate to be an explicit nil + +### UnsetDiscoveredDate +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetDiscoveredDate()` + +UnsetDiscoveredDate ensures that no value is present for DiscoveredDate, not even an explicit nil +### GetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetComments + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetComments() []string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetCommentsOk() (*[]string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetComments(v []string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### SetCommentsNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetCommentsNil(b bool)` + + SetCommentsNil sets the value for Comments to be an explicit nil + +### UnsetComments +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetComments()` + +UnsetComments ensures that no value is present for Comments, not even an explicit nil +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetLogonCount() int32` + +GetLogonCount returns the LogonCount field if non-nil, zero value otherwise. + +### GetLogonCountOk + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetLogonCountOk() (*int32, bool)` + +GetLogonCountOk returns a tuple with the LogonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetLogonCount(v int32)` + +SetLogonCount sets LogonCount field to given value. + +### HasLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasLogonCount() bool` + +HasLogonCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonAccessRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonAccessRequest.md new file mode 100644 index 0000000..c71a73d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonAccessRequest.md @@ -0,0 +1,87 @@ +# CSSCMSDataModelModelsSSHLogonsLogonAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonId** | **int32** | | +**UserIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest + +`func NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest(logonId int32, ) *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest` + +NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest instantiates a new CSSCMSDataModelModelsSSHLogonsLogonAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest` + +NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetLogonId() int32` + +GetLogonId returns the LogonId field if non-nil, zero value otherwise. + +### GetLogonIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetLogonIdOk() (*int32, bool)` + +GetLogonIdOk returns a tuple with the LogonId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) SetLogonId(v int32)` + +SetLogonId sets LogonId field to given value. + + +### GetUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetUserIds() []int32` + +GetUserIds returns the UserIds field if non-nil, zero value otherwise. + +### GetUserIdsOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetUserIdsOk() (*[]int32, bool)` + +GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) SetUserIds(v []int32)` + +SetUserIds sets UserIds field to given value. + +### HasUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) HasUserIds() bool` + +HasUserIds returns a boolean if a field has been set. + +### SetUserIdsNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) SetUserIdsNil(b bool)` + + SetUserIdsNil sets the value for UserIds to be an explicit nil + +### UnsetUserIds +`func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) UnsetUserIds()` + +UnsetUserIds ensures that no value is present for UserIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonCreationRequest.md new file mode 100644 index 0000000..d0b5864 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonCreationRequest.md @@ -0,0 +1,108 @@ +# CSSCMSDataModelModelsSSHLogonsLogonCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**ServerId** | **int32** | | +**UserIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest + +`func NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest(username string, serverId int32, ) *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest` + +NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest instantiates a new CSSCMSDataModelModelsSSHLogonsLogonCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest` + +NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetServerId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + + +### GetUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUserIds() []int32` + +GetUserIds returns the UserIds field if non-nil, zero value otherwise. + +### GetUserIdsOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUserIdsOk() (*[]int32, bool)` + +GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetUserIds(v []int32)` + +SetUserIds sets UserIds field to given value. + +### HasUserIds + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) HasUserIds() bool` + +HasUserIds returns a boolean if a field has been set. + +### SetUserIdsNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetUserIdsNil(b bool)` + + SetUserIdsNil sets the value for UserIds to be an explicit nil + +### UnsetUserIds +`func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) UnsetUserIds()` + +UnsetUserIds ensures that no value is present for UserIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonQueryResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonQueryResponse.md new file mode 100644 index 0000000..7b66e2b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonQueryResponse.md @@ -0,0 +1,278 @@ +# CSSCMSDataModelModelsSSHLogonsLogonQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LastLogon** | Pointer to **NullableTime** | | [optional] +**ServerId** | Pointer to **int32** | | [optional] +**ServerName** | Pointer to **NullableString** | | [optional] +**GroupName** | Pointer to **NullableString** | | [optional] +**KeyCount** | Pointer to **int32** | | [optional] +**ServerUnderManagement** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponse + +`func NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponse() *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetLastLogon() time.Time` + +GetLastLogon returns the LastLogon field if non-nil, zero value otherwise. + +### GetLastLogonOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetLastLogonOk() (*time.Time, bool)` + +GetLastLogonOk returns a tuple with the LastLogon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetLastLogon(v time.Time)` + +SetLastLogon sets LastLogon field to given value. + +### HasLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasLastLogon() bool` + +HasLastLogon returns a boolean if a field has been set. + +### SetLastLogonNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetLastLogonNil(b bool)` + + SetLastLogonNil sets the value for LastLogon to be an explicit nil + +### UnsetLastLogon +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetLastLogon()` + +UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +### GetServerId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + +### HasServerId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerId() bool` + +HasServerId returns a boolean if a field has been set. + +### GetServerName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerName() string` + +GetServerName returns the ServerName field if non-nil, zero value otherwise. + +### GetServerNameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerNameOk() (*string, bool)` + +GetServerNameOk returns a tuple with the ServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerName(v string)` + +SetServerName sets ServerName field to given value. + +### HasServerName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerName() bool` + +HasServerName returns a boolean if a field has been set. + +### SetServerNameNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerNameNil(b bool)` + + SetServerNameNil sets the value for ServerName to be an explicit nil + +### UnsetServerName +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetServerName()` + +UnsetServerName ensures that no value is present for ServerName, not even an explicit nil +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### SetGroupNameNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetGroupNameNil(b bool)` + + SetGroupNameNil sets the value for GroupName to be an explicit nil + +### UnsetGroupName +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetGroupName()` + +UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +### GetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetKeyCount() int32` + +GetKeyCount returns the KeyCount field if non-nil, zero value otherwise. + +### GetKeyCountOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetKeyCountOk() (*int32, bool)` + +GetKeyCountOk returns a tuple with the KeyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetKeyCount(v int32)` + +SetKeyCount sets KeyCount field to given value. + +### HasKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasKeyCount() bool` + +HasKeyCount returns a boolean if a field has been set. + +### GetServerUnderManagement + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerUnderManagement() bool` + +GetServerUnderManagement returns the ServerUnderManagement field if non-nil, zero value otherwise. + +### GetServerUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerUnderManagementOk() (*bool, bool)` + +GetServerUnderManagementOk returns a tuple with the ServerUnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUnderManagement + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerUnderManagement(v bool)` + +SetServerUnderManagement sets ServerUnderManagement field to given value. + +### HasServerUnderManagement + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerUnderManagement() bool` + +HasServerUnderManagement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md new file mode 100644 index 0000000..cbdb080 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md @@ -0,0 +1,216 @@ +# CSSCMSDataModelModelsSSHLogonsLogonResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LastLogon** | Pointer to **NullableTime** | | [optional] +**Server** | Pointer to [**CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) | | [optional] +**KeyCount** | Pointer to **int32** | | [optional] +**Access** | Pointer to [**[]CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHLogonsLogonResponse + +`func NewCSSCMSDataModelModelsSSHLogonsLogonResponse() *CSSCMSDataModelModelsSSHLogonsLogonResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogon() time.Time` + +GetLastLogon returns the LastLogon field if non-nil, zero value otherwise. + +### GetLastLogonOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool)` + +GetLastLogonOk returns a tuple with the LastLogon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time)` + +SetLastLogon sets LastLogon field to given value. + +### HasLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasLastLogon() bool` + +HasLastLogon returns a boolean if a field has been set. + +### SetLastLogonNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogonNil(b bool)` + + SetLastLogonNil sets the value for LastLogon to be an explicit nil + +### UnsetLastLogon +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetLastLogon()` + +UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +### GetServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServer() CSSCMSDataModelModelsSSHServersServerResponse` + +GetServer returns the Server field if non-nil, zero value otherwise. + +### GetServerOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServerOk() (*CSSCMSDataModelModelsSSHServersServerResponse, bool)` + +GetServerOk returns a tuple with the Server field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetServer(v CSSCMSDataModelModelsSSHServersServerResponse)` + +SetServer sets Server field to given value. + +### HasServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasServer() bool` + +HasServer returns a boolean if a field has been set. + +### GetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCount() int32` + +GetKeyCount returns the KeyCount field if non-nil, zero value otherwise. + +### GetKeyCountOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool)` + +GetKeyCountOk returns a tuple with the KeyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetKeyCount(v int32)` + +SetKeyCount sets KeyCount field to given value. + +### HasKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasKeyCount() bool` + +HasKeyCount returns a boolean if a field has been set. + +### GetAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccess() []CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccessOk() (*[]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccess(v []CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### SetAccessNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccessNil(b bool)` + + SetAccessNil sets the value for Access to be an explicit nil + +### UnsetAccess +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetAccess()` + +UnsetAccess ensures that no value is present for Access, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest.md new file mode 100644 index 0000000..4508a69 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest.md @@ -0,0 +1,124 @@ +# CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerName** | **string** | | +**GroupName** | **string** | | +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(ownerName string, groupName string, ) *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOwnerName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerName() string` + +GetOwnerName returns the OwnerName field if non-nil, zero value otherwise. + +### GetOwnerNameOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerNameOk() (*string, bool)` + +GetOwnerNameOk returns a tuple with the OwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetOwnerName(v string)` + +SetOwnerName sets OwnerName field to given value. + + +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md new file mode 100644 index 0000000..97d6775 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md @@ -0,0 +1,206 @@ +# CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Owner** | Pointer to [**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] +**GroupName** | Pointer to **NullableString** | | [optional] +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] +**ServerCount** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse() *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponseWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOwner + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### SetGroupNameNil + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetGroupNameNil(b bool)` + + SetGroupNameNil sets the value for GroupName to be an explicit nil + +### UnsetGroupName +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) UnsetGroupName()` + +UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +### GetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetServerCount + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetServerCount() int32` + +GetServerCount returns the ServerCount field if non-nil, zero value otherwise. + +### GetServerCountOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetServerCountOk() (*int32, bool)` + +GetServerCountOk returns a tuple with the ServerCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerCount + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetServerCount(v int32)` + +SetServerCount sets ServerCount field to given value. + +### HasServerCount + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasServerCount() bool` + +HasServerCount returns a boolean if a field has been set. + +### SetServerCountNil + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetServerCountNil(b bool)` + + SetServerCountNil sets the value for ServerCount to be an explicit nil + +### UnsetServerCount +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) UnsetServerCount()` + +UnsetServerCount ensures that no value is present for ServerCount, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest.md new file mode 100644 index 0000000..1a8c5b7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest.md @@ -0,0 +1,140 @@ +# CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**OwnerName** | **string** | | +**GroupName** | **string** | | +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | **bool** | | + +## Methods + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(id string, ownerName string, groupName string, underManagement bool, ) *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest` + +NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOwnerName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerName() string` + +GetOwnerName returns the OwnerName field if non-nil, zero value otherwise. + +### GetOwnerNameOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerNameOk() (*string, bool)` + +GetOwnerNameOk returns a tuple with the OwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetOwnerName(v string)` + +SetOwnerName sets OwnerName field to given value. + + +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerCreationRequest.md new file mode 100644 index 0000000..24c78cf --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerCreationRequest.md @@ -0,0 +1,165 @@ +# CSSCMSDataModelModelsSSHServersServerCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | **string** | | +**Hostname** | **string** | | +**ServerGroupId** | **string** | | +**UnderManagement** | Pointer to **NullableBool** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServersServerCreationRequest + +`func NewCSSCMSDataModelModelsSSHServersServerCreationRequest(agentId string, hostname string, serverGroupId string, ) *CSSCMSDataModelModelsSSHServersServerCreationRequest` + +NewCSSCMSDataModelModelsSSHServersServerCreationRequest instantiates a new CSSCMSDataModelModelsSSHServersServerCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServersServerCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServersServerCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServersServerCreationRequest` + +NewCSSCMSDataModelModelsSSHServersServerCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + + +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### SetUnderManagementNil + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetUnderManagementNil(b bool)` + + SetUnderManagementNil sets the value for UnderManagement to be an explicit nil + +### UnsetUnderManagement +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) UnsetUnderManagement()` + +UnsetUnderManagement ensures that no value is present for UnderManagement, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerResponse.md new file mode 100644 index 0000000..34399a6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerResponse.md @@ -0,0 +1,360 @@ +# CSSCMSDataModelModelsSSHServersServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableInt32** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**Hostname** | Pointer to **NullableString** | | [optional] +**ServerGroupId** | Pointer to **NullableString** | | [optional] +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] +**Owner** | Pointer to [**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] +**GroupName** | Pointer to **NullableString** | | [optional] +**Orchestrator** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServersServerResponse + +`func NewCSSCMSDataModelModelsSSHServersServerResponse() *CSSCMSDataModelModelsSSHServersServerResponse` + +NewCSSCMSDataModelModelsSSHServersServerResponse instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults() *CSSCMSDataModelModelsSSHServersServerResponse` + +NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### SetHostnameNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostnameNil(b bool)` + + SetHostnameNil sets the value for Hostname to be an explicit nil + +### UnsetHostname +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetHostname()` + +UnsetHostname ensures that no value is present for Hostname, not even an explicit nil +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + +### HasServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasServerGroupId() bool` + +HasServerGroupId returns a boolean if a field has been set. + +### SetServerGroupIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupIdNil(b bool)` + + SetServerGroupIdNil sets the value for ServerGroupId to be an explicit nil + +### UnsetServerGroupId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetServerGroupId()` + +UnsetServerGroupId ensures that no value is present for ServerGroupId, not even an explicit nil +### GetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### SetGroupNameNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupNameNil(b bool)` + + SetGroupNameNil sets the value for GroupName to be an explicit nil + +### UnsetGroupName +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetGroupName()` + +UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +### GetOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestrator() string` + +GetOrchestrator returns the Orchestrator field if non-nil, zero value otherwise. + +### GetOrchestratorOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool)` + +GetOrchestratorOk returns a tuple with the Orchestrator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestrator(v string)` + +SetOrchestrator sets Orchestrator field to given value. + +### HasOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOrchestrator() bool` + +HasOrchestrator returns a boolean if a field has been set. + +### SetOrchestratorNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestratorNil(b bool)` + + SetOrchestratorNil sets the value for Orchestrator to be an explicit nil + +### UnsetOrchestrator +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetOrchestrator()` + +UnsetOrchestrator ensures that no value is present for Orchestrator, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerUpdateRequest.md new file mode 100644 index 0000000..7526efe --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServersServerUpdateRequest.md @@ -0,0 +1,123 @@ +# CSSCMSDataModelModelsSSHServersServerUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**UnderManagement** | Pointer to **NullableBool** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServersServerUpdateRequest + +`func NewCSSCMSDataModelModelsSSHServersServerUpdateRequest(id int32, ) *CSSCMSDataModelModelsSSHServersServerUpdateRequest` + +NewCSSCMSDataModelModelsSSHServersServerUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServersServerUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServersServerUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServersServerUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServersServerUpdateRequest` + +NewCSSCMSDataModelModelsSSHServersServerUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### SetUnderManagementNil + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetUnderManagementNil(b bool)` + + SetUnderManagementNil sets the value for UnderManagement to be an explicit nil + +### UnsetUnderManagement +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) UnsetUnderManagement()` + +UnsetUnderManagement ensures that no value is present for UnderManagement, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest.md new file mode 100644 index 0000000..5a093d0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest.md @@ -0,0 +1,114 @@ +# CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyGenerationRequest** | [**CSSCMSDataModelModelsSSHKeysKeyGenerationRequest**](CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md) | | +**User** | [**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest.md) | | +**ClientHostname** | **string** | | +**ServerGroupId** | **string** | | + +## Methods + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(keyGenerationRequest CSSCMSDataModelModelsSSHKeysKeyGenerationRequest, user CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest, clientHostname string, serverGroupId string, ) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyGenerationRequest + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequest() CSSCMSDataModelModelsSSHKeysKeyGenerationRequest` + +GetKeyGenerationRequest returns the KeyGenerationRequest field if non-nil, zero value otherwise. + +### GetKeyGenerationRequestOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequestOk() (*CSSCMSDataModelModelsSSHKeysKeyGenerationRequest, bool)` + +GetKeyGenerationRequestOk returns a tuple with the KeyGenerationRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyGenerationRequest + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetKeyGenerationRequest(v CSSCMSDataModelModelsSSHKeysKeyGenerationRequest)` + +SetKeyGenerationRequest sets KeyGenerationRequest field to given value. + + +### GetUser + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetUser() CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetUserOk() (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetUser(v CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest)` + +SetUser sets User field to given value. + + +### GetClientHostname + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostname() string` + +GetClientHostname returns the ClientHostname field if non-nil, zero value otherwise. + +### GetClientHostnameOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostnameOk() (*string, bool)` + +GetClientHostnameOk returns a tuple with the ClientHostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientHostname + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetClientHostname(v string)` + +SetClientHostname sets ClientHostname field to given value. + + +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md new file mode 100644 index 0000000..5bb3407 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md @@ -0,0 +1,144 @@ +# CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**ClientHostname** | Pointer to **NullableString** | | [optional] +**ServerGroup** | Pointer to [**CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) | | [optional] +**User** | Pointer to [**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponseWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientHostname + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetClientHostname() string` + +GetClientHostname returns the ClientHostname field if non-nil, zero value otherwise. + +### GetClientHostnameOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetClientHostnameOk() (*string, bool)` + +GetClientHostnameOk returns a tuple with the ClientHostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientHostname + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetClientHostname(v string)` + +SetClientHostname sets ClientHostname field to given value. + +### HasClientHostname + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasClientHostname() bool` + +HasClientHostname returns a boolean if a field has been set. + +### SetClientHostnameNil + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetClientHostnameNil(b bool)` + + SetClientHostnameNil sets the value for ClientHostname to be an explicit nil + +### UnsetClientHostname +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) UnsetClientHostname()` + +UnsetClientHostname ensures that no value is present for ClientHostname, not even an explicit nil +### GetServerGroup + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetServerGroup() CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse` + +GetServerGroup returns the ServerGroup field if non-nil, zero value otherwise. + +### GetServerGroupOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetServerGroupOk() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, bool)` + +GetServerGroupOk returns a tuple with the ServerGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroup + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetServerGroup(v CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse)` + +SetServerGroup sets ServerGroup field to given value. + +### HasServerGroup + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasServerGroup() bool` + +HasServerGroup returns a boolean if a field has been set. + +### GetUser + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetUser() CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetUserOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetUser(v CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest.md new file mode 100644 index 0000000..7052cde --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyUpdateRequest** | [**CSSCMSDataModelModelsSSHKeysKeyUpdateRequest**](CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md) | | +**Id** | **int32** | | + +## Methods + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(keyUpdateRequest CSSCMSDataModelModelsSSHKeysKeyUpdateRequest, id int32, ) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyUpdateRequest + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequest() CSSCMSDataModelModelsSSHKeysKeyUpdateRequest` + +GetKeyUpdateRequest returns the KeyUpdateRequest field if non-nil, zero value otherwise. + +### GetKeyUpdateRequestOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequestOk() (*CSSCMSDataModelModelsSSHKeysKeyUpdateRequest, bool)` + +GetKeyUpdateRequestOk returns a tuple with the KeyUpdateRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUpdateRequest + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) SetKeyUpdateRequest(v CSSCMSDataModelModelsSSHKeysKeyUpdateRequest)` + +SetKeyUpdateRequest sets KeyUpdateRequest field to given value. + + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest.md new file mode 100644 index 0000000..3a60e73 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest.md @@ -0,0 +1,87 @@ +# CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest(username string, ) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetLogonIds + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + +### SetLogonIdsNil + +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetLogonIdsNil(b bool)` + + SetLogonIdsNil sets the value for LogonIds to be an explicit nil + +### UnsetLogonIds +`func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) UnsetLogonIds()` + +UnsetLogonIds ensures that no value is present for LogonIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md new file mode 100644 index 0000000..ddda357 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md @@ -0,0 +1,180 @@ +# CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**Access** | Pointer to [**[]CSSCMSDataModelModelsSSHLogonsLogonResponse**](CSSCMSDataModelModelsSSHLogonsLogonResponse.md) | | [optional] +**IsGroup** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse + +`func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccess() []CSSCMSDataModelModelsSSHLogonsLogonResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccessOk() (*[]CSSCMSDataModelModelsSSHLogonsLogonResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccess(v []CSSCMSDataModelModelsSSHLogonsLogonResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### SetAccessNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccessNil(b bool)` + + SetAccessNil sets the value for Access to be an explicit nil + +### UnsetAccess +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetAccess()` + +UnsetAccess ensures that no value is present for Access, not even an explicit nil +### GetIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool` + +GetIsGroup returns the IsGroup field if non-nil, zero value otherwise. + +### GetIsGroupOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool)` + +GetIsGroupOk returns a tuple with the IsGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool)` + +SetIsGroup sets IsGroup field to given value. + +### HasIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool` + +HasIsGroup returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserCreationRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserCreationRequest.md new file mode 100644 index 0000000..90c51e5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserCreationRequest.md @@ -0,0 +1,87 @@ +# CSSCMSDataModelModelsSSHUsersSshUserCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest + +`func NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest(username string, ) *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest` + +NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest instantiates a new CSSCMSDataModelModelsSSHUsersSshUserCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest` + +NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + +### SetLogonIdsNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) SetLogonIdsNil(b bool)` + + SetLogonIdsNil sets the value for LogonIds to be an explicit nil + +### UnsetLogonIds +`func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) UnsetLogonIds()` + +UnsetLogonIds ensures that no value is present for LogonIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md new file mode 100644 index 0000000..ade0eae --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsSSHUsersSshUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserResponse + +`func NewCSSCMSDataModelModelsSSHUsersSshUserResponse() *CSSCMSDataModelModelsSSHUsersSshUserResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + +### SetLogonIdsNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIdsNil(b bool)` + + SetLogonIdsNil sets the value for LogonIds to be an explicit nil + +### UnsetLogonIds +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetLogonIds()` + +UnsetLogonIds ensures that no value is present for LogonIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md new file mode 100644 index 0000000..1fbe62c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md @@ -0,0 +1,87 @@ +# CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + +`func NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(id int32, ) *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest` + +NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest instantiates a new CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest` + +NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + +### SetLogonIdsNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) SetLogonIdsNil(b bool)` + + SetLogonIdsNil sets the value for LogonIds to be an explicit nil + +### UnsetLogonIds +`func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) UnsetLogonIds()` + +UnsetLogonIds ensures that no value is present for LogonIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLDisplayScanJobPart.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLDisplayScanJobPart.md new file mode 100644 index 0000000..d880e48 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLDisplayScanJobPart.md @@ -0,0 +1,226 @@ +# CSSCMSDataModelModelsSSLDisplayScanJobPart + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScanJobPartId** | Pointer to **string** | | [optional] +**Agent** | Pointer to **NullableString** | | [optional] +**Status** | Pointer to [**CSSCMSCoreEnumsSslScanJobStatus**](CSSCMSCoreEnumsSslScanJobStatus.md) | | [optional] +**StartTime** | Pointer to **NullableTime** | | [optional] +**EndTime** | Pointer to **NullableTime** | | [optional] +**EndpointCount** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLDisplayScanJobPart + +`func NewCSSCMSDataModelModelsSSLDisplayScanJobPart() *CSSCMSDataModelModelsSSLDisplayScanJobPart` + +NewCSSCMSDataModelModelsSSLDisplayScanJobPart instantiates a new CSSCMSDataModelModelsSSLDisplayScanJobPart object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLDisplayScanJobPartWithDefaults + +`func NewCSSCMSDataModelModelsSSLDisplayScanJobPartWithDefaults() *CSSCMSDataModelModelsSSLDisplayScanJobPart` + +NewCSSCMSDataModelModelsSSLDisplayScanJobPartWithDefaults instantiates a new CSSCMSDataModelModelsSSLDisplayScanJobPart object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetScanJobPartId() string` + +GetScanJobPartId returns the ScanJobPartId field if non-nil, zero value otherwise. + +### GetScanJobPartIdOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetScanJobPartIdOk() (*string, bool)` + +GetScanJobPartIdOk returns a tuple with the ScanJobPartId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetScanJobPartId(v string)` + +SetScanJobPartId sets ScanJobPartId field to given value. + +### HasScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasScanJobPartId() bool` + +HasScanJobPartId returns a boolean if a field has been set. + +### GetAgent + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### SetAgentNil + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetAgentNil(b bool)` + + SetAgentNil sets the value for Agent to be an explicit nil + +### UnsetAgent +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetAgent()` + +UnsetAgent ensures that no value is present for Agent, not even an explicit nil +### GetStatus + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStatus() CSSCMSCoreEnumsSslScanJobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStatusOk() (*CSSCMSCoreEnumsSslScanJobStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStatus(v CSSCMSCoreEnumsSslScanJobStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStartTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### SetStartTimeNil + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStartTimeNil(b bool)` + + SetStartTimeNil sets the value for StartTime to be an explicit nil + +### UnsetStartTime +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetStartTime()` + +UnsetStartTime ensures that no value is present for StartTime, not even an explicit nil +### GetEndTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### SetEndTimeNil + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndTimeNil(b bool)` + + SetEndTimeNil sets the value for EndTime to be an explicit nil + +### UnsetEndTime +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetEndTime()` + +UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +### GetEndpointCount + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndpointCount() int32` + +GetEndpointCount returns the EndpointCount field if non-nil, zero value otherwise. + +### GetEndpointCountOk + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndpointCountOk() (*int32, bool)` + +GetEndpointCountOk returns a tuple with the EndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointCount + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndpointCount(v int32)` + +SetEndpointCount sets EndpointCount field to given value. + +### HasEndpointCount + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasEndpointCount() bool` + +HasEndpointCount returns a boolean if a field has been set. + +### SetEndpointCountNil + +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndpointCountNil(b bool)` + + SetEndpointCountNil sets the value for EndpointCount to be an explicit nil + +### UnsetEndpointCount +`func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetEndpointCount()` + +UnsetEndpointCount ensures that no value is present for EndpointCount, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpoint.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpoint.md new file mode 100644 index 0000000..bf33865 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpoint.md @@ -0,0 +1,268 @@ +# CSSCMSDataModelModelsSSLEndpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointId** | Pointer to **string** | | [optional] +**NetworkId** | Pointer to **string** | | [optional] +**LastHistoryId** | Pointer to **NullableString** | | [optional] +**IpAddressBytes** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**SNIName** | Pointer to **NullableString** | | [optional] +**EnableMonitor** | Pointer to **bool** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLEndpoint + +`func NewCSSCMSDataModelModelsSSLEndpoint() *CSSCMSDataModelModelsSSLEndpoint` + +NewCSSCMSDataModelModelsSSLEndpoint instantiates a new CSSCMSDataModelModelsSSLEndpoint object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLEndpointWithDefaults + +`func NewCSSCMSDataModelModelsSSLEndpointWithDefaults() *CSSCMSDataModelModelsSSLEndpoint` + +NewCSSCMSDataModelModelsSSLEndpointWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpoint object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetNetworkId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetLastHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetLastHistoryId() string` + +GetLastHistoryId returns the LastHistoryId field if non-nil, zero value otherwise. + +### GetLastHistoryIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetLastHistoryIdOk() (*string, bool)` + +GetLastHistoryIdOk returns a tuple with the LastHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetLastHistoryId(v string)` + +SetLastHistoryId sets LastHistoryId field to given value. + +### HasLastHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasLastHistoryId() bool` + +HasLastHistoryId returns a boolean if a field has been set. + +### SetLastHistoryIdNil + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetLastHistoryIdNil(b bool)` + + SetLastHistoryIdNil sets the value for LastHistoryId to be an explicit nil + +### UnsetLastHistoryId +`func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetLastHistoryId()` + +UnsetLastHistoryId ensures that no value is present for LastHistoryId, not even an explicit nil +### GetIpAddressBytes + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetIpAddressBytes() string` + +GetIpAddressBytes returns the IpAddressBytes field if non-nil, zero value otherwise. + +### GetIpAddressBytesOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetIpAddressBytesOk() (*string, bool)` + +GetIpAddressBytesOk returns a tuple with the IpAddressBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddressBytes + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetIpAddressBytes(v string)` + +SetIpAddressBytes sets IpAddressBytes field to given value. + +### HasIpAddressBytes + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasIpAddressBytes() bool` + +HasIpAddressBytes returns a boolean if a field has been set. + +### SetIpAddressBytesNil + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetIpAddressBytesNil(b bool)` + + SetIpAddressBytesNil sets the value for IpAddressBytes to be an explicit nil + +### UnsetIpAddressBytes +`func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetIpAddressBytes()` + +UnsetIpAddressBytes ensures that no value is present for IpAddressBytes, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSNIName + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetSNIName() string` + +GetSNIName returns the SNIName field if non-nil, zero value otherwise. + +### GetSNINameOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetSNINameOk() (*string, bool)` + +GetSNINameOk returns a tuple with the SNIName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSNIName + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetSNIName(v string)` + +SetSNIName sets SNIName field to given value. + +### HasSNIName + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasSNIName() bool` + +HasSNIName returns a boolean if a field has been set. + +### SetSNINameNil + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetSNINameNil(b bool)` + + SetSNINameNil sets the value for SNIName to be an explicit nil + +### UnsetSNIName +`func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetSNIName()` + +UnsetSNIName ensures that no value is present for SNIName, not even an explicit nil +### GetEnableMonitor + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetEnableMonitor() bool` + +GetEnableMonitor returns the EnableMonitor field if non-nil, zero value otherwise. + +### GetEnableMonitorOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetEnableMonitorOk() (*bool, bool)` + +GetEnableMonitorOk returns a tuple with the EnableMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableMonitor + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetEnableMonitor(v bool)` + +SetEnableMonitor sets EnableMonitor field to given value. + +### HasEnableMonitor + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasEnableMonitor() bool` + +HasEnableMonitor returns a boolean if a field has been set. + +### GetReviewed + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *CSSCMSDataModelModelsSSLEndpoint) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *CSSCMSDataModelModelsSSLEndpoint) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *CSSCMSDataModelModelsSSLEndpoint) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponse.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponse.md new file mode 100644 index 0000000..9601767 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponse.md @@ -0,0 +1,284 @@ +# CSSCMSDataModelModelsSSLEndpointHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HistoryId** | Pointer to **string** | | [optional] +**EndpointId** | Pointer to **string** | | [optional] +**AuditId** | Pointer to **int64** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Status** | Pointer to [**KeyfactorOrchestratorsCommonEnumsSslEndpointStatus**](KeyfactorOrchestratorsCommonEnumsSslEndpointStatus.md) | | [optional] +**JobType** | Pointer to [**KeyfactorOrchestratorsCommonEnumsSslJobType**](KeyfactorOrchestratorsCommonEnumsSslJobType.md) | | [optional] +**ProbeType** | Pointer to [**KeyfactorOrchestratorsCommonEnumsSslProbeType**](KeyfactorOrchestratorsCommonEnumsSslProbeType.md) | | [optional] +**ReverseDNS** | Pointer to **NullableString** | | [optional] +**HistoryCertificates** | Pointer to [**[]CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel**](CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLEndpointHistoryResponse + +`func NewCSSCMSDataModelModelsSSLEndpointHistoryResponse() *CSSCMSDataModelModelsSSLEndpointHistoryResponse` + +NewCSSCMSDataModelModelsSSLEndpointHistoryResponse instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLEndpointHistoryResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseWithDefaults() *CSSCMSDataModelModelsSSLEndpointHistoryResponse` + +NewCSSCMSDataModelModelsSSLEndpointHistoryResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryId() string` + +GetHistoryId returns the HistoryId field if non-nil, zero value otherwise. + +### GetHistoryIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryIdOk() (*string, bool)` + +GetHistoryIdOk returns a tuple with the HistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetHistoryId(v string)` + +SetHistoryId sets HistoryId field to given value. + +### HasHistoryId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasHistoryId() bool` + +HasHistoryId returns a boolean if a field has been set. + +### GetEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetAuditId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetAuditId() int64` + +GetAuditId returns the AuditId field if non-nil, zero value otherwise. + +### GetAuditIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetAuditIdOk() (*int64, bool)` + +GetAuditIdOk returns a tuple with the AuditId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetAuditId(v int64)` + +SetAuditId sets AuditId field to given value. + +### HasAuditId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasAuditId() bool` + +HasAuditId returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetStatus + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetStatus() KeyfactorOrchestratorsCommonEnumsSslEndpointStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetStatusOk() (*KeyfactorOrchestratorsCommonEnumsSslEndpointStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetStatus(v KeyfactorOrchestratorsCommonEnumsSslEndpointStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetJobType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetJobType() KeyfactorOrchestratorsCommonEnumsSslJobType` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetJobTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslJobType, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetJobType(v KeyfactorOrchestratorsCommonEnumsSslJobType)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetProbeType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetProbeType() KeyfactorOrchestratorsCommonEnumsSslProbeType` + +GetProbeType returns the ProbeType field if non-nil, zero value otherwise. + +### GetProbeTypeOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetProbeTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslProbeType, bool)` + +GetProbeTypeOk returns a tuple with the ProbeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProbeType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetProbeType(v KeyfactorOrchestratorsCommonEnumsSslProbeType)` + +SetProbeType sets ProbeType field to given value. + +### HasProbeType + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasProbeType() bool` + +HasProbeType returns a boolean if a field has been set. + +### GetReverseDNS + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetReverseDNS() string` + +GetReverseDNS returns the ReverseDNS field if non-nil, zero value otherwise. + +### GetReverseDNSOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetReverseDNSOk() (*string, bool)` + +GetReverseDNSOk returns a tuple with the ReverseDNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReverseDNS + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetReverseDNS(v string)` + +SetReverseDNS sets ReverseDNS field to given value. + +### HasReverseDNS + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasReverseDNS() bool` + +HasReverseDNS returns a boolean if a field has been set. + +### SetReverseDNSNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetReverseDNSNil(b bool)` + + SetReverseDNSNil sets the value for ReverseDNS to be an explicit nil + +### UnsetReverseDNS +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) UnsetReverseDNS()` + +UnsetReverseDNS ensures that no value is present for ReverseDNS, not even an explicit nil +### GetHistoryCertificates + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryCertificates() []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel` + +GetHistoryCertificates returns the HistoryCertificates field if non-nil, zero value otherwise. + +### GetHistoryCertificatesOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryCertificatesOk() (*[]CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel, bool)` + +GetHistoryCertificatesOk returns a tuple with the HistoryCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHistoryCertificates + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetHistoryCertificates(v []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel)` + +SetHistoryCertificates sets HistoryCertificates field to given value. + +### HasHistoryCertificates + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasHistoryCertificates() bool` + +HasHistoryCertificates returns a boolean if a field has been set. + +### SetHistoryCertificatesNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetHistoryCertificatesNil(b bool)` + + SetHistoryCertificatesNil sets the value for HistoryCertificates to be an explicit nil + +### UnsetHistoryCertificates +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) UnsetHistoryCertificates()` + +UnsetHistoryCertificates ensures that no value is present for HistoryCertificates, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel.md new file mode 100644 index 0000000..8d84ee8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel.md @@ -0,0 +1,360 @@ +# CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**SigningAlgorithm** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**SubjectAltNameElements** | Pointer to [**[]CSSCMSDataModelModelsSubjectAlternativeName**](CSSCMSDataModelModelsSubjectAlternativeName.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel + +`func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel() *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel` + +NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModelWithDefaults + +`func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModelWithDefaults() *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel` + +NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModelWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIssuedDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetSerialNumber + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetNotBefore + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetSigningAlgorithm + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### SetSigningAlgorithmNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithmNil(b bool)` + + SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil + +### UnsetSigningAlgorithm +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetSigningAlgorithm()` + +UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetIssuedCN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetSubjectAltNameElements + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElements() []CSSCMSDataModelModelsSubjectAlternativeName` + +GetSubjectAltNameElements returns the SubjectAltNameElements field if non-nil, zero value otherwise. + +### GetSubjectAltNameElementsOk + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElementsOk() (*[]CSSCMSDataModelModelsSubjectAlternativeName, bool)` + +GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAltNameElements + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSubjectAltNameElements(v []CSSCMSDataModelModelsSubjectAlternativeName)` + +SetSubjectAltNameElements sets SubjectAltNameElements field to given value. + +### HasSubjectAltNameElements + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSubjectAltNameElements() bool` + +HasSubjectAltNameElements returns a boolean if a field has been set. + +### SetSubjectAltNameElementsNil + +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSubjectAltNameElementsNil(b bool)` + + SetSubjectAltNameElementsNil sets the value for SubjectAltNameElements to be an explicit nil + +### UnsetSubjectAltNameElements +`func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetSubjectAltNameElements()` + +UnsetSubjectAltNameElements ensures that no value is present for SubjectAltNameElements, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointStatusRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointStatusRequest.md new file mode 100644 index 0000000..354b904 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLEndpointStatusRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSLEndpointStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Status** | **bool** | | + +## Methods + +### NewCSSCMSDataModelModelsSSLEndpointStatusRequest + +`func NewCSSCMSDataModelModelsSSLEndpointStatusRequest(id string, status bool, ) *CSSCMSDataModelModelsSSLEndpointStatusRequest` + +NewCSSCMSDataModelModelsSSLEndpointStatusRequest instantiates a new CSSCMSDataModelModelsSSLEndpointStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLEndpointStatusRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSLEndpointStatusRequestWithDefaults() *CSSCMSDataModelModelsSSLEndpointStatusRequest` + +NewCSSCMSDataModelModelsSSLEndpointStatusRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetStatus + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLImmediateSslScanRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLImmediateSslScanRequest.md new file mode 100644 index 0000000..8c4a9c9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLImmediateSslScanRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSLImmediateSslScanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Discovery** | **bool** | | +**Monitoring** | **bool** | | + +## Methods + +### NewCSSCMSDataModelModelsSSLImmediateSslScanRequest + +`func NewCSSCMSDataModelModelsSSLImmediateSslScanRequest(discovery bool, monitoring bool, ) *CSSCMSDataModelModelsSSLImmediateSslScanRequest` + +NewCSSCMSDataModelModelsSSLImmediateSslScanRequest instantiates a new CSSCMSDataModelModelsSSLImmediateSslScanRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLImmediateSslScanRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSLImmediateSslScanRequestWithDefaults() *CSSCMSDataModelModelsSSLImmediateSslScanRequest` + +NewCSSCMSDataModelModelsSSLImmediateSslScanRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLImmediateSslScanRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDiscovery + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetDiscovery() bool` + +GetDiscovery returns the Discovery field if non-nil, zero value otherwise. + +### GetDiscoveryOk + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetDiscoveryOk() (*bool, bool)` + +GetDiscoveryOk returns a tuple with the Discovery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovery + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) SetDiscovery(v bool)` + +SetDiscovery sets Discovery field to given value. + + +### GetMonitoring + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetMonitoring() bool` + +GetMonitoring returns the Monitoring field if non-nil, zero value otherwise. + +### GetMonitoringOk + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetMonitoringOk() (*bool, bool)` + +GetMonitoringOk returns a tuple with the Monitoring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitoring + +`func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) SetMonitoring(v bool)` + +SetMonitoring sets Monitoring field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkDefinition.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkDefinition.md new file mode 100644 index 0000000..2044b84 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkDefinition.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsSSLNetworkDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemType** | Pointer to [**KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType**](KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType.md) | | [optional] +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLNetworkDefinition + +`func NewCSSCMSDataModelModelsSSLNetworkDefinition() *CSSCMSDataModelModelsSSLNetworkDefinition` + +NewCSSCMSDataModelModelsSSLNetworkDefinition instantiates a new CSSCMSDataModelModelsSSLNetworkDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLNetworkDefinitionWithDefaults + +`func NewCSSCMSDataModelModelsSSLNetworkDefinitionWithDefaults() *CSSCMSDataModelModelsSSLNetworkDefinition` + +NewCSSCMSDataModelModelsSSLNetworkDefinitionWithDefaults instantiates a new CSSCMSDataModelModelsSSLNetworkDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItemType + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetItemType() KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetItemTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetItemType(v KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType)` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### GetValue + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsSSLNetworkDefinition) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkRangesRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkRangesRequest.md new file mode 100644 index 0000000..99e2ff4 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLNetworkRangesRequest.md @@ -0,0 +1,72 @@ +# CSSCMSDataModelModelsSSLNetworkRangesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | **string** | | +**Ranges** | **[]string** | | + +## Methods + +### NewCSSCMSDataModelModelsSSLNetworkRangesRequest + +`func NewCSSCMSDataModelModelsSSLNetworkRangesRequest(networkId string, ranges []string, ) *CSSCMSDataModelModelsSSLNetworkRangesRequest` + +NewCSSCMSDataModelModelsSSLNetworkRangesRequest instantiates a new CSSCMSDataModelModelsSSLNetworkRangesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLNetworkRangesRequestWithDefaults + +`func NewCSSCMSDataModelModelsSSLNetworkRangesRequestWithDefaults() *CSSCMSDataModelModelsSSLNetworkRangesRequest` + +NewCSSCMSDataModelModelsSSLNetworkRangesRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLNetworkRangesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + + +### GetRanges + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetRanges() []string` + +GetRanges returns the Ranges field if non-nil, zero value otherwise. + +### GetRangesOk + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetRangesOk() (*[]string, bool)` + +GetRangesOk returns a tuple with the Ranges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRanges + +`func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) SetRanges(v []string)` + +SetRanges sets Ranges field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPart.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPart.md new file mode 100644 index 0000000..5bdaf77 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPart.md @@ -0,0 +1,602 @@ +# CSSCMSDataModelModelsSSLScanJobPart + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScanJobPartId** | Pointer to **string** | | [optional] +**LogicalScanJobId** | Pointer to **string** | | [optional] +**AgentJobId** | Pointer to **string** | | [optional] +**EstimatedEndpointCount** | Pointer to **NullableInt32** | | [optional] +**Status** | Pointer to [**CSSCMSCoreEnumsSslScanJobStatus**](CSSCMSCoreEnumsSslScanJobStatus.md) | | [optional] +**StatTotalEndpointCount** | Pointer to **NullableInt32** | | [optional] +**StatTimedOutConnectingCount** | Pointer to **NullableInt32** | | [optional] +**StatConnectionRefusedCount** | Pointer to **NullableInt32** | | [optional] +**StatTimedOutDownloadingCount** | Pointer to **NullableInt32** | | [optional] +**StatExceptionDownloadingCount** | Pointer to **NullableInt32** | | [optional] +**StatNotSslCount** | Pointer to **NullableInt32** | | [optional] +**StatBadSslHandshakeCount** | Pointer to **NullableInt32** | | [optional] +**StatCertificateFoundCount** | Pointer to **NullableInt32** | | [optional] +**StatNoCertificateCount** | Pointer to **NullableInt32** | | [optional] +**ScanJobPartDefinitions** | Pointer to [**[]CSSCMSDataModelModelsSSLScanJobPartDefinition**](CSSCMSDataModelModelsSSLScanJobPartDefinition.md) | | [optional] +**StartTime** | Pointer to **NullableTime** | | [optional] +**EndTime** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLScanJobPart + +`func NewCSSCMSDataModelModelsSSLScanJobPart() *CSSCMSDataModelModelsSSLScanJobPart` + +NewCSSCMSDataModelModelsSSLScanJobPart instantiates a new CSSCMSDataModelModelsSSLScanJobPart object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLScanJobPartWithDefaults + +`func NewCSSCMSDataModelModelsSSLScanJobPartWithDefaults() *CSSCMSDataModelModelsSSLScanJobPart` + +NewCSSCMSDataModelModelsSSLScanJobPartWithDefaults instantiates a new CSSCMSDataModelModelsSSLScanJobPart object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartId() string` + +GetScanJobPartId returns the ScanJobPartId field if non-nil, zero value otherwise. + +### GetScanJobPartIdOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartIdOk() (*string, bool)` + +GetScanJobPartIdOk returns a tuple with the ScanJobPartId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetScanJobPartId(v string)` + +SetScanJobPartId sets ScanJobPartId field to given value. + +### HasScanJobPartId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasScanJobPartId() bool` + +HasScanJobPartId returns a boolean if a field has been set. + +### GetLogicalScanJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetLogicalScanJobId() string` + +GetLogicalScanJobId returns the LogicalScanJobId field if non-nil, zero value otherwise. + +### GetLogicalScanJobIdOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetLogicalScanJobIdOk() (*string, bool)` + +GetLogicalScanJobIdOk returns a tuple with the LogicalScanJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalScanJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetLogicalScanJobId(v string)` + +SetLogicalScanJobId sets LogicalScanJobId field to given value. + +### HasLogicalScanJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasLogicalScanJobId() bool` + +HasLogicalScanJobId returns a boolean if a field has been set. + +### GetAgentJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetAgentJobId() string` + +GetAgentJobId returns the AgentJobId field if non-nil, zero value otherwise. + +### GetAgentJobIdOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetAgentJobIdOk() (*string, bool)` + +GetAgentJobIdOk returns a tuple with the AgentJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetAgentJobId(v string)` + +SetAgentJobId sets AgentJobId field to given value. + +### HasAgentJobId + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasAgentJobId() bool` + +HasAgentJobId returns a boolean if a field has been set. + +### GetEstimatedEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEstimatedEndpointCount() int32` + +GetEstimatedEndpointCount returns the EstimatedEndpointCount field if non-nil, zero value otherwise. + +### GetEstimatedEndpointCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEstimatedEndpointCountOk() (*int32, bool)` + +GetEstimatedEndpointCountOk returns a tuple with the EstimatedEndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEstimatedEndpointCount(v int32)` + +SetEstimatedEndpointCount sets EstimatedEndpointCount field to given value. + +### HasEstimatedEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasEstimatedEndpointCount() bool` + +HasEstimatedEndpointCount returns a boolean if a field has been set. + +### SetEstimatedEndpointCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEstimatedEndpointCountNil(b bool)` + + SetEstimatedEndpointCountNil sets the value for EstimatedEndpointCount to be an explicit nil + +### UnsetEstimatedEndpointCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetEstimatedEndpointCount()` + +UnsetEstimatedEndpointCount ensures that no value is present for EstimatedEndpointCount, not even an explicit nil +### GetStatus + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatus() CSSCMSCoreEnumsSslScanJobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatusOk() (*CSSCMSCoreEnumsSslScanJobStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatus(v CSSCMSCoreEnumsSslScanJobStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatTotalEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTotalEndpointCount() int32` + +GetStatTotalEndpointCount returns the StatTotalEndpointCount field if non-nil, zero value otherwise. + +### GetStatTotalEndpointCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTotalEndpointCountOk() (*int32, bool)` + +GetStatTotalEndpointCountOk returns a tuple with the StatTotalEndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTotalEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTotalEndpointCount(v int32)` + +SetStatTotalEndpointCount sets StatTotalEndpointCount field to given value. + +### HasStatTotalEndpointCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTotalEndpointCount() bool` + +HasStatTotalEndpointCount returns a boolean if a field has been set. + +### SetStatTotalEndpointCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTotalEndpointCountNil(b bool)` + + SetStatTotalEndpointCountNil sets the value for StatTotalEndpointCount to be an explicit nil + +### UnsetStatTotalEndpointCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTotalEndpointCount()` + +UnsetStatTotalEndpointCount ensures that no value is present for StatTotalEndpointCount, not even an explicit nil +### GetStatTimedOutConnectingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutConnectingCount() int32` + +GetStatTimedOutConnectingCount returns the StatTimedOutConnectingCount field if non-nil, zero value otherwise. + +### GetStatTimedOutConnectingCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutConnectingCountOk() (*int32, bool)` + +GetStatTimedOutConnectingCountOk returns a tuple with the StatTimedOutConnectingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTimedOutConnectingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutConnectingCount(v int32)` + +SetStatTimedOutConnectingCount sets StatTimedOutConnectingCount field to given value. + +### HasStatTimedOutConnectingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTimedOutConnectingCount() bool` + +HasStatTimedOutConnectingCount returns a boolean if a field has been set. + +### SetStatTimedOutConnectingCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutConnectingCountNil(b bool)` + + SetStatTimedOutConnectingCountNil sets the value for StatTimedOutConnectingCount to be an explicit nil + +### UnsetStatTimedOutConnectingCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTimedOutConnectingCount()` + +UnsetStatTimedOutConnectingCount ensures that no value is present for StatTimedOutConnectingCount, not even an explicit nil +### GetStatConnectionRefusedCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatConnectionRefusedCount() int32` + +GetStatConnectionRefusedCount returns the StatConnectionRefusedCount field if non-nil, zero value otherwise. + +### GetStatConnectionRefusedCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatConnectionRefusedCountOk() (*int32, bool)` + +GetStatConnectionRefusedCountOk returns a tuple with the StatConnectionRefusedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatConnectionRefusedCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatConnectionRefusedCount(v int32)` + +SetStatConnectionRefusedCount sets StatConnectionRefusedCount field to given value. + +### HasStatConnectionRefusedCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatConnectionRefusedCount() bool` + +HasStatConnectionRefusedCount returns a boolean if a field has been set. + +### SetStatConnectionRefusedCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatConnectionRefusedCountNil(b bool)` + + SetStatConnectionRefusedCountNil sets the value for StatConnectionRefusedCount to be an explicit nil + +### UnsetStatConnectionRefusedCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatConnectionRefusedCount()` + +UnsetStatConnectionRefusedCount ensures that no value is present for StatConnectionRefusedCount, not even an explicit nil +### GetStatTimedOutDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutDownloadingCount() int32` + +GetStatTimedOutDownloadingCount returns the StatTimedOutDownloadingCount field if non-nil, zero value otherwise. + +### GetStatTimedOutDownloadingCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutDownloadingCountOk() (*int32, bool)` + +GetStatTimedOutDownloadingCountOk returns a tuple with the StatTimedOutDownloadingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTimedOutDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutDownloadingCount(v int32)` + +SetStatTimedOutDownloadingCount sets StatTimedOutDownloadingCount field to given value. + +### HasStatTimedOutDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTimedOutDownloadingCount() bool` + +HasStatTimedOutDownloadingCount returns a boolean if a field has been set. + +### SetStatTimedOutDownloadingCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutDownloadingCountNil(b bool)` + + SetStatTimedOutDownloadingCountNil sets the value for StatTimedOutDownloadingCount to be an explicit nil + +### UnsetStatTimedOutDownloadingCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTimedOutDownloadingCount()` + +UnsetStatTimedOutDownloadingCount ensures that no value is present for StatTimedOutDownloadingCount, not even an explicit nil +### GetStatExceptionDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatExceptionDownloadingCount() int32` + +GetStatExceptionDownloadingCount returns the StatExceptionDownloadingCount field if non-nil, zero value otherwise. + +### GetStatExceptionDownloadingCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatExceptionDownloadingCountOk() (*int32, bool)` + +GetStatExceptionDownloadingCountOk returns a tuple with the StatExceptionDownloadingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatExceptionDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatExceptionDownloadingCount(v int32)` + +SetStatExceptionDownloadingCount sets StatExceptionDownloadingCount field to given value. + +### HasStatExceptionDownloadingCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatExceptionDownloadingCount() bool` + +HasStatExceptionDownloadingCount returns a boolean if a field has been set. + +### SetStatExceptionDownloadingCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatExceptionDownloadingCountNil(b bool)` + + SetStatExceptionDownloadingCountNil sets the value for StatExceptionDownloadingCount to be an explicit nil + +### UnsetStatExceptionDownloadingCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatExceptionDownloadingCount()` + +UnsetStatExceptionDownloadingCount ensures that no value is present for StatExceptionDownloadingCount, not even an explicit nil +### GetStatNotSslCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNotSslCount() int32` + +GetStatNotSslCount returns the StatNotSslCount field if non-nil, zero value otherwise. + +### GetStatNotSslCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNotSslCountOk() (*int32, bool)` + +GetStatNotSslCountOk returns a tuple with the StatNotSslCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatNotSslCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNotSslCount(v int32)` + +SetStatNotSslCount sets StatNotSslCount field to given value. + +### HasStatNotSslCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatNotSslCount() bool` + +HasStatNotSslCount returns a boolean if a field has been set. + +### SetStatNotSslCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNotSslCountNil(b bool)` + + SetStatNotSslCountNil sets the value for StatNotSslCount to be an explicit nil + +### UnsetStatNotSslCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatNotSslCount()` + +UnsetStatNotSslCount ensures that no value is present for StatNotSslCount, not even an explicit nil +### GetStatBadSslHandshakeCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatBadSslHandshakeCount() int32` + +GetStatBadSslHandshakeCount returns the StatBadSslHandshakeCount field if non-nil, zero value otherwise. + +### GetStatBadSslHandshakeCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatBadSslHandshakeCountOk() (*int32, bool)` + +GetStatBadSslHandshakeCountOk returns a tuple with the StatBadSslHandshakeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatBadSslHandshakeCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatBadSslHandshakeCount(v int32)` + +SetStatBadSslHandshakeCount sets StatBadSslHandshakeCount field to given value. + +### HasStatBadSslHandshakeCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatBadSslHandshakeCount() bool` + +HasStatBadSslHandshakeCount returns a boolean if a field has been set. + +### SetStatBadSslHandshakeCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatBadSslHandshakeCountNil(b bool)` + + SetStatBadSslHandshakeCountNil sets the value for StatBadSslHandshakeCount to be an explicit nil + +### UnsetStatBadSslHandshakeCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatBadSslHandshakeCount()` + +UnsetStatBadSslHandshakeCount ensures that no value is present for StatBadSslHandshakeCount, not even an explicit nil +### GetStatCertificateFoundCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatCertificateFoundCount() int32` + +GetStatCertificateFoundCount returns the StatCertificateFoundCount field if non-nil, zero value otherwise. + +### GetStatCertificateFoundCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatCertificateFoundCountOk() (*int32, bool)` + +GetStatCertificateFoundCountOk returns a tuple with the StatCertificateFoundCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatCertificateFoundCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatCertificateFoundCount(v int32)` + +SetStatCertificateFoundCount sets StatCertificateFoundCount field to given value. + +### HasStatCertificateFoundCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatCertificateFoundCount() bool` + +HasStatCertificateFoundCount returns a boolean if a field has been set. + +### SetStatCertificateFoundCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatCertificateFoundCountNil(b bool)` + + SetStatCertificateFoundCountNil sets the value for StatCertificateFoundCount to be an explicit nil + +### UnsetStatCertificateFoundCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatCertificateFoundCount()` + +UnsetStatCertificateFoundCount ensures that no value is present for StatCertificateFoundCount, not even an explicit nil +### GetStatNoCertificateCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNoCertificateCount() int32` + +GetStatNoCertificateCount returns the StatNoCertificateCount field if non-nil, zero value otherwise. + +### GetStatNoCertificateCountOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNoCertificateCountOk() (*int32, bool)` + +GetStatNoCertificateCountOk returns a tuple with the StatNoCertificateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatNoCertificateCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNoCertificateCount(v int32)` + +SetStatNoCertificateCount sets StatNoCertificateCount field to given value. + +### HasStatNoCertificateCount + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatNoCertificateCount() bool` + +HasStatNoCertificateCount returns a boolean if a field has been set. + +### SetStatNoCertificateCountNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNoCertificateCountNil(b bool)` + + SetStatNoCertificateCountNil sets the value for StatNoCertificateCount to be an explicit nil + +### UnsetStatNoCertificateCount +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatNoCertificateCount()` + +UnsetStatNoCertificateCount ensures that no value is present for StatNoCertificateCount, not even an explicit nil +### GetScanJobPartDefinitions + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartDefinitions() []CSSCMSDataModelModelsSSLScanJobPartDefinition` + +GetScanJobPartDefinitions returns the ScanJobPartDefinitions field if non-nil, zero value otherwise. + +### GetScanJobPartDefinitionsOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartDefinitionsOk() (*[]CSSCMSDataModelModelsSSLScanJobPartDefinition, bool)` + +GetScanJobPartDefinitionsOk returns a tuple with the ScanJobPartDefinitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartDefinitions + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetScanJobPartDefinitions(v []CSSCMSDataModelModelsSSLScanJobPartDefinition)` + +SetScanJobPartDefinitions sets ScanJobPartDefinitions field to given value. + +### HasScanJobPartDefinitions + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasScanJobPartDefinitions() bool` + +HasScanJobPartDefinitions returns a boolean if a field has been set. + +### SetScanJobPartDefinitionsNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetScanJobPartDefinitionsNil(b bool)` + + SetScanJobPartDefinitionsNil sets the value for ScanJobPartDefinitions to be an explicit nil + +### UnsetScanJobPartDefinitions +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetScanJobPartDefinitions()` + +UnsetScanJobPartDefinitions ensures that no value is present for ScanJobPartDefinitions, not even an explicit nil +### GetStartTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### SetStartTimeNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStartTimeNil(b bool)` + + SetStartTimeNil sets the value for StartTime to be an explicit nil + +### UnsetStartTime +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStartTime()` + +UnsetStartTime ensures that no value is present for StartTime, not even an explicit nil +### GetEndTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### SetEndTimeNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEndTimeNil(b bool)` + + SetEndTimeNil sets the value for EndTime to be an explicit nil + +### UnsetEndTime +`func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetEndTime()` + +UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPartDefinition.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPartDefinition.md new file mode 100644 index 0000000..d022177 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLScanJobPartDefinition.md @@ -0,0 +1,92 @@ +# CSSCMSDataModelModelsSSLScanJobPartDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemType** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLScanJobPartDefinition + +`func NewCSSCMSDataModelModelsSSLScanJobPartDefinition() *CSSCMSDataModelModelsSSLScanJobPartDefinition` + +NewCSSCMSDataModelModelsSSLScanJobPartDefinition instantiates a new CSSCMSDataModelModelsSSLScanJobPartDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLScanJobPartDefinitionWithDefaults + +`func NewCSSCMSDataModelModelsSSLScanJobPartDefinitionWithDefaults() *CSSCMSDataModelModelsSSLScanJobPartDefinition` + +NewCSSCMSDataModelModelsSSLScanJobPartDefinitionWithDefaults instantiates a new CSSCMSDataModelModelsSSLScanJobPartDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItemType + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetItemType() int32` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetItemTypeOk() (*int32, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetItemType(v int32)` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### GetValue + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLSslScanResult.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLSslScanResult.md new file mode 100644 index 0000000..99d1a5d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSSLSslScanResult.md @@ -0,0 +1,376 @@ +# CSSCMSDataModelModelsSSLSslScanResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointId** | Pointer to **string** | | [optional] +**ReverseDNS** | Pointer to **NullableString** | | [optional] +**SNIName** | Pointer to **NullableString** | | [optional] +**IpAddress** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**CertificateFound** | Pointer to **bool** | | [optional] +**AgentPoolName** | Pointer to **NullableString** | | [optional] +**NetworkName** | Pointer to **NullableString** | | [optional] +**MonitorStatus** | Pointer to **bool** | | [optional] +**CertificateCN** | Pointer to **NullableString** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSLSslScanResult + +`func NewCSSCMSDataModelModelsSSLSslScanResult() *CSSCMSDataModelModelsSSLSslScanResult` + +NewCSSCMSDataModelModelsSSLSslScanResult instantiates a new CSSCMSDataModelModelsSSLSslScanResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSLSslScanResultWithDefaults + +`func NewCSSCMSDataModelModelsSSLSslScanResultWithDefaults() *CSSCMSDataModelModelsSSLSslScanResult` + +NewCSSCMSDataModelModelsSSLSslScanResultWithDefaults instantiates a new CSSCMSDataModelModelsSSLSslScanResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpointId + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetReverseDNS + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReverseDNS() string` + +GetReverseDNS returns the ReverseDNS field if non-nil, zero value otherwise. + +### GetReverseDNSOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReverseDNSOk() (*string, bool)` + +GetReverseDNSOk returns a tuple with the ReverseDNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReverseDNS + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReverseDNS(v string)` + +SetReverseDNS sets ReverseDNS field to given value. + +### HasReverseDNS + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasReverseDNS() bool` + +HasReverseDNS returns a boolean if a field has been set. + +### SetReverseDNSNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReverseDNSNil(b bool)` + + SetReverseDNSNil sets the value for ReverseDNS to be an explicit nil + +### UnsetReverseDNS +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetReverseDNS()` + +UnsetReverseDNS ensures that no value is present for ReverseDNS, not even an explicit nil +### GetSNIName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetSNIName() string` + +GetSNIName returns the SNIName field if non-nil, zero value otherwise. + +### GetSNINameOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetSNINameOk() (*string, bool)` + +GetSNINameOk returns a tuple with the SNIName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSNIName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetSNIName(v string)` + +SetSNIName sets SNIName field to given value. + +### HasSNIName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasSNIName() bool` + +HasSNIName returns a boolean if a field has been set. + +### SetSNINameNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetSNINameNil(b bool)` + + SetSNINameNil sets the value for SNIName to be an explicit nil + +### UnsetSNIName +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetSNIName()` + +UnsetSNIName ensures that no value is present for SNIName, not even an explicit nil +### GetIpAddress + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetIpAddressOk() (*string, bool)` + +GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddress + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +### SetIpAddressNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetIpAddressNil(b bool)` + + SetIpAddressNil sets the value for IpAddress to be an explicit nil + +### UnsetIpAddress +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetIpAddress()` + +UnsetIpAddress ensures that no value is present for IpAddress, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetCertificateFound + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateFound() bool` + +GetCertificateFound returns the CertificateFound field if non-nil, zero value otherwise. + +### GetCertificateFoundOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateFoundOk() (*bool, bool)` + +GetCertificateFoundOk returns a tuple with the CertificateFound field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateFound + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateFound(v bool)` + +SetCertificateFound sets CertificateFound field to given value. + +### HasCertificateFound + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasCertificateFound() bool` + +HasCertificateFound returns a boolean if a field has been set. + +### GetAgentPoolName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### SetAgentPoolNameNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetAgentPoolNameNil(b bool)` + + SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil + +### UnsetAgentPoolName +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetAgentPoolName()` + +UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +### GetNetworkName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + +### SetNetworkNameNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetNetworkNameNil(b bool)` + + SetNetworkNameNil sets the value for NetworkName to be an explicit nil + +### UnsetNetworkName +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetNetworkName()` + +UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil +### GetMonitorStatus + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetMonitorStatus() bool` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetMonitorStatusOk() (*bool, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetMonitorStatus(v bool)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetCertificateCN + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateCN() string` + +GetCertificateCN returns the CertificateCN field if non-nil, zero value otherwise. + +### GetCertificateCNOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateCNOk() (*string, bool)` + +GetCertificateCNOk returns a tuple with the CertificateCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCN + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateCN(v string)` + +SetCertificateCN sets CertificateCN field to given value. + +### HasCertificateCN + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasCertificateCN() bool` + +HasCertificateCN returns a boolean if a field has been set. + +### SetCertificateCNNil + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateCNNil(b bool)` + + SetCertificateCNNil sets the value for CertificateCN to be an explicit nil + +### UnsetCertificateCN +`func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetCertificateCN()` + +UnsetCertificateCN ensures that no value is present for CertificateCN, not even an explicit nil +### GetReviewed + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *CSSCMSDataModelModelsSSLSslScanResult) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityCertificatePermissions.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityCertificatePermissions.md new file mode 100644 index 0000000..8479421 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityCertificatePermissions.md @@ -0,0 +1,66 @@ +# CSSCMSDataModelModelsSecurityCertificatePermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | Pointer to [**[]CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase**](CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSecurityCertificatePermissions + +`func NewCSSCMSDataModelModelsSecurityCertificatePermissions() *CSSCMSDataModelModelsSecurityCertificatePermissions` + +NewCSSCMSDataModelModelsSecurityCertificatePermissions instantiates a new CSSCMSDataModelModelsSecurityCertificatePermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSecurityCertificatePermissionsWithDefaults + +`func NewCSSCMSDataModelModelsSecurityCertificatePermissionsWithDefaults() *CSSCMSDataModelModelsSecurityCertificatePermissions` + +NewCSSCMSDataModelModelsSecurityCertificatePermissionsWithDefaults instantiates a new CSSCMSDataModelModelsSecurityCertificatePermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoles + +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) GetRoles() []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) GetRolesOk() (*[]CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) SetRoles(v []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### SetRolesNil + +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) SetRolesNil(b bool)` + + SetRolesNil sets the value for Roles to be an explicit nil + +### UnsetRoles +`func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) UnsetRoles()` + +UnsetRoles ensures that no value is present for Roles, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md new file mode 100644 index 0000000..4b0f140 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **NullableString** | | [optional] +**SID** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier + +`func NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier() *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier` + +NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier instantiates a new CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults + +`func NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults() *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier` + +NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults instantiates a new CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### SetAccountNameNil + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountNameNil(b bool)` + + SetAccountNameNil sets the value for AccountName to be an explicit nil + +### UnsetAccountName +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) UnsetAccountName()` + +UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +### GetSID + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) HasSID() bool` + +HasSID returns a boolean if a field has been set. + +### SetSIDNil + +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSIDNil(b bool)` + + SetSIDNil sets the value for SID to be an explicit nil + +### UnsetSID +`func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) UnsetSID()` + +UnsetSID ensures that no value is present for SID, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityPermissionSet.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityPermissionSet.md new file mode 100644 index 0000000..16da262 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecurityPermissionSet.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsSecurityPermissionSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSecurityPermissionSet + +`func NewCSSCMSDataModelModelsSecurityPermissionSet() *CSSCMSDataModelModelsSecurityPermissionSet` + +NewCSSCMSDataModelModelsSecurityPermissionSet instantiates a new CSSCMSDataModelModelsSecurityPermissionSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSecurityPermissionSetWithDefaults + +`func NewCSSCMSDataModelModelsSecurityPermissionSetWithDefaults() *CSSCMSDataModelModelsSecurityPermissionSet` + +NewCSSCMSDataModelModelsSecurityPermissionSetWithDefaults instantiates a new CSSCMSDataModelModelsSecurityPermissionSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *CSSCMSDataModelModelsSecurityPermissionSet) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase.md new file mode 100644 index 0000000..47223e1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase + +`func NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase() *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase` + +NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase instantiates a new CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults + +`func NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults() *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase` + +NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults instantiates a new CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSubjectAlternativeName.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSubjectAlternativeName.md new file mode 100644 index 0000000..7d38b99 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsSubjectAlternativeName.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsSubjectAlternativeName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to [**KeyfactorPKIPKIConstantsX509SubjectAltNameElementType**](KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md) | | [optional] +**ValueHash** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSubjectAlternativeName + +`func NewCSSCMSDataModelModelsSubjectAlternativeName() *CSSCMSDataModelModelsSubjectAlternativeName` + +NewCSSCMSDataModelModelsSubjectAlternativeName instantiates a new CSSCMSDataModelModelsSubjectAlternativeName object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSubjectAlternativeNameWithDefaults + +`func NewCSSCMSDataModelModelsSubjectAlternativeNameWithDefaults() *CSSCMSDataModelModelsSubjectAlternativeName` + +NewCSSCMSDataModelModelsSubjectAlternativeNameWithDefaults instantiates a new CSSCMSDataModelModelsSubjectAlternativeName object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetType + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetType() KeyfactorPKIPKIConstantsX509SubjectAltNameElementType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetTypeOk() (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetType(v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValueHash + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueHash() string` + +GetValueHash returns the ValueHash field if non-nil, zero value otherwise. + +### GetValueHashOk + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueHashOk() (*string, bool)` + +GetValueHashOk returns a tuple with the ValueHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueHash + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueHash(v string)` + +SetValueHash sets ValueHash field to given value. + +### HasValueHash + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasValueHash() bool` + +HasValueHash returns a boolean if a field has been set. + +### SetValueHashNil + +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueHashNil(b bool)` + + SetValueHashNil sets the value for ValueHash to be an explicit nil + +### UnsetValueHash +`func (o *CSSCMSDataModelModelsSubjectAlternativeName) UnsetValueHash()` + +UnsetValueHash ensures that no value is present for ValueHash, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md new file mode 100644 index 0000000..c94a570 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BitLengths** | Pointer to **[]int32** | | [optional] +**Curves** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + +`func NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData() *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmDataWithDefaults + +`func NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmDataWithDefaults() *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmDataWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBitLengths + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetBitLengths() []int32` + +GetBitLengths returns the BitLengths field if non-nil, zero value otherwise. + +### GetBitLengthsOk + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetBitLengthsOk() (*[]int32, bool)` + +GetBitLengthsOk returns a tuple with the BitLengths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBitLengths + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetBitLengths(v []int32)` + +SetBitLengths sets BitLengths field to given value. + +### HasBitLengths + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) HasBitLengths() bool` + +HasBitLengths returns a boolean if a field has been set. + +### SetBitLengthsNil + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetBitLengthsNil(b bool)` + + SetBitLengthsNil sets the value for BitLengths to be an explicit nil + +### UnsetBitLengths +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) UnsetBitLengths()` + +UnsetBitLengths ensures that no value is present for BitLengths, not even an explicit nil +### GetCurves + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetCurves() []string` + +GetCurves returns the Curves field if non-nil, zero value otherwise. + +### GetCurvesOk + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetCurvesOk() (*[]string, bool)` + +GetCurvesOk returns a tuple with the Curves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurves + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetCurves(v []string)` + +SetCurves sets Curves field to given value. + +### HasCurves + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) HasCurves() bool` + +HasCurves returns a boolean if a field has been set. + +### SetCurvesNil + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetCurvesNil(b bool)` + + SetCurvesNil sets the value for Curves to be an explicit nil + +### UnsetCurves +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) UnsetCurves()` + +UnsetCurves ensures that no value is present for Curves, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md new file mode 100644 index 0000000..a739a11 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md @@ -0,0 +1,134 @@ +# CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ECDSA** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData**](CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md) | | [optional] +**RSA** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData**](CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md) | | [optional] +**Ed448** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData**](CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md) | | [optional] +**Ed25519** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData**](CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + +`func NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo() *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfoWithDefaults + +`func NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfoWithDefaults() *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfoWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetECDSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetECDSA() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +GetECDSA returns the ECDSA field if non-nil, zero value otherwise. + +### GetECDSAOk + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetECDSAOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool)` + +GetECDSAOk returns a tuple with the ECDSA field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECDSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetECDSA(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData)` + +SetECDSA sets ECDSA field to given value. + +### HasECDSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasECDSA() bool` + +HasECDSA returns a boolean if a field has been set. + +### GetRSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetRSA() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +GetRSA returns the RSA field if non-nil, zero value otherwise. + +### GetRSAOk + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetRSAOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool)` + +GetRSAOk returns a tuple with the RSA field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetRSA(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData)` + +SetRSA sets RSA field to given value. + +### HasRSA + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasRSA() bool` + +HasRSA returns a boolean if a field has been set. + +### GetEd448 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd448() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +GetEd448 returns the Ed448 field if non-nil, zero value otherwise. + +### GetEd448Ok + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd448Ok() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool)` + +GetEd448Ok returns a tuple with the Ed448 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEd448 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetEd448(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData)` + +SetEd448 sets Ed448 field to given value. + +### HasEd448 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasEd448() bool` + +HasEd448 returns a boolean if a field has been set. + +### GetEd25519 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd25519() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData` + +GetEd25519 returns the Ed25519 field if non-nil, zero value otherwise. + +### GetEd25519Ok + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd25519Ok() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool)` + +GetEd25519Ok returns a tuple with the Ed25519 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEd25519 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetEd25519(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData)` + +SetEd25519 sets Ed25519 field to given value. + +### HasEd25519 + +`func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasEd25519() bool` + +HasEd25519 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateEnrollmentField.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateEnrollmentField.md new file mode 100644 index 0000000..d250bc2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateEnrollmentField.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsTemplatesTemplateEnrollmentField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to [**CSSCMSCoreEnumsTemplateEnrollmentFieldType**](CSSCMSCoreEnumsTemplateEnrollmentFieldType.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentField + +`func NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentField() *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField` + +NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentField instantiates a new CSSCMSDataModelModelsTemplatesTemplateEnrollmentField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentFieldWithDefaults + +`func NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentFieldWithDefaults() *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField` + +NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentFieldWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesTemplateEnrollmentField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetOptions + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDataType + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetDataType() CSSCMSCoreEnumsTemplateEnrollmentFieldType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetDataTypeOk() (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetDataType(v CSSCMSCoreEnumsTemplateEnrollmentFieldType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateMetadataField.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateMetadataField.md new file mode 100644 index 0000000..859e311 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsTemplatesTemplateMetadataField.md @@ -0,0 +1,268 @@ +# CSSCMSDataModelModelsTemplatesTemplateMetadataField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**TemplateId** | Pointer to **int32** | | [optional] +**MetadataId** | Pointer to **int32** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsTemplatesTemplateMetadataField + +`func NewCSSCMSDataModelModelsTemplatesTemplateMetadataField() *CSSCMSDataModelModelsTemplatesTemplateMetadataField` + +NewCSSCMSDataModelModelsTemplatesTemplateMetadataField instantiates a new CSSCMSDataModelModelsTemplatesTemplateMetadataField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsTemplatesTemplateMetadataFieldWithDefaults + +`func NewCSSCMSDataModelModelsTemplatesTemplateMetadataFieldWithDefaults() *CSSCMSDataModelModelsTemplatesTemplateMetadataField` + +NewCSSCMSDataModelModelsTemplatesTemplateMetadataFieldWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesTemplateMetadataField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetTemplateId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetMetadataId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMetadataId() int32` + +GetMetadataId returns the MetadataId field if non-nil, zero value otherwise. + +### GetMetadataIdOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMetadataIdOk() (*int32, bool)` + +GetMetadataIdOk returns a tuple with the MetadataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMetadataId(v int32)` + +SetMetadataId sets MetadataId field to given value. + +### HasMetadataId + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasMetadataId() bool` + +HasMetadataId returns a boolean if a field has been set. + +### GetValidation + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetMessage + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetCaseSensitive + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowApproveDenyResult.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowApproveDenyResult.md new file mode 100644 index 0000000..ad7ce13 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowApproveDenyResult.md @@ -0,0 +1,138 @@ +# CSSCMSDataModelModelsWorkflowApproveDenyResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Failures** | Pointer to [**[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest**](CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md) | | [optional] +**Denials** | Pointer to [**[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest**](CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md) | | [optional] +**Successes** | Pointer to [**[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest**](CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsWorkflowApproveDenyResult + +`func NewCSSCMSDataModelModelsWorkflowApproveDenyResult() *CSSCMSDataModelModelsWorkflowApproveDenyResult` + +NewCSSCMSDataModelModelsWorkflowApproveDenyResult instantiates a new CSSCMSDataModelModelsWorkflowApproveDenyResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsWorkflowApproveDenyResultWithDefaults + +`func NewCSSCMSDataModelModelsWorkflowApproveDenyResultWithDefaults() *CSSCMSDataModelModelsWorkflowApproveDenyResult` + +NewCSSCMSDataModelModelsWorkflowApproveDenyResultWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowApproveDenyResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailures + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetFailures() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest` + +GetFailures returns the Failures field if non-nil, zero value otherwise. + +### GetFailuresOk + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetFailuresOk() (*[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool)` + +GetFailuresOk returns a tuple with the Failures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailures + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetFailures(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest)` + +SetFailures sets Failures field to given value. + +### HasFailures + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasFailures() bool` + +HasFailures returns a boolean if a field has been set. + +### SetFailuresNil + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetFailuresNil(b bool)` + + SetFailuresNil sets the value for Failures to be an explicit nil + +### UnsetFailures +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) UnsetFailures()` + +UnsetFailures ensures that no value is present for Failures, not even an explicit nil +### GetDenials + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetDenials() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest` + +GetDenials returns the Denials field if non-nil, zero value otherwise. + +### GetDenialsOk + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetDenialsOk() (*[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool)` + +GetDenialsOk returns a tuple with the Denials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenials + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetDenials(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest)` + +SetDenials sets Denials field to given value. + +### HasDenials + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasDenials() bool` + +HasDenials returns a boolean if a field has been set. + +### SetDenialsNil + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetDenialsNil(b bool)` + + SetDenialsNil sets the value for Denials to be an explicit nil + +### UnsetDenials +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) UnsetDenials()` + +UnsetDenials ensures that no value is present for Denials, not even an explicit nil +### GetSuccesses + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetSuccesses() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest` + +GetSuccesses returns the Successes field if non-nil, zero value otherwise. + +### GetSuccessesOk + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetSuccessesOk() (*[]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool)` + +GetSuccessesOk returns a tuple with the Successes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccesses + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetSuccesses(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest)` + +SetSuccesses sets Successes field to given value. + +### HasSuccesses + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasSuccesses() bool` + +HasSuccesses returns a boolean if a field has been set. + +### SetSuccessesNil + +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetSuccessesNil(b bool)` + + SetSuccessesNil sets the value for Successes to be an explicit nil + +### UnsetSuccesses +`func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) UnsetSuccesses()` + +UnsetSuccesses ensures that no value is present for Successes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel.md new file mode 100644 index 0000000..06f27a0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel.md @@ -0,0 +1,138 @@ +# CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntryName** | Pointer to **NullableString** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel + +`func NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel() *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel` + +NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModelWithDefaults + +`func NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModelWithDefaults() *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel` + +NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModelWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntryName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetEntryName() string` + +GetEntryName returns the EntryName field if non-nil, zero value otherwise. + +### GetEntryNameOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetEntryNameOk() (*string, bool)` + +GetEntryNameOk returns a tuple with the EntryName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetEntryName(v string)` + +SetEntryName sets EntryName field to given value. + +### HasEntryName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasEntryName() bool` + +HasEntryName returns a boolean if a field has been set. + +### SetEntryNameNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetEntryNameNil(b bool)` + + SetEntryNameNil sets the value for EntryName to be an explicit nil + +### UnsetEntryName +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetEntryName()` + +UnsetEntryName ensures that no value is present for EntryName, not even an explicit nil +### GetClientMachine + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorePath + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestModel.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestModel.md new file mode 100644 index 0000000..f77bce6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowCertificateRequestModel.md @@ -0,0 +1,406 @@ +# CSSCMSDataModelModelsWorkflowCertificateRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CARequestId** | Pointer to **NullableString** | | [optional] +**CommonName** | Pointer to **NullableString** | | [optional] +**DistinguishedName** | Pointer to **NullableString** | | [optional] +**SubmissionDate** | Pointer to **NullableTime** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**Requester** | Pointer to **NullableString** | | [optional] +**State** | Pointer to [**KeyfactorPKIEnumsCertificateState**](KeyfactorPKIEnumsCertificateState.md) | | [optional] +**StateString** | Pointer to **NullableString** | | [optional] [readonly] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsWorkflowCertificateRequestModel + +`func NewCSSCMSDataModelModelsWorkflowCertificateRequestModel() *CSSCMSDataModelModelsWorkflowCertificateRequestModel` + +NewCSSCMSDataModelModelsWorkflowCertificateRequestModel instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsWorkflowCertificateRequestModelWithDefaults + +`func NewCSSCMSDataModelModelsWorkflowCertificateRequestModelWithDefaults() *CSSCMSDataModelModelsWorkflowCertificateRequestModel` + +NewCSSCMSDataModelModelsWorkflowCertificateRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### SetCARequestIdNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCARequestIdNil(b bool)` + + SetCARequestIdNil sets the value for CARequestId to be an explicit nil + +### UnsetCARequestId +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCARequestId()` + +UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +### GetCommonName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### SetCommonNameNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCommonNameNil(b bool)` + + SetCommonNameNil sets the value for CommonName to be an explicit nil + +### UnsetCommonName +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCommonName()` + +UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +### GetDistinguishedName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetDistinguishedName() string` + +GetDistinguishedName returns the DistinguishedName field if non-nil, zero value otherwise. + +### GetDistinguishedNameOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetDistinguishedNameOk() (*string, bool)` + +GetDistinguishedNameOk returns a tuple with the DistinguishedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistinguishedName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetDistinguishedName(v string)` + +SetDistinguishedName sets DistinguishedName field to given value. + +### HasDistinguishedName + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasDistinguishedName() bool` + +HasDistinguishedName returns a boolean if a field has been set. + +### SetDistinguishedNameNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetDistinguishedNameNil(b bool)` + + SetDistinguishedNameNil sets the value for DistinguishedName to be an explicit nil + +### UnsetDistinguishedName +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetDistinguishedName()` + +UnsetDistinguishedName ensures that no value is present for DistinguishedName, not even an explicit nil +### GetSubmissionDate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetSubmissionDate() time.Time` + +GetSubmissionDate returns the SubmissionDate field if non-nil, zero value otherwise. + +### GetSubmissionDateOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetSubmissionDateOk() (*time.Time, bool)` + +GetSubmissionDateOk returns a tuple with the SubmissionDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmissionDate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetSubmissionDate(v time.Time)` + +SetSubmissionDate sets SubmissionDate field to given value. + +### HasSubmissionDate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasSubmissionDate() bool` + +HasSubmissionDate returns a boolean if a field has been set. + +### SetSubmissionDateNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetSubmissionDateNil(b bool)` + + SetSubmissionDateNil sets the value for SubmissionDate to be an explicit nil + +### UnsetSubmissionDate +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetSubmissionDate()` + +UnsetSubmissionDate ensures that no value is present for SubmissionDate, not even an explicit nil +### GetCertificateAuthority + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetTemplate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetRequester + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetRequester() string` + +GetRequester returns the Requester field if non-nil, zero value otherwise. + +### GetRequesterOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetRequesterOk() (*string, bool)` + +GetRequesterOk returns a tuple with the Requester field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequester + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetRequester(v string)` + +SetRequester sets Requester field to given value. + +### HasRequester + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasRequester() bool` + +HasRequester returns a boolean if a field has been set. + +### SetRequesterNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetRequesterNil(b bool)` + + SetRequesterNil sets the value for Requester to be an explicit nil + +### UnsetRequester +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetRequester()` + +UnsetRequester ensures that no value is present for Requester, not even an explicit nil +### GetState + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetState() KeyfactorPKIEnumsCertificateState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateOk() (*KeyfactorPKIEnumsCertificateState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetState(v KeyfactorPKIEnumsCertificateState)` + +SetState sets State field to given value. + +### HasState + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateString + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateString() string` + +GetStateString returns the StateString field if non-nil, zero value otherwise. + +### GetStateStringOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateStringOk() (*string, bool)` + +GetStateStringOk returns a tuple with the StateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateString + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetStateString(v string)` + +SetStateString sets StateString field to given value. + +### HasStateString + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasStateString() bool` + +HasStateString returns a boolean if a field has been set. + +### SetStateStringNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetStateStringNil(b bool)` + + SetStateStringNil sets the value for StateString to be an explicit nil + +### UnsetStateString +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetStateString()` + +UnsetStateString ensures that no value is present for StateString, not even an explicit nil +### GetMetadata + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowDenialRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowDenialRequest.md new file mode 100644 index 0000000..618dfab --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowDenialRequest.md @@ -0,0 +1,102 @@ +# CSSCMSDataModelModelsWorkflowDenialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | Pointer to **NullableString** | | [optional] +**CertificateRequestIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsWorkflowDenialRequest + +`func NewCSSCMSDataModelModelsWorkflowDenialRequest() *CSSCMSDataModelModelsWorkflowDenialRequest` + +NewCSSCMSDataModelModelsWorkflowDenialRequest instantiates a new CSSCMSDataModelModelsWorkflowDenialRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsWorkflowDenialRequestWithDefaults + +`func NewCSSCMSDataModelModelsWorkflowDenialRequestWithDefaults() *CSSCMSDataModelModelsWorkflowDenialRequest` + +NewCSSCMSDataModelModelsWorkflowDenialRequestWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowDenialRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil +### GetCertificateRequestIds + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCertificateRequestIds() []int32` + +GetCertificateRequestIds returns the CertificateRequestIds field if non-nil, zero value otherwise. + +### GetCertificateRequestIdsOk + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCertificateRequestIdsOk() (*[]int32, bool)` + +GetCertificateRequestIdsOk returns a tuple with the CertificateRequestIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateRequestIds + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetCertificateRequestIds(v []int32)` + +SetCertificateRequestIds sets CertificateRequestIds field to given value. + +### HasCertificateRequestIds + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) HasCertificateRequestIds() bool` + +HasCertificateRequestIds returns a boolean if a field has been set. + +### SetCertificateRequestIdsNil + +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetCertificateRequestIdsNil(b bool)` + + SetCertificateRequestIdsNil sets the value for CertificateRequestIds to be an explicit nil + +### UnsetCertificateRequestIds +`func (o *CSSCMSDataModelModelsWorkflowDenialRequest) UnsetCertificateRequestIds()` + +UnsetCertificateRequestIds ensures that no value is present for CertificateRequestIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md new file mode 100644 index 0000000..7906fa3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CSSCMSDataModelModelsWorkflowProcessedCertificateRequest.md @@ -0,0 +1,236 @@ +# CSSCMSDataModelModelsWorkflowProcessedCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CARowId** | Pointer to **NullableInt32** | | [optional] [readonly] +**CARequestId** | Pointer to **NullableString** | | [optional] +**CAHost** | Pointer to **NullableString** | | [optional] +**CALogicalName** | Pointer to **NullableString** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**Comment** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequest + +`func NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequest() *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest` + +NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequest instantiates a new CSSCMSDataModelModelsWorkflowProcessedCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequestWithDefaults + +`func NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequestWithDefaults() *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest` + +NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequestWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowProcessedCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCARowId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARowId() int32` + +GetCARowId returns the CARowId field if non-nil, zero value otherwise. + +### GetCARowIdOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARowIdOk() (*int32, bool)` + +GetCARowIdOk returns a tuple with the CARowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARowId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARowId(v int32)` + +SetCARowId sets CARowId field to given value. + +### HasCARowId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCARowId() bool` + +HasCARowId returns a boolean if a field has been set. + +### SetCARowIdNil + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARowIdNil(b bool)` + + SetCARowIdNil sets the value for CARowId to be an explicit nil + +### UnsetCARowId +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCARowId()` + +UnsetCARowId ensures that no value is present for CARowId, not even an explicit nil +### GetCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### SetCARequestIdNil + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARequestIdNil(b bool)` + + SetCARequestIdNil sets the value for CARequestId to be an explicit nil + +### UnsetCARequestId +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCARequestId()` + +UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +### GetCAHost + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCAHost() string` + +GetCAHost returns the CAHost field if non-nil, zero value otherwise. + +### GetCAHostOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCAHostOk() (*string, bool)` + +GetCAHostOk returns a tuple with the CAHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAHost + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCAHost(v string)` + +SetCAHost sets CAHost field to given value. + +### HasCAHost + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCAHost() bool` + +HasCAHost returns a boolean if a field has been set. + +### SetCAHostNil + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCAHostNil(b bool)` + + SetCAHostNil sets the value for CAHost to be an explicit nil + +### UnsetCAHost +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCAHost()` + +UnsetCAHost ensures that no value is present for CAHost, not even an explicit nil +### GetCALogicalName + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCALogicalName() string` + +GetCALogicalName returns the CALogicalName field if non-nil, zero value otherwise. + +### GetCALogicalNameOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCALogicalNameOk() (*string, bool)` + +GetCALogicalNameOk returns a tuple with the CALogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCALogicalName + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCALogicalName(v string)` + +SetCALogicalName sets CALogicalName field to given value. + +### HasCALogicalName + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCALogicalName() bool` + +HasCALogicalName returns a boolean if a field has been set. + +### SetCALogicalNameNil + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCALogicalNameNil(b bool)` + + SetCALogicalNameNil sets the value for CALogicalName to be an explicit nil + +### UnsetCALogicalName +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCALogicalName()` + +UnsetCALogicalName ensures that no value is present for CALogicalName, not even an explicit nil +### GetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetComment + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateApi.md b/v24/api/keyfactor/v1/docs/CertificateApi.md new file mode 100644 index 0000000..741d25b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateApi.md @@ -0,0 +1,1638 @@ +# \CertificateApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificatesAnalyze**](CertificateApi.md#CreateCertificatesAnalyze) | **POST** /Certificates/Analyze | Returns the public information of the certificate +[**CreateCertificatesDownload**](CertificateApi.md#CreateCertificatesDownload) | **POST** /Certificates/Download | Downloads the persisted certificate associated with the provided query +[**CreateCertificatesImport**](CertificateApi.md#CreateCertificatesImport) | **POST** /Certificates/Import | Imports the provided certificate into the Keyfactor instance, including any provided associated data +[**CreateCertificatesRecover**](CertificateApi.md#CreateCertificatesRecover) | **POST** /Certificates/Recover | Recovers the persisted certificate associated with the provided query +[**CreateCertificatesRevoke**](CertificateApi.md#CreateCertificatesRevoke) | **POST** /Certificates/Revoke | Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation +[**DeleteCertificates**](CertificateApi.md#DeleteCertificates) | **DELETE** /Certificates | Deletes multiple persisted certificates by their unique ids +[**DeleteCertificatesById**](CertificateApi.md#DeleteCertificatesById) | **DELETE** /Certificates/{id} | Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it +[**DeleteCertificatesPrivateKey**](CertificateApi.md#DeleteCertificatesPrivateKey) | **DELETE** /Certificates/PrivateKey | Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates +[**DeleteCertificatesPrivateKeyById**](CertificateApi.md#DeleteCertificatesPrivateKeyById) | **DELETE** /Certificates/PrivateKey/{id} | Deletes the persisted private keys of the certificate associated with the provided identifier +[**DeleteCertificatesQuery**](CertificateApi.md#DeleteCertificatesQuery) | **DELETE** /Certificates/Query | Deletes multiple persisted certificate entities selected by a given query +[**GetCertificates**](CertificateApi.md#GetCertificates) | **GET** /Certificates | Returns all certificates according to the provided filter and output parameters +[**GetCertificatesById**](CertificateApi.md#GetCertificatesById) | **GET** /Certificates/{id} | Returns a single certificate that matches the id +[**GetCertificatesByIdHistory**](CertificateApi.md#GetCertificatesByIdHistory) | **GET** /Certificates/{id}/History | Gets the history of operations on a certificate +[**GetCertificatesByIdSecurity**](CertificateApi.md#GetCertificatesByIdSecurity) | **GET** /Certificates/{id}/Security | Gets the list of Security Identities and which permissions they have on the given certificate. +[**GetCertificatesByIdValidate**](CertificateApi.md#GetCertificatesByIdValidate) | **GET** /Certificates/{id}/Validate | Validates the certificate chain can be built. +[**GetCertificatesCSV**](CertificateApi.md#GetCertificatesCSV) | **GET** /Certificates/CSV | Returns a comma-delimited CSV file containing all certificates in the database +[**GetCertificatesIdentityAuditById**](CertificateApi.md#GetCertificatesIdentityAuditById) | **GET** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate +[**GetCertificatesLocationsById**](CertificateApi.md#GetCertificatesLocationsById) | **GET** /Certificates/Locations/{id} | Returns a list of locations the certificate is in +[**GetCertificatesMetadataCompare**](CertificateApi.md#GetCertificatesMetadataCompare) | **GET** /Certificates/Metadata/Compare | Compares the metadata value provided with the metadata value associated with the specified certificate +[**UpdateCertificatesByIdOwner**](CertificateApi.md#UpdateCertificatesByIdOwner) | **PUT** /Certificates/{id}/Owner | Changes the certificate's owner. Users must be in the current owner's role and the new owner's role +[**UpdateCertificatesMetadata**](CertificateApi.md#UpdateCertificatesMetadata) | **PUT** /Certificates/Metadata | Updates the metadata for the certificate associated with the identifier provided +[**UpdateCertificatesMetadataAll**](CertificateApi.md#UpdateCertificatesMetadataAll) | **PUT** /Certificates/Metadata/All | Updates the metadata for certificates associated with the certificate identifiers or query provided + + + +## CreateCertificatesAnalyze + +> []CSSCMSDataModelModelsCertificateDetails NewCreateCertificatesAnalyzeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesAnalyzeCertificateRequest(certificatesAnalyzeCertificateRequest).Execute() + +Returns the public information of the certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificatesAnalyzeCertificateRequest := *openapiclient.NewCertificatesAnalyzeCertificateRequest() // CertificatesAnalyzeCertificateRequest | The certificate to analyze (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewCreateCertificatesAnalyzeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesAnalyzeCertificateRequest(certificatesAnalyzeCertificateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesAnalyze``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificatesAnalyze`: []CSSCMSDataModelModelsCertificateDetails + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesAnalyze`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificatesAnalyzeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificatesAnalyzeCertificateRequest** | [**CertificatesAnalyzeCertificateRequest**](CertificatesAnalyzeCertificateRequest.md) | The certificate to analyze | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateDetails**](CSSCMSDataModelModelsCertificateDetails.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificatesDownload + +> CSSCMSDataModelModelsCertificateDownloadResponse NewCreateCertificatesDownloadRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateDownloadRequest(certificatesCertificateDownloadRequest).Execute() + +Downloads the persisted certificate associated with the provided query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xCertificateformat := "PEM" // string | Desired format [DER, PEM, P7B] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificatesCertificateDownloadRequest := *openapiclient.NewCertificatesCertificateDownloadRequest() // CertificatesCertificateDownloadRequest | Query to filter the certificate to be recovered (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewCreateCertificatesDownloadRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateDownloadRequest(certificatesCertificateDownloadRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesDownload``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificatesDownload`: CSSCMSDataModelModelsCertificateDownloadResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesDownload`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificatesDownloadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xCertificateformat** | **string** | Desired format [DER, PEM, P7B] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificatesCertificateDownloadRequest** | [**CertificatesCertificateDownloadRequest**](CertificatesCertificateDownloadRequest.md) | Query to filter the certificate to be recovered | + +### Return type + +[**CSSCMSDataModelModelsCertificateDownloadResponse**](CSSCMSDataModelModelsCertificateDownloadResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificatesImport + +> CSSCMSDataModelModelsCertificateImportResponseModel NewCreateCertificatesImportRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateImportRequestModel(cSSCMSDataModelModelsCertificateImportRequestModel).Execute() + +Imports the provided certificate into the Keyfactor instance, including any provided associated data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertificateImportRequestModel := *openapiclient.NewCSSCMSDataModelModelsCertificateImportRequestModel("Certificate_example") // CSSCMSDataModelModelsCertificateImportRequestModel | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewCreateCertificatesImportRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateImportRequestModel(cSSCMSDataModelModelsCertificateImportRequestModel).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificatesImport`: CSSCMSDataModelModelsCertificateImportResponseModel + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesImport`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificatesImportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertificateImportRequestModel** | [**CSSCMSDataModelModelsCertificateImportRequestModel**](CSSCMSDataModelModelsCertificateImportRequestModel.md) | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password | + +### Return type + +[**CSSCMSDataModelModelsCertificateImportResponseModel**](CSSCMSDataModelModelsCertificateImportResponseModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificatesRecover + +> CSSCMSDataModelModelsRecoveryResponse NewCreateCertificatesRecoverRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateRecoveryRequest(certificatesCertificateRecoveryRequest).Execute() + +Recovers the persisted certificate associated with the provided query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xCertificateformat := "PFX" // string | Desired format [PFX, PEM, ZIP, JKS] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificatesCertificateRecoveryRequest := *openapiclient.NewCertificatesCertificateRecoveryRequest("Password_example") // CertificatesCertificateRecoveryRequest | Query to filter the certificate to be recovered (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewCreateCertificatesRecoverRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesCertificateRecoveryRequest(certificatesCertificateRecoveryRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesRecover``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificatesRecover`: CSSCMSDataModelModelsRecoveryResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesRecover`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificatesRecoverRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xCertificateformat** | **string** | Desired format [PFX, PEM, ZIP, JKS] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificatesCertificateRecoveryRequest** | [**CertificatesCertificateRecoveryRequest**](CertificatesCertificateRecoveryRequest.md) | Query to filter the certificate to be recovered | + +### Return type + +[**CSSCMSDataModelModelsRecoveryResponse**](CSSCMSDataModelModelsRecoveryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificatesRevoke + +> CertificatesRevocationResponse NewCreateCertificatesRevokeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesRevokeCertificateRequest(certificatesRevokeCertificateRequest).Execute() + +Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificatesRevokeCertificateRequest := *openapiclient.NewCertificatesRevokeCertificateRequest() // CertificatesRevokeCertificateRequest | Contains the Keyfactor certificate identifiers and revocation data (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewCreateCertificatesRevokeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesRevokeCertificateRequest(certificatesRevokeCertificateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CreateCertificatesRevoke``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificatesRevoke`: CertificatesRevocationResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CreateCertificatesRevoke`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificatesRevokeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificatesRevokeCertificateRequest** | [**CertificatesRevokeCertificateRequest**](CertificatesRevokeCertificateRequest.md) | Contains the Keyfactor certificate identifiers and revocation data | + +### Return type + +[**CertificatesRevocationResponse**](CertificatesRevocationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificates + +> NewDeleteCertificatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes multiple persisted certificates by their unique ids + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | The array of ids for certificate that are to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | The array of ids for certificate that are to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificatesById + +> NewDeleteCertificatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate record + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificatesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificatesPrivateKey + +> NewDeleteCertificatesPrivateKeyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesPrivateKeyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesPrivateKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificatesPrivateKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificatesPrivateKeyById + +> NewDeleteCertificatesPrivateKeyByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the persisted private keys of the certificate associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate for which the associated private keys should be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesPrivateKeyByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesPrivateKeyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate for which the associated private keys should be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificatesPrivateKeyByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificatesQuery + +> NewDeleteCertificatesQueryRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute() + +Deletes multiple persisted certificate entities selected by a given query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + body := "body_example" // string | Query by which certificates should be filtered for deletion (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewDeleteCertificatesQueryRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.DeleteCertificatesQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificatesQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **body** | **string** | Query by which certificates should be filtered for deletion | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificates + +> []CertificatesCertificateRetrievalResponse NewGetCertificatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeRevoked(includeRevoked).IncludeExpired(includeExpired).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificates according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + includeRevoked := true // bool | Select 'true' to include revoked certificates in the results (optional) + includeExpired := true // bool | Select 'true' to include expired certificates in the results (optional) + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + includeLocations := true // bool | Include locations data for the certificates to be returned (optional) (default to false) + includeMetadata := true // bool | Include metadata for the certificates to be returned (optional) (default to false) + includeHasPrivateKey := true // bool | Include whether the certificates to be returned have private keys stored in the Keyfactor database (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeRevoked(includeRevoked).IncludeExpired(includeExpired).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificates`: []CertificatesCertificateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificates`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **includeRevoked** | **bool** | Select 'true' to include revoked certificates in the results | + **includeExpired** | **bool** | Select 'true' to include expired certificates in the results | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **includeLocations** | **bool** | Include locations data for the certificates to be returned | [default to false] + **includeMetadata** | **bool** | Include metadata for the certificates to be returned | [default to false] + **includeHasPrivateKey** | **bool** | Include whether the certificates to be returned have private keys stored in the Keyfactor database | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificatesCertificateRetrievalResponse**](CertificatesCertificateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesById + +> CertificatesCertificateRetrievalResponse NewGetCertificatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor certificate identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + includeLocations := true // bool | Include locations data for the certificate to be returned (optional) (default to false) + includeMetadata := true // bool | Include metadata for the certificate to be returned (optional) (default to false) + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesById`: CertificatesCertificateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor certificate identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **includeLocations** | **bool** | Include locations data for the certificate to be returned | [default to false] + **includeMetadata** | **bool** | Include metadata for the certificate to be returned | [default to false] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificatesCertificateRetrievalResponse**](CertificatesCertificateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesByIdHistory + +> []CSSCMSDataModelModelsPKICertificateOperation NewGetCertificatesByIdHistoryRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the history of operations on a certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + collectionId := int32(56) // int32 | The collection the certificate could be in. Defaults to no collection. (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesByIdHistoryRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesByIdHistory`: []CSSCMSDataModelModelsPKICertificateOperation + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdHistory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesByIdHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **collectionId** | **int32** | The collection the certificate could be in. Defaults to no collection. | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsPKICertificateOperation**](CSSCMSDataModelModelsPKICertificateOperation.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesByIdSecurity + +> CSSCMSDataModelModelsSecurityCertificatePermissions NewGetCertificatesByIdSecurityRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the list of Security Identities and which permissions they have on the given certificate. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate permissions are being checked on + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | The Id of the collection the certificate belongs in. Defaults to no collection (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesByIdSecurityRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdSecurity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesByIdSecurity`: CSSCMSDataModelModelsSecurityCertificatePermissions + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdSecurity`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate permissions are being checked on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesByIdSecurityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | The Id of the collection the certificate belongs in. Defaults to no collection | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSecurityCertificatePermissions**](CSSCMSDataModelModelsSecurityCertificatePermissions.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesByIdValidate + +> CSSCMSDataModelModelsCertificateValidationResponse NewGetCertificatesByIdValidateRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the certificate chain can be built. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate being checked + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesByIdValidateRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesByIdValidate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesByIdValidate`: CSSCMSDataModelModelsCertificateValidationResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesByIdValidate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate being checked | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesByIdValidateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsCertificateValidationResponse**](CSSCMSDataModelModelsCertificateValidationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesCSV + +> string NewGetCertificatesCSVRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SortName(sortName).SortOrder(sortOrder).Query(query).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a comma-delimited CSV file containing all certificates in the database + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + sortName := "sortName_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortOrder := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + query := "query_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificat (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesCSVRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SortName(sortName).SortOrder(sortOrder).Query(query).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesCSV``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesCSV`: string + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesCSV`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesCSVRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **sortName** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortOrder** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **query** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificat | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesIdentityAuditById + +> []CertificatesCertificateIdentityAuditResponse NewGetCertificatesIdentityAuditByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Audit identity permissions for certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate being checked + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesIdentityAuditByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesIdentityAuditById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesIdentityAuditById`: []CertificatesCertificateIdentityAuditResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesIdentityAuditById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate being checked | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesIdentityAuditByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificatesCertificateIdentityAuditResponse**](CertificatesCertificateIdentityAuditResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesLocationsById + +> CertificatesCertificateLocationsResponse NewGetCertificatesLocationsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of locations the certificate is in + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor certificate identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesLocationsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesLocationsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesLocationsById`: CertificatesCertificateLocationsResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesLocationsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor certificate identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesLocationsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificatesCertificateLocationsResponse**](CertificatesCertificateLocationsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificatesMetadataCompare + +> bool NewGetCertificatesMetadataCompareRequest(ctx).CertificateId(certificateId).MetadataFieldName(metadataFieldName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Value(value).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Compares the metadata value provided with the metadata value associated with the specified certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + certificateId := int32(56) // int32 | Certificate identifier + metadataFieldName := "metadataFieldName_example" // string | Metadata field being compared + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + value := "value_example" // string | Value to compare against (optional) + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesMetadataCompareRequest(context.Background()).CertificateId(certificateId).MetadataFieldName(metadataFieldName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Value(value).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesMetadataCompare``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesMetadataCompare`: bool + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesMetadataCompare`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesMetadataCompareRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **certificateId** | **int32** | Certificate identifier | + **metadataFieldName** | **string** | Metadata field being compared | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **value** | **string** | Value to compare against | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificatesByIdOwner + +> NewUpdateCertificatesByIdOwnerRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesOwnerRequest(certificatesOwnerRequest).Execute() + +Changes the certificate's owner. Users must be in the current owner's role and the new owner's role + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the certificate + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | An optional parameter for the collection Id the certificate is in. Defaults to no collection (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificatesOwnerRequest := *openapiclient.NewCertificatesOwnerRequest() // CertificatesOwnerRequest | Security role identifier for the role to assign ownership. If removing the owner, leave both empty. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesByIdOwnerRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificatesOwnerRequest(certificatesOwnerRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesByIdOwner``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the certificate | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificatesByIdOwnerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | An optional parameter for the collection Id the certificate is in. Defaults to no collection | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificatesOwnerRequest** | [**CertificatesOwnerRequest**](CertificatesOwnerRequest.md) | Security role identifier for the role to assign ownership. If removing the owner, leave both empty. | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificatesMetadata + +> NewUpdateCertificatesMetadataRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataUpdateRequest(cSSCMSDataModelModelsMetadataUpdateRequest).Execute() + +Updates the metadata for the certificate associated with the identifier provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsMetadataUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsMetadataUpdateRequest(map[string]string{"key": "Inner_example"}) // CSSCMSDataModelModelsMetadataUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesMetadataRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataUpdateRequest(cSSCMSDataModelModelsMetadataUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificatesMetadataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsMetadataUpdateRequest** | [**CSSCMSDataModelModelsMetadataUpdateRequest**](CSSCMSDataModelModelsMetadataUpdateRequest.md) | Contains the Keyfactor certificate identifier and the metadata to be updated | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificatesMetadataAll + +> NewUpdateCertificatesMetadataAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataAllUpdateRequest(cSSCMSDataModelModelsMetadataAllUpdateRequest).Execute() + +Updates the metadata for certificates associated with the certificate identifiers or query provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsMetadataAllUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsMetadataAllUpdateRequest([]openapiclient.CSSCMSDataModelModelsMetadataSingleUpdateRequest{*openapiclient.NewCSSCMSDataModelModelsMetadataSingleUpdateRequest()}) // CSSCMSDataModelModelsMetadataAllUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewUpdateCertificatesMetadataAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMetadataAllUpdateRequest(cSSCMSDataModelModelsMetadataAllUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.UpdateCertificatesMetadataAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificatesMetadataAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsMetadataAllUpdateRequest** | [**CSSCMSDataModelModelsMetadataAllUpdateRequest**](CSSCMSDataModelModelsMetadataAllUpdateRequest.md) | Contains the Keyfactor certificate identifier and the metadata to be updated | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientCreateRequest.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientCreateRequest.md new file mode 100644 index 0000000..f2d2ec5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientCreateRequest.md @@ -0,0 +1,51 @@ +# CertificateAuthoritiesCAAlertRecipientCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Emails** | **[]string** | | + +## Methods + +### NewCertificateAuthoritiesCAAlertRecipientCreateRequest + +`func NewCertificateAuthoritiesCAAlertRecipientCreateRequest(emails []string, ) *CertificateAuthoritiesCAAlertRecipientCreateRequest` + +NewCertificateAuthoritiesCAAlertRecipientCreateRequest instantiates a new CertificateAuthoritiesCAAlertRecipientCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAAlertRecipientCreateRequestWithDefaults + +`func NewCertificateAuthoritiesCAAlertRecipientCreateRequestWithDefaults() *CertificateAuthoritiesCAAlertRecipientCreateRequest` + +NewCertificateAuthoritiesCAAlertRecipientCreateRequestWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmails + +`func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) GetEmails() []string` + +GetEmails returns the Emails field if non-nil, zero value otherwise. + +### GetEmailsOk + +`func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) GetEmailsOk() (*[]string, bool)` + +GetEmailsOk returns a tuple with the Emails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmails + +`func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) SetEmails(v []string)` + +SetEmails sets Emails field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientResponse.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientResponse.md new file mode 100644 index 0000000..a498daf --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientResponse.md @@ -0,0 +1,92 @@ +# CertificateAuthoritiesCAAlertRecipientResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateAuthoritiesCAAlertRecipientResponse + +`func NewCertificateAuthoritiesCAAlertRecipientResponse() *CertificateAuthoritiesCAAlertRecipientResponse` + +NewCertificateAuthoritiesCAAlertRecipientResponse instantiates a new CertificateAuthoritiesCAAlertRecipientResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAAlertRecipientResponseWithDefaults + +`func NewCertificateAuthoritiesCAAlertRecipientResponseWithDefaults() *CertificateAuthoritiesCAAlertRecipientResponse` + +NewCertificateAuthoritiesCAAlertRecipientResponseWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEmail + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *CertificateAuthoritiesCAAlertRecipientResponse) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientUpdateRequest.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientUpdateRequest.md new file mode 100644 index 0000000..c14f82a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAAlertRecipientUpdateRequest.md @@ -0,0 +1,51 @@ +# CertificateAuthoritiesCAAlertRecipientUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | + +## Methods + +### NewCertificateAuthoritiesCAAlertRecipientUpdateRequest + +`func NewCertificateAuthoritiesCAAlertRecipientUpdateRequest(email string, ) *CertificateAuthoritiesCAAlertRecipientUpdateRequest` + +NewCertificateAuthoritiesCAAlertRecipientUpdateRequest instantiates a new CertificateAuthoritiesCAAlertRecipientUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAAlertRecipientUpdateRequestWithDefaults + +`func NewCertificateAuthoritiesCAAlertRecipientUpdateRequestWithDefaults() *CertificateAuthoritiesCAAlertRecipientUpdateRequest` + +NewCertificateAuthoritiesCAAlertRecipientUpdateRequestWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorRequest.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorRequest.md new file mode 100644 index 0000000..6236058 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorRequest.md @@ -0,0 +1,242 @@ +# CertificateAuthoritiesCAConnectorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**PoolName** | Pointer to **NullableString** | | [optional] +**ClaimType** | Pointer to [**CSSCMSCoreEnumsClaimType**](CSSCMSCoreEnumsClaimType.md) | | [optional] +**ClaimValue** | Pointer to **NullableString** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**CAType** | Pointer to [**CSSCMSCoreEnumsCertificateAuthorityType**](CSSCMSCoreEnumsCertificateAuthorityType.md) | | [optional] + +## Methods + +### NewCertificateAuthoritiesCAConnectorRequest + +`func NewCertificateAuthoritiesCAConnectorRequest() *CertificateAuthoritiesCAConnectorRequest` + +NewCertificateAuthoritiesCAConnectorRequest instantiates a new CertificateAuthoritiesCAConnectorRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAConnectorRequestWithDefaults + +`func NewCertificateAuthoritiesCAConnectorRequestWithDefaults() *CertificateAuthoritiesCAConnectorRequest` + +NewCertificateAuthoritiesCAConnectorRequestWithDefaults instantiates a new CertificateAuthoritiesCAConnectorRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateAuthoritiesCAConnectorRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEnabled + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPoolName + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetPoolName() string` + +GetPoolName returns the PoolName field if non-nil, zero value otherwise. + +### GetPoolNameOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetPoolNameOk() (*string, bool)` + +GetPoolNameOk returns a tuple with the PoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolName + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetPoolName(v string)` + +SetPoolName sets PoolName field to given value. + +### HasPoolName + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasPoolName() bool` + +HasPoolName returns a boolean if a field has been set. + +### SetPoolNameNil + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetPoolNameNil(b bool)` + + SetPoolNameNil sets the value for PoolName to be an explicit nil + +### UnsetPoolName +`func (o *CertificateAuthoritiesCAConnectorRequest) UnsetPoolName()` + +UnsetPoolName ensures that no value is present for PoolName, not even an explicit nil +### GetClaimType + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimType() CSSCMSCoreEnumsClaimType` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimType(v CSSCMSCoreEnumsClaimType)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### GetClaimValue + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *CertificateAuthoritiesCAConnectorRequest) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProviderId + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetCAType + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *CertificateAuthoritiesCAConnectorRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *CertificateAuthoritiesCAConnectorRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *CertificateAuthoritiesCAConnectorRequest) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorResponse.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorResponse.md new file mode 100644 index 0000000..713ae7e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAConnectorResponse.md @@ -0,0 +1,366 @@ +# CertificateAuthoritiesCAConnectorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**PoolName** | Pointer to **NullableString** | | [optional] +**LastSeen** | Pointer to **NullableTime** | | [optional] +**ClaimType** | Pointer to [**CSSCMSCoreEnumsClaimType**](CSSCMSCoreEnumsClaimType.md) | | [optional] +**ClaimValue** | Pointer to **NullableString** | | [optional] +**ProviderId** | Pointer to **string** | | [optional] +**ProviderName** | Pointer to **NullableString** | | [optional] +**Connected** | Pointer to **bool** | | [optional] +**CAType** | Pointer to [**CSSCMSCoreEnumsCertificateAuthorityType**](CSSCMSCoreEnumsCertificateAuthorityType.md) | | [optional] + +## Methods + +### NewCertificateAuthoritiesCAConnectorResponse + +`func NewCertificateAuthoritiesCAConnectorResponse() *CertificateAuthoritiesCAConnectorResponse` + +NewCertificateAuthoritiesCAConnectorResponse instantiates a new CertificateAuthoritiesCAConnectorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAConnectorResponseWithDefaults + +`func NewCertificateAuthoritiesCAConnectorResponseWithDefaults() *CertificateAuthoritiesCAConnectorResponse` + +NewCertificateAuthoritiesCAConnectorResponseWithDefaults instantiates a new CertificateAuthoritiesCAConnectorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateAuthoritiesCAConnectorResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEnabled + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPoolName + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetPoolName() string` + +GetPoolName returns the PoolName field if non-nil, zero value otherwise. + +### GetPoolNameOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetPoolNameOk() (*string, bool)` + +GetPoolNameOk returns a tuple with the PoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolName + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetPoolName(v string)` + +SetPoolName sets PoolName field to given value. + +### HasPoolName + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasPoolName() bool` + +HasPoolName returns a boolean if a field has been set. + +### SetPoolNameNil + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetPoolNameNil(b bool)` + + SetPoolNameNil sets the value for PoolName to be an explicit nil + +### UnsetPoolName +`func (o *CertificateAuthoritiesCAConnectorResponse) UnsetPoolName()` + +UnsetPoolName ensures that no value is present for PoolName, not even an explicit nil +### GetLastSeen + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetLastSeen() time.Time` + +GetLastSeen returns the LastSeen field if non-nil, zero value otherwise. + +### GetLastSeenOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetLastSeenOk() (*time.Time, bool)` + +GetLastSeenOk returns a tuple with the LastSeen field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSeen + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetLastSeen(v time.Time)` + +SetLastSeen sets LastSeen field to given value. + +### HasLastSeen + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasLastSeen() bool` + +HasLastSeen returns a boolean if a field has been set. + +### SetLastSeenNil + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetLastSeenNil(b bool)` + + SetLastSeenNil sets the value for LastSeen to be an explicit nil + +### UnsetLastSeen +`func (o *CertificateAuthoritiesCAConnectorResponse) UnsetLastSeen()` + +UnsetLastSeen ensures that no value is present for LastSeen, not even an explicit nil +### GetClaimType + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimType() CSSCMSCoreEnumsClaimType` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimType(v CSSCMSCoreEnumsClaimType)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### GetClaimValue + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *CertificateAuthoritiesCAConnectorResponse) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProviderId + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetProviderName + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + +### HasProviderName + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasProviderName() bool` + +HasProviderName returns a boolean if a field has been set. + +### SetProviderNameNil + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderNameNil(b bool)` + + SetProviderNameNil sets the value for ProviderName to be an explicit nil + +### UnsetProviderName +`func (o *CertificateAuthoritiesCAConnectorResponse) UnsetProviderName()` + +UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +### GetConnected + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetConnected() bool` + +GetConnected returns the Connected field if non-nil, zero value otherwise. + +### GetConnectedOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetConnectedOk() (*bool, bool)` + +GetConnectedOk returns a tuple with the Connected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnected + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetConnected(v bool)` + +SetConnected sets Connected field to given value. + +### HasConnected + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasConnected() bool` + +HasConnected returns a boolean if a field has been set. + +### GetCAType + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *CertificateAuthoritiesCAConnectorResponse) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *CertificateAuthoritiesCAConnectorResponse) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *CertificateAuthoritiesCAConnectorResponse) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAJobQueueTestResponse.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAJobQueueTestResponse.md new file mode 100644 index 0000000..56c787d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCAJobQueueTestResponse.md @@ -0,0 +1,92 @@ +# CertificateAuthoritiesCAJobQueueTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | Whether the test succeeded or failed. | [optional] +**Message** | Pointer to **NullableString** | The message returned by the test. | [optional] + +## Methods + +### NewCertificateAuthoritiesCAJobQueueTestResponse + +`func NewCertificateAuthoritiesCAJobQueueTestResponse() *CertificateAuthoritiesCAJobQueueTestResponse` + +NewCertificateAuthoritiesCAJobQueueTestResponse instantiates a new CertificateAuthoritiesCAJobQueueTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCAJobQueueTestResponseWithDefaults + +`func NewCertificateAuthoritiesCAJobQueueTestResponseWithDefaults() *CertificateAuthoritiesCAJobQueueTestResponse` + +NewCertificateAuthoritiesCAJobQueueTestResponseWithDefaults instantiates a new CertificateAuthoritiesCAJobQueueTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CertificateAuthoritiesCAJobQueueTestResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityRequest.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityRequest.md new file mode 100644 index 0000000..33b4b92 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityRequest.md @@ -0,0 +1,1266 @@ +# CertificateAuthoritiesCertificateAuthorityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**LogicalName** | Pointer to **NullableString** | | [optional] +**HostName** | Pointer to **NullableString** | | [optional] +**Delegate** | Pointer to **bool** | | [optional] +**DelegateEnrollment** | Pointer to **bool** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] +**UseCAConnector** | Pointer to **bool** | | [optional] +**ConnectorPool** | Pointer to **NullableString** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**Agent** | Pointer to **NullableString** | | [optional] +**Standalone** | Pointer to **bool** | | [optional] +**MonitorThresholds** | Pointer to **bool** | | [optional] +**IssuanceMax** | Pointer to **NullableInt32** | | [optional] +**IssuanceMin** | Pointer to **NullableInt32** | | [optional] +**FailureMax** | Pointer to **NullableInt32** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AllowedEnrollmentTypes** | Pointer to [**CSSCMSCoreEnumsEnrollmentType**](CSSCMSCoreEnumsEnrollmentType.md) | | [optional] +**KeyRetention** | Pointer to [**CSSCMSCoreEnumsKeyRetentionPolicy**](CSSCMSCoreEnumsKeyRetentionPolicy.md) | | [optional] +**KeyRetentionDays** | Pointer to **NullableInt32** | | [optional] +**ExplicitCredentials** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] +**ExplicitUser** | Pointer to **NullableString** | | [optional] +**ExplicitPassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**FullScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**IncrementalScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ThresholdCheck** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**AuthCertificatePassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**AuthCertificate** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**CAType** | Pointer to [**CSSCMSCoreEnumsCertificateAuthorityType**](CSSCMSCoreEnumsCertificateAuthorityType.md) | | [optional] +**EnforceUniqueDN** | Pointer to **bool** | | [optional] +**AllowOneClickRenewals** | Pointer to **bool** | | [optional] +**NewEndEntityOnRenewAndReissue** | Pointer to **bool** | | [optional] +**TokenURL** | Pointer to **NullableString** | | [optional] +**ClientId** | Pointer to **NullableString** | | [optional] +**ClientSecret** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**Scope** | Pointer to **NullableString** | | [optional] +**Audience** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateAuthoritiesCertificateAuthorityRequest + +`func NewCertificateAuthoritiesCertificateAuthorityRequest() *CertificateAuthoritiesCertificateAuthorityRequest` + +NewCertificateAuthoritiesCertificateAuthorityRequest instantiates a new CertificateAuthoritiesCertificateAuthorityRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCertificateAuthorityRequestWithDefaults + +`func NewCertificateAuthoritiesCertificateAuthorityRequestWithDefaults() *CertificateAuthoritiesCertificateAuthorityRequest` + +NewCertificateAuthoritiesCertificateAuthorityRequestWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### SetLogicalNameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetLogicalNameNil(b bool)` + + SetLogicalNameNil sets the value for LogicalName to be an explicit nil + +### UnsetLogicalName +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetLogicalName()` + +UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +### GetHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### SetHostNameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetHostNameNil(b bool)` + + SetHostNameNil sets the value for HostName to be an explicit nil + +### UnsetHostName +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetHostName()` + +UnsetHostName ensures that no value is present for HostName, not even an explicit nil +### GetDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegate() bool` + +GetDelegate returns the Delegate field if non-nil, zero value otherwise. + +### GetDelegateOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateOk() (*bool, bool)` + +GetDelegateOk returns a tuple with the Delegate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetDelegate(v bool)` + +SetDelegate sets Delegate field to given value. + +### HasDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasDelegate() bool` + +HasDelegate returns a boolean if a field has been set. + +### GetDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollment() bool` + +GetDelegateEnrollment returns the DelegateEnrollment field if non-nil, zero value otherwise. + +### GetDelegateEnrollmentOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollmentOk() (*bool, bool)` + +GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetDelegateEnrollment(v bool)` + +SetDelegateEnrollment sets DelegateEnrollment field to given value. + +### HasDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasDelegateEnrollment() bool` + +HasDelegateEnrollment returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +### GetUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseCAConnector() bool` + +GetUseCAConnector returns the UseCAConnector field if non-nil, zero value otherwise. + +### GetUseCAConnectorOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseCAConnectorOk() (*bool, bool)` + +GetUseCAConnectorOk returns a tuple with the UseCAConnector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetUseCAConnector(v bool)` + +SetUseCAConnector sets UseCAConnector field to given value. + +### HasUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasUseCAConnector() bool` + +HasUseCAConnector returns a boolean if a field has been set. + +### GetConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConnectorPool() string` + +GetConnectorPool returns the ConnectorPool field if non-nil, zero value otherwise. + +### GetConnectorPoolOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConnectorPoolOk() (*string, bool)` + +GetConnectorPoolOk returns a tuple with the ConnectorPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConnectorPool(v string)` + +SetConnectorPool sets ConnectorPool field to given value. + +### HasConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasConnectorPool() bool` + +HasConnectorPool returns a boolean if a field has been set. + +### SetConnectorPoolNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConnectorPoolNil(b bool)` + + SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil + +### UnsetConnectorPool +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetConnectorPool()` + +UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +### GetRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### SetAgentNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAgentNil(b bool)` + + SetAgentNil sets the value for Agent to be an explicit nil + +### UnsetAgent +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetAgent()` + +UnsetAgent ensures that no value is present for Agent, not even an explicit nil +### GetStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetStandalone() bool` + +GetStandalone returns the Standalone field if non-nil, zero value otherwise. + +### GetStandaloneOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetStandaloneOk() (*bool, bool)` + +GetStandaloneOk returns a tuple with the Standalone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetStandalone(v bool)` + +SetStandalone sets Standalone field to given value. + +### HasStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasStandalone() bool` + +HasStandalone returns a boolean if a field has been set. + +### GetMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholds() bool` + +GetMonitorThresholds returns the MonitorThresholds field if non-nil, zero value otherwise. + +### GetMonitorThresholdsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholdsOk() (*bool, bool)` + +GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetMonitorThresholds(v bool)` + +SetMonitorThresholds sets MonitorThresholds field to given value. + +### HasMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasMonitorThresholds() bool` + +HasMonitorThresholds returns a boolean if a field has been set. + +### GetIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMax() int32` + +GetIssuanceMax returns the IssuanceMax field if non-nil, zero value otherwise. + +### GetIssuanceMaxOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMaxOk() (*int32, bool)` + +GetIssuanceMaxOk returns a tuple with the IssuanceMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMax(v int32)` + +SetIssuanceMax sets IssuanceMax field to given value. + +### HasIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMax() bool` + +HasIssuanceMax returns a boolean if a field has been set. + +### SetIssuanceMaxNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMaxNil(b bool)` + + SetIssuanceMaxNil sets the value for IssuanceMax to be an explicit nil + +### UnsetIssuanceMax +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetIssuanceMax()` + +UnsetIssuanceMax ensures that no value is present for IssuanceMax, not even an explicit nil +### GetIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMin() int32` + +GetIssuanceMin returns the IssuanceMin field if non-nil, zero value otherwise. + +### GetIssuanceMinOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMinOk() (*int32, bool)` + +GetIssuanceMinOk returns a tuple with the IssuanceMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMin(v int32)` + +SetIssuanceMin sets IssuanceMin field to given value. + +### HasIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMin() bool` + +HasIssuanceMin returns a boolean if a field has been set. + +### SetIssuanceMinNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMinNil(b bool)` + + SetIssuanceMinNil sets the value for IssuanceMin to be an explicit nil + +### UnsetIssuanceMin +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetIssuanceMin()` + +UnsetIssuanceMin ensures that no value is present for IssuanceMin, not even an explicit nil +### GetFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFailureMax() int32` + +GetFailureMax returns the FailureMax field if non-nil, zero value otherwise. + +### GetFailureMaxOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFailureMaxOk() (*int32, bool)` + +GetFailureMaxOk returns a tuple with the FailureMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFailureMax(v int32)` + +SetFailureMax sets FailureMax field to given value. + +### HasFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasFailureMax() bool` + +HasFailureMax returns a boolean if a field has been set. + +### SetFailureMaxNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFailureMaxNil(b bool)` + + SetFailureMaxNil sets the value for FailureMax to be an explicit nil + +### UnsetFailureMax +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetFailureMax()` + +UnsetFailureMax ensures that no value is present for FailureMax, not even an explicit nil +### GetRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### SetKeyRetentionDaysNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDaysNil(b bool)` + + SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil + +### UnsetKeyRetentionDays +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetKeyRetentionDays()` + +UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +### GetExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentials() bool` + +GetExplicitCredentials returns the ExplicitCredentials field if non-nil, zero value otherwise. + +### GetExplicitCredentialsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentialsOk() (*bool, bool)` + +GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitCredentials(v bool)` + +SetExplicitCredentials sets ExplicitCredentials field to given value. + +### HasExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitCredentials() bool` + +HasExplicitCredentials returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + +### GetExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUser() string` + +GetExplicitUser returns the ExplicitUser field if non-nil, zero value otherwise. + +### GetExplicitUserOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUserOk() (*string, bool)` + +GetExplicitUserOk returns a tuple with the ExplicitUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUser(v string)` + +SetExplicitUser sets ExplicitUser field to given value. + +### HasExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitUser() bool` + +HasExplicitUser returns a boolean if a field has been set. + +### SetExplicitUserNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUserNil(b bool)` + + SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil + +### UnsetExplicitUser +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetExplicitUser()` + +UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +### GetExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetExplicitPassword returns the ExplicitPassword field if non-nil, zero value otherwise. + +### GetExplicitPasswordOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetExplicitPasswordOk returns a tuple with the ExplicitPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetExplicitPassword sets ExplicitPassword field to given value. + +### HasExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitPassword() bool` + +HasExplicitPassword returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### SetAllowedRequestersNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowedRequestersNil(b bool)` + + SetAllowedRequestersNil sets the value for AllowedRequesters to be an explicit nil + +### UnsetAllowedRequesters +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetAllowedRequesters()` + +UnsetAllowedRequesters ensures that no value is present for AllowedRequesters, not even an explicit nil +### GetFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetFullScan returns the FullScan field if non-nil, zero value otherwise. + +### GetFullScanOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetFullScanOk returns a tuple with the FullScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetFullScan sets FullScan field to given value. + +### HasFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasFullScan() bool` + +HasFullScan returns a boolean if a field has been set. + +### GetIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetIncrementalScan returns the IncrementalScan field if non-nil, zero value otherwise. + +### GetIncrementalScanOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetIncrementalScanOk returns a tuple with the IncrementalScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetIncrementalScan sets IncrementalScan field to given value. + +### HasIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIncrementalScan() bool` + +HasIncrementalScan returns a boolean if a field has been set. + +### GetThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetThresholdCheck returns the ThresholdCheck field if non-nil, zero value otherwise. + +### GetThresholdCheckOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetThresholdCheckOk returns a tuple with the ThresholdCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetThresholdCheck sets ThresholdCheck field to given value. + +### HasThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasThresholdCheck() bool` + +HasThresholdCheck returns a boolean if a field has been set. + +### GetAuthCertificatePassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetAuthCertificatePassword returns the AuthCertificatePassword field if non-nil, zero value otherwise. + +### GetAuthCertificatePasswordOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificatePassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificatePassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetAuthCertificatePassword sets AuthCertificatePassword field to given value. + +### HasAuthCertificatePassword + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificatePassword() bool` + +HasAuthCertificatePassword returns a boolean if a field has been set. + +### GetAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificate() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetAuthCertificate returns the AuthCertificate field if non-nil, zero value otherwise. + +### GetAuthCertificateOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificateOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetAuthCertificateOk returns a tuple with the AuthCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificate(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetAuthCertificate sets AuthCertificate field to given value. + +### HasAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificate() bool` + +HasAuthCertificate returns a boolean if a field has been set. + +### GetCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + +### GetEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDN() bool` + +GetEnforceUniqueDN returns the EnforceUniqueDN field if non-nil, zero value otherwise. + +### GetEnforceUniqueDNOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDNOk() (*bool, bool)` + +GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetEnforceUniqueDN(v bool)` + +SetEnforceUniqueDN sets EnforceUniqueDN field to given value. + +### HasEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasEnforceUniqueDN() bool` + +HasEnforceUniqueDN returns a boolean if a field has been set. + +### GetAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowOneClickRenewals() bool` + +GetAllowOneClickRenewals returns the AllowOneClickRenewals field if non-nil, zero value otherwise. + +### GetAllowOneClickRenewalsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowOneClickRenewalsOk() (*bool, bool)` + +GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowOneClickRenewals(v bool)` + +SetAllowOneClickRenewals sets AllowOneClickRenewals field to given value. + +### HasAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowOneClickRenewals() bool` + +HasAllowOneClickRenewals returns a boolean if a field has been set. + +### GetNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetNewEndEntityOnRenewAndReissue() bool` + +GetNewEndEntityOnRenewAndReissue returns the NewEndEntityOnRenewAndReissue field if non-nil, zero value otherwise. + +### GetNewEndEntityOnRenewAndReissueOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetNewEndEntityOnRenewAndReissueOk() (*bool, bool)` + +GetNewEndEntityOnRenewAndReissueOk returns a tuple with the NewEndEntityOnRenewAndReissue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetNewEndEntityOnRenewAndReissue(v bool)` + +SetNewEndEntityOnRenewAndReissue sets NewEndEntityOnRenewAndReissue field to given value. + +### HasNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasNewEndEntityOnRenewAndReissue() bool` + +HasNewEndEntityOnRenewAndReissue returns a boolean if a field has been set. + +### GetTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetTokenURL() string` + +GetTokenURL returns the TokenURL field if non-nil, zero value otherwise. + +### GetTokenURLOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetTokenURLOk() (*string, bool)` + +GetTokenURLOk returns a tuple with the TokenURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetTokenURL(v string)` + +SetTokenURL sets TokenURL field to given value. + +### HasTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasTokenURL() bool` + +HasTokenURL returns a boolean if a field has been set. + +### SetTokenURLNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetTokenURLNil(b bool)` + + SetTokenURLNil sets the value for TokenURL to be an explicit nil + +### UnsetTokenURL +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetTokenURL()` + +UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +### GetClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### SetClientIdNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetScope + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### SetAudienceNil + +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAudienceNil(b bool)` + + SetAudienceNil sets the value for Audience to be an explicit nil + +### UnsetAudience +`func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetAudience()` + +UnsetAudience ensures that no value is present for Audience, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityResponse.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityResponse.md new file mode 100644 index 0000000..24446a1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityResponse.md @@ -0,0 +1,1384 @@ +# CertificateAuthoritiesCertificateAuthorityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**LogicalName** | Pointer to **NullableString** | | [optional] +**HostName** | Pointer to **NullableString** | | [optional] +**Delegate** | Pointer to **bool** | | [optional] +**UseCAConnector** | Pointer to **bool** | | [optional] +**ConnectorPool** | Pointer to **NullableString** | | [optional] +**DelegateEnrollment** | Pointer to **bool** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**Agent** | Pointer to **NullableString** | | [optional] +**AgentName** | Pointer to **NullableString** | | [optional] +**AgentUsername** | Pointer to **NullableString** | | [optional] +**Standalone** | Pointer to **bool** | | [optional] +**MonitorThresholds** | Pointer to **bool** | | [optional] +**IssuanceMax** | Pointer to **NullableInt32** | | [optional] +**IssuanceMin** | Pointer to **NullableInt32** | | [optional] +**DenialMax** | Pointer to **NullableInt32** | | [optional] +**FailureMax** | Pointer to **NullableInt32** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AllowedEnrollmentTypes** | Pointer to [**CSSCMSCoreEnumsEnrollmentType**](CSSCMSCoreEnumsEnrollmentType.md) | | [optional] +**KeyRetention** | Pointer to [**CSSCMSCoreEnumsKeyRetentionPolicy**](CSSCMSCoreEnumsKeyRetentionPolicy.md) | | [optional] +**KeyRetentionDays** | Pointer to **NullableInt32** | | [optional] +**ExplicitCredentials** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] +**ExplicitUser** | Pointer to **NullableString** | | [optional] +**ExplicitPassword** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**FullScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**IncrementalScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ThresholdCheck** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CAType** | Pointer to [**CSSCMSCoreEnumsCertificateAuthorityType**](CSSCMSCoreEnumsCertificateAuthorityType.md) | | [optional] +**AuthCertificate** | Pointer to [**CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate**](CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md) | | [optional] +**EnforceUniqueDN** | Pointer to **bool** | | [optional] +**AllowOneClickRenewals** | Pointer to **bool** | | [optional] +**NewEndEntityOnRenewAndReissue** | Pointer to **bool** | | [optional] +**TokenURL** | Pointer to **NullableString** | | [optional] +**ClientId** | Pointer to **NullableString** | | [optional] +**Scope** | Pointer to **NullableString** | | [optional] +**Audience** | Pointer to **NullableString** | | [optional] +**ClientSecret** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**LastScan** | Pointer to **NullableString** | | [optional] [readonly] + +## Methods + +### NewCertificateAuthoritiesCertificateAuthorityResponse + +`func NewCertificateAuthoritiesCertificateAuthorityResponse() *CertificateAuthoritiesCertificateAuthorityResponse` + +NewCertificateAuthoritiesCertificateAuthorityResponse instantiates a new CertificateAuthoritiesCertificateAuthorityResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCertificateAuthorityResponseWithDefaults + +`func NewCertificateAuthoritiesCertificateAuthorityResponseWithDefaults() *CertificateAuthoritiesCertificateAuthorityResponse` + +NewCertificateAuthoritiesCertificateAuthorityResponseWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### SetLogicalNameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLogicalNameNil(b bool)` + + SetLogicalNameNil sets the value for LogicalName to be an explicit nil + +### UnsetLogicalName +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetLogicalName()` + +UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +### GetHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### SetHostNameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetHostNameNil(b bool)` + + SetHostNameNil sets the value for HostName to be an explicit nil + +### UnsetHostName +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetHostName()` + +UnsetHostName ensures that no value is present for HostName, not even an explicit nil +### GetDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegate() bool` + +GetDelegate returns the Delegate field if non-nil, zero value otherwise. + +### GetDelegateOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateOk() (*bool, bool)` + +GetDelegateOk returns a tuple with the Delegate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDelegate(v bool)` + +SetDelegate sets Delegate field to given value. + +### HasDelegate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDelegate() bool` + +HasDelegate returns a boolean if a field has been set. + +### GetUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseCAConnector() bool` + +GetUseCAConnector returns the UseCAConnector field if non-nil, zero value otherwise. + +### GetUseCAConnectorOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseCAConnectorOk() (*bool, bool)` + +GetUseCAConnectorOk returns a tuple with the UseCAConnector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetUseCAConnector(v bool)` + +SetUseCAConnector sets UseCAConnector field to given value. + +### HasUseCAConnector + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasUseCAConnector() bool` + +HasUseCAConnector returns a boolean if a field has been set. + +### GetConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConnectorPool() string` + +GetConnectorPool returns the ConnectorPool field if non-nil, zero value otherwise. + +### GetConnectorPoolOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConnectorPoolOk() (*string, bool)` + +GetConnectorPoolOk returns a tuple with the ConnectorPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConnectorPool(v string)` + +SetConnectorPool sets ConnectorPool field to given value. + +### HasConnectorPool + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasConnectorPool() bool` + +HasConnectorPool returns a boolean if a field has been set. + +### SetConnectorPoolNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConnectorPoolNil(b bool)` + + SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil + +### UnsetConnectorPool +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetConnectorPool()` + +UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +### GetDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollment() bool` + +GetDelegateEnrollment returns the DelegateEnrollment field if non-nil, zero value otherwise. + +### GetDelegateEnrollmentOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollmentOk() (*bool, bool)` + +GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDelegateEnrollment(v bool)` + +SetDelegateEnrollment sets DelegateEnrollment field to given value. + +### HasDelegateEnrollment + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDelegateEnrollment() bool` + +HasDelegateEnrollment returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +### GetRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### SetAgentNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentNil(b bool)` + + SetAgentNil sets the value for Agent to be an explicit nil + +### UnsetAgent +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgent()` + +UnsetAgent ensures that no value is present for Agent, not even an explicit nil +### GetAgentName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentName() string` + +GetAgentName returns the AgentName field if non-nil, zero value otherwise. + +### GetAgentNameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentNameOk() (*string, bool)` + +GetAgentNameOk returns a tuple with the AgentName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentName(v string)` + +SetAgentName sets AgentName field to given value. + +### HasAgentName + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgentName() bool` + +HasAgentName returns a boolean if a field has been set. + +### SetAgentNameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentNameNil(b bool)` + + SetAgentNameNil sets the value for AgentName to be an explicit nil + +### UnsetAgentName +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgentName()` + +UnsetAgentName ensures that no value is present for AgentName, not even an explicit nil +### GetAgentUsername + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentUsername() string` + +GetAgentUsername returns the AgentUsername field if non-nil, zero value otherwise. + +### GetAgentUsernameOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentUsernameOk() (*string, bool)` + +GetAgentUsernameOk returns a tuple with the AgentUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentUsername + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentUsername(v string)` + +SetAgentUsername sets AgentUsername field to given value. + +### HasAgentUsername + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgentUsername() bool` + +HasAgentUsername returns a boolean if a field has been set. + +### SetAgentUsernameNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentUsernameNil(b bool)` + + SetAgentUsernameNil sets the value for AgentUsername to be an explicit nil + +### UnsetAgentUsername +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgentUsername()` + +UnsetAgentUsername ensures that no value is present for AgentUsername, not even an explicit nil +### GetStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetStandalone() bool` + +GetStandalone returns the Standalone field if non-nil, zero value otherwise. + +### GetStandaloneOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetStandaloneOk() (*bool, bool)` + +GetStandaloneOk returns a tuple with the Standalone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetStandalone(v bool)` + +SetStandalone sets Standalone field to given value. + +### HasStandalone + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasStandalone() bool` + +HasStandalone returns a boolean if a field has been set. + +### GetMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholds() bool` + +GetMonitorThresholds returns the MonitorThresholds field if non-nil, zero value otherwise. + +### GetMonitorThresholdsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholdsOk() (*bool, bool)` + +GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetMonitorThresholds(v bool)` + +SetMonitorThresholds sets MonitorThresholds field to given value. + +### HasMonitorThresholds + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasMonitorThresholds() bool` + +HasMonitorThresholds returns a boolean if a field has been set. + +### GetIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMax() int32` + +GetIssuanceMax returns the IssuanceMax field if non-nil, zero value otherwise. + +### GetIssuanceMaxOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMaxOk() (*int32, bool)` + +GetIssuanceMaxOk returns a tuple with the IssuanceMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMax(v int32)` + +SetIssuanceMax sets IssuanceMax field to given value. + +### HasIssuanceMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMax() bool` + +HasIssuanceMax returns a boolean if a field has been set. + +### SetIssuanceMaxNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMaxNil(b bool)` + + SetIssuanceMaxNil sets the value for IssuanceMax to be an explicit nil + +### UnsetIssuanceMax +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetIssuanceMax()` + +UnsetIssuanceMax ensures that no value is present for IssuanceMax, not even an explicit nil +### GetIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMin() int32` + +GetIssuanceMin returns the IssuanceMin field if non-nil, zero value otherwise. + +### GetIssuanceMinOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMinOk() (*int32, bool)` + +GetIssuanceMinOk returns a tuple with the IssuanceMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMin(v int32)` + +SetIssuanceMin sets IssuanceMin field to given value. + +### HasIssuanceMin + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMin() bool` + +HasIssuanceMin returns a boolean if a field has been set. + +### SetIssuanceMinNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMinNil(b bool)` + + SetIssuanceMinNil sets the value for IssuanceMin to be an explicit nil + +### UnsetIssuanceMin +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetIssuanceMin()` + +UnsetIssuanceMin ensures that no value is present for IssuanceMin, not even an explicit nil +### GetDenialMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDenialMax() int32` + +GetDenialMax returns the DenialMax field if non-nil, zero value otherwise. + +### GetDenialMaxOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDenialMaxOk() (*int32, bool)` + +GetDenialMaxOk returns a tuple with the DenialMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenialMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDenialMax(v int32)` + +SetDenialMax sets DenialMax field to given value. + +### HasDenialMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDenialMax() bool` + +HasDenialMax returns a boolean if a field has been set. + +### SetDenialMaxNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDenialMaxNil(b bool)` + + SetDenialMaxNil sets the value for DenialMax to be an explicit nil + +### UnsetDenialMax +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetDenialMax()` + +UnsetDenialMax ensures that no value is present for DenialMax, not even an explicit nil +### GetFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFailureMax() int32` + +GetFailureMax returns the FailureMax field if non-nil, zero value otherwise. + +### GetFailureMaxOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFailureMaxOk() (*int32, bool)` + +GetFailureMaxOk returns a tuple with the FailureMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFailureMax(v int32)` + +SetFailureMax sets FailureMax field to given value. + +### HasFailureMax + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasFailureMax() bool` + +HasFailureMax returns a boolean if a field has been set. + +### SetFailureMaxNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFailureMaxNil(b bool)` + + SetFailureMaxNil sets the value for FailureMax to be an explicit nil + +### UnsetFailureMax +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetFailureMax()` + +UnsetFailureMax ensures that no value is present for FailureMax, not even an explicit nil +### GetRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### SetKeyRetentionDaysNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDaysNil(b bool)` + + SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil + +### UnsetKeyRetentionDays +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetKeyRetentionDays()` + +UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +### GetExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentials() bool` + +GetExplicitCredentials returns the ExplicitCredentials field if non-nil, zero value otherwise. + +### GetExplicitCredentialsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentialsOk() (*bool, bool)` + +GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitCredentials(v bool)` + +SetExplicitCredentials sets ExplicitCredentials field to given value. + +### HasExplicitCredentials + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitCredentials() bool` + +HasExplicitCredentials returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + +### GetExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUser() string` + +GetExplicitUser returns the ExplicitUser field if non-nil, zero value otherwise. + +### GetExplicitUserOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUserOk() (*string, bool)` + +GetExplicitUserOk returns a tuple with the ExplicitUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUser(v string)` + +SetExplicitUser sets ExplicitUser field to given value. + +### HasExplicitUser + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitUser() bool` + +HasExplicitUser returns a boolean if a field has been set. + +### SetExplicitUserNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUserNil(b bool)` + + SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil + +### UnsetExplicitUser +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetExplicitUser()` + +UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +### GetExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetExplicitPassword returns the ExplicitPassword field if non-nil, zero value otherwise. + +### GetExplicitPasswordOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetExplicitPasswordOk returns a tuple with the ExplicitPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetExplicitPassword sets ExplicitPassword field to given value. + +### HasExplicitPassword + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitPassword() bool` + +HasExplicitPassword returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### SetAllowedRequestersNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowedRequestersNil(b bool)` + + SetAllowedRequestersNil sets the value for AllowedRequesters to be an explicit nil + +### UnsetAllowedRequesters +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAllowedRequesters()` + +UnsetAllowedRequesters ensures that no value is present for AllowedRequesters, not even an explicit nil +### GetFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetFullScan returns the FullScan field if non-nil, zero value otherwise. + +### GetFullScanOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetFullScanOk returns a tuple with the FullScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetFullScan sets FullScan field to given value. + +### HasFullScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasFullScan() bool` + +HasFullScan returns a boolean if a field has been set. + +### GetIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetIncrementalScan returns the IncrementalScan field if non-nil, zero value otherwise. + +### GetIncrementalScanOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetIncrementalScanOk returns a tuple with the IncrementalScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetIncrementalScan sets IncrementalScan field to given value. + +### HasIncrementalScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIncrementalScan() bool` + +HasIncrementalScan returns a boolean if a field has been set. + +### GetThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetThresholdCheck returns the ThresholdCheck field if non-nil, zero value otherwise. + +### GetThresholdCheckOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetThresholdCheckOk returns a tuple with the ThresholdCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetThresholdCheck sets ThresholdCheck field to given value. + +### HasThresholdCheck + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasThresholdCheck() bool` + +HasThresholdCheck returns a boolean if a field has been set. + +### GetCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + +### GetAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificate() CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +GetAuthCertificate returns the AuthCertificate field if non-nil, zero value otherwise. + +### GetAuthCertificateOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificateOk() (*CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate, bool)` + +GetAuthCertificateOk returns a tuple with the AuthCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAuthCertificate(v CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate)` + +SetAuthCertificate sets AuthCertificate field to given value. + +### HasAuthCertificate + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAuthCertificate() bool` + +HasAuthCertificate returns a boolean if a field has been set. + +### GetEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDN() bool` + +GetEnforceUniqueDN returns the EnforceUniqueDN field if non-nil, zero value otherwise. + +### GetEnforceUniqueDNOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDNOk() (*bool, bool)` + +GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetEnforceUniqueDN(v bool)` + +SetEnforceUniqueDN sets EnforceUniqueDN field to given value. + +### HasEnforceUniqueDN + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasEnforceUniqueDN() bool` + +HasEnforceUniqueDN returns a boolean if a field has been set. + +### GetAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowOneClickRenewals() bool` + +GetAllowOneClickRenewals returns the AllowOneClickRenewals field if non-nil, zero value otherwise. + +### GetAllowOneClickRenewalsOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowOneClickRenewalsOk() (*bool, bool)` + +GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowOneClickRenewals(v bool)` + +SetAllowOneClickRenewals sets AllowOneClickRenewals field to given value. + +### HasAllowOneClickRenewals + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowOneClickRenewals() bool` + +HasAllowOneClickRenewals returns a boolean if a field has been set. + +### GetNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetNewEndEntityOnRenewAndReissue() bool` + +GetNewEndEntityOnRenewAndReissue returns the NewEndEntityOnRenewAndReissue field if non-nil, zero value otherwise. + +### GetNewEndEntityOnRenewAndReissueOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetNewEndEntityOnRenewAndReissueOk() (*bool, bool)` + +GetNewEndEntityOnRenewAndReissueOk returns a tuple with the NewEndEntityOnRenewAndReissue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetNewEndEntityOnRenewAndReissue(v bool)` + +SetNewEndEntityOnRenewAndReissue sets NewEndEntityOnRenewAndReissue field to given value. + +### HasNewEndEntityOnRenewAndReissue + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasNewEndEntityOnRenewAndReissue() bool` + +HasNewEndEntityOnRenewAndReissue returns a boolean if a field has been set. + +### GetTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetTokenURL() string` + +GetTokenURL returns the TokenURL field if non-nil, zero value otherwise. + +### GetTokenURLOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetTokenURLOk() (*string, bool)` + +GetTokenURLOk returns a tuple with the TokenURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetTokenURL(v string)` + +SetTokenURL sets TokenURL field to given value. + +### HasTokenURL + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasTokenURL() bool` + +HasTokenURL returns a boolean if a field has been set. + +### SetTokenURLNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetTokenURLNil(b bool)` + + SetTokenURLNil sets the value for TokenURL to be an explicit nil + +### UnsetTokenURL +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetTokenURL()` + +UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +### GetClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### SetClientIdNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetScope + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### SetAudienceNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAudienceNil(b bool)` + + SetAudienceNil sets the value for Audience to be an explicit nil + +### UnsetAudience +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAudience()` + +UnsetAudience ensures that no value is present for Audience, not even an explicit nil +### GetClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetLastScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLastScan() string` + +GetLastScan returns the LastScan field if non-nil, zero value otherwise. + +### GetLastScanOk + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLastScanOk() (*string, bool)` + +GetLastScanOk returns a tuple with the LastScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLastScan(v string)` + +SetLastScan sets LastScan field to given value. + +### HasLastScan + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasLastScan() bool` + +HasLastScan returns a boolean if a field has been set. + +### SetLastScanNil + +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLastScanNil(b bool)` + + SetLastScanNil sets the value for LastScan to be an explicit nil + +### UnsetLastScan +`func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetLastScan()` + +UnsetLastScan ensures that no value is present for LastScan, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityTestResponse.md b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityTestResponse.md new file mode 100644 index 0000000..0a29859 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthoritiesCertificateAuthorityTestResponse.md @@ -0,0 +1,92 @@ +# CertificateAuthoritiesCertificateAuthorityTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | Whether the test succeeded or failed. | [optional] +**Message** | Pointer to **NullableString** | The message returned by the test. | [optional] + +## Methods + +### NewCertificateAuthoritiesCertificateAuthorityTestResponse + +`func NewCertificateAuthoritiesCertificateAuthorityTestResponse() *CertificateAuthoritiesCertificateAuthorityTestResponse` + +NewCertificateAuthoritiesCertificateAuthorityTestResponse instantiates a new CertificateAuthoritiesCertificateAuthorityTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults + +`func NewCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults() *CertificateAuthoritiesCertificateAuthorityTestResponse` + +NewCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateAuthorityApi.md b/v24/api/keyfactor/v1/docs/CertificateAuthorityApi.md new file mode 100644 index 0000000..02576e7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateAuthorityApi.md @@ -0,0 +1,1690 @@ +# \CertificateAuthorityApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateAuthority**](CertificateAuthorityApi.md#CreateCertificateAuthority) | **POST** /CertificateAuthority | Creates a new CertificateAuthority object +[**CreateCertificateAuthorityAlertRecipientsCAHealthRecipients**](CertificateAuthorityApi.md#CreateCertificateAuthorityAlertRecipientsCAHealthRecipients) | **POST** /CertificateAuthority/AlertRecipients/CAHealthRecipients | Creates CA health monitoring recipients for the provided list of email addresses\" +[**CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients**](CertificateAuthorityApi.md#CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients) | **POST** /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Creates CA threshold alert recipients for the provided list of emails +[**CreateCertificateAuthorityImport**](CertificateAuthorityApi.md#CreateCertificateAuthorityImport) | **POST** /CertificateAuthority/Import | Imports any certificate authorities from the provided configuration tenant DNS +[**CreateCertificateAuthorityPublishCRL**](CertificateAuthorityApi.md#CreateCertificateAuthorityPublishCRL) | **POST** /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request +[**CreateCertificateAuthorityTaskQueueTest**](CertificateAuthorityApi.md#CreateCertificateAuthorityTaskQueueTest) | **POST** /CertificateAuthority/TaskQueue/Test | Tests the connection info for the TaskQueue Credentials. +[**CreateCertificateAuthorityTest**](CertificateAuthorityApi.md#CreateCertificateAuthorityTest) | **POST** /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. +[**DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](CertificateAuthorityApi.md#DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById) | **DELETE** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Deletes a CA health recipient for the provided ID +[**DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](CertificateAuthorityApi.md#DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById) | **DELETE** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Deletes a CA threshold recipient for the provided ID +[**DeleteCertificateAuthorityById**](CertificateAuthorityApi.md#DeleteCertificateAuthorityById) | **DELETE** /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID +[**GetCertificateAuthority**](CertificateAuthorityApi.md#GetCertificateAuthority) | **GET** /CertificateAuthority | Returns all certificate authorities according to the provided filter +[**GetCertificateAuthorityAlertRecipientsCAHealthRecipients**](CertificateAuthorityApi.md#GetCertificateAuthorityAlertRecipientsCAHealthRecipients) | **GET** /CertificateAuthority/AlertRecipients/CAHealthRecipients | Returns a list of all CA health recipients +[**GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](CertificateAuthorityApi.md#GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById) | **GET** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Returns a CA health recipient for the specified health recipient ID +[**GetCertificateAuthorityAlertRecipientsCAThresholdRecipients**](CertificateAuthorityApi.md#GetCertificateAuthorityAlertRecipientsCAThresholdRecipients) | **GET** /CertificateAuthority/AlertRecipients/CAThresholdRecipients | Returns a list of all CA threshold recipients +[**GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](CertificateAuthorityApi.md#GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById) | **GET** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Returns a CA threshold recipient for the specified threshold alert recipient ID +[**GetCertificateAuthorityAvailableForests**](CertificateAuthorityApi.md#GetCertificateAuthorityAvailableForests) | **GET** /CertificateAuthority/AvailableForests | Returns a list of available forests that are in active directory +[**GetCertificateAuthorityById**](CertificateAuthorityApi.md#GetCertificateAuthorityById) | **GET** /CertificateAuthority/{id} | Returns details for a single CA, specified by ID +[**GetCertificateAuthorityHealthMonitoringSchedule**](CertificateAuthorityApi.md#GetCertificateAuthorityHealthMonitoringSchedule) | **GET** /CertificateAuthority/HealthMonitoring/Schedule | Retrieves the execution schedule for the CA health monitoring job +[**GetCertificateAuthoritySourceCount**](CertificateAuthorityApi.md#GetCertificateAuthoritySourceCount) | **GET** /CertificateAuthority/SourceCount | Returns a count of certificate authorities with sync enabled +[**GetCertificateAuthorityTaskQueue**](CertificateAuthorityApi.md#GetCertificateAuthorityTaskQueue) | **GET** /CertificateAuthority/TaskQueue | Retrieves credentials and connection information +[**UpdateCertificateAuthority**](CertificateAuthorityApi.md#UpdateCertificateAuthority) | **PUT** /CertificateAuthority | Updates a CertificateAuthority object +[**UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById**](CertificateAuthorityApi.md#UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById) | **PUT** /CertificateAuthority/AlertRecipients/CAHealthRecipients/{id} | Updates a CA health alert recipient for the provided request object +[**UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById**](CertificateAuthorityApi.md#UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById) | **PUT** /CertificateAuthority/AlertRecipients/CAThresholdRecipients/{id} | Updates a CA threshold alert recipient for the provided request object +[**UpdateCertificateAuthorityTaskQueue**](CertificateAuthorityApi.md#UpdateCertificateAuthorityTaskQueue) | **PUT** /CertificateAuthority/TaskQueue | Updates credentials and connection information + + + +## CreateCertificateAuthority + +> CertificateAuthoritiesCertificateAuthorityResponse NewCreateCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute() + +Creates a new CertificateAuthority object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + forceSave := true // bool | (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCertificateAuthorityRequest := *openapiclient.NewCertificateAuthoritiesCertificateAuthorityRequest() // CertificateAuthoritiesCertificateAuthorityRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthority``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthority`: CertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthority`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **forceSave** | **bool** | | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCertificateAuthorityRequest** | [**CertificateAuthoritiesCertificateAuthorityRequest**](CertificateAuthoritiesCertificateAuthorityRequest.md) | | + +### Return type + +[**CertificateAuthoritiesCertificateAuthorityResponse**](CertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityAlertRecipientsCAHealthRecipients + +> []CertificateAuthoritiesCAAlertRecipientResponse NewCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute() + +Creates CA health monitoring recipients for the provided list of email addresses\" + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAAlertRecipientCreateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientCreateRequest([]string{"Emails_example"}) // CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the health monitoring recipient(s) to be created (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAHealthRecipients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthorityAlertRecipientsCAHealthRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAHealthRecipients`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAAlertRecipientCreateRequest** | [**CertificateAuthoritiesCAAlertRecipientCreateRequest**](CertificateAuthoritiesCAAlertRecipientCreateRequest.md) | The request object holding the email(s) of the health monitoring recipient(s) to be created | + +### Return type + +[**[]CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients + +> []CertificateAuthoritiesCAAlertRecipientResponse NewCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute() + +Creates CA threshold alert recipients for the provided list of emails + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAAlertRecipientCreateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientCreateRequest([]string{"Emails_example"}) // CertificateAuthoritiesCAAlertRecipientCreateRequest | The request object holding the email(s) of the alert recipient(s) to be created (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientCreateRequest(certificateAuthoritiesCAAlertRecipientCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityAlertRecipientsCAThresholdRecipients`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAAlertRecipientCreateRequest** | [**CertificateAuthoritiesCAAlertRecipientCreateRequest**](CertificateAuthoritiesCAAlertRecipientCreateRequest.md) | The request object holding the email(s) of the alert recipient(s) to be created | + +### Return type + +[**[]CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityImport + +> NewCreateCertificateAuthorityImportRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Dns(dns).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Imports any certificate authorities from the provided configuration tenant DNS + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + dns := "dns_example" // string | The DNS of the configuration tenant from which to import certificate authorities (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityImportRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Dns(dns).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityImportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **dns** | **string** | The DNS of the configuration tenant from which to import certificate authorities | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityPublishCRL + +> NewCreateCertificateAuthorityPublishCRLRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCRLRequestModel(cSSCMSDataModelModelsCRLRequestModel).Execute() + +Publishes a CRL according to the provided request + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCRLRequestModel := *openapiclient.NewCSSCMSDataModelModelsCRLRequestModel("CertificateAuthorityLogicalName_example") // CSSCMSDataModelModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityPublishCRLRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCRLRequestModel(cSSCMSDataModelModelsCRLRequestModel).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityPublishCRL``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityPublishCRLRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCRLRequestModel** | [**CSSCMSDataModelModelsCRLRequestModel**](CSSCMSDataModelModelsCRLRequestModel.md) | Host and logical name of the CA for which the CRL should be published | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityTaskQueueTest + +> CertificateAuthoritiesCAJobQueueTestResponse NewCreateCertificateAuthorityTaskQueueTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute() + +Tests the connection info for the TaskQueue Credentials. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + rabbitMQJobQueueRequest := *openapiclient.NewRabbitMQJobQueueRequest() // RabbitMQJobQueueRequest | The TaskQueue Credentials being tested. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityTaskQueueTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityTaskQueueTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthorityTaskQueueTest`: CertificateAuthoritiesCAJobQueueTestResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityTaskQueueTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityTaskQueueTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **rabbitMQJobQueueRequest** | [**RabbitMQJobQueueRequest**](RabbitMQJobQueueRequest.md) | The TaskQueue Credentials being tested. | + +### Return type + +[**CertificateAuthoritiesCAJobQueueTestResponse**](CertificateAuthoritiesCAJobQueueTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateAuthorityTest + +> CertificateAuthoritiesCertificateAuthorityTestResponse NewCreateCertificateAuthorityTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest).Execute() + +Validates the connection info for the CA provided by the model. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest := *openapiclient.NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest() // CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest | The CA being tested. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewCreateCertificateAuthorityTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CreateCertificateAuthorityTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateAuthorityTest`: CertificateAuthoritiesCertificateAuthorityTestResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CreateCertificateAuthorityTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateAuthorityTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest** | [**CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest**](CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest.md) | The CA being tested. | + +### Return type + +[**CertificateAuthoritiesCertificateAuthorityTestResponse**](CertificateAuthoritiesCertificateAuthorityTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById + +> NewDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CA health recipient for the provided ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the health monitoring recipient to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the health monitoring recipient to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById + +> NewDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CA threshold recipient for the provided ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the threshold alert recipient to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the threshold alert recipient to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateAuthorityById + +> NewDeleteCertificateAuthorityByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CertificateAuthority from the system, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewDeleteCertificateAuthorityByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.DeleteCertificateAuthorityById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateAuthorityByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthority + +> []CertificateAuthoritiesCertificateAuthorityResponse NewGetCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate authorities according to the provided filter + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthority``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthority`: []CertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthority`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateAuthoritiesCertificateAuthorityResponse**](CertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityAlertRecipientsCAHealthRecipients + +> []CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of all CA health recipients + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityAlertRecipientsCAHealthRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipients`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById + +> CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a CA health recipient for the specified health recipient ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the health monitoring recipient to retrieve + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the health monitoring recipient to retrieve | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityAlertRecipientsCAThresholdRecipients + +> []CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of all CA threshold recipients + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityAlertRecipientsCAThresholdRecipients`: []CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipients`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById + +> CertificateAuthoritiesCAAlertRecipientResponse NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a CA threshold recipient for the specified threshold alert recipient ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the threshold alert recipient to retrieve + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the threshold alert recipient to retrieve | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityAvailableForests + +> []string NewGetCertificateAuthorityAvailableForestsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of available forests that are in active directory + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityAvailableForestsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityAvailableForests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityAvailableForests`: []string + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityAvailableForests`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityAvailableForestsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityById + +> CertificateAuthoritiesCertificateAuthorityResponse NewGetCertificateAuthorityByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns details for a single CA, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityById`: CertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateAuthoritiesCertificateAuthorityResponse**](CertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityHealthMonitoringSchedule + +> SchedulingScheduledTaskResponse NewGetCertificateAuthorityHealthMonitoringScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves the execution schedule for the CA health monitoring job + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityHealthMonitoringScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityHealthMonitoringSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityHealthMonitoringSchedule`: SchedulingScheduledTaskResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityHealthMonitoringSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityHealthMonitoringScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SchedulingScheduledTaskResponse**](SchedulingScheduledTaskResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthoritySourceCount + +> int32 NewGetCertificateAuthoritySourceCountRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a count of certificate authorities with sync enabled + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthoritySourceCountRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthoritySourceCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthoritySourceCount`: int32 + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthoritySourceCount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthoritySourceCountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**int32** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateAuthorityTaskQueue + +> RabbitMQJobQueueResponse NewGetCertificateAuthorityTaskQueueRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves credentials and connection information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewGetCertificateAuthorityTaskQueueRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.GetCertificateAuthorityTaskQueue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateAuthorityTaskQueue`: RabbitMQJobQueueResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.GetCertificateAuthorityTaskQueue`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateAuthorityTaskQueueRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**RabbitMQJobQueueResponse**](RabbitMQJobQueueResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateAuthority + +> CertificateAuthoritiesCertificateAuthorityResponse NewUpdateCertificateAuthorityRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute() + +Updates a CertificateAuthority object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + forceSave := true // bool | (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCertificateAuthorityRequest := *openapiclient.NewCertificateAuthoritiesCertificateAuthorityRequest() // CertificateAuthoritiesCertificateAuthorityRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCertificateAuthorityRequest(certificateAuthoritiesCertificateAuthorityRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthority``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateAuthority`: CertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthority`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **forceSave** | **bool** | | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCertificateAuthorityRequest** | [**CertificateAuthoritiesCertificateAuthorityRequest**](CertificateAuthoritiesCertificateAuthorityRequest.md) | | + +### Return type + +[**CertificateAuthoritiesCertificateAuthorityResponse**](CertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById + +> CertificateAuthoritiesCAAlertRecipientResponse NewUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute() + +Updates a CA health alert recipient for the provided request object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the alert recipient to be updated + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAAlertRecipientUpdateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientUpdateRequest("Email_example") // CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the ID and Email of the health monitoring recipient to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the alert recipient to be updated | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityAlertRecipientsCAHealthRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAAlertRecipientUpdateRequest** | [**CertificateAuthoritiesCAAlertRecipientUpdateRequest**](CertificateAuthoritiesCAAlertRecipientUpdateRequest.md) | The request object holding the ID and Email of the health monitoring recipient to be updated | + +### Return type + +[**CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById + +> CertificateAuthoritiesCAAlertRecipientResponse NewUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute() + +Updates a CA threshold alert recipient for the provided request object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the alert recipient to be updated. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateAuthoritiesCAAlertRecipientUpdateRequest := *openapiclient.NewCertificateAuthoritiesCAAlertRecipientUpdateRequest("Email_example") // CertificateAuthoritiesCAAlertRecipientUpdateRequest | The request object holding the Email of the alert recipient to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateAuthoritiesCAAlertRecipientUpdateRequest(certificateAuthoritiesCAAlertRecipientUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: CertificateAuthoritiesCAAlertRecipientResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the alert recipient to be updated. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityAlertRecipientsCAThresholdRecipientsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateAuthoritiesCAAlertRecipientUpdateRequest** | [**CertificateAuthoritiesCAAlertRecipientUpdateRequest**](CertificateAuthoritiesCAAlertRecipientUpdateRequest.md) | The request object holding the Email of the alert recipient to be updated | + +### Return type + +[**CertificateAuthoritiesCAAlertRecipientResponse**](CertificateAuthoritiesCAAlertRecipientResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateAuthorityTaskQueue + +> RabbitMQJobQueueResponse NewUpdateCertificateAuthorityTaskQueueRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute() + +Updates credentials and connection information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + rabbitMQJobQueueRequest := *openapiclient.NewRabbitMQJobQueueRequest() // RabbitMQJobQueueRequest | TaskQueue object with the provided information. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.NewUpdateCertificateAuthorityTaskQueueRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RabbitMQJobQueueRequest(rabbitMQJobQueueRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.UpdateCertificateAuthorityTaskQueue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateAuthorityTaskQueue`: RabbitMQJobQueueResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.UpdateCertificateAuthorityTaskQueue`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateAuthorityTaskQueueRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **rabbitMQJobQueueRequest** | [**RabbitMQJobQueueRequest**](RabbitMQJobQueueRequest.md) | TaskQueue object with the provided information. | + +### Return type + +[**RabbitMQJobQueueResponse**](RabbitMQJobQueueResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionApi.md b/v24/api/keyfactor/v1/docs/CertificateCollectionApi.md new file mode 100644 index 0000000..d80477b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionApi.md @@ -0,0 +1,866 @@ +# \CertificateCollectionApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateCollections**](CertificateCollectionApi.md#CreateCertificateCollections) | **POST** /CertificateCollections | Creates a new certificate collection with the provided properties +[**CreateCertificateCollectionsCopy**](CertificateCollectionApi.md#CreateCertificateCollectionsCopy) | **POST** /CertificateCollections/Copy | Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. +[**DeleteCertificateCollectionsById**](CertificateCollectionApi.md#DeleteCertificateCollectionsById) | **DELETE** /CertificateCollections/{id} | Delete one certificate collection +[**GetCertificateCollections**](CertificateCollectionApi.md#GetCertificateCollections) | **GET** /CertificateCollections | Returns all certificate collections +[**GetCertificateCollectionsById**](CertificateCollectionApi.md#GetCertificateCollectionsById) | **GET** /CertificateCollections/{id} | Returns the certificate collection definition associated with the provided Keyfactor identifier +[**GetCertificateCollectionsCollectionList**](CertificateCollectionApi.md#GetCertificateCollectionsCollectionList) | **GET** /CertificateCollections/CollectionList | Get certificate collection list with duplication field name +[**GetCertificateCollectionsCollectionOrdering**](CertificateCollectionApi.md#GetCertificateCollectionsCollectionOrdering) | **GET** /CertificateCollections/CollectionOrdering | Returns an array of collection Id's where the index in the array represents the collection ordering +[**GetCertificateCollectionsLastEstimated**](CertificateCollectionApi.md#GetCertificateCollectionsLastEstimated) | **GET** /CertificateCollections/LastEstimated | Get the last time the timer service ran the job to process certificates in collections +[**GetCertificateCollectionsName**](CertificateCollectionApi.md#GetCertificateCollectionsName) | **GET** /CertificateCollections/{name} | Returns the certificate collection associated with the provided collection name +[**GetCertificateCollectionsNavItems**](CertificateCollectionApi.md#GetCertificateCollectionsNavItems) | **GET** /CertificateCollections/NavItems | Get the list of navigation items for certificate collection +[**UpdateCertificateCollections**](CertificateCollectionApi.md#UpdateCertificateCollections) | **PUT** /CertificateCollections | Updates an existing certificate collection with the provided properties +[**UpdateCertificateCollectionsByIdFavorite**](CertificateCollectionApi.md#UpdateCertificateCollectionsByIdFavorite) | **PUT** /CertificateCollections/{id}/Favorite | Update favorite for one collection + + + +## CreateCertificateCollections + +> CertificateCollectionsCertificateCollectionResponse NewCreateCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCreateRequest(certificateCollectionsCertificateCollectionCreateRequest).Execute() + +Creates a new certificate collection with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateCollectionsCertificateCollectionCreateRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionCreateRequest("Name_example") // CertificateCollectionsCertificateCollectionCreateRequest | Information related to the certificate collection query (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewCreateCertificateCollectionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCreateRequest(certificateCollectionsCertificateCollectionCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CreateCertificateCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateCollections`: CertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CreateCertificateCollections`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateCollectionsCertificateCollectionCreateRequest** | [**CertificateCollectionsCertificateCollectionCreateRequest**](CertificateCollectionsCertificateCollectionCreateRequest.md) | Information related to the certificate collection query | + +### Return type + +[**CertificateCollectionsCertificateCollectionResponse**](CertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateCollectionsCopy + +> CertificateCollectionsCertificateCollectionResponse NewCreateCertificateCollectionsCopyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCopyRequest(certificateCollectionsCertificateCollectionCopyRequest).Execute() + +Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateCollectionsCertificateCollectionCopyRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionCopyRequest(int32(123), "Name_example") // CertificateCollectionsCertificateCollectionCopyRequest | Information related to the certificate collection query (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewCreateCertificateCollectionsCopyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionCopyRequest(certificateCollectionsCertificateCollectionCopyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CreateCertificateCollectionsCopy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateCollectionsCopy`: CertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CreateCertificateCollectionsCopy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateCollectionsCopyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateCollectionsCertificateCollectionCopyRequest** | [**CertificateCollectionsCertificateCollectionCopyRequest**](CertificateCollectionsCertificateCollectionCopyRequest.md) | Information related to the certificate collection query | + +### Return type + +[**CertificateCollectionsCertificateCollectionResponse**](CertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateCollectionsById + +> NewDeleteCertificateCollectionsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete one certificate collection + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The collection to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewDeleteCertificateCollectionsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.DeleteCertificateCollectionsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The collection to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateCollectionsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollections + +> []CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate collections + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollections`: []CSSCMSDataModelModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollections`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateQuery**](CSSCMSDataModelModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsById + +> CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate collection definition associated with the provided Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Identifier of the certificate collection + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsById`: CSSCMSDataModelModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Identifier of the certificate collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsCertificateQuery**](CSSCMSDataModelModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsCollectionList + +> []CertificateCollectionsCertificateCollectionListResponse NewGetCertificateCollectionsCollectionListRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get certificate collection list with duplication field name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsCollectionListRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsCollectionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsCollectionList`: []CertificateCollectionsCertificateCollectionListResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsCollectionList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsCollectionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateCollectionsCertificateCollectionListResponse**](CertificateCollectionsCertificateCollectionListResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsCollectionOrdering + +> []int32 NewGetCertificateCollectionsCollectionOrderingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an array of collection Id's where the index in the array represents the collection ordering + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsCollectionOrderingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsCollectionOrdering``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsCollectionOrdering`: []int32 + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsCollectionOrdering`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsCollectionOrderingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**[]int32** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsLastEstimated + +> SchedulingScheduledTaskScheduleResponse NewGetCertificateCollectionsLastEstimatedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the last time the timer service ran the job to process certificates in collections + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsLastEstimatedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsLastEstimated``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsLastEstimated`: SchedulingScheduledTaskScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsLastEstimated`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsLastEstimatedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SchedulingScheduledTaskScheduleResponse**](SchedulingScheduledTaskScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsName + +> CSSCMSDataModelModelsCertificateQuery NewGetCertificateCollectionsNameRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate collection associated with the provided collection name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Name of the Collection + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsNameRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsName`: CSSCMSDataModelModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | Name of the Collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsCertificateQuery**](CSSCMSDataModelModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateCollectionsNavItems + +> []CSSCMSDataModelModelsCertificateCollectionNavItem NewGetCertificateCollectionsNavItemsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the list of navigation items for certificate collection + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewGetCertificateCollectionsNavItemsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.GetCertificateCollectionsNavItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateCollectionsNavItems`: []CSSCMSDataModelModelsCertificateCollectionNavItem + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.GetCertificateCollectionsNavItems`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateCollectionsNavItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateCollectionNavItem**](CSSCMSDataModelModelsCertificateCollectionNavItem.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateCollections + +> CertificateCollectionsCertificateCollectionResponse NewUpdateCertificateCollectionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionUpdateRequest(certificateCollectionsCertificateCollectionUpdateRequest).Execute() + +Updates an existing certificate collection with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateCollectionsCertificateCollectionUpdateRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionUpdateRequest(int32(123), "Name_example") // CertificateCollectionsCertificateCollectionUpdateRequest | Information related to the certificate collection query (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewUpdateCertificateCollectionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionUpdateRequest(certificateCollectionsCertificateCollectionUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.UpdateCertificateCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateCollections`: CertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.UpdateCertificateCollections`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateCollectionsCertificateCollectionUpdateRequest** | [**CertificateCollectionsCertificateCollectionUpdateRequest**](CertificateCollectionsCertificateCollectionUpdateRequest.md) | Information related to the certificate collection query | + +### Return type + +[**CertificateCollectionsCertificateCollectionResponse**](CertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateCollectionsByIdFavorite + +> NewUpdateCertificateCollectionsByIdFavoriteRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionFavoriteRequest(certificateCollectionsCertificateCollectionFavoriteRequest).Execute() + +Update favorite for one collection + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The collection to update favorite with + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateCollectionsCertificateCollectionFavoriteRequest := *openapiclient.NewCertificateCollectionsCertificateCollectionFavoriteRequest(false) // CertificateCollectionsCertificateCollectionFavoriteRequest | Information for the certificate collection favorite update (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.NewUpdateCertificateCollectionsByIdFavoriteRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateCollectionsCertificateCollectionFavoriteRequest(certificateCollectionsCertificateCollectionFavoriteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.UpdateCertificateCollectionsByIdFavorite``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The collection to update favorite with | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateCollectionsByIdFavoriteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateCollectionsCertificateCollectionFavoriteRequest** | [**CertificateCollectionsCertificateCollectionFavoriteRequest**](CertificateCollectionsCertificateCollectionFavoriteRequest.md) | Information for the certificate collection favorite update | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsAssignableQueryRole.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsAssignableQueryRole.md new file mode 100644 index 0000000..1e2fabb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsAssignableQueryRole.md @@ -0,0 +1,92 @@ +# CertificateCollectionsAssignableQueryRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateCollectionsAssignableQueryRole + +`func NewCertificateCollectionsAssignableQueryRole() *CertificateCollectionsAssignableQueryRole` + +NewCertificateCollectionsAssignableQueryRole instantiates a new CertificateCollectionsAssignableQueryRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsAssignableQueryRoleWithDefaults + +`func NewCertificateCollectionsAssignableQueryRoleWithDefaults() *CertificateCollectionsAssignableQueryRole` + +NewCertificateCollectionsAssignableQueryRoleWithDefaults instantiates a new CertificateCollectionsAssignableQueryRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *CertificateCollectionsAssignableQueryRole) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *CertificateCollectionsAssignableQueryRole) GetRoleIdOk() (*int32, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *CertificateCollectionsAssignableQueryRole) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *CertificateCollectionsAssignableQueryRole) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificateCollectionsAssignableQueryRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsAssignableQueryRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsAssignableQueryRole) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateCollectionsAssignableQueryRole) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateCollectionsAssignableQueryRole) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateCollectionsAssignableQueryRole) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCopyRequest.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCopyRequest.md new file mode 100644 index 0000000..64d65ff --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCopyRequest.md @@ -0,0 +1,222 @@ +# CertificateCollectionsCertificateCollectionCopyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CopyFromId** | **int32** | | +**Name** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**Query** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to [**CSSCMSCoreEnumsDuplicateSubjectType**](CSSCMSCoreEnumsDuplicateSubjectType.md) | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionCopyRequest + +`func NewCertificateCollectionsCertificateCollectionCopyRequest(copyFromId int32, name string, ) *CertificateCollectionsCertificateCollectionCopyRequest` + +NewCertificateCollectionsCertificateCollectionCopyRequest instantiates a new CertificateCollectionsCertificateCollectionCopyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionCopyRequestWithDefaults + +`func NewCertificateCollectionsCertificateCollectionCopyRequestWithDefaults() *CertificateCollectionsCertificateCollectionCopyRequest` + +NewCertificateCollectionsCertificateCollectionCopyRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionCopyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCopyFromId + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromId() int32` + +GetCopyFromId returns the CopyFromId field if non-nil, zero value otherwise. + +### GetCopyFromIdOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromIdOk() (*int32, bool)` + +GetCopyFromIdOk returns a tuple with the CopyFromId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCopyFromId + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetCopyFromId(v int32)` + +SetCopyFromId sets CopyFromId field to given value. + + +### GetName + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetQuery + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCreateRequest.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCreateRequest.md new file mode 100644 index 0000000..ae06d10 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionCreateRequest.md @@ -0,0 +1,273 @@ +# CertificateCollectionsCertificateCollectionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CopyFromId** | Pointer to **NullableInt32** | | [optional] +**Id** | Pointer to **NullableInt32** | | [optional] +**Name** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**Query** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to [**CSSCMSCoreEnumsDuplicateSubjectType**](CSSCMSCoreEnumsDuplicateSubjectType.md) | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionCreateRequest + +`func NewCertificateCollectionsCertificateCollectionCreateRequest(name string, ) *CertificateCollectionsCertificateCollectionCreateRequest` + +NewCertificateCollectionsCertificateCollectionCreateRequest instantiates a new CertificateCollectionsCertificateCollectionCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionCreateRequestWithDefaults + +`func NewCertificateCollectionsCertificateCollectionCreateRequestWithDefaults() *CertificateCollectionsCertificateCollectionCreateRequest` + +NewCertificateCollectionsCertificateCollectionCreateRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCopyFromId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromId() int32` + +GetCopyFromId returns the CopyFromId field if non-nil, zero value otherwise. + +### GetCopyFromIdOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromIdOk() (*int32, bool)` + +GetCopyFromIdOk returns a tuple with the CopyFromId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCopyFromId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromId(v int32)` + +SetCopyFromId sets CopyFromId field to given value. + +### HasCopyFromId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasCopyFromId() bool` + +HasCopyFromId returns a boolean if a field has been set. + +### SetCopyFromIdNil + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromIdNil(b bool)` + + SetCopyFromIdNil sets the value for CopyFromId to be an explicit nil + +### UnsetCopyFromId +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetCopyFromId()` + +UnsetCopyFromId ensures that no value is present for CopyFromId, not even an explicit nil +### GetId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetName + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetQuery + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionFavoriteRequest.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionFavoriteRequest.md new file mode 100644 index 0000000..cf7e164 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionFavoriteRequest.md @@ -0,0 +1,51 @@ +# CertificateCollectionsCertificateCollectionFavoriteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ShowInNavigator** | **bool** | | + +## Methods + +### NewCertificateCollectionsCertificateCollectionFavoriteRequest + +`func NewCertificateCollectionsCertificateCollectionFavoriteRequest(showInNavigator bool, ) *CertificateCollectionsCertificateCollectionFavoriteRequest` + +NewCertificateCollectionsCertificateCollectionFavoriteRequest instantiates a new CertificateCollectionsCertificateCollectionFavoriteRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionFavoriteRequestWithDefaults + +`func NewCertificateCollectionsCertificateCollectionFavoriteRequestWithDefaults() *CertificateCollectionsCertificateCollectionFavoriteRequest` + +NewCertificateCollectionsCertificateCollectionFavoriteRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionFavoriteRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShowInNavigator + +`func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) GetShowInNavigator() bool` + +GetShowInNavigator returns the ShowInNavigator field if non-nil, zero value otherwise. + +### GetShowInNavigatorOk + +`func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) GetShowInNavigatorOk() (*bool, bool)` + +GetShowInNavigatorOk returns a tuple with the ShowInNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowInNavigator + +`func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) SetShowInNavigator(v bool)` + +SetShowInNavigator sets ShowInNavigator field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionListResponse.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionListResponse.md new file mode 100644 index 0000000..e5bd61e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionListResponse.md @@ -0,0 +1,340 @@ +# CertificateCollectionsCertificateCollectionListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Content** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to **NullableString** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**EstimatedCertCount** | Pointer to **int32** | | [optional] +**LastEstimated** | Pointer to **NullableTime** | | [optional] +**HasQueryPermissions** | Pointer to **bool** | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionListResponse + +`func NewCertificateCollectionsCertificateCollectionListResponse() *CertificateCollectionsCertificateCollectionListResponse` + +NewCertificateCollectionsCertificateCollectionListResponse instantiates a new CertificateCollectionsCertificateCollectionListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionListResponseWithDefaults + +`func NewCertificateCollectionsCertificateCollectionListResponseWithDefaults() *CertificateCollectionsCertificateCollectionListResponse` + +NewCertificateCollectionsCertificateCollectionListResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetContent + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### SetContentNil + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetContentNil(b bool)` + + SetContentNil sets the value for Content to be an explicit nil + +### UnsetContent +`func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetContent()` + +UnsetContent ensures that no value is present for Content, not even an explicit nil +### GetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetDuplicationField() string` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetDuplicationFieldOk() (*string, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetDuplicationField(v string)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### SetDuplicationFieldNil + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetDuplicationFieldNil(b bool)` + + SetDuplicationFieldNil sets the value for DuplicationField to be an explicit nil + +### UnsetDuplicationField +`func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetDuplicationField()` + +UnsetDuplicationField ensures that no value is present for DuplicationField, not even an explicit nil +### GetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetEstimatedCertCount() int32` + +GetEstimatedCertCount returns the EstimatedCertCount field if non-nil, zero value otherwise. + +### GetEstimatedCertCountOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetEstimatedCertCountOk() (*int32, bool)` + +GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetEstimatedCertCount(v int32)` + +SetEstimatedCertCount sets EstimatedCertCount field to given value. + +### HasEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasEstimatedCertCount() bool` + +HasEstimatedCertCount returns a boolean if a field has been set. + +### GetLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetLastEstimated() time.Time` + +GetLastEstimated returns the LastEstimated field if non-nil, zero value otherwise. + +### GetLastEstimatedOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetLastEstimatedOk() (*time.Time, bool)` + +GetLastEstimatedOk returns a tuple with the LastEstimated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetLastEstimated(v time.Time)` + +SetLastEstimated sets LastEstimated field to given value. + +### HasLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasLastEstimated() bool` + +HasLastEstimated returns a boolean if a field has been set. + +### SetLastEstimatedNil + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetLastEstimatedNil(b bool)` + + SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil + +### UnsetLastEstimated +`func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetLastEstimated()` + +UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil +### GetHasQueryPermissions + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetHasQueryPermissions() bool` + +GetHasQueryPermissions returns the HasQueryPermissions field if non-nil, zero value otherwise. + +### GetHasQueryPermissionsOk + +`func (o *CertificateCollectionsCertificateCollectionListResponse) GetHasQueryPermissionsOk() (*bool, bool)` + +GetHasQueryPermissionsOk returns a tuple with the HasQueryPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasQueryPermissions + +`func (o *CertificateCollectionsCertificateCollectionListResponse) SetHasQueryPermissions(v bool)` + +SetHasQueryPermissions sets HasQueryPermissions field to given value. + +### HasHasQueryPermissions + +`func (o *CertificateCollectionsCertificateCollectionListResponse) HasHasQueryPermissions() bool` + +HasHasQueryPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionPermissionsResponse.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionPermissionsResponse.md new file mode 100644 index 0000000..76651ba --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionPermissionsResponse.md @@ -0,0 +1,128 @@ +# CertificateCollectionsCertificateCollectionPermissionsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryId** | Pointer to **int32** | | [optional] +**AccessControlList** | Pointer to [**[]CertificateCollectionsCertificateQueryAccessControl**](CertificateCollectionsCertificateQueryAccessControl.md) | | [optional] +**AssignableRoles** | Pointer to [**[]CertificateCollectionsAssignableQueryRole**](CertificateCollectionsAssignableQueryRole.md) | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionPermissionsResponse + +`func NewCertificateCollectionsCertificateCollectionPermissionsResponse() *CertificateCollectionsCertificateCollectionPermissionsResponse` + +NewCertificateCollectionsCertificateCollectionPermissionsResponse instantiates a new CertificateCollectionsCertificateCollectionPermissionsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionPermissionsResponseWithDefaults + +`func NewCertificateCollectionsCertificateCollectionPermissionsResponseWithDefaults() *CertificateCollectionsCertificateCollectionPermissionsResponse` + +NewCertificateCollectionsCertificateCollectionPermissionsResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionPermissionsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryId + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetQueryId() int32` + +GetQueryId returns the QueryId field if non-nil, zero value otherwise. + +### GetQueryIdOk + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetQueryIdOk() (*int32, bool)` + +GetQueryIdOk returns a tuple with the QueryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryId + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetQueryId(v int32)` + +SetQueryId sets QueryId field to given value. + +### HasQueryId + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasQueryId() bool` + +HasQueryId returns a boolean if a field has been set. + +### GetAccessControlList + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAccessControlList() []CertificateCollectionsCertificateQueryAccessControl` + +GetAccessControlList returns the AccessControlList field if non-nil, zero value otherwise. + +### GetAccessControlListOk + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAccessControlListOk() (*[]CertificateCollectionsCertificateQueryAccessControl, bool)` + +GetAccessControlListOk returns a tuple with the AccessControlList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessControlList + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAccessControlList(v []CertificateCollectionsCertificateQueryAccessControl)` + +SetAccessControlList sets AccessControlList field to given value. + +### HasAccessControlList + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasAccessControlList() bool` + +HasAccessControlList returns a boolean if a field has been set. + +### SetAccessControlListNil + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAccessControlListNil(b bool)` + + SetAccessControlListNil sets the value for AccessControlList to be an explicit nil + +### UnsetAccessControlList +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) UnsetAccessControlList()` + +UnsetAccessControlList ensures that no value is present for AccessControlList, not even an explicit nil +### GetAssignableRoles + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAssignableRoles() []CertificateCollectionsAssignableQueryRole` + +GetAssignableRoles returns the AssignableRoles field if non-nil, zero value otherwise. + +### GetAssignableRolesOk + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAssignableRolesOk() (*[]CertificateCollectionsAssignableQueryRole, bool)` + +GetAssignableRolesOk returns a tuple with the AssignableRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignableRoles + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAssignableRoles(v []CertificateCollectionsAssignableQueryRole)` + +SetAssignableRoles sets AssignableRoles field to given value. + +### HasAssignableRoles + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasAssignableRoles() bool` + +HasAssignableRoles returns a boolean if a field has been set. + +### SetAssignableRolesNil + +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAssignableRolesNil(b bool)` + + SetAssignableRolesNil sets the value for AssignableRoles to be an explicit nil + +### UnsetAssignableRoles +`func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) UnsetAssignableRoles()` + +UnsetAssignableRoles ensures that no value is present for AssignableRoles, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionResponse.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionResponse.md new file mode 100644 index 0000000..7e9257c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionResponse.md @@ -0,0 +1,340 @@ +# CertificateCollectionsCertificateCollectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Content** | Pointer to **NullableString** | | [optional] [readonly] +**Query** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to [**CSSCMSCoreEnumsDuplicateSubjectType**](CSSCMSCoreEnumsDuplicateSubjectType.md) | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**EstimatedCertCount** | Pointer to **int32** | | [optional] +**LastEstimated** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionResponse + +`func NewCertificateCollectionsCertificateCollectionResponse() *CertificateCollectionsCertificateCollectionResponse` + +NewCertificateCollectionsCertificateCollectionResponse instantiates a new CertificateCollectionsCertificateCollectionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionResponseWithDefaults + +`func NewCertificateCollectionsCertificateCollectionResponseWithDefaults() *CertificateCollectionsCertificateCollectionResponse` + +NewCertificateCollectionsCertificateCollectionResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateCollectionsCertificateCollectionResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificateCollectionsCertificateCollectionResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetContent + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### SetContentNil + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetContentNil(b bool)` + + SetContentNil sets the value for Content to be an explicit nil + +### UnsetContent +`func (o *CertificateCollectionsCertificateCollectionResponse) UnsetContent()` + +UnsetContent ensures that no value is present for Content, not even an explicit nil +### GetQuery + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *CertificateCollectionsCertificateCollectionResponse) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetEstimatedCertCount() int32` + +GetEstimatedCertCount returns the EstimatedCertCount field if non-nil, zero value otherwise. + +### GetEstimatedCertCountOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetEstimatedCertCountOk() (*int32, bool)` + +GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetEstimatedCertCount(v int32)` + +SetEstimatedCertCount sets EstimatedCertCount field to given value. + +### HasEstimatedCertCount + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasEstimatedCertCount() bool` + +HasEstimatedCertCount returns a boolean if a field has been set. + +### GetLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetLastEstimated() time.Time` + +GetLastEstimated returns the LastEstimated field if non-nil, zero value otherwise. + +### GetLastEstimatedOk + +`func (o *CertificateCollectionsCertificateCollectionResponse) GetLastEstimatedOk() (*time.Time, bool)` + +GetLastEstimatedOk returns a tuple with the LastEstimated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetLastEstimated(v time.Time)` + +SetLastEstimated sets LastEstimated field to given value. + +### HasLastEstimated + +`func (o *CertificateCollectionsCertificateCollectionResponse) HasLastEstimated() bool` + +HasLastEstimated returns a boolean if a field has been set. + +### SetLastEstimatedNil + +`func (o *CertificateCollectionsCertificateCollectionResponse) SetLastEstimatedNil(b bool)` + + SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil + +### UnsetLastEstimated +`func (o *CertificateCollectionsCertificateCollectionResponse) UnsetLastEstimated()` + +UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionUpdateRequest.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionUpdateRequest.md new file mode 100644 index 0000000..8273aff --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateCollectionUpdateRequest.md @@ -0,0 +1,222 @@ +# CertificateCollectionsCertificateCollectionUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**Query** | Pointer to **NullableString** | | [optional] +**DuplicationField** | Pointer to [**CSSCMSCoreEnumsDuplicateSubjectType**](CSSCMSCoreEnumsDuplicateSubjectType.md) | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateCollectionUpdateRequest + +`func NewCertificateCollectionsCertificateCollectionUpdateRequest(id int32, name string, ) *CertificateCollectionsCertificateCollectionUpdateRequest` + +NewCertificateCollectionsCertificateCollectionUpdateRequest instantiates a new CertificateCollectionsCertificateCollectionUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults + +`func NewCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults() *CertificateCollectionsCertificateCollectionUpdateRequest` + +NewCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetQuery + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateQueryAccessControl.md b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateQueryAccessControl.md new file mode 100644 index 0000000..0d311c1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateCollectionsCertificateQueryAccessControl.md @@ -0,0 +1,92 @@ +# CertificateCollectionsCertificateQueryAccessControl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | Pointer to **int32** | | [optional] +**AreaPermissions** | Pointer to [**[]CSSCMSCorePermissionsWebConsoleAreaPermission**](CSSCMSCorePermissionsWebConsoleAreaPermission.md) | | [optional] + +## Methods + +### NewCertificateCollectionsCertificateQueryAccessControl + +`func NewCertificateCollectionsCertificateQueryAccessControl() *CertificateCollectionsCertificateQueryAccessControl` + +NewCertificateCollectionsCertificateQueryAccessControl instantiates a new CertificateCollectionsCertificateQueryAccessControl object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateCollectionsCertificateQueryAccessControlWithDefaults + +`func NewCertificateCollectionsCertificateQueryAccessControlWithDefaults() *CertificateCollectionsCertificateQueryAccessControl` + +NewCertificateCollectionsCertificateQueryAccessControlWithDefaults instantiates a new CertificateCollectionsCertificateQueryAccessControl object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *CertificateCollectionsCertificateQueryAccessControl) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *CertificateCollectionsCertificateQueryAccessControl) GetRoleIdOk() (*int32, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *CertificateCollectionsCertificateQueryAccessControl) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *CertificateCollectionsCertificateQueryAccessControl) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetAreaPermissions + +`func (o *CertificateCollectionsCertificateQueryAccessControl) GetAreaPermissions() []CSSCMSCorePermissionsWebConsoleAreaPermission` + +GetAreaPermissions returns the AreaPermissions field if non-nil, zero value otherwise. + +### GetAreaPermissionsOk + +`func (o *CertificateCollectionsCertificateQueryAccessControl) GetAreaPermissionsOk() (*[]CSSCMSCorePermissionsWebConsoleAreaPermission, bool)` + +GetAreaPermissionsOk returns a tuple with the AreaPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAreaPermissions + +`func (o *CertificateCollectionsCertificateQueryAccessControl) SetAreaPermissions(v []CSSCMSCorePermissionsWebConsoleAreaPermission)` + +SetAreaPermissions sets AreaPermissions field to given value. + +### HasAreaPermissions + +`func (o *CertificateCollectionsCertificateQueryAccessControl) HasAreaPermissions() bool` + +HasAreaPermissions returns a boolean if a field has been set. + +### SetAreaPermissionsNil + +`func (o *CertificateCollectionsCertificateQueryAccessControl) SetAreaPermissionsNil(b bool)` + + SetAreaPermissionsNil sets the value for AreaPermissions to be an explicit nil + +### UnsetAreaPermissions +`func (o *CertificateCollectionsCertificateQueryAccessControl) UnsetAreaPermissions()` + +UnsetAreaPermissions ensures that no value is present for AreaPermissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoreApi.md b/v24/api/keyfactor/v1/docs/CertificateStoreApi.md new file mode 100644 index 0000000..271f07e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoreApi.md @@ -0,0 +1,1063 @@ +# \CertificateStoreApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateStores**](CertificateStoreApi.md#CreateCertificateStores) | **POST** /CertificateStores | Creates a new certificate store with the provided properties +[**CreateCertificateStoresApprove**](CertificateStoreApi.md#CreateCertificateStoresApprove) | **POST** /CertificateStores/Approve | Approves the provided certificate stores to make them available for management +[**CreateCertificateStoresCertificatesAdd**](CertificateStoreApi.md#CreateCertificateStoresCertificatesAdd) | **POST** /CertificateStores/Certificates/Add | Configures a management job to add a certificate to one or more stores with the provided schedule +[**CreateCertificateStoresCertificatesRemove**](CertificateStoreApi.md#CreateCertificateStoresCertificatesRemove) | **POST** /CertificateStores/Certificates/Remove | Configures a management job to remove a certificate from one or more stores with the provided schedule +[**CreateCertificateStoresReenrollment**](CertificateStoreApi.md#CreateCertificateStoresReenrollment) | **POST** /CertificateStores/Reenrollment | Schedules a certificate store for reenrollment +[**CreateCertificateStoresSchedule**](CertificateStoreApi.md#CreateCertificateStoresSchedule) | **POST** /CertificateStores/Schedule | Creates an inventory schedule for the provided certificate stores +[**DeleteCertificateStores**](CertificateStoreApi.md#DeleteCertificateStores) | **DELETE** /CertificateStores | Deletes multiple persisted certificate store entities by their identifiers +[**DeleteCertificateStoresById**](CertificateStoreApi.md#DeleteCertificateStoresById) | **DELETE** /CertificateStores/{id} | Deletes a persisted certificate store by its Keyfactor identifier +[**GetCertificateStores**](CertificateStoreApi.md#GetCertificateStores) | **GET** /CertificateStores | Returns all certificate stores according to the provided filter and output parameters +[**GetCertificateStoresById**](CertificateStoreApi.md#GetCertificateStoresById) | **GET** /CertificateStores/{id} | Returns a single certificate store associated with the provided id +[**GetCertificateStoresByIdInventory**](CertificateStoreApi.md#GetCertificateStoresByIdInventory) | **GET** /CertificateStores/{id}/Inventory | Returns a single certificate store's inventory associated with the provided id +[**UpdateCertificateStores**](CertificateStoreApi.md#UpdateCertificateStores) | **PUT** /CertificateStores | Updates a given certificate store with the properties of the provided instance +[**UpdateCertificateStoresAssignContainer**](CertificateStoreApi.md#UpdateCertificateStoresAssignContainer) | **PUT** /CertificateStores/AssignContainer | Assigns the provided certificate stores to the provided container +[**UpdateCertificateStoresDiscoveryJob**](CertificateStoreApi.md#UpdateCertificateStoresDiscoveryJob) | **PUT** /CertificateStores/DiscoveryJob | Configures a discovery job to locate currently unmanaged certificate stores +[**UpdateCertificateStoresPassword**](CertificateStoreApi.md#UpdateCertificateStoresPassword) | **PUT** /CertificateStores/Password | Sets a password for the requested certificate store + + + +## CreateCertificateStores + +> CertificateStoresCertificateStoreResponse NewCreateCertificateStoresRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest).Execute() + +Creates a new certificate store with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest := *openapiclient.NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest() // CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest | Certificate store to be created with the provided properties (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateStores`: CertificateStoresCertificateStoreResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CreateCertificateStores`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest** | [**CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest**](CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest.md) | Certificate store to be created with the provided properties | + +### Return type + +[**CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateStoresApprove + +> NewCreateCertificateStoresApproveRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresCertificateStoreApproveRequest(certificateStoresCertificateStoreApproveRequest).Execute() + +Approves the provided certificate stores to make them available for management + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresCertificateStoreApproveRequest := []openapiclient.CertificateStoresCertificateStoreApproveRequest{*openapiclient.NewCertificateStoresCertificateStoreApproveRequest()} // []CertificateStoresCertificateStoreApproveRequest | Certificate stores to be approved (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresApproveRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresCertificateStoreApproveRequest(certificateStoresCertificateStoreApproveRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStoresApprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresApproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresCertificateStoreApproveRequest** | [**[]CertificateStoresCertificateStoreApproveRequest**](CertificateStoresCertificateStoreApproveRequest.md) | Certificate stores to be approved | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateStoresCertificatesAdd + +> []string NewCreateCertificateStoresCertificatesAddRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresAddCertificateRequest(certificateStoresAddCertificateRequest).Execute() + +Configures a management job to add a certificate to one or more stores with the provided schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresAddCertificateRequest := *openapiclient.NewCertificateStoresAddCertificateRequest(int32(123), []openapiclient.CSSCMSDataModelModelsCertificateStoreEntry{*openapiclient.NewCSSCMSDataModelModelsCertificateStoreEntry("CertificateStoreId_example")}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // CertificateStoresAddCertificateRequest | Configuration details of the management job (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresCertificatesAddRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresAddCertificateRequest(certificateStoresAddCertificateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStoresCertificatesAdd``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateStoresCertificatesAdd`: []string + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CreateCertificateStoresCertificatesAdd`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresCertificatesAddRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresAddCertificateRequest** | [**CertificateStoresAddCertificateRequest**](CertificateStoresAddCertificateRequest.md) | Configuration details of the management job | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateStoresCertificatesRemove + +> []string NewCreateCertificateStoresCertificatesRemoveRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresRemoveCertificateRequest(certificateStoresRemoveCertificateRequest).Execute() + +Configures a management job to remove a certificate from one or more stores with the provided schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresRemoveCertificateRequest := *openapiclient.NewCertificateStoresRemoveCertificateRequest([]openapiclient.CSSCMSDataModelModelsCertificateLocationSpecifier{*openapiclient.NewCSSCMSDataModelModelsCertificateLocationSpecifier()}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // CertificateStoresRemoveCertificateRequest | Configuration details of the management job (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresCertificatesRemoveRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresRemoveCertificateRequest(certificateStoresRemoveCertificateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStoresCertificatesRemove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateStoresCertificatesRemove`: []string + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CreateCertificateStoresCertificatesRemove`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresCertificatesRemoveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresRemoveCertificateRequest** | [**CertificateStoresRemoveCertificateRequest**](CertificateStoresRemoveCertificateRequest.md) | Configuration details of the management job | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateStoresReenrollment + +> NewCreateCertificateStoresReenrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresReenrollmentRequest(certificateStoresReenrollmentRequest).Execute() + +Schedules a certificate store for reenrollment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresReenrollmentRequest := *openapiclient.NewCertificateStoresReenrollmentRequest() // CertificateStoresReenrollmentRequest | An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresReenrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresReenrollmentRequest(certificateStoresReenrollmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStoresReenrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresReenrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresReenrollmentRequest** | [**CertificateStoresReenrollmentRequest**](CertificateStoresReenrollmentRequest.md) | An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCertificateStoresSchedule + +> NewCreateCertificateStoresScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoresSchedule(cSSCMSDataModelModelsCertStoresSchedule).Execute() + +Creates an inventory schedule for the provided certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertStoresSchedule := *openapiclient.NewCSSCMSDataModelModelsCertStoresSchedule([]string{"StoreIds_example"}) // CSSCMSDataModelModelsCertStoresSchedule | Certificate store identifiers and the desired schedule (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewCreateCertificateStoresScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoresSchedule(cSSCMSDataModelModelsCertStoresSchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CreateCertificateStoresSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoresScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertStoresSchedule** | [**CSSCMSDataModelModelsCertStoresSchedule**](CSSCMSDataModelModelsCertStoresSchedule.md) | Certificate store identifiers and the desired schedule | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateStores + +> NewDeleteCertificateStoresRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes multiple persisted certificate store entities by their identifiers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewDeleteCertificateStoresRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.DeleteCertificateStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateStoresById + +> NewDeleteCertificateStoresByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted certificate store by its Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor certificate store identifier (GUID) + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewDeleteCertificateStoresByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.DeleteCertificateStoresById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor certificate store identifier (GUID) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateStoresByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStores + +> []CertificateStoresCertificateStoreResponse NewGetCertificateStoresRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PerformRoleCheck(performRoleCheck).RoleIdList(roleIdList).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate stores according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + performRoleCheck := true // bool | Set to 'true' if role permissions for the current user should be validated (optional) + roleIdList := []int32{int32(123)} // []int32 | List of Keyfactor role identifiers (integer) used to determine permissions if provided (optional) + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewGetCertificateStoresRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PerformRoleCheck(performRoleCheck).RoleIdList(roleIdList).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.GetCertificateStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStores`: []CertificateStoresCertificateStoreResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.GetCertificateStores`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **performRoleCheck** | **bool** | Set to 'true' if role permissions for the current user should be validated | + **roleIdList** | **[]int32** | List of Keyfactor role identifiers (integer) used to determine permissions if provided | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoresById + +> CertificateStoresCertificateStoreResponse NewGetCertificateStoresByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the certificate store + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewGetCertificateStoresByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.GetCertificateStoresById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoresById`: CertificateStoresCertificateStoreResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.GetCertificateStoresById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the certificate store | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoresByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoresByIdInventory + +> []CertificateStoresCertificateStoreInventoryResponse NewGetCertificateStoresByIdInventoryRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store's inventory associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the certificate store + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewGetCertificateStoresByIdInventoryRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.GetCertificateStoresByIdInventory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoresByIdInventory`: []CertificateStoresCertificateStoreInventoryResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.GetCertificateStoresByIdInventory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the certificate store | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoresByIdInventoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateStoresCertificateStoreInventoryResponse**](CertificateStoresCertificateStoreInventoryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStores + +> CertificateStoresCertificateStoreResponse NewUpdateCertificateStoresRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest).Execute() + +Updates a given certificate store with the properties of the provided instance + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest() // CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest | Certificate store to be updated with the provided properties (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewUpdateCertificateStoresRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest(cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.UpdateCertificateStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateStores`: CertificateStoresCertificateStoreResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.UpdateCertificateStores`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest** | [**CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest**](CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest.md) | Certificate store to be updated with the provided properties | + +### Return type + +[**CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStoresAssignContainer + +> []CertificateStoresCertificateStoreResponse NewUpdateCertificateStoresAssignContainerRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsContainerAssignment(cSSCMSDataModelModelsContainerAssignment).Execute() + +Assigns the provided certificate stores to the provided container + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsContainerAssignment := *openapiclient.NewCSSCMSDataModelModelsContainerAssignment([]string{"KeystoreIds_example"}) // CSSCMSDataModelModelsContainerAssignment | Keyfactor certificate store identifiers and the container properties (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewUpdateCertificateStoresAssignContainerRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsContainerAssignment(cSSCMSDataModelModelsContainerAssignment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.UpdateCertificateStoresAssignContainer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateStoresAssignContainer`: []CertificateStoresCertificateStoreResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.UpdateCertificateStoresAssignContainer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoresAssignContainerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsContainerAssignment** | [**CSSCMSDataModelModelsContainerAssignment**](CSSCMSDataModelModelsContainerAssignment.md) | Keyfactor certificate store identifiers and the container properties | + +### Return type + +[**[]CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStoresDiscoveryJob + +> NewUpdateCertificateStoresDiscoveryJobRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsDiscoveryJobRequest(cSSCMSDataModelModelsDiscoveryJobRequest).Execute() + +Configures a discovery job to locate currently unmanaged certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsDiscoveryJobRequest := *openapiclient.NewCSSCMSDataModelModelsDiscoveryJobRequest(int32(123)) // CSSCMSDataModelModelsDiscoveryJobRequest | Configuration properties of the discovery job (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewUpdateCertificateStoresDiscoveryJobRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsDiscoveryJobRequest(cSSCMSDataModelModelsDiscoveryJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.UpdateCertificateStoresDiscoveryJob``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoresDiscoveryJobRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsDiscoveryJobRequest** | [**CSSCMSDataModelModelsDiscoveryJobRequest**](CSSCMSDataModelModelsDiscoveryJobRequest.md) | Configuration properties of the discovery job | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStoresPassword + +> NewUpdateCertificateStoresPasswordRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreNewPasswordRequest(cSSCMSDataModelModelsCertStoreNewPasswordRequest).Execute() + +Sets a password for the requested certificate store + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertStoreNewPasswordRequest := *openapiclient.NewCSSCMSDataModelModelsCertStoreNewPasswordRequest("CertStoreId_example", interface{}(123)) // CSSCMSDataModelModelsCertStoreNewPasswordRequest | Identifier of the certificate store and the password to be applied to it (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.NewUpdateCertificateStoresPasswordRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreNewPasswordRequest(cSSCMSDataModelModelsCertStoreNewPasswordRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.UpdateCertificateStoresPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoresPasswordRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertStoreNewPasswordRequest** | [**CSSCMSDataModelModelsCertStoreNewPasswordRequest**](CSSCMSDataModelModelsCertStoreNewPasswordRequest.md) | Identifier of the certificate store and the password to be applied to it | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoreContainerApi.md b/v24/api/keyfactor/v1/docs/CertificateStoreContainerApi.md new file mode 100644 index 0000000..8519fd0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoreContainerApi.md @@ -0,0 +1,367 @@ +# \CertificateStoreContainerApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateStoreContainers**](CertificateStoreContainerApi.md#CreateCertificateStoreContainers) | **POST** /CertificateStoreContainers | Add a certificate store container +[**DeleteCertificateStoreContainersById**](CertificateStoreContainerApi.md#DeleteCertificateStoreContainersById) | **DELETE** /CertificateStoreContainers/{id} | Delete a certificate store container +[**GetCertificateStoreContainers**](CertificateStoreContainerApi.md#GetCertificateStoreContainers) | **GET** /CertificateStoreContainers | Returns all certificate store container according to the provided filter and output parameters +[**GetCertificateStoreContainersById**](CertificateStoreContainerApi.md#GetCertificateStoreContainersById) | **GET** /CertificateStoreContainers/{id} | Returns a single certificate store container that matches id +[**UpdateCertificateStoreContainers**](CertificateStoreContainerApi.md#UpdateCertificateStoreContainers) | **PUT** /CertificateStoreContainers | Edit a certificate store container + + + +## CreateCertificateStoreContainers + +> CertificateStoreContainersCertificateStoreContainerResponse NewCreateCertificateStoreContainersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest).Execute() + +Add a certificate store container + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertStoreContainerRequest := *openapiclient.NewCSSCMSDataModelModelsCertStoreContainerRequest() // CSSCMSDataModelModelsCertStoreContainerRequest | Information for the new container (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.NewCreateCertificateStoreContainersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.CreateCertificateStoreContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateStoreContainers`: CertificateStoreContainersCertificateStoreContainerResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreContainerApi.CreateCertificateStoreContainers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoreContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertStoreContainerRequest** | [**CSSCMSDataModelModelsCertStoreContainerRequest**](CSSCMSDataModelModelsCertStoreContainerRequest.md) | Information for the new container | + +### Return type + +[**CertificateStoreContainersCertificateStoreContainerResponse**](CertificateStoreContainersCertificateStoreContainerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateStoreContainersById + +> NewDeleteCertificateStoreContainersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a certificate store container + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the certificate store container + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.NewDeleteCertificateStoreContainersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.DeleteCertificateStoreContainersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the certificate store container | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateStoreContainersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoreContainers + +> []CSSCMSDataModelModelsCertificateStoreContainerListResponse NewGetCertificateStoreContainersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate store container according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.NewGetCertificateStoreContainersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.GetCertificateStoreContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoreContainers`: []CSSCMSDataModelModelsCertificateStoreContainerListResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreContainerApi.GetCertificateStoreContainers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoreContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateStoreContainerListResponse**](CSSCMSDataModelModelsCertificateStoreContainerListResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoreContainersById + +> CertificateStoreContainersCertificateStoreContainerResponse NewGetCertificateStoreContainersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store container that matches id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.NewGetCertificateStoreContainersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.GetCertificateStoreContainersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoreContainersById`: CertificateStoreContainersCertificateStoreContainerResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreContainerApi.GetCertificateStoreContainersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoreContainersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateStoreContainersCertificateStoreContainerResponse**](CertificateStoreContainersCertificateStoreContainerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStoreContainers + +> CertificateStoreContainersCertificateStoreContainerResponse NewUpdateCertificateStoreContainersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest).Execute() + +Edit a certificate store container + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertStoreContainerRequest := *openapiclient.NewCSSCMSDataModelModelsCertStoreContainerRequest() // CSSCMSDataModelModelsCertStoreContainerRequest | Information for the updated container (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.NewUpdateCertificateStoreContainersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertStoreContainerRequest(cSSCMSDataModelModelsCertStoreContainerRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.UpdateCertificateStoreContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateStoreContainers`: CertificateStoreContainersCertificateStoreContainerResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreContainerApi.UpdateCertificateStoreContainers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoreContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertStoreContainerRequest** | [**CSSCMSDataModelModelsCertStoreContainerRequest**](CSSCMSDataModelModelsCertStoreContainerRequest.md) | Information for the updated container | + +### Return type + +[**CertificateStoreContainersCertificateStoreContainerResponse**](CertificateStoreContainersCertificateStoreContainerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoreContainersCertificateStoreContainerResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoreContainersCertificateStoreContainerResponse.md new file mode 100644 index 0000000..b8c80fe --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoreContainersCertificateStoreContainerResponse.md @@ -0,0 +1,180 @@ +# CertificateStoreContainersCertificateStoreContainerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CertificateStores** | Pointer to [**[]CertificateStoresCertificateStoreResponse**](CertificateStoresCertificateStoreResponse.md) | | [optional] + +## Methods + +### NewCertificateStoreContainersCertificateStoreContainerResponse + +`func NewCertificateStoreContainersCertificateStoreContainerResponse() *CertificateStoreContainersCertificateStoreContainerResponse` + +NewCertificateStoreContainersCertificateStoreContainerResponse instantiates a new CertificateStoreContainersCertificateStoreContainerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoreContainersCertificateStoreContainerResponseWithDefaults + +`func NewCertificateStoreContainersCertificateStoreContainerResponseWithDefaults() *CertificateStoreContainersCertificateStoreContainerResponse` + +NewCertificateStoreContainersCertificateStoreContainerResponseWithDefaults instantiates a new CertificateStoreContainersCertificateStoreContainerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetSchedule + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCertificateStores + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertificateStores() []CertificateStoresCertificateStoreResponse` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertificateStoresOk() (*[]CertificateStoresCertificateStoreResponse, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetCertificateStores(v []CertificateStoresCertificateStoreResponse)` + +SetCertificateStores sets CertificateStores field to given value. + +### HasCertificateStores + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasCertificateStores() bool` + +HasCertificateStores returns a boolean if a field has been set. + +### SetCertificateStoresNil + +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetCertificateStoresNil(b bool)` + + SetCertificateStoresNil sets the value for CertificateStores to be an explicit nil + +### UnsetCertificateStores +`func (o *CertificateStoreContainersCertificateStoreContainerResponse) UnsetCertificateStores()` + +UnsetCertificateStores ensures that no value is present for CertificateStores, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoreTypeApi.md b/v24/api/keyfactor/v1/docs/CertificateStoreTypeApi.md new file mode 100644 index 0000000..992715e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoreTypeApi.md @@ -0,0 +1,511 @@ +# \CertificateStoreTypeApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCertificateStoreTypes**](CertificateStoreTypeApi.md#CreateCertificateStoreTypes) | **POST** /CertificateStoreTypes | Creates a new certificate store type with the provided properties +[**DeleteCertificateStoreTypes**](CertificateStoreTypeApi.md#DeleteCertificateStoreTypes) | **DELETE** /CertificateStoreTypes | Deletes certificate store types according to the provided identifiers +[**DeleteCertificateStoreTypesById**](CertificateStoreTypeApi.md#DeleteCertificateStoreTypesById) | **DELETE** /CertificateStoreTypes/{id} | Deletes a certificate store type according to the provided identifier +[**GetCertificateStoreTypes**](CertificateStoreTypeApi.md#GetCertificateStoreTypes) | **GET** /CertificateStoreTypes | Returns all certificate store types according to the provided filter and output parameters +[**GetCertificateStoreTypesById**](CertificateStoreTypeApi.md#GetCertificateStoreTypesById) | **GET** /CertificateStoreTypes/{id} | Returns a single certificate store type that matches id +[**GetCertificateStoreTypesNameName**](CertificateStoreTypeApi.md#GetCertificateStoreTypesNameName) | **GET** /CertificateStoreTypes/Name/{name} | Returns a single certificate store type that matches the provided short name +[**UpdateCertificateStoreTypes**](CertificateStoreTypeApi.md#UpdateCertificateStoreTypes) | **PUT** /CertificateStoreTypes | Updates an existing certificate store type with the provided properties + + + +## CreateCertificateStoreTypes + +> CertificateStoresTypesCertificateStoreTypeResponse NewCreateCertificateStoreTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresTypesCertificateStoreTypeCreationRequest(certificateStoresTypesCertificateStoreTypeCreationRequest).Execute() + +Creates a new certificate store type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresTypesCertificateStoreTypeCreationRequest := *openapiclient.NewCertificateStoresTypesCertificateStoreTypeCreationRequest("Name_example", "ShortName_example") // CertificateStoresTypesCertificateStoreTypeCreationRequest | Certificate store type properties for the new type (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewCreateCertificateStoreTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresTypesCertificateStoreTypeCreationRequest(certificateStoresTypesCertificateStoreTypeCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CreateCertificateStoreTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCertificateStoreTypes`: CertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CreateCertificateStoreTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCertificateStoreTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresTypesCertificateStoreTypeCreationRequest** | [**CertificateStoresTypesCertificateStoreTypeCreationRequest**](CertificateStoresTypesCertificateStoreTypeCreationRequest.md) | Certificate store type properties for the new type | + +### Return type + +[**CertificateStoresTypesCertificateStoreTypeResponse**](CertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateStoreTypes + +> NewDeleteCertificateStoreTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes certificate store types according to the provided identifiers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate store types to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewDeleteCertificateStoreTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.DeleteCertificateStoreTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateStoreTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Array of Keyfactor identifiers of the certificate store types to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCertificateStoreTypesById + +> NewDeleteCertificateStoreTypesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a certificate store type according to the provided identifier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate store type to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewDeleteCertificateStoreTypesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.DeleteCertificateStoreTypesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate store type to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCertificateStoreTypesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoreTypes + +> []CertificateStoresTypesCertificateStoreTypeResponse NewGetCertificateStoreTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate store types according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewGetCertificateStoreTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.GetCertificateStoreTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoreTypes`: []CertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.GetCertificateStoreTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoreTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateStoresTypesCertificateStoreTypeResponse**](CertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoreTypesById + +> CertificateStoresTypesCertificateStoreTypeResponse NewGetCertificateStoreTypesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store type that matches id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate store type + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewGetCertificateStoreTypesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.GetCertificateStoreTypesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoreTypesById`: CertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.GetCertificateStoreTypesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate store type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoreTypesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateStoresTypesCertificateStoreTypeResponse**](CertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCertificateStoreTypesNameName + +> []CertificateStoresTypesCertificateStoreTypeResponse NewGetCertificateStoreTypesNameNameRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store type that matches the provided short name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Short name of the certificate store type to return + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewGetCertificateStoreTypesNameNameRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.GetCertificateStoreTypesNameName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificateStoreTypesNameName`: []CertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.GetCertificateStoreTypesNameName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | Short name of the certificate store type to return | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificateStoreTypesNameNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateStoresTypesCertificateStoreTypeResponse**](CertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateCertificateStoreTypes + +> CertificateStoresTypesCertificateStoreTypeResponse NewUpdateCertificateStoreTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresTypesCertificateStoreTypeUpdateRequest(certificateStoresTypesCertificateStoreTypeUpdateRequest).Execute() + +Updates an existing certificate store type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + certificateStoresTypesCertificateStoreTypeUpdateRequest := *openapiclient.NewCertificateStoresTypesCertificateStoreTypeUpdateRequest(int32(123), "Name_example", "ShortName_example") // CertificateStoresTypesCertificateStoreTypeUpdateRequest | Certificate store type properties to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.NewUpdateCertificateStoreTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CertificateStoresTypesCertificateStoreTypeUpdateRequest(certificateStoresTypesCertificateStoreTypeUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.UpdateCertificateStoreTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCertificateStoreTypes`: CertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.UpdateCertificateStoreTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateCertificateStoreTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **certificateStoresTypesCertificateStoreTypeUpdateRequest** | [**CertificateStoresTypesCertificateStoreTypeUpdateRequest**](CertificateStoresTypesCertificateStoreTypeUpdateRequest.md) | Certificate store type properties to be updated | + +### Return type + +[**CertificateStoresTypesCertificateStoreTypeResponse**](CertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresAddCertificateRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresAddCertificateRequest.md new file mode 100644 index 0000000..ca8a5fe --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresAddCertificateRequest.md @@ -0,0 +1,129 @@ +# CertificateStoresAddCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateId** | **int32** | | +**CertificateStores** | [**[]CSSCMSDataModelModelsCertificateStoreEntry**](CSSCMSDataModelModelsCertificateStoreEntry.md) | | +**Schedule** | [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | +**CollectionId** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCertificateStoresAddCertificateRequest + +`func NewCertificateStoresAddCertificateRequest(certificateId int32, certificateStores []CSSCMSDataModelModelsCertificateStoreEntry, schedule KeyfactorCommonSchedulingKeyfactorSchedule, ) *CertificateStoresAddCertificateRequest` + +NewCertificateStoresAddCertificateRequest instantiates a new CertificateStoresAddCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresAddCertificateRequestWithDefaults + +`func NewCertificateStoresAddCertificateRequestWithDefaults() *CertificateStoresAddCertificateRequest` + +NewCertificateStoresAddCertificateRequestWithDefaults instantiates a new CertificateStoresAddCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateId + +`func (o *CertificateStoresAddCertificateRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *CertificateStoresAddCertificateRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *CertificateStoresAddCertificateRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + + +### GetCertificateStores + +`func (o *CertificateStoresAddCertificateRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateStoreEntry` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *CertificateStoresAddCertificateRequest) GetCertificateStoresOk() (*[]CSSCMSDataModelModelsCertificateStoreEntry, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *CertificateStoresAddCertificateRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateStoreEntry)` + +SetCertificateStores sets CertificateStores field to given value. + + +### GetSchedule + +`func (o *CertificateStoresAddCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CertificateStoresAddCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CertificateStoresAddCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + + +### GetCollectionId + +`func (o *CertificateStoresAddCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *CertificateStoresAddCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *CertificateStoresAddCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *CertificateStoresAddCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### SetCollectionIdNil + +`func (o *CertificateStoresAddCertificateRequest) SetCollectionIdNil(b bool)` + + SetCollectionIdNil sets the value for CollectionId to be an explicit nil + +### UnsetCollectionId +`func (o *CertificateStoresAddCertificateRequest) UnsetCollectionId()` + +UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreApproveRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreApproveRequest.md new file mode 100644 index 0000000..d3e8ff7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreApproveRequest.md @@ -0,0 +1,206 @@ +# CertificateStoresCertificateStoreApproveRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **NullableInt32** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewCertificateStoresCertificateStoreApproveRequest + +`func NewCertificateStoresCertificateStoreApproveRequest() *CertificateStoresCertificateStoreApproveRequest` + +NewCertificateStoresCertificateStoreApproveRequest instantiates a new CertificateStoresCertificateStoreApproveRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresCertificateStoreApproveRequestWithDefaults + +`func NewCertificateStoresCertificateStoreApproveRequestWithDefaults() *CertificateStoresCertificateStoreApproveRequest` + +NewCertificateStoresCertificateStoreApproveRequestWithDefaults instantiates a new CertificateStoresCertificateStoreApproveRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContainerId + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### SetContainerIdNil + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetContainerIdNil(b bool)` + + SetContainerIdNil sets the value for ContainerId to be an explicit nil + +### UnsetContainerId +`func (o *CertificateStoresCertificateStoreApproveRequest) UnsetContainerId()` + +UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +### GetCertStoreType + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateStoresCertificateStoreApproveRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetInventorySchedule + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetPassword + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CertificateStoresCertificateStoreApproveRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CertificateStoresCertificateStoreApproveRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CertificateStoresCertificateStoreApproveRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryCertificateResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryCertificateResponse.md new file mode 100644 index 0000000..cbccecb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryCertificateResponse.md @@ -0,0 +1,376 @@ +# CertificateStoresCertificateStoreInventoryCertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**SigningAlgorithm** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**CertStoreInventoryItemId** | Pointer to **int32** | | [optional] +**CertState** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCertificateStoresCertificateStoreInventoryCertificateResponse + +`func NewCertificateStoresCertificateStoreInventoryCertificateResponse() *CertificateStoresCertificateStoreInventoryCertificateResponse` + +NewCertificateStoresCertificateStoreInventoryCertificateResponse instantiates a new CertificateStoresCertificateStoreInventoryCertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresCertificateStoreInventoryCertificateResponseWithDefaults + +`func NewCertificateStoresCertificateStoreInventoryCertificateResponseWithDefaults() *CertificateStoresCertificateStoreInventoryCertificateResponse` + +NewCertificateStoresCertificateStoreInventoryCertificateResponseWithDefaults instantiates a new CertificateStoresCertificateStoreInventoryCertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIssuedDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetSerialNumber + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetNotBefore + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetSigningAlgorithm + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### SetSigningAlgorithmNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSigningAlgorithmNil(b bool)` + + SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil + +### UnsetSigningAlgorithm +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetSigningAlgorithm()` + +UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +### GetIssuerDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetCertStoreInventoryItemId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStoreInventoryItemId() int32` + +GetCertStoreInventoryItemId returns the CertStoreInventoryItemId field if non-nil, zero value otherwise. + +### GetCertStoreInventoryItemIdOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStoreInventoryItemIdOk() (*int32, bool)` + +GetCertStoreInventoryItemIdOk returns a tuple with the CertStoreInventoryItemId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreInventoryItemId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetCertStoreInventoryItemId(v int32)` + +SetCertStoreInventoryItemId sets CertStoreInventoryItemId field to given value. + +### HasCertStoreInventoryItemId + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasCertStoreInventoryItemId() bool` + +HasCertStoreInventoryItemId returns a boolean if a field has been set. + +### GetCertState + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertState() int32` + +GetCertState returns the CertState field if non-nil, zero value otherwise. + +### GetCertStateOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStateOk() (*int32, bool)` + +GetCertStateOk returns a tuple with the CertState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertState + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetCertState(v int32)` + +SetCertState sets CertState field to given value. + +### HasCertState + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasCertState() bool` + +HasCertState returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryResponse.md new file mode 100644 index 0000000..788ac8b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreInventoryResponse.md @@ -0,0 +1,138 @@ +# CertificateStoresCertificateStoreInventoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Certificates** | Pointer to [**[]CertificateStoresCertificateStoreInventoryCertificateResponse**](CertificateStoresCertificateStoreInventoryCertificateResponse.md) | | [optional] +**Parameters** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCertificateStoresCertificateStoreInventoryResponse + +`func NewCertificateStoresCertificateStoreInventoryResponse() *CertificateStoresCertificateStoreInventoryResponse` + +NewCertificateStoresCertificateStoreInventoryResponse instantiates a new CertificateStoresCertificateStoreInventoryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresCertificateStoreInventoryResponseWithDefaults + +`func NewCertificateStoresCertificateStoreInventoryResponseWithDefaults() *CertificateStoresCertificateStoreInventoryResponse` + +NewCertificateStoresCertificateStoreInventoryResponseWithDefaults instantiates a new CertificateStoresCertificateStoreInventoryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateStoresCertificateStoreInventoryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateStoresCertificateStoreInventoryResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCertificates + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetCertificates() []CertificateStoresCertificateStoreInventoryCertificateResponse` + +GetCertificates returns the Certificates field if non-nil, zero value otherwise. + +### GetCertificatesOk + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetCertificatesOk() (*[]CertificateStoresCertificateStoreInventoryCertificateResponse, bool)` + +GetCertificatesOk returns a tuple with the Certificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificates + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetCertificates(v []CertificateStoresCertificateStoreInventoryCertificateResponse)` + +SetCertificates sets Certificates field to given value. + +### HasCertificates + +`func (o *CertificateStoresCertificateStoreInventoryResponse) HasCertificates() bool` + +HasCertificates returns a boolean if a field has been set. + +### SetCertificatesNil + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetCertificatesNil(b bool)` + + SetCertificatesNil sets the value for Certificates to be an explicit nil + +### UnsetCertificates +`func (o *CertificateStoresCertificateStoreInventoryResponse) UnsetCertificates()` + +UnsetCertificates ensures that no value is present for Certificates, not even an explicit nil +### GetParameters + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *CertificateStoresCertificateStoreInventoryResponse) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *CertificateStoresCertificateStoreInventoryResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *CertificateStoresCertificateStoreInventoryResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *CertificateStoresCertificateStoreInventoryResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreResponse.md new file mode 100644 index 0000000..f37c471 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresCertificateStoreResponse.md @@ -0,0 +1,552 @@ +# CertificateStoresCertificateStoreResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **NullableInt32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**Storepath** | Pointer to **NullableString** | | [optional] +**CertStoreInventoryJobId** | Pointer to **NullableString** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**AgentAssigned** | Pointer to **bool** | | [optional] +**ContainerName** | Pointer to **NullableString** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ReenrollmentStatus** | Pointer to [**CSSCMSDataModelModelsReenrollmentStatus**](CSSCMSDataModelModelsReenrollmentStatus.md) | | [optional] +**SetNewPasswordAllowed** | Pointer to **bool** | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorSecret**](CSSCMSDataModelModelsKeyfactorSecret.md) | | [optional] + +## Methods + +### NewCertificateStoresCertificateStoreResponse + +`func NewCertificateStoresCertificateStoreResponse() *CertificateStoresCertificateStoreResponse` + +NewCertificateStoresCertificateStoreResponse instantiates a new CertificateStoresCertificateStoreResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresCertificateStoreResponseWithDefaults + +`func NewCertificateStoresCertificateStoreResponseWithDefaults() *CertificateStoresCertificateStoreResponse` + +NewCertificateStoresCertificateStoreResponseWithDefaults instantiates a new CertificateStoresCertificateStoreResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificateStoresCertificateStoreResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateStoresCertificateStoreResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificateStoresCertificateStoreResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificateStoresCertificateStoreResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContainerId + +`func (o *CertificateStoresCertificateStoreResponse) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *CertificateStoresCertificateStoreResponse) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *CertificateStoresCertificateStoreResponse) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *CertificateStoresCertificateStoreResponse) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### SetContainerIdNil + +`func (o *CertificateStoresCertificateStoreResponse) SetContainerIdNil(b bool)` + + SetContainerIdNil sets the value for ContainerId to be an explicit nil + +### UnsetContainerId +`func (o *CertificateStoresCertificateStoreResponse) UnsetContainerId()` + +UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +### GetDisplayName + +`func (o *CertificateStoresCertificateStoreResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CertificateStoresCertificateStoreResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CertificateStoresCertificateStoreResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CertificateStoresCertificateStoreResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CertificateStoresCertificateStoreResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CertificateStoresCertificateStoreResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetClientMachine + +`func (o *CertificateStoresCertificateStoreResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CertificateStoresCertificateStoreResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CertificateStoresCertificateStoreResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CertificateStoresCertificateStoreResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CertificateStoresCertificateStoreResponse) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CertificateStoresCertificateStoreResponse) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetStorepath + +`func (o *CertificateStoresCertificateStoreResponse) GetStorepath() string` + +GetStorepath returns the Storepath field if non-nil, zero value otherwise. + +### GetStorepathOk + +`func (o *CertificateStoresCertificateStoreResponse) GetStorepathOk() (*string, bool)` + +GetStorepathOk returns a tuple with the Storepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorepath + +`func (o *CertificateStoresCertificateStoreResponse) SetStorepath(v string)` + +SetStorepath sets Storepath field to given value. + +### HasStorepath + +`func (o *CertificateStoresCertificateStoreResponse) HasStorepath() bool` + +HasStorepath returns a boolean if a field has been set. + +### SetStorepathNil + +`func (o *CertificateStoresCertificateStoreResponse) SetStorepathNil(b bool)` + + SetStorepathNil sets the value for Storepath to be an explicit nil + +### UnsetStorepath +`func (o *CertificateStoresCertificateStoreResponse) UnsetStorepath()` + +UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +### GetCertStoreInventoryJobId + +`func (o *CertificateStoresCertificateStoreResponse) GetCertStoreInventoryJobId() string` + +GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field if non-nil, zero value otherwise. + +### GetCertStoreInventoryJobIdOk + +`func (o *CertificateStoresCertificateStoreResponse) GetCertStoreInventoryJobIdOk() (*string, bool)` + +GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreInventoryJobId + +`func (o *CertificateStoresCertificateStoreResponse) SetCertStoreInventoryJobId(v string)` + +SetCertStoreInventoryJobId sets CertStoreInventoryJobId field to given value. + +### HasCertStoreInventoryJobId + +`func (o *CertificateStoresCertificateStoreResponse) HasCertStoreInventoryJobId() bool` + +HasCertStoreInventoryJobId returns a boolean if a field has been set. + +### SetCertStoreInventoryJobIdNil + +`func (o *CertificateStoresCertificateStoreResponse) SetCertStoreInventoryJobIdNil(b bool)` + + SetCertStoreInventoryJobIdNil sets the value for CertStoreInventoryJobId to be an explicit nil + +### UnsetCertStoreInventoryJobId +`func (o *CertificateStoresCertificateStoreResponse) UnsetCertStoreInventoryJobId()` + +UnsetCertStoreInventoryJobId ensures that no value is present for CertStoreInventoryJobId, not even an explicit nil +### GetCertStoreType + +`func (o *CertificateStoresCertificateStoreResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *CertificateStoresCertificateStoreResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *CertificateStoresCertificateStoreResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *CertificateStoresCertificateStoreResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetApproved + +`func (o *CertificateStoresCertificateStoreResponse) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *CertificateStoresCertificateStoreResponse) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *CertificateStoresCertificateStoreResponse) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *CertificateStoresCertificateStoreResponse) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *CertificateStoresCertificateStoreResponse) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *CertificateStoresCertificateStoreResponse) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *CertificateStoresCertificateStoreResponse) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *CertificateStoresCertificateStoreResponse) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateStoresCertificateStoreResponse) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateStoresCertificateStoreResponse) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateStoresCertificateStoreResponse) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateStoresCertificateStoreResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateStoresCertificateStoreResponse) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateStoresCertificateStoreResponse) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetAgentId + +`func (o *CertificateStoresCertificateStoreResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CertificateStoresCertificateStoreResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CertificateStoresCertificateStoreResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CertificateStoresCertificateStoreResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CertificateStoresCertificateStoreResponse) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CertificateStoresCertificateStoreResponse) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetAgentAssigned + +`func (o *CertificateStoresCertificateStoreResponse) GetAgentAssigned() bool` + +GetAgentAssigned returns the AgentAssigned field if non-nil, zero value otherwise. + +### GetAgentAssignedOk + +`func (o *CertificateStoresCertificateStoreResponse) GetAgentAssignedOk() (*bool, bool)` + +GetAgentAssignedOk returns a tuple with the AgentAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentAssigned + +`func (o *CertificateStoresCertificateStoreResponse) SetAgentAssigned(v bool)` + +SetAgentAssigned sets AgentAssigned field to given value. + +### HasAgentAssigned + +`func (o *CertificateStoresCertificateStoreResponse) HasAgentAssigned() bool` + +HasAgentAssigned returns a boolean if a field has been set. + +### GetContainerName + +`func (o *CertificateStoresCertificateStoreResponse) GetContainerName() string` + +GetContainerName returns the ContainerName field if non-nil, zero value otherwise. + +### GetContainerNameOk + +`func (o *CertificateStoresCertificateStoreResponse) GetContainerNameOk() (*string, bool)` + +GetContainerNameOk returns a tuple with the ContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerName + +`func (o *CertificateStoresCertificateStoreResponse) SetContainerName(v string)` + +SetContainerName sets ContainerName field to given value. + +### HasContainerName + +`func (o *CertificateStoresCertificateStoreResponse) HasContainerName() bool` + +HasContainerName returns a boolean if a field has been set. + +### SetContainerNameNil + +`func (o *CertificateStoresCertificateStoreResponse) SetContainerNameNil(b bool)` + + SetContainerNameNil sets the value for ContainerName to be an explicit nil + +### UnsetContainerName +`func (o *CertificateStoresCertificateStoreResponse) UnsetContainerName()` + +UnsetContainerName ensures that no value is present for ContainerName, not even an explicit nil +### GetInventorySchedule + +`func (o *CertificateStoresCertificateStoreResponse) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *CertificateStoresCertificateStoreResponse) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *CertificateStoresCertificateStoreResponse) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *CertificateStoresCertificateStoreResponse) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetReenrollmentStatus + +`func (o *CertificateStoresCertificateStoreResponse) GetReenrollmentStatus() CSSCMSDataModelModelsReenrollmentStatus` + +GetReenrollmentStatus returns the ReenrollmentStatus field if non-nil, zero value otherwise. + +### GetReenrollmentStatusOk + +`func (o *CertificateStoresCertificateStoreResponse) GetReenrollmentStatusOk() (*CSSCMSDataModelModelsReenrollmentStatus, bool)` + +GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReenrollmentStatus + +`func (o *CertificateStoresCertificateStoreResponse) SetReenrollmentStatus(v CSSCMSDataModelModelsReenrollmentStatus)` + +SetReenrollmentStatus sets ReenrollmentStatus field to given value. + +### HasReenrollmentStatus + +`func (o *CertificateStoresCertificateStoreResponse) HasReenrollmentStatus() bool` + +HasReenrollmentStatus returns a boolean if a field has been set. + +### GetSetNewPasswordAllowed + +`func (o *CertificateStoresCertificateStoreResponse) GetSetNewPasswordAllowed() bool` + +GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field if non-nil, zero value otherwise. + +### GetSetNewPasswordAllowedOk + +`func (o *CertificateStoresCertificateStoreResponse) GetSetNewPasswordAllowedOk() (*bool, bool)` + +GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetNewPasswordAllowed + +`func (o *CertificateStoresCertificateStoreResponse) SetSetNewPasswordAllowed(v bool)` + +SetSetNewPasswordAllowed sets SetNewPasswordAllowed field to given value. + +### HasSetNewPasswordAllowed + +`func (o *CertificateStoresCertificateStoreResponse) HasSetNewPasswordAllowed() bool` + +HasSetNewPasswordAllowed returns a boolean if a field has been set. + +### GetPassword + +`func (o *CertificateStoresCertificateStoreResponse) GetPassword() CSSCMSDataModelModelsKeyfactorSecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CertificateStoresCertificateStoreResponse) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorSecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CertificateStoresCertificateStoreResponse) SetPassword(v CSSCMSDataModelModelsKeyfactorSecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CertificateStoresCertificateStoreResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresJobHistoryResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoresJobHistoryResponse.md new file mode 100644 index 0000000..fddd2b6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresJobHistoryResponse.md @@ -0,0 +1,402 @@ +# CertificateStoresJobHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobHistoryId** | Pointer to **int64** | | [optional] +**AgentMachine** | Pointer to **NullableString** | | [optional] +**JobId** | Pointer to **string** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobType** | Pointer to **NullableString** | | [optional] +**OperationStart** | Pointer to **time.Time** | | [optional] +**OperationEnd** | Pointer to **NullableTime** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Result** | Pointer to [**KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult**](KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult.md) | | [optional] +**Status** | Pointer to [**KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus**](KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus.md) | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateStoresJobHistoryResponse + +`func NewCertificateStoresJobHistoryResponse() *CertificateStoresJobHistoryResponse` + +NewCertificateStoresJobHistoryResponse instantiates a new CertificateStoresJobHistoryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresJobHistoryResponseWithDefaults + +`func NewCertificateStoresJobHistoryResponseWithDefaults() *CertificateStoresJobHistoryResponse` + +NewCertificateStoresJobHistoryResponseWithDefaults instantiates a new CertificateStoresJobHistoryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobHistoryId + +`func (o *CertificateStoresJobHistoryResponse) GetJobHistoryId() int64` + +GetJobHistoryId returns the JobHistoryId field if non-nil, zero value otherwise. + +### GetJobHistoryIdOk + +`func (o *CertificateStoresJobHistoryResponse) GetJobHistoryIdOk() (*int64, bool)` + +GetJobHistoryIdOk returns a tuple with the JobHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobHistoryId + +`func (o *CertificateStoresJobHistoryResponse) SetJobHistoryId(v int64)` + +SetJobHistoryId sets JobHistoryId field to given value. + +### HasJobHistoryId + +`func (o *CertificateStoresJobHistoryResponse) HasJobHistoryId() bool` + +HasJobHistoryId returns a boolean if a field has been set. + +### GetAgentMachine + +`func (o *CertificateStoresJobHistoryResponse) GetAgentMachine() string` + +GetAgentMachine returns the AgentMachine field if non-nil, zero value otherwise. + +### GetAgentMachineOk + +`func (o *CertificateStoresJobHistoryResponse) GetAgentMachineOk() (*string, bool)` + +GetAgentMachineOk returns a tuple with the AgentMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentMachine + +`func (o *CertificateStoresJobHistoryResponse) SetAgentMachine(v string)` + +SetAgentMachine sets AgentMachine field to given value. + +### HasAgentMachine + +`func (o *CertificateStoresJobHistoryResponse) HasAgentMachine() bool` + +HasAgentMachine returns a boolean if a field has been set. + +### SetAgentMachineNil + +`func (o *CertificateStoresJobHistoryResponse) SetAgentMachineNil(b bool)` + + SetAgentMachineNil sets the value for AgentMachine to be an explicit nil + +### UnsetAgentMachine +`func (o *CertificateStoresJobHistoryResponse) UnsetAgentMachine()` + +UnsetAgentMachine ensures that no value is present for AgentMachine, not even an explicit nil +### GetJobId + +`func (o *CertificateStoresJobHistoryResponse) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *CertificateStoresJobHistoryResponse) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *CertificateStoresJobHistoryResponse) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *CertificateStoresJobHistoryResponse) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetSchedule + +`func (o *CertificateStoresJobHistoryResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CertificateStoresJobHistoryResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CertificateStoresJobHistoryResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *CertificateStoresJobHistoryResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobType + +`func (o *CertificateStoresJobHistoryResponse) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *CertificateStoresJobHistoryResponse) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *CertificateStoresJobHistoryResponse) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *CertificateStoresJobHistoryResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### SetJobTypeNil + +`func (o *CertificateStoresJobHistoryResponse) SetJobTypeNil(b bool)` + + SetJobTypeNil sets the value for JobType to be an explicit nil + +### UnsetJobType +`func (o *CertificateStoresJobHistoryResponse) UnsetJobType()` + +UnsetJobType ensures that no value is present for JobType, not even an explicit nil +### GetOperationStart + +`func (o *CertificateStoresJobHistoryResponse) GetOperationStart() time.Time` + +GetOperationStart returns the OperationStart field if non-nil, zero value otherwise. + +### GetOperationStartOk + +`func (o *CertificateStoresJobHistoryResponse) GetOperationStartOk() (*time.Time, bool)` + +GetOperationStartOk returns a tuple with the OperationStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationStart + +`func (o *CertificateStoresJobHistoryResponse) SetOperationStart(v time.Time)` + +SetOperationStart sets OperationStart field to given value. + +### HasOperationStart + +`func (o *CertificateStoresJobHistoryResponse) HasOperationStart() bool` + +HasOperationStart returns a boolean if a field has been set. + +### GetOperationEnd + +`func (o *CertificateStoresJobHistoryResponse) GetOperationEnd() time.Time` + +GetOperationEnd returns the OperationEnd field if non-nil, zero value otherwise. + +### GetOperationEndOk + +`func (o *CertificateStoresJobHistoryResponse) GetOperationEndOk() (*time.Time, bool)` + +GetOperationEndOk returns a tuple with the OperationEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationEnd + +`func (o *CertificateStoresJobHistoryResponse) SetOperationEnd(v time.Time)` + +SetOperationEnd sets OperationEnd field to given value. + +### HasOperationEnd + +`func (o *CertificateStoresJobHistoryResponse) HasOperationEnd() bool` + +HasOperationEnd returns a boolean if a field has been set. + +### SetOperationEndNil + +`func (o *CertificateStoresJobHistoryResponse) SetOperationEndNil(b bool)` + + SetOperationEndNil sets the value for OperationEnd to be an explicit nil + +### UnsetOperationEnd +`func (o *CertificateStoresJobHistoryResponse) UnsetOperationEnd()` + +UnsetOperationEnd ensures that no value is present for OperationEnd, not even an explicit nil +### GetMessage + +`func (o *CertificateStoresJobHistoryResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CertificateStoresJobHistoryResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CertificateStoresJobHistoryResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CertificateStoresJobHistoryResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CertificateStoresJobHistoryResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CertificateStoresJobHistoryResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetResult + +`func (o *CertificateStoresJobHistoryResponse) GetResult() KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *CertificateStoresJobHistoryResponse) GetResultOk() (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *CertificateStoresJobHistoryResponse) SetResult(v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *CertificateStoresJobHistoryResponse) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetStatus + +`func (o *CertificateStoresJobHistoryResponse) GetStatus() KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CertificateStoresJobHistoryResponse) GetStatusOk() (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CertificateStoresJobHistoryResponse) SetStatus(v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CertificateStoresJobHistoryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStorePath + +`func (o *CertificateStoresJobHistoryResponse) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CertificateStoresJobHistoryResponse) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CertificateStoresJobHistoryResponse) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CertificateStoresJobHistoryResponse) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CertificateStoresJobHistoryResponse) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CertificateStoresJobHistoryResponse) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetClientMachine + +`func (o *CertificateStoresJobHistoryResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *CertificateStoresJobHistoryResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *CertificateStoresJobHistoryResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *CertificateStoresJobHistoryResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *CertificateStoresJobHistoryResponse) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *CertificateStoresJobHistoryResponse) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresReenrollmentRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresReenrollmentRequest.md new file mode 100644 index 0000000..917844f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresReenrollmentRequest.md @@ -0,0 +1,262 @@ +# CertificateStoresReenrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeystoreId** | Pointer to **string** | | [optional] +**SubjectName** | Pointer to **NullableString** | | [optional] +**AgentGuid** | Pointer to **string** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**JobProperties** | Pointer to **map[string]interface{}** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**CertificateTemplate** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateStoresReenrollmentRequest + +`func NewCertificateStoresReenrollmentRequest() *CertificateStoresReenrollmentRequest` + +NewCertificateStoresReenrollmentRequest instantiates a new CertificateStoresReenrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresReenrollmentRequestWithDefaults + +`func NewCertificateStoresReenrollmentRequestWithDefaults() *CertificateStoresReenrollmentRequest` + +NewCertificateStoresReenrollmentRequestWithDefaults instantiates a new CertificateStoresReenrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeystoreId + +`func (o *CertificateStoresReenrollmentRequest) GetKeystoreId() string` + +GetKeystoreId returns the KeystoreId field if non-nil, zero value otherwise. + +### GetKeystoreIdOk + +`func (o *CertificateStoresReenrollmentRequest) GetKeystoreIdOk() (*string, bool)` + +GetKeystoreIdOk returns a tuple with the KeystoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreId + +`func (o *CertificateStoresReenrollmentRequest) SetKeystoreId(v string)` + +SetKeystoreId sets KeystoreId field to given value. + +### HasKeystoreId + +`func (o *CertificateStoresReenrollmentRequest) HasKeystoreId() bool` + +HasKeystoreId returns a boolean if a field has been set. + +### GetSubjectName + +`func (o *CertificateStoresReenrollmentRequest) GetSubjectName() string` + +GetSubjectName returns the SubjectName field if non-nil, zero value otherwise. + +### GetSubjectNameOk + +`func (o *CertificateStoresReenrollmentRequest) GetSubjectNameOk() (*string, bool)` + +GetSubjectNameOk returns a tuple with the SubjectName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectName + +`func (o *CertificateStoresReenrollmentRequest) SetSubjectName(v string)` + +SetSubjectName sets SubjectName field to given value. + +### HasSubjectName + +`func (o *CertificateStoresReenrollmentRequest) HasSubjectName() bool` + +HasSubjectName returns a boolean if a field has been set. + +### SetSubjectNameNil + +`func (o *CertificateStoresReenrollmentRequest) SetSubjectNameNil(b bool)` + + SetSubjectNameNil sets the value for SubjectName to be an explicit nil + +### UnsetSubjectName +`func (o *CertificateStoresReenrollmentRequest) UnsetSubjectName()` + +UnsetSubjectName ensures that no value is present for SubjectName, not even an explicit nil +### GetAgentGuid + +`func (o *CertificateStoresReenrollmentRequest) GetAgentGuid() string` + +GetAgentGuid returns the AgentGuid field if non-nil, zero value otherwise. + +### GetAgentGuidOk + +`func (o *CertificateStoresReenrollmentRequest) GetAgentGuidOk() (*string, bool)` + +GetAgentGuidOk returns a tuple with the AgentGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentGuid + +`func (o *CertificateStoresReenrollmentRequest) SetAgentGuid(v string)` + +SetAgentGuid sets AgentGuid field to given value. + +### HasAgentGuid + +`func (o *CertificateStoresReenrollmentRequest) HasAgentGuid() bool` + +HasAgentGuid returns a boolean if a field has been set. + +### GetAlias + +`func (o *CertificateStoresReenrollmentRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CertificateStoresReenrollmentRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CertificateStoresReenrollmentRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CertificateStoresReenrollmentRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CertificateStoresReenrollmentRequest) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CertificateStoresReenrollmentRequest) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetJobProperties + +`func (o *CertificateStoresReenrollmentRequest) GetJobProperties() map[string]interface{}` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *CertificateStoresReenrollmentRequest) GetJobPropertiesOk() (*map[string]interface{}, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *CertificateStoresReenrollmentRequest) SetJobProperties(v map[string]interface{})` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *CertificateStoresReenrollmentRequest) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### SetJobPropertiesNil + +`func (o *CertificateStoresReenrollmentRequest) SetJobPropertiesNil(b bool)` + + SetJobPropertiesNil sets the value for JobProperties to be an explicit nil + +### UnsetJobProperties +`func (o *CertificateStoresReenrollmentRequest) UnsetJobProperties()` + +UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +### GetCertificateAuthority + +`func (o *CertificateStoresReenrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *CertificateStoresReenrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *CertificateStoresReenrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *CertificateStoresReenrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *CertificateStoresReenrollmentRequest) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *CertificateStoresReenrollmentRequest) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetCertificateTemplate + +`func (o *CertificateStoresReenrollmentRequest) GetCertificateTemplate() string` + +GetCertificateTemplate returns the CertificateTemplate field if non-nil, zero value otherwise. + +### GetCertificateTemplateOk + +`func (o *CertificateStoresReenrollmentRequest) GetCertificateTemplateOk() (*string, bool)` + +GetCertificateTemplateOk returns a tuple with the CertificateTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateTemplate + +`func (o *CertificateStoresReenrollmentRequest) SetCertificateTemplate(v string)` + +SetCertificateTemplate sets CertificateTemplate field to given value. + +### HasCertificateTemplate + +`func (o *CertificateStoresReenrollmentRequest) HasCertificateTemplate() bool` + +HasCertificateTemplate returns a boolean if a field has been set. + +### SetCertificateTemplateNil + +`func (o *CertificateStoresReenrollmentRequest) SetCertificateTemplateNil(b bool)` + + SetCertificateTemplateNil sets the value for CertificateTemplate to be an explicit nil + +### UnsetCertificateTemplate +`func (o *CertificateStoresReenrollmentRequest) UnsetCertificateTemplate()` + +UnsetCertificateTemplate ensures that no value is present for CertificateTemplate, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresRemoveCertificateRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresRemoveCertificateRequest.md new file mode 100644 index 0000000..b27f218 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresRemoveCertificateRequest.md @@ -0,0 +1,108 @@ +# CertificateStoresRemoveCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateStores** | [**[]CSSCMSDataModelModelsCertificateLocationSpecifier**](CSSCMSDataModelModelsCertificateLocationSpecifier.md) | | +**Schedule** | [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | +**CollectionId** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCertificateStoresRemoveCertificateRequest + +`func NewCertificateStoresRemoveCertificateRequest(certificateStores []CSSCMSDataModelModelsCertificateLocationSpecifier, schedule KeyfactorCommonSchedulingKeyfactorSchedule, ) *CertificateStoresRemoveCertificateRequest` + +NewCertificateStoresRemoveCertificateRequest instantiates a new CertificateStoresRemoveCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresRemoveCertificateRequestWithDefaults + +`func NewCertificateStoresRemoveCertificateRequestWithDefaults() *CertificateStoresRemoveCertificateRequest` + +NewCertificateStoresRemoveCertificateRequestWithDefaults instantiates a new CertificateStoresRemoveCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateStores + +`func (o *CertificateStoresRemoveCertificateRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateLocationSpecifier` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *CertificateStoresRemoveCertificateRequest) GetCertificateStoresOk() (*[]CSSCMSDataModelModelsCertificateLocationSpecifier, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *CertificateStoresRemoveCertificateRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateLocationSpecifier)` + +SetCertificateStores sets CertificateStores field to given value. + + +### GetSchedule + +`func (o *CertificateStoresRemoveCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *CertificateStoresRemoveCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *CertificateStoresRemoveCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + + +### GetCollectionId + +`func (o *CertificateStoresRemoveCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *CertificateStoresRemoveCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *CertificateStoresRemoveCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *CertificateStoresRemoveCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### SetCollectionIdNil + +`func (o *CertificateStoresRemoveCertificateRequest) SetCollectionIdNil(b bool)` + + SetCollectionIdNil sets the value for CollectionId to be an explicit nil + +### UnsetCollectionId +`func (o *CertificateStoresRemoveCertificateRequest) UnsetCollectionId()` + +UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeCreationRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeCreationRequest.md new file mode 100644 index 0000000..4efad36 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeCreationRequest.md @@ -0,0 +1,728 @@ +# CertificateStoresTypesCertificateStoreTypeCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ShortName** | **string** | | +**Capability** | Pointer to **NullableString** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**CSSCMSDataModelModelsCertStoreTypeSupportedOperations**](CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypeProperty**](CSSCMSDataModelModelsCertificateStoreTypeProperty.md) | | [optional] +**PasswordOptions** | Pointer to [**CSSCMSDataModelModelsCertStoreTypePasswordOptions**](CSSCMSDataModelModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **NullableString** | | [optional] +**StorePathValue** | Pointer to **NullableString** | | [optional] +**PrivateKeyAllowed** | Pointer to [**CSSCMSCoreEnumsCertStorePrivateKey**](CSSCMSCoreEnumsCertStorePrivateKey.md) | | [optional] +**CertificateFormat** | Pointer to [**CSSCMSCoreEnumsCertificateFormat**](CSSCMSCoreEnumsCertificateFormat.md) | | [optional] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to [**KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias**](KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md) | | [optional] +**ServerRegistration** | Pointer to **NullableInt32** | | [optional] +**InventoryEndpoint** | Pointer to **NullableString** | | [optional] +**InventoryJobTypeId** | Pointer to **string** | | [optional] +**ManagementJobTypeId** | Pointer to **NullableString** | | [optional] +**DiscoveryJobTypeId** | Pointer to **NullableString** | | [optional] +**EnrollmentJobTypeId** | Pointer to **NullableString** | | [optional] +**JobProperties** | Pointer to **[]string** | | [optional] +**EntryParameters** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewCertificateStoresTypesCertificateStoreTypeCreationRequest + +`func NewCertificateStoresTypesCertificateStoreTypeCreationRequest(name string, shortName string, ) *CertificateStoresTypesCertificateStoreTypeCreationRequest` + +NewCertificateStoresTypesCertificateStoreTypeCreationRequest instantiates a new CertificateStoresTypesCertificateStoreTypeCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults + +`func NewCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults() *CertificateStoresTypesCertificateStoreTypeCreationRequest` + +NewCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + + +### GetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### SetCapabilityNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapabilityNil(b bool)` + + SetCapabilityNil sets the value for Capability to be an explicit nil + +### UnsetCapability +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetCapability()` + +UnsetCapability ensures that no value is present for Capability, not even an explicit nil +### GetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPropertiesOk() (*[]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### SetStorePathTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathTypeNil(b bool)` + + SetStorePathTypeNil sets the value for StorePathType to be an explicit nil + +### UnsetStorePathType +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetStorePathType()` + +UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +### GetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### SetStorePathValueNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValueNil(b bool)` + + SetStorePathValueNil sets the value for StorePathValue to be an explicit nil + +### UnsetStorePathValue +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetStorePathValue()` + +UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +### GetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat` + +GetCertificateFormat returns the CertificateFormat field if non-nil, zero value otherwise. + +### GetCertificateFormatOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool)` + +GetCertificateFormatOk returns a tuple with the CertificateFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat)` + +SetCertificateFormat sets CertificateFormat field to given value. + +### HasCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCertificateFormat() bool` + +HasCertificateFormat returns a boolean if a field has been set. + +### GetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistration() int32` + +GetServerRegistration returns the ServerRegistration field if non-nil, zero value otherwise. + +### GetServerRegistrationOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistrationOk() (*int32, bool)` + +GetServerRegistrationOk returns a tuple with the ServerRegistration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistration(v int32)` + +SetServerRegistration sets ServerRegistration field to given value. + +### HasServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRegistration() bool` + +HasServerRegistration returns a boolean if a field has been set. + +### SetServerRegistrationNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistrationNil(b bool)` + + SetServerRegistrationNil sets the value for ServerRegistration to be an explicit nil + +### UnsetServerRegistration +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetServerRegistration()` + +UnsetServerRegistration ensures that no value is present for ServerRegistration, not even an explicit nil +### GetInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpoint() string` + +GetInventoryEndpoint returns the InventoryEndpoint field if non-nil, zero value otherwise. + +### GetInventoryEndpointOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpointOk() (*string, bool)` + +GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpoint(v string)` + +SetInventoryEndpoint sets InventoryEndpoint field to given value. + +### HasInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryEndpoint() bool` + +HasInventoryEndpoint returns a boolean if a field has been set. + +### SetInventoryEndpointNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpointNil(b bool)` + + SetInventoryEndpointNil sets the value for InventoryEndpoint to be an explicit nil + +### UnsetInventoryEndpoint +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetInventoryEndpoint()` + +UnsetInventoryEndpoint ensures that no value is present for InventoryEndpoint, not even an explicit nil +### GetInventoryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeId() string` + +GetInventoryJobTypeId returns the InventoryJobTypeId field if non-nil, zero value otherwise. + +### GetInventoryJobTypeIdOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeIdOk() (*string, bool)` + +GetInventoryJobTypeIdOk returns a tuple with the InventoryJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryJobTypeId(v string)` + +SetInventoryJobTypeId sets InventoryJobTypeId field to given value. + +### HasInventoryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryJobTypeId() bool` + +HasInventoryJobTypeId returns a boolean if a field has been set. + +### GetManagementJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeId() string` + +GetManagementJobTypeId returns the ManagementJobTypeId field if non-nil, zero value otherwise. + +### GetManagementJobTypeIdOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeIdOk() (*string, bool)` + +GetManagementJobTypeIdOk returns a tuple with the ManagementJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeId(v string)` + +SetManagementJobTypeId sets ManagementJobTypeId field to given value. + +### HasManagementJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasManagementJobTypeId() bool` + +HasManagementJobTypeId returns a boolean if a field has been set. + +### SetManagementJobTypeIdNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeIdNil(b bool)` + + SetManagementJobTypeIdNil sets the value for ManagementJobTypeId to be an explicit nil + +### UnsetManagementJobTypeId +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetManagementJobTypeId()` + +UnsetManagementJobTypeId ensures that no value is present for ManagementJobTypeId, not even an explicit nil +### GetDiscoveryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeId() string` + +GetDiscoveryJobTypeId returns the DiscoveryJobTypeId field if non-nil, zero value otherwise. + +### GetDiscoveryJobTypeIdOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeIdOk() (*string, bool)` + +GetDiscoveryJobTypeIdOk returns a tuple with the DiscoveryJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeId(v string)` + +SetDiscoveryJobTypeId sets DiscoveryJobTypeId field to given value. + +### HasDiscoveryJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasDiscoveryJobTypeId() bool` + +HasDiscoveryJobTypeId returns a boolean if a field has been set. + +### SetDiscoveryJobTypeIdNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeIdNil(b bool)` + + SetDiscoveryJobTypeIdNil sets the value for DiscoveryJobTypeId to be an explicit nil + +### UnsetDiscoveryJobTypeId +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetDiscoveryJobTypeId()` + +UnsetDiscoveryJobTypeId ensures that no value is present for DiscoveryJobTypeId, not even an explicit nil +### GetEnrollmentJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeId() string` + +GetEnrollmentJobTypeId returns the EnrollmentJobTypeId field if non-nil, zero value otherwise. + +### GetEnrollmentJobTypeIdOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeIdOk() (*string, bool)` + +GetEnrollmentJobTypeIdOk returns a tuple with the EnrollmentJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeId(v string)` + +SetEnrollmentJobTypeId sets EnrollmentJobTypeId field to given value. + +### HasEnrollmentJobTypeId + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasEnrollmentJobTypeId() bool` + +HasEnrollmentJobTypeId returns a boolean if a field has been set. + +### SetEnrollmentJobTypeIdNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeIdNil(b bool)` + + SetEnrollmentJobTypeIdNil sets the value for EnrollmentJobTypeId to be an explicit nil + +### UnsetEnrollmentJobTypeId +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetEnrollmentJobTypeId()` + +UnsetEnrollmentJobTypeId ensures that no value is present for EnrollmentJobTypeId, not even an explicit nil +### GetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetJobProperties() []string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetJobPropertiesOk() (*[]string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetJobProperties(v []string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### SetJobPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetJobPropertiesNil(b bool)` + + SetJobPropertiesNil sets the value for JobProperties to be an explicit nil + +### UnsetJobProperties +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetJobProperties()` + +UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +### GetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParametersOk() (*[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + +### SetEntryParametersNil + +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEntryParametersNil(b bool)` + + SetEntryParametersNil sets the value for EntryParameters to be an explicit nil + +### UnsetEntryParameters +`func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetEntryParameters()` + +UnsetEntryParameters ensures that no value is present for EntryParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeResponse.md b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeResponse.md new file mode 100644 index 0000000..a19a89f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeResponse.md @@ -0,0 +1,830 @@ +# CertificateStoresTypesCertificateStoreTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**ShortName** | Pointer to **NullableString** | | [optional] +**Capability** | Pointer to **NullableString** | | [optional] +**StoreType** | Pointer to **NullableInt32** | | [optional] +**ImportType** | Pointer to **NullableInt32** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**CSSCMSDataModelModelsCertStoreTypeSupportedOperations**](CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypeProperty**](CSSCMSDataModelModelsCertificateStoreTypeProperty.md) | | [optional] +**EntryParameters** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] +**PasswordOptions** | Pointer to [**CSSCMSDataModelModelsCertStoreTypePasswordOptions**](CSSCMSDataModelModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **NullableString** | | [optional] +**StorePathValue** | Pointer to **NullableString** | | [optional] +**PrivateKeyAllowed** | Pointer to [**CSSCMSCoreEnumsCertStorePrivateKey**](CSSCMSCoreEnumsCertStorePrivateKey.md) | | [optional] +**CertificateFormat** | Pointer to [**CSSCMSCoreEnumsCertificateFormat**](CSSCMSCoreEnumsCertificateFormat.md) | | [optional] +**JobProperties** | Pointer to **[]string** | | [optional] [readonly] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to [**KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias**](KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md) | | [optional] +**ServerRegistration** | Pointer to **NullableInt32** | | [optional] +**InventoryEndpoint** | Pointer to **NullableString** | | [optional] +**InventoryJobType** | Pointer to **string** | | [optional] +**ManagementJobType** | Pointer to **NullableString** | | [optional] +**DiscoveryJobType** | Pointer to **NullableString** | | [optional] +**EnrollmentJobType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificateStoresTypesCertificateStoreTypeResponse + +`func NewCertificateStoresTypesCertificateStoreTypeResponse() *CertificateStoresTypesCertificateStoreTypeResponse` + +NewCertificateStoresTypesCertificateStoreTypeResponse instantiates a new CertificateStoresTypesCertificateStoreTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresTypesCertificateStoreTypeResponseWithDefaults + +`func NewCertificateStoresTypesCertificateStoreTypeResponseWithDefaults() *CertificateStoresTypesCertificateStoreTypeResponse` + +NewCertificateStoresTypesCertificateStoreTypeResponseWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + +### HasShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasShortName() bool` + +HasShortName returns a boolean if a field has been set. + +### SetShortNameNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetShortNameNil(b bool)` + + SetShortNameNil sets the value for ShortName to be an explicit nil + +### UnsetShortName +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetShortName()` + +UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +### GetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### SetCapabilityNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCapabilityNil(b bool)` + + SetCapabilityNil sets the value for Capability to be an explicit nil + +### UnsetCapability +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetCapability()` + +UnsetCapability ensures that no value is present for Capability, not even an explicit nil +### GetStoreType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### SetStoreTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStoreTypeNil(b bool)` + + SetStoreTypeNil sets the value for StoreType to be an explicit nil + +### UnsetStoreType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStoreType()` + +UnsetStoreType ensures that no value is present for StoreType, not even an explicit nil +### GetImportType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetImportType() int32` + +GetImportType returns the ImportType field if non-nil, zero value otherwise. + +### GetImportTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetImportTypeOk() (*int32, bool)` + +GetImportTypeOk returns a tuple with the ImportType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetImportType(v int32)` + +SetImportType sets ImportType field to given value. + +### HasImportType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasImportType() bool` + +HasImportType returns a boolean if a field has been set. + +### SetImportTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetImportTypeNil(b bool)` + + SetImportTypeNil sets the value for ImportType to be an explicit nil + +### UnsetImportType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetImportType()` + +UnsetImportType ensures that no value is present for ImportType, not even an explicit nil +### GetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPropertiesOk() (*[]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEntryParametersOk() (*[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + +### SetEntryParametersNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEntryParametersNil(b bool)` + + SetEntryParametersNil sets the value for EntryParameters to be an explicit nil + +### UnsetEntryParameters +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetEntryParameters()` + +UnsetEntryParameters ensures that no value is present for EntryParameters, not even an explicit nil +### GetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### SetStorePathTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathTypeNil(b bool)` + + SetStorePathTypeNil sets the value for StorePathType to be an explicit nil + +### UnsetStorePathType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStorePathType()` + +UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +### GetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### SetStorePathValueNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValueNil(b bool)` + + SetStorePathValueNil sets the value for StorePathValue to be an explicit nil + +### UnsetStorePathValue +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStorePathValue()` + +UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +### GetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat` + +GetCertificateFormat returns the CertificateFormat field if non-nil, zero value otherwise. + +### GetCertificateFormatOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool)` + +GetCertificateFormatOk returns a tuple with the CertificateFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat)` + +SetCertificateFormat sets CertificateFormat field to given value. + +### HasCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCertificateFormat() bool` + +HasCertificateFormat returns a boolean if a field has been set. + +### GetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetJobProperties() []string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetJobPropertiesOk() (*[]string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetJobProperties(v []string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### SetJobPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetJobPropertiesNil(b bool)` + + SetJobPropertiesNil sets the value for JobProperties to be an explicit nil + +### UnsetJobProperties +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetJobProperties()` + +UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +### GetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistration() int32` + +GetServerRegistration returns the ServerRegistration field if non-nil, zero value otherwise. + +### GetServerRegistrationOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistrationOk() (*int32, bool)` + +GetServerRegistrationOk returns a tuple with the ServerRegistration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistration(v int32)` + +SetServerRegistration sets ServerRegistration field to given value. + +### HasServerRegistration + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasServerRegistration() bool` + +HasServerRegistration returns a boolean if a field has been set. + +### SetServerRegistrationNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistrationNil(b bool)` + + SetServerRegistrationNil sets the value for ServerRegistration to be an explicit nil + +### UnsetServerRegistration +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetServerRegistration()` + +UnsetServerRegistration ensures that no value is present for ServerRegistration, not even an explicit nil +### GetInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpoint() string` + +GetInventoryEndpoint returns the InventoryEndpoint field if non-nil, zero value otherwise. + +### GetInventoryEndpointOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpointOk() (*string, bool)` + +GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpoint(v string)` + +SetInventoryEndpoint sets InventoryEndpoint field to given value. + +### HasInventoryEndpoint + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasInventoryEndpoint() bool` + +HasInventoryEndpoint returns a boolean if a field has been set. + +### SetInventoryEndpointNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpointNil(b bool)` + + SetInventoryEndpointNil sets the value for InventoryEndpoint to be an explicit nil + +### UnsetInventoryEndpoint +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetInventoryEndpoint()` + +UnsetInventoryEndpoint ensures that no value is present for InventoryEndpoint, not even an explicit nil +### GetInventoryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobType() string` + +GetInventoryJobType returns the InventoryJobType field if non-nil, zero value otherwise. + +### GetInventoryJobTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobTypeOk() (*string, bool)` + +GetInventoryJobTypeOk returns a tuple with the InventoryJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryJobType(v string)` + +SetInventoryJobType sets InventoryJobType field to given value. + +### HasInventoryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasInventoryJobType() bool` + +HasInventoryJobType returns a boolean if a field has been set. + +### GetManagementJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobType() string` + +GetManagementJobType returns the ManagementJobType field if non-nil, zero value otherwise. + +### GetManagementJobTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobTypeOk() (*string, bool)` + +GetManagementJobTypeOk returns a tuple with the ManagementJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobType(v string)` + +SetManagementJobType sets ManagementJobType field to given value. + +### HasManagementJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasManagementJobType() bool` + +HasManagementJobType returns a boolean if a field has been set. + +### SetManagementJobTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobTypeNil(b bool)` + + SetManagementJobTypeNil sets the value for ManagementJobType to be an explicit nil + +### UnsetManagementJobType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetManagementJobType()` + +UnsetManagementJobType ensures that no value is present for ManagementJobType, not even an explicit nil +### GetDiscoveryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobType() string` + +GetDiscoveryJobType returns the DiscoveryJobType field if non-nil, zero value otherwise. + +### GetDiscoveryJobTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobTypeOk() (*string, bool)` + +GetDiscoveryJobTypeOk returns a tuple with the DiscoveryJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobType(v string)` + +SetDiscoveryJobType sets DiscoveryJobType field to given value. + +### HasDiscoveryJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasDiscoveryJobType() bool` + +HasDiscoveryJobType returns a boolean if a field has been set. + +### SetDiscoveryJobTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobTypeNil(b bool)` + + SetDiscoveryJobTypeNil sets the value for DiscoveryJobType to be an explicit nil + +### UnsetDiscoveryJobType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetDiscoveryJobType()` + +UnsetDiscoveryJobType ensures that no value is present for DiscoveryJobType, not even an explicit nil +### GetEnrollmentJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobType() string` + +GetEnrollmentJobType returns the EnrollmentJobType field if non-nil, zero value otherwise. + +### GetEnrollmentJobTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobTypeOk() (*string, bool)` + +GetEnrollmentJobTypeOk returns a tuple with the EnrollmentJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobType(v string)` + +SetEnrollmentJobType sets EnrollmentJobType field to given value. + +### HasEnrollmentJobType + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasEnrollmentJobType() bool` + +HasEnrollmentJobType returns a boolean if a field has been set. + +### SetEnrollmentJobTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobTypeNil(b bool)` + + SetEnrollmentJobTypeNil sets the value for EnrollmentJobType to be an explicit nil + +### UnsetEnrollmentJobType +`func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetEnrollmentJobType()` + +UnsetEnrollmentJobType ensures that no value is present for EnrollmentJobType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeUpdateRequest.md b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeUpdateRequest.md new file mode 100644 index 0000000..65917cc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificateStoresTypesCertificateStoreTypeUpdateRequest.md @@ -0,0 +1,543 @@ +# CertificateStoresTypesCertificateStoreTypeUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreType** | **int32** | | +**Name** | **string** | | +**ShortName** | **string** | | +**Capability** | Pointer to **NullableString** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**CSSCMSDataModelModelsCertStoreTypeSupportedOperations**](CSSCMSDataModelModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypeProperty**](CSSCMSDataModelModelsCertificateStoreTypeProperty.md) | | [optional] +**PasswordOptions** | Pointer to [**CSSCMSDataModelModelsCertStoreTypePasswordOptions**](CSSCMSDataModelModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **NullableString** | | [optional] +**StorePathValue** | Pointer to **NullableString** | | [optional] +**PrivateKeyAllowed** | Pointer to [**CSSCMSCoreEnumsCertStorePrivateKey**](CSSCMSCoreEnumsCertStorePrivateKey.md) | | [optional] +**CertificateFormat** | Pointer to [**CSSCMSCoreEnumsCertificateFormat**](CSSCMSCoreEnumsCertificateFormat.md) | | [optional] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to [**KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias**](KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md) | | [optional] +**JobProperties** | Pointer to **[]string** | | [optional] +**EntryParameters** | Pointer to [**[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewCertificateStoresTypesCertificateStoreTypeUpdateRequest + +`func NewCertificateStoresTypesCertificateStoreTypeUpdateRequest(storeType int32, name string, shortName string, ) *CertificateStoresTypesCertificateStoreTypeUpdateRequest` + +NewCertificateStoresTypesCertificateStoreTypeUpdateRequest instantiates a new CertificateStoresTypesCertificateStoreTypeUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults + +`func NewCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults() *CertificateStoresTypesCertificateStoreTypeUpdateRequest` + +NewCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreType + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + + +### GetName + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + + +### GetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### SetCapabilityNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapabilityNil(b bool)` + + SetCapabilityNil sets the value for Capability to be an explicit nil + +### UnsetCapability +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetCapability()` + +UnsetCapability ensures that no value is present for Capability, not even an explicit nil +### GetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPropertiesOk() (*[]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil +### GetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### SetStorePathTypeNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathTypeNil(b bool)` + + SetStorePathTypeNil sets the value for StorePathType to be an explicit nil + +### UnsetStorePathType +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetStorePathType()` + +UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +### GetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### SetStorePathValueNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValueNil(b bool)` + + SetStorePathValueNil sets the value for StorePathValue to be an explicit nil + +### UnsetStorePathValue +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetStorePathValue()` + +UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +### GetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat` + +GetCertificateFormat returns the CertificateFormat field if non-nil, zero value otherwise. + +### GetCertificateFormatOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool)` + +GetCertificateFormatOk returns a tuple with the CertificateFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat)` + +SetCertificateFormat sets CertificateFormat field to given value. + +### HasCertificateFormat + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCertificateFormat() bool` + +HasCertificateFormat returns a boolean if a field has been set. + +### GetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetJobProperties() []string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetJobPropertiesOk() (*[]string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetJobProperties(v []string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### SetJobPropertiesNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetJobPropertiesNil(b bool)` + + SetJobPropertiesNil sets the value for JobProperties to be an explicit nil + +### UnsetJobProperties +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetJobProperties()` + +UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +### GetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParametersOk() (*[]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + +### SetEntryParametersNil + +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetEntryParametersNil(b bool)` + + SetEntryParametersNil sets the value for EntryParameters to be an explicit nil + +### UnsetEntryParameters +`func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetEntryParameters()` + +UnsetEntryParameters ensures that no value is present for EntryParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesAnalyzeCertificateRequest.md b/v24/api/keyfactor/v1/docs/CertificatesAnalyzeCertificateRequest.md new file mode 100644 index 0000000..2a6c5d0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesAnalyzeCertificateRequest.md @@ -0,0 +1,102 @@ +# CertificatesAnalyzeCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Certificate** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesAnalyzeCertificateRequest + +`func NewCertificatesAnalyzeCertificateRequest() *CertificatesAnalyzeCertificateRequest` + +NewCertificatesAnalyzeCertificateRequest instantiates a new CertificatesAnalyzeCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesAnalyzeCertificateRequestWithDefaults + +`func NewCertificatesAnalyzeCertificateRequestWithDefaults() *CertificatesAnalyzeCertificateRequest` + +NewCertificatesAnalyzeCertificateRequestWithDefaults instantiates a new CertificatesAnalyzeCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificate + +`func (o *CertificatesAnalyzeCertificateRequest) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *CertificatesAnalyzeCertificateRequest) GetCertificateOk() (*string, bool)` + +GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificate + +`func (o *CertificatesAnalyzeCertificateRequest) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + +### HasCertificate + +`func (o *CertificatesAnalyzeCertificateRequest) HasCertificate() bool` + +HasCertificate returns a boolean if a field has been set. + +### SetCertificateNil + +`func (o *CertificatesAnalyzeCertificateRequest) SetCertificateNil(b bool)` + + SetCertificateNil sets the value for Certificate to be an explicit nil + +### UnsetCertificate +`func (o *CertificatesAnalyzeCertificateRequest) UnsetCertificate()` + +UnsetCertificate ensures that no value is present for Certificate, not even an explicit nil +### GetPassword + +`func (o *CertificatesAnalyzeCertificateRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CertificatesAnalyzeCertificateRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CertificatesAnalyzeCertificateRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CertificatesAnalyzeCertificateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *CertificatesAnalyzeCertificateRequest) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *CertificatesAnalyzeCertificateRequest) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertRequestResponseModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertRequestResponseModel.md new file mode 100644 index 0000000..d709690 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertRequestResponseModel.md @@ -0,0 +1,622 @@ +# CertificatesCertRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CARequestId** | Pointer to **NullableString** | | [optional] +**CommonName** | Pointer to **NullableString** | | [optional] +**DistinguishedName** | Pointer to **NullableString** | | [optional] +**SubmissionDate** | Pointer to **NullableTime** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**Requester** | Pointer to **NullableString** | | [optional] +**State** | Pointer to [**KeyfactorPKIEnumsCertificateState**](KeyfactorPKIEnumsCertificateState.md) | | [optional] +**StateString** | Pointer to **NullableString** | | [optional] [readonly] +**Metadata** | Pointer to **map[string]string** | | [optional] +**DenialComment** | Pointer to **NullableString** | | [optional] +**KeyLength** | Pointer to **NullableString** | | [optional] +**SANs** | Pointer to **[]string** | | [optional] +**CertStores** | Pointer to [**[]CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel**](CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel.md) | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] +**SubjectAltNames** | Pointer to [**[]CertificatesSubjectAlternativeName**](CertificatesSubjectAlternativeName.md) | | [optional] + +## Methods + +### NewCertificatesCertRequestResponseModel + +`func NewCertificatesCertRequestResponseModel() *CertificatesCertRequestResponseModel` + +NewCertificatesCertRequestResponseModel instantiates a new CertificatesCertRequestResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertRequestResponseModelWithDefaults + +`func NewCertificatesCertRequestResponseModelWithDefaults() *CertificatesCertRequestResponseModel` + +NewCertificatesCertRequestResponseModelWithDefaults instantiates a new CertificatesCertRequestResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertRequestResponseModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertRequestResponseModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertRequestResponseModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertRequestResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *CertificatesCertRequestResponseModel) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *CertificatesCertRequestResponseModel) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *CertificatesCertRequestResponseModel) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *CertificatesCertRequestResponseModel) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### SetCARequestIdNil + +`func (o *CertificatesCertRequestResponseModel) SetCARequestIdNil(b bool)` + + SetCARequestIdNil sets the value for CARequestId to be an explicit nil + +### UnsetCARequestId +`func (o *CertificatesCertRequestResponseModel) UnsetCARequestId()` + +UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +### GetCommonName + +`func (o *CertificatesCertRequestResponseModel) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *CertificatesCertRequestResponseModel) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *CertificatesCertRequestResponseModel) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *CertificatesCertRequestResponseModel) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### SetCommonNameNil + +`func (o *CertificatesCertRequestResponseModel) SetCommonNameNil(b bool)` + + SetCommonNameNil sets the value for CommonName to be an explicit nil + +### UnsetCommonName +`func (o *CertificatesCertRequestResponseModel) UnsetCommonName()` + +UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +### GetDistinguishedName + +`func (o *CertificatesCertRequestResponseModel) GetDistinguishedName() string` + +GetDistinguishedName returns the DistinguishedName field if non-nil, zero value otherwise. + +### GetDistinguishedNameOk + +`func (o *CertificatesCertRequestResponseModel) GetDistinguishedNameOk() (*string, bool)` + +GetDistinguishedNameOk returns a tuple with the DistinguishedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistinguishedName + +`func (o *CertificatesCertRequestResponseModel) SetDistinguishedName(v string)` + +SetDistinguishedName sets DistinguishedName field to given value. + +### HasDistinguishedName + +`func (o *CertificatesCertRequestResponseModel) HasDistinguishedName() bool` + +HasDistinguishedName returns a boolean if a field has been set. + +### SetDistinguishedNameNil + +`func (o *CertificatesCertRequestResponseModel) SetDistinguishedNameNil(b bool)` + + SetDistinguishedNameNil sets the value for DistinguishedName to be an explicit nil + +### UnsetDistinguishedName +`func (o *CertificatesCertRequestResponseModel) UnsetDistinguishedName()` + +UnsetDistinguishedName ensures that no value is present for DistinguishedName, not even an explicit nil +### GetSubmissionDate + +`func (o *CertificatesCertRequestResponseModel) GetSubmissionDate() time.Time` + +GetSubmissionDate returns the SubmissionDate field if non-nil, zero value otherwise. + +### GetSubmissionDateOk + +`func (o *CertificatesCertRequestResponseModel) GetSubmissionDateOk() (*time.Time, bool)` + +GetSubmissionDateOk returns a tuple with the SubmissionDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmissionDate + +`func (o *CertificatesCertRequestResponseModel) SetSubmissionDate(v time.Time)` + +SetSubmissionDate sets SubmissionDate field to given value. + +### HasSubmissionDate + +`func (o *CertificatesCertRequestResponseModel) HasSubmissionDate() bool` + +HasSubmissionDate returns a boolean if a field has been set. + +### SetSubmissionDateNil + +`func (o *CertificatesCertRequestResponseModel) SetSubmissionDateNil(b bool)` + + SetSubmissionDateNil sets the value for SubmissionDate to be an explicit nil + +### UnsetSubmissionDate +`func (o *CertificatesCertRequestResponseModel) UnsetSubmissionDate()` + +UnsetSubmissionDate ensures that no value is present for SubmissionDate, not even an explicit nil +### GetCertificateAuthority + +`func (o *CertificatesCertRequestResponseModel) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *CertificatesCertRequestResponseModel) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *CertificatesCertRequestResponseModel) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *CertificatesCertRequestResponseModel) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *CertificatesCertRequestResponseModel) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *CertificatesCertRequestResponseModel) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetTemplate + +`func (o *CertificatesCertRequestResponseModel) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *CertificatesCertRequestResponseModel) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *CertificatesCertRequestResponseModel) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *CertificatesCertRequestResponseModel) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *CertificatesCertRequestResponseModel) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *CertificatesCertRequestResponseModel) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetRequester + +`func (o *CertificatesCertRequestResponseModel) GetRequester() string` + +GetRequester returns the Requester field if non-nil, zero value otherwise. + +### GetRequesterOk + +`func (o *CertificatesCertRequestResponseModel) GetRequesterOk() (*string, bool)` + +GetRequesterOk returns a tuple with the Requester field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequester + +`func (o *CertificatesCertRequestResponseModel) SetRequester(v string)` + +SetRequester sets Requester field to given value. + +### HasRequester + +`func (o *CertificatesCertRequestResponseModel) HasRequester() bool` + +HasRequester returns a boolean if a field has been set. + +### SetRequesterNil + +`func (o *CertificatesCertRequestResponseModel) SetRequesterNil(b bool)` + + SetRequesterNil sets the value for Requester to be an explicit nil + +### UnsetRequester +`func (o *CertificatesCertRequestResponseModel) UnsetRequester()` + +UnsetRequester ensures that no value is present for Requester, not even an explicit nil +### GetState + +`func (o *CertificatesCertRequestResponseModel) GetState() KeyfactorPKIEnumsCertificateState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *CertificatesCertRequestResponseModel) GetStateOk() (*KeyfactorPKIEnumsCertificateState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *CertificatesCertRequestResponseModel) SetState(v KeyfactorPKIEnumsCertificateState)` + +SetState sets State field to given value. + +### HasState + +`func (o *CertificatesCertRequestResponseModel) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateString + +`func (o *CertificatesCertRequestResponseModel) GetStateString() string` + +GetStateString returns the StateString field if non-nil, zero value otherwise. + +### GetStateStringOk + +`func (o *CertificatesCertRequestResponseModel) GetStateStringOk() (*string, bool)` + +GetStateStringOk returns a tuple with the StateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateString + +`func (o *CertificatesCertRequestResponseModel) SetStateString(v string)` + +SetStateString sets StateString field to given value. + +### HasStateString + +`func (o *CertificatesCertRequestResponseModel) HasStateString() bool` + +HasStateString returns a boolean if a field has been set. + +### SetStateStringNil + +`func (o *CertificatesCertRequestResponseModel) SetStateStringNil(b bool)` + + SetStateStringNil sets the value for StateString to be an explicit nil + +### UnsetStateString +`func (o *CertificatesCertRequestResponseModel) UnsetStateString()` + +UnsetStateString ensures that no value is present for StateString, not even an explicit nil +### GetMetadata + +`func (o *CertificatesCertRequestResponseModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificatesCertRequestResponseModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificatesCertRequestResponseModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CertificatesCertRequestResponseModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CertificatesCertRequestResponseModel) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CertificatesCertRequestResponseModel) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetDenialComment + +`func (o *CertificatesCertRequestResponseModel) GetDenialComment() string` + +GetDenialComment returns the DenialComment field if non-nil, zero value otherwise. + +### GetDenialCommentOk + +`func (o *CertificatesCertRequestResponseModel) GetDenialCommentOk() (*string, bool)` + +GetDenialCommentOk returns a tuple with the DenialComment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenialComment + +`func (o *CertificatesCertRequestResponseModel) SetDenialComment(v string)` + +SetDenialComment sets DenialComment field to given value. + +### HasDenialComment + +`func (o *CertificatesCertRequestResponseModel) HasDenialComment() bool` + +HasDenialComment returns a boolean if a field has been set. + +### SetDenialCommentNil + +`func (o *CertificatesCertRequestResponseModel) SetDenialCommentNil(b bool)` + + SetDenialCommentNil sets the value for DenialComment to be an explicit nil + +### UnsetDenialComment +`func (o *CertificatesCertRequestResponseModel) UnsetDenialComment()` + +UnsetDenialComment ensures that no value is present for DenialComment, not even an explicit nil +### GetKeyLength + +`func (o *CertificatesCertRequestResponseModel) GetKeyLength() string` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *CertificatesCertRequestResponseModel) GetKeyLengthOk() (*string, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *CertificatesCertRequestResponseModel) SetKeyLength(v string)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *CertificatesCertRequestResponseModel) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### SetKeyLengthNil + +`func (o *CertificatesCertRequestResponseModel) SetKeyLengthNil(b bool)` + + SetKeyLengthNil sets the value for KeyLength to be an explicit nil + +### UnsetKeyLength +`func (o *CertificatesCertRequestResponseModel) UnsetKeyLength()` + +UnsetKeyLength ensures that no value is present for KeyLength, not even an explicit nil +### GetSANs + +`func (o *CertificatesCertRequestResponseModel) GetSANs() []string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *CertificatesCertRequestResponseModel) GetSANsOk() (*[]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *CertificatesCertRequestResponseModel) SetSANs(v []string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *CertificatesCertRequestResponseModel) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### SetSANsNil + +`func (o *CertificatesCertRequestResponseModel) SetSANsNil(b bool)` + + SetSANsNil sets the value for SANs to be an explicit nil + +### UnsetSANs +`func (o *CertificatesCertRequestResponseModel) UnsetSANs()` + +UnsetSANs ensures that no value is present for SANs, not even an explicit nil +### GetCertStores + +`func (o *CertificatesCertRequestResponseModel) GetCertStores() []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel` + +GetCertStores returns the CertStores field if non-nil, zero value otherwise. + +### GetCertStoresOk + +`func (o *CertificatesCertRequestResponseModel) GetCertStoresOk() (*[]CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel, bool)` + +GetCertStoresOk returns a tuple with the CertStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStores + +`func (o *CertificatesCertRequestResponseModel) SetCertStores(v []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel)` + +SetCertStores sets CertStores field to given value. + +### HasCertStores + +`func (o *CertificatesCertRequestResponseModel) HasCertStores() bool` + +HasCertStores returns a boolean if a field has been set. + +### SetCertStoresNil + +`func (o *CertificatesCertRequestResponseModel) SetCertStoresNil(b bool)` + + SetCertStoresNil sets the value for CertStores to be an explicit nil + +### UnsetCertStores +`func (o *CertificatesCertRequestResponseModel) UnsetCertStores()` + +UnsetCertStores ensures that no value is present for CertStores, not even an explicit nil +### GetCurve + +`func (o *CertificatesCertRequestResponseModel) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *CertificatesCertRequestResponseModel) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *CertificatesCertRequestResponseModel) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *CertificatesCertRequestResponseModel) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *CertificatesCertRequestResponseModel) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *CertificatesCertRequestResponseModel) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetSubjectAltNames + +`func (o *CertificatesCertRequestResponseModel) GetSubjectAltNames() []CertificatesSubjectAlternativeName` + +GetSubjectAltNames returns the SubjectAltNames field if non-nil, zero value otherwise. + +### GetSubjectAltNamesOk + +`func (o *CertificatesCertRequestResponseModel) GetSubjectAltNamesOk() (*[]CertificatesSubjectAlternativeName, bool)` + +GetSubjectAltNamesOk returns a tuple with the SubjectAltNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAltNames + +`func (o *CertificatesCertRequestResponseModel) SetSubjectAltNames(v []CertificatesSubjectAlternativeName)` + +SetSubjectAltNames sets SubjectAltNames field to given value. + +### HasSubjectAltNames + +`func (o *CertificatesCertRequestResponseModel) HasSubjectAltNames() bool` + +HasSubjectAltNames returns a boolean if a field has been set. + +### SetSubjectAltNamesNil + +`func (o *CertificatesCertRequestResponseModel) SetSubjectAltNamesNil(b bool)` + + SetSubjectAltNamesNil sets the value for SubjectAltNames to be an explicit nil + +### UnsetSubjectAltNames +`func (o *CertificatesCertRequestResponseModel) UnsetSubjectAltNames()` + +UnsetSubjectAltNames ensures that no value is present for SubjectAltNames, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateDownloadRequest.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateDownloadRequest.md new file mode 100644 index 0000000..5007179 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateDownloadRequest.md @@ -0,0 +1,298 @@ +# CertificatesCertificateDownloadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertID** | Pointer to **NullableInt32** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**IncludeSubjectHeader** | Pointer to **bool** | | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**ChainOrder** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateDownloadRequest + +`func NewCertificatesCertificateDownloadRequest() *CertificatesCertificateDownloadRequest` + +NewCertificatesCertificateDownloadRequest instantiates a new CertificatesCertificateDownloadRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateDownloadRequestWithDefaults + +`func NewCertificatesCertificateDownloadRequestWithDefaults() *CertificatesCertificateDownloadRequest` + +NewCertificatesCertificateDownloadRequestWithDefaults instantiates a new CertificatesCertificateDownloadRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertID + +`func (o *CertificatesCertificateDownloadRequest) GetCertID() int32` + +GetCertID returns the CertID field if non-nil, zero value otherwise. + +### GetCertIDOk + +`func (o *CertificatesCertificateDownloadRequest) GetCertIDOk() (*int32, bool)` + +GetCertIDOk returns a tuple with the CertID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertID + +`func (o *CertificatesCertificateDownloadRequest) SetCertID(v int32)` + +SetCertID sets CertID field to given value. + +### HasCertID + +`func (o *CertificatesCertificateDownloadRequest) HasCertID() bool` + +HasCertID returns a boolean if a field has been set. + +### SetCertIDNil + +`func (o *CertificatesCertificateDownloadRequest) SetCertIDNil(b bool)` + + SetCertIDNil sets the value for CertID to be an explicit nil + +### UnsetCertID +`func (o *CertificatesCertificateDownloadRequest) UnsetCertID()` + +UnsetCertID ensures that no value is present for CertID, not even an explicit nil +### GetSerialNumber + +`func (o *CertificatesCertificateDownloadRequest) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CertificatesCertificateDownloadRequest) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CertificatesCertificateDownloadRequest) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CertificatesCertificateDownloadRequest) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CertificatesCertificateDownloadRequest) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CertificatesCertificateDownloadRequest) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *CertificatesCertificateDownloadRequest) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CertificatesCertificateDownloadRequest) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CertificatesCertificateDownloadRequest) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CertificatesCertificateDownloadRequest) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CertificatesCertificateDownloadRequest) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CertificatesCertificateDownloadRequest) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CertificatesCertificateDownloadRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CertificatesCertificateDownloadRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CertificatesCertificateDownloadRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CertificatesCertificateDownloadRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CertificatesCertificateDownloadRequest) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CertificatesCertificateDownloadRequest) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetIncludeChain + +`func (o *CertificatesCertificateDownloadRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *CertificatesCertificateDownloadRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *CertificatesCertificateDownloadRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *CertificatesCertificateDownloadRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetIncludeSubjectHeader + +`func (o *CertificatesCertificateDownloadRequest) GetIncludeSubjectHeader() bool` + +GetIncludeSubjectHeader returns the IncludeSubjectHeader field if non-nil, zero value otherwise. + +### GetIncludeSubjectHeaderOk + +`func (o *CertificatesCertificateDownloadRequest) GetIncludeSubjectHeaderOk() (*bool, bool)` + +GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeSubjectHeader + +`func (o *CertificatesCertificateDownloadRequest) SetIncludeSubjectHeader(v bool)` + +SetIncludeSubjectHeader sets IncludeSubjectHeader field to given value. + +### HasIncludeSubjectHeader + +`func (o *CertificatesCertificateDownloadRequest) HasIncludeSubjectHeader() bool` + +HasIncludeSubjectHeader returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *CertificatesCertificateDownloadRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *CertificatesCertificateDownloadRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *CertificatesCertificateDownloadRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *CertificatesCertificateDownloadRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *CertificatesCertificateDownloadRequest) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *CertificatesCertificateDownloadRequest) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetChainOrder + +`func (o *CertificatesCertificateDownloadRequest) GetChainOrder() string` + +GetChainOrder returns the ChainOrder field if non-nil, zero value otherwise. + +### GetChainOrderOk + +`func (o *CertificatesCertificateDownloadRequest) GetChainOrderOk() (*string, bool)` + +GetChainOrderOk returns a tuple with the ChainOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainOrder + +`func (o *CertificatesCertificateDownloadRequest) SetChainOrder(v string)` + +SetChainOrder sets ChainOrder field to given value. + +### HasChainOrder + +`func (o *CertificatesCertificateDownloadRequest) HasChainOrder() bool` + +HasChainOrder returns a boolean if a field has been set. + +### SetChainOrderNil + +`func (o *CertificatesCertificateDownloadRequest) SetChainOrderNil(b bool)` + + SetChainOrderNil sets the value for ChainOrder to be an explicit nil + +### UnsetChainOrder +`func (o *CertificatesCertificateDownloadRequest) UnsetChainOrder()` + +UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponse.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponse.md new file mode 100644 index 0000000..24dfd0d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponse.md @@ -0,0 +1,200 @@ +# CertificatesCertificateIdentityAuditResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | Id of the account represented by the audit response | [optional] +**AccountName** | Pointer to **NullableString** | Name of the account represented by the audit response | [optional] +**IdentityType** | Pointer to **NullableString** | The type of account represented by the audit response (User or Group) | [optional] +**SID** | Pointer to **NullableString** | The SID of the account represented by the audit reponse | [optional] +**Permissions** | Pointer to [**[]CertificatesCertificateIdentityAuditResponseCertificatePermission**](CertificatesCertificateIdentityAuditResponseCertificatePermission.md) | Permissions granted to the account represented by the audit reponse on the specified certifcate | [optional] [readonly] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponse + +`func NewCertificatesCertificateIdentityAuditResponse() *CertificatesCertificateIdentityAuditResponse` + +NewCertificatesCertificateIdentityAuditResponse instantiates a new CertificatesCertificateIdentityAuditResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponseWithDefaults + +`func NewCertificatesCertificateIdentityAuditResponseWithDefaults() *CertificatesCertificateIdentityAuditResponse` + +NewCertificatesCertificateIdentityAuditResponseWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateIdentityAuditResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateIdentityAuditResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateIdentityAuditResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateIdentityAuditResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAccountName + +`func (o *CertificatesCertificateIdentityAuditResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *CertificatesCertificateIdentityAuditResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *CertificatesCertificateIdentityAuditResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *CertificatesCertificateIdentityAuditResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### SetAccountNameNil + +`func (o *CertificatesCertificateIdentityAuditResponse) SetAccountNameNil(b bool)` + + SetAccountNameNil sets the value for AccountName to be an explicit nil + +### UnsetAccountName +`func (o *CertificatesCertificateIdentityAuditResponse) UnsetAccountName()` + +UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +### GetIdentityType + +`func (o *CertificatesCertificateIdentityAuditResponse) GetIdentityType() string` + +GetIdentityType returns the IdentityType field if non-nil, zero value otherwise. + +### GetIdentityTypeOk + +`func (o *CertificatesCertificateIdentityAuditResponse) GetIdentityTypeOk() (*string, bool)` + +GetIdentityTypeOk returns a tuple with the IdentityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityType + +`func (o *CertificatesCertificateIdentityAuditResponse) SetIdentityType(v string)` + +SetIdentityType sets IdentityType field to given value. + +### HasIdentityType + +`func (o *CertificatesCertificateIdentityAuditResponse) HasIdentityType() bool` + +HasIdentityType returns a boolean if a field has been set. + +### SetIdentityTypeNil + +`func (o *CertificatesCertificateIdentityAuditResponse) SetIdentityTypeNil(b bool)` + + SetIdentityTypeNil sets the value for IdentityType to be an explicit nil + +### UnsetIdentityType +`func (o *CertificatesCertificateIdentityAuditResponse) UnsetIdentityType()` + +UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +### GetSID + +`func (o *CertificatesCertificateIdentityAuditResponse) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *CertificatesCertificateIdentityAuditResponse) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *CertificatesCertificateIdentityAuditResponse) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *CertificatesCertificateIdentityAuditResponse) HasSID() bool` + +HasSID returns a boolean if a field has been set. + +### SetSIDNil + +`func (o *CertificatesCertificateIdentityAuditResponse) SetSIDNil(b bool)` + + SetSIDNil sets the value for SID to be an explicit nil + +### UnsetSID +`func (o *CertificatesCertificateIdentityAuditResponse) UnsetSID()` + +UnsetSID ensures that no value is present for SID, not even an explicit nil +### GetPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse) GetPermissions() []CertificatesCertificateIdentityAuditResponseCertificatePermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *CertificatesCertificateIdentityAuditResponse) GetPermissionsOk() (*[]CertificatesCertificateIdentityAuditResponseCertificatePermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse) SetPermissions(v []CertificatesCertificateIdentityAuditResponseCertificatePermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *CertificatesCertificateIdentityAuditResponse) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *CertificatesCertificateIdentityAuditResponse) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponseCertificatePermission.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponseCertificatePermission.md new file mode 100644 index 0000000..1b34bd6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateIdentityAuditResponseCertificatePermission.md @@ -0,0 +1,102 @@ +# CertificatesCertificateIdentityAuditResponseCertificatePermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | The name of the permission | [optional] +**GrantedBy** | Pointer to **[]string** | A list of roles or collections that grant the given permission | [optional] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponseCertificatePermission + +`func NewCertificatesCertificateIdentityAuditResponseCertificatePermission() *CertificatesCertificateIdentityAuditResponseCertificatePermission` + +NewCertificatesCertificateIdentityAuditResponseCertificatePermission instantiates a new CertificatesCertificateIdentityAuditResponseCertificatePermission object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults + +`func NewCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults() *CertificatesCertificateIdentityAuditResponseCertificatePermission` + +NewCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponseCertificatePermission object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedBy() []string` + +GetGrantedBy returns the GrantedBy field if non-nil, zero value otherwise. + +### GetGrantedByOk + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedByOk() (*[]string, bool)` + +GetGrantedByOk returns a tuple with the GrantedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetGrantedBy(v []string)` + +SetGrantedBy sets GrantedBy field to given value. + +### HasGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) HasGrantedBy() bool` + +HasGrantedBy returns a boolean if a field has been set. + +### SetGrantedByNil + +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetGrantedByNil(b bool)` + + SetGrantedByNil sets the value for GrantedBy to be an explicit nil + +### UnsetGrantedBy +`func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) UnsetGrantedBy()` + +UnsetGrantedBy ensures that no value is present for GrantedBy, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateLocationsResponse.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateLocationsResponse.md new file mode 100644 index 0000000..16a5f0f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateLocationsResponse.md @@ -0,0 +1,66 @@ +# CertificatesCertificateLocationsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | Pointer to [**[]CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup**](CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup.md) | | [optional] + +## Methods + +### NewCertificatesCertificateLocationsResponse + +`func NewCertificatesCertificateLocationsResponse() *CertificatesCertificateLocationsResponse` + +NewCertificatesCertificateLocationsResponse instantiates a new CertificatesCertificateLocationsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateLocationsResponseWithDefaults + +`func NewCertificatesCertificateLocationsResponseWithDefaults() *CertificatesCertificateLocationsResponse` + +NewCertificatesCertificateLocationsResponseWithDefaults instantiates a new CertificatesCertificateLocationsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDetails + +`func (o *CertificatesCertificateLocationsResponse) GetDetails() []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *CertificatesCertificateLocationsResponse) GetDetailsOk() (*[]CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *CertificatesCertificateLocationsResponse) SetDetails(v []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *CertificatesCertificateLocationsResponse) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### SetDetailsNil + +`func (o *CertificatesCertificateLocationsResponse) SetDetailsNil(b bool)` + + SetDetailsNil sets the value for Details to be an explicit nil + +### UnsetDetails +`func (o *CertificatesCertificateLocationsResponse) UnsetDetails()` + +UnsetDetails ensures that no value is present for Details, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRecoveryRequest.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRecoveryRequest.md new file mode 100644 index 0000000..14fbf16 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRecoveryRequest.md @@ -0,0 +1,391 @@ +# CertificatesCertificateRecoveryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | **string** | | +**UseLegacyEncryption** | Pointer to **NullableBool** | | [optional] +**MicrosoftTargetCSP** | Pointer to **NullableString** | | [optional] +**CertID** | Pointer to **NullableInt32** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**IncludeSubjectHeader** | Pointer to **bool** | | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**ChainOrder** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRecoveryRequest + +`func NewCertificatesCertificateRecoveryRequest(password string, ) *CertificatesCertificateRecoveryRequest` + +NewCertificatesCertificateRecoveryRequest instantiates a new CertificatesCertificateRecoveryRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRecoveryRequestWithDefaults + +`func NewCertificatesCertificateRecoveryRequestWithDefaults() *CertificatesCertificateRecoveryRequest` + +NewCertificatesCertificateRecoveryRequestWithDefaults instantiates a new CertificatesCertificateRecoveryRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPassword + +`func (o *CertificatesCertificateRecoveryRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CertificatesCertificateRecoveryRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CertificatesCertificateRecoveryRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetUseLegacyEncryption + +`func (o *CertificatesCertificateRecoveryRequest) GetUseLegacyEncryption() bool` + +GetUseLegacyEncryption returns the UseLegacyEncryption field if non-nil, zero value otherwise. + +### GetUseLegacyEncryptionOk + +`func (o *CertificatesCertificateRecoveryRequest) GetUseLegacyEncryptionOk() (*bool, bool)` + +GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseLegacyEncryption + +`func (o *CertificatesCertificateRecoveryRequest) SetUseLegacyEncryption(v bool)` + +SetUseLegacyEncryption sets UseLegacyEncryption field to given value. + +### HasUseLegacyEncryption + +`func (o *CertificatesCertificateRecoveryRequest) HasUseLegacyEncryption() bool` + +HasUseLegacyEncryption returns a boolean if a field has been set. + +### SetUseLegacyEncryptionNil + +`func (o *CertificatesCertificateRecoveryRequest) SetUseLegacyEncryptionNil(b bool)` + + SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil + +### UnsetUseLegacyEncryption +`func (o *CertificatesCertificateRecoveryRequest) UnsetUseLegacyEncryption()` + +UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +### GetMicrosoftTargetCSP + +`func (o *CertificatesCertificateRecoveryRequest) GetMicrosoftTargetCSP() string` + +GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field if non-nil, zero value otherwise. + +### GetMicrosoftTargetCSPOk + +`func (o *CertificatesCertificateRecoveryRequest) GetMicrosoftTargetCSPOk() (*string, bool)` + +GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicrosoftTargetCSP + +`func (o *CertificatesCertificateRecoveryRequest) SetMicrosoftTargetCSP(v string)` + +SetMicrosoftTargetCSP sets MicrosoftTargetCSP field to given value. + +### HasMicrosoftTargetCSP + +`func (o *CertificatesCertificateRecoveryRequest) HasMicrosoftTargetCSP() bool` + +HasMicrosoftTargetCSP returns a boolean if a field has been set. + +### SetMicrosoftTargetCSPNil + +`func (o *CertificatesCertificateRecoveryRequest) SetMicrosoftTargetCSPNil(b bool)` + + SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil + +### UnsetMicrosoftTargetCSP +`func (o *CertificatesCertificateRecoveryRequest) UnsetMicrosoftTargetCSP()` + +UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +### GetCertID + +`func (o *CertificatesCertificateRecoveryRequest) GetCertID() int32` + +GetCertID returns the CertID field if non-nil, zero value otherwise. + +### GetCertIDOk + +`func (o *CertificatesCertificateRecoveryRequest) GetCertIDOk() (*int32, bool)` + +GetCertIDOk returns a tuple with the CertID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertID + +`func (o *CertificatesCertificateRecoveryRequest) SetCertID(v int32)` + +SetCertID sets CertID field to given value. + +### HasCertID + +`func (o *CertificatesCertificateRecoveryRequest) HasCertID() bool` + +HasCertID returns a boolean if a field has been set. + +### SetCertIDNil + +`func (o *CertificatesCertificateRecoveryRequest) SetCertIDNil(b bool)` + + SetCertIDNil sets the value for CertID to be an explicit nil + +### UnsetCertID +`func (o *CertificatesCertificateRecoveryRequest) UnsetCertID()` + +UnsetCertID ensures that no value is present for CertID, not even an explicit nil +### GetSerialNumber + +`func (o *CertificatesCertificateRecoveryRequest) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CertificatesCertificateRecoveryRequest) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CertificatesCertificateRecoveryRequest) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CertificatesCertificateRecoveryRequest) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CertificatesCertificateRecoveryRequest) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CertificatesCertificateRecoveryRequest) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *CertificatesCertificateRecoveryRequest) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CertificatesCertificateRecoveryRequest) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CertificatesCertificateRecoveryRequest) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CertificatesCertificateRecoveryRequest) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CertificatesCertificateRecoveryRequest) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CertificatesCertificateRecoveryRequest) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CertificatesCertificateRecoveryRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CertificatesCertificateRecoveryRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CertificatesCertificateRecoveryRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CertificatesCertificateRecoveryRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CertificatesCertificateRecoveryRequest) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CertificatesCertificateRecoveryRequest) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetIncludeChain + +`func (o *CertificatesCertificateRecoveryRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *CertificatesCertificateRecoveryRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *CertificatesCertificateRecoveryRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *CertificatesCertificateRecoveryRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetIncludeSubjectHeader + +`func (o *CertificatesCertificateRecoveryRequest) GetIncludeSubjectHeader() bool` + +GetIncludeSubjectHeader returns the IncludeSubjectHeader field if non-nil, zero value otherwise. + +### GetIncludeSubjectHeaderOk + +`func (o *CertificatesCertificateRecoveryRequest) GetIncludeSubjectHeaderOk() (*bool, bool)` + +GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeSubjectHeader + +`func (o *CertificatesCertificateRecoveryRequest) SetIncludeSubjectHeader(v bool)` + +SetIncludeSubjectHeader sets IncludeSubjectHeader field to given value. + +### HasIncludeSubjectHeader + +`func (o *CertificatesCertificateRecoveryRequest) HasIncludeSubjectHeader() bool` + +HasIncludeSubjectHeader returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *CertificatesCertificateRecoveryRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *CertificatesCertificateRecoveryRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *CertificatesCertificateRecoveryRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *CertificatesCertificateRecoveryRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *CertificatesCertificateRecoveryRequest) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *CertificatesCertificateRecoveryRequest) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetChainOrder + +`func (o *CertificatesCertificateRecoveryRequest) GetChainOrder() string` + +GetChainOrder returns the ChainOrder field if non-nil, zero value otherwise. + +### GetChainOrderOk + +`func (o *CertificatesCertificateRecoveryRequest) GetChainOrderOk() (*string, bool)` + +GetChainOrderOk returns a tuple with the ChainOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainOrder + +`func (o *CertificatesCertificateRecoveryRequest) SetChainOrder(v string)` + +SetChainOrder sets ChainOrder field to given value. + +### HasChainOrder + +`func (o *CertificatesCertificateRecoveryRequest) HasChainOrder() bool` + +HasChainOrder returns a boolean if a field has been set. + +### SetChainOrderNil + +`func (o *CertificatesCertificateRecoveryRequest) SetChainOrderNil(b bool)` + + SetChainOrderNil sets the value for ChainOrder to be an explicit nil + +### UnsetChainOrder +`func (o *CertificatesCertificateRecoveryRequest) UnsetChainOrder()` + +UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponse.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponse.md new file mode 100644 index 0000000..811841d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponse.md @@ -0,0 +1,1752 @@ +# CertificatesCertificateRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**ImportDate** | Pointer to **time.Time** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**PrincipalId** | Pointer to **NullableInt32** | | [optional] +**OwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**OwnerRoleName** | Pointer to **NullableString** | | [optional] +**TemplateId** | Pointer to **NullableInt32** | | [optional] +**CertState** | Pointer to [**KeyfactorPKIEnumsCertificateState**](KeyfactorPKIEnumsCertificateState.md) | | [optional] +**KeySizeInBits** | Pointer to **int32** | | [optional] +**KeyType** | Pointer to [**KeyfactorPKIEnumsEncryptionKeyType**](KeyfactorPKIEnumsEncryptionKeyType.md) | | [optional] +**AltKeySizeInBits** | Pointer to **int32** | | [optional] +**AltKeyType** | Pointer to [**KeyfactorPKIEnumsEncryptionKeyType**](KeyfactorPKIEnumsEncryptionKeyType.md) | | [optional] +**RequesterId** | Pointer to **NullableInt32** | | [optional] +**IssuedOU** | Pointer to **NullableString** | | [optional] +**IssuedEmail** | Pointer to **NullableString** | | [optional] +**KeyUsage** | Pointer to **NullableInt32** | | [optional] +**SigningAlgorithm** | Pointer to **NullableString** | | [optional] +**AltSigningAlgorithm** | Pointer to **NullableString** | | [optional] +**CertStateString** | Pointer to **NullableString** | | [optional] +**KeyTypeString** | Pointer to **NullableString** | | [optional] +**AltKeyTypeString** | Pointer to **NullableString** | | [optional] +**RevocationEffDate** | Pointer to **NullableTime** | | [optional] +**RevocationReason** | Pointer to [**KeyfactorPKIEnumsRevokeCode**](KeyfactorPKIEnumsRevokeCode.md) | | [optional] +**RevocationComment** | Pointer to **NullableString** | | [optional] +**CertificateAuthorityId** | Pointer to **NullableInt32** | | [optional] +**CertificateAuthorityName** | Pointer to **NullableString** | | [optional] +**TemplateName** | Pointer to **NullableString** | Full template display name. | [optional] +**ArchivedKey** | Pointer to **bool** | | [optional] +**HasPrivateKey** | Pointer to **bool** | | [optional] +**HasAltPrivateKey** | Pointer to **bool** | | [optional] +**PrincipalName** | Pointer to **NullableString** | | [optional] +**CertRequestId** | Pointer to **NullableInt32** | | [optional] +**RequesterName** | Pointer to **NullableString** | | [optional] +**ContentBytes** | Pointer to **NullableString** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]CertificatesCertificateRetrievalResponseExtendedKeyUsageModel**](CertificatesCertificateRetrievalResponseExtendedKeyUsageModel.md) | | [optional] +**SubjectAltNameElements** | Pointer to [**[]CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel**](CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel.md) | | [optional] +**CRLDistributionPoints** | Pointer to [**[]CertificatesCertificateRetrievalResponseCRLDistributionPointModel**](CertificatesCertificateRetrievalResponseCRLDistributionPointModel.md) | | [optional] +**LocationsCount** | Pointer to [**[]CertificatesCertificateRetrievalResponseLocationCountModel**](CertificatesCertificateRetrievalResponseLocationCountModel.md) | | [optional] +**SSLLocations** | Pointer to [**[]CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel**](CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel.md) | | [optional] +**Locations** | Pointer to [**[]CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel**](CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] +**CARowIndex** | Pointer to **NullableInt64** | | [optional] [readonly] +**CARecordId** | Pointer to **NullableString** | | [optional] +**DetailedKeyUsage** | Pointer to [**CertificatesCertificateRetrievalResponseDetailedKeyUsageModel**](CertificatesCertificateRetrievalResponseDetailedKeyUsageModel.md) | | [optional] +**KeyRecoverable** | Pointer to **bool** | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponse + +`func NewCertificatesCertificateRetrievalResponse() *CertificatesCertificateRetrievalResponse` + +NewCertificatesCertificateRetrievalResponse instantiates a new CertificatesCertificateRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseWithDefaults + +`func NewCertificatesCertificateRetrievalResponseWithDefaults() *CertificatesCertificateRetrievalResponse` + +NewCertificatesCertificateRetrievalResponseWithDefaults instantiates a new CertificatesCertificateRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *CertificatesCertificateRetrievalResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CertificatesCertificateRetrievalResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CertificatesCertificateRetrievalResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CertificatesCertificateRetrievalResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CertificatesCertificateRetrievalResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CertificatesCertificateRetrievalResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetSerialNumber + +`func (o *CertificatesCertificateRetrievalResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CertificatesCertificateRetrievalResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CertificatesCertificateRetrievalResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CertificatesCertificateRetrievalResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CertificatesCertificateRetrievalResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CertificatesCertificateRetrievalResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuedDN + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *CertificatesCertificateRetrievalResponse) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuedCN + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *CertificatesCertificateRetrievalResponse) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetImportDate + +`func (o *CertificatesCertificateRetrievalResponse) GetImportDate() time.Time` + +GetImportDate returns the ImportDate field if non-nil, zero value otherwise. + +### GetImportDateOk + +`func (o *CertificatesCertificateRetrievalResponse) GetImportDateOk() (*time.Time, bool)` + +GetImportDateOk returns a tuple with the ImportDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportDate + +`func (o *CertificatesCertificateRetrievalResponse) SetImportDate(v time.Time)` + +SetImportDate sets ImportDate field to given value. + +### HasImportDate + +`func (o *CertificatesCertificateRetrievalResponse) HasImportDate() bool` + +HasImportDate returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *CertificatesCertificateRetrievalResponse) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *CertificatesCertificateRetrievalResponse) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *CertificatesCertificateRetrievalResponse) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *CertificatesCertificateRetrievalResponse) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *CertificatesCertificateRetrievalResponse) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *CertificatesCertificateRetrievalResponse) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *CertificatesCertificateRetrievalResponse) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *CertificatesCertificateRetrievalResponse) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CertificatesCertificateRetrievalResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CertificatesCertificateRetrievalResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetPrincipalId + +`func (o *CertificatesCertificateRetrievalResponse) GetPrincipalId() int32` + +GetPrincipalId returns the PrincipalId field if non-nil, zero value otherwise. + +### GetPrincipalIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetPrincipalIdOk() (*int32, bool)` + +GetPrincipalIdOk returns a tuple with the PrincipalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalId + +`func (o *CertificatesCertificateRetrievalResponse) SetPrincipalId(v int32)` + +SetPrincipalId sets PrincipalId field to given value. + +### HasPrincipalId + +`func (o *CertificatesCertificateRetrievalResponse) HasPrincipalId() bool` + +HasPrincipalId returns a boolean if a field has been set. + +### SetPrincipalIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetPrincipalIdNil(b bool)` + + SetPrincipalIdNil sets the value for PrincipalId to be an explicit nil + +### UnsetPrincipalId +`func (o *CertificatesCertificateRetrievalResponse) UnsetPrincipalId()` + +UnsetPrincipalId ensures that no value is present for PrincipalId, not even an explicit nil +### GetOwnerRoleId + +`func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleId() int32` + +GetOwnerRoleId returns the OwnerRoleId field if non-nil, zero value otherwise. + +### GetOwnerRoleIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleIdOk() (*int32, bool)` + +GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleId + +`func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleId(v int32)` + +SetOwnerRoleId sets OwnerRoleId field to given value. + +### HasOwnerRoleId + +`func (o *CertificatesCertificateRetrievalResponse) HasOwnerRoleId() bool` + +HasOwnerRoleId returns a boolean if a field has been set. + +### SetOwnerRoleIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleIdNil(b bool)` + + SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil + +### UnsetOwnerRoleId +`func (o *CertificatesCertificateRetrievalResponse) UnsetOwnerRoleId()` + +UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +### GetOwnerRoleName + +`func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleName() string` + +GetOwnerRoleName returns the OwnerRoleName field if non-nil, zero value otherwise. + +### GetOwnerRoleNameOk + +`func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleNameOk() (*string, bool)` + +GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleName + +`func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleName(v string)` + +SetOwnerRoleName sets OwnerRoleName field to given value. + +### HasOwnerRoleName + +`func (o *CertificatesCertificateRetrievalResponse) HasOwnerRoleName() bool` + +HasOwnerRoleName returns a boolean if a field has been set. + +### SetOwnerRoleNameNil + +`func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleNameNil(b bool)` + + SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil + +### UnsetOwnerRoleName +`func (o *CertificatesCertificateRetrievalResponse) UnsetOwnerRoleName()` + +UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +### GetTemplateId + +`func (o *CertificatesCertificateRetrievalResponse) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *CertificatesCertificateRetrievalResponse) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *CertificatesCertificateRetrievalResponse) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### SetTemplateIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetTemplateIdNil(b bool)` + + SetTemplateIdNil sets the value for TemplateId to be an explicit nil + +### UnsetTemplateId +`func (o *CertificatesCertificateRetrievalResponse) UnsetTemplateId()` + +UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +### GetCertState + +`func (o *CertificatesCertificateRetrievalResponse) GetCertState() KeyfactorPKIEnumsCertificateState` + +GetCertState returns the CertState field if non-nil, zero value otherwise. + +### GetCertStateOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCertStateOk() (*KeyfactorPKIEnumsCertificateState, bool)` + +GetCertStateOk returns a tuple with the CertState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertState + +`func (o *CertificatesCertificateRetrievalResponse) SetCertState(v KeyfactorPKIEnumsCertificateState)` + +SetCertState sets CertState field to given value. + +### HasCertState + +`func (o *CertificatesCertificateRetrievalResponse) HasCertState() bool` + +HasCertState returns a boolean if a field has been set. + +### GetKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) GetKeySizeInBits() int32` + +GetKeySizeInBits returns the KeySizeInBits field if non-nil, zero value otherwise. + +### GetKeySizeInBitsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetKeySizeInBitsOk() (*int32, bool)` + +GetKeySizeInBitsOk returns a tuple with the KeySizeInBits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) SetKeySizeInBits(v int32)` + +SetKeySizeInBits sets KeySizeInBits field to given value. + +### HasKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) HasKeySizeInBits() bool` + +HasKeySizeInBits returns a boolean if a field has been set. + +### GetKeyType + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyType() KeyfactorPKIEnumsEncryptionKeyType` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeOk() (*KeyfactorPKIEnumsEncryptionKeyType, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyType(v KeyfactorPKIEnumsEncryptionKeyType)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *CertificatesCertificateRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetAltKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeySizeInBits() int32` + +GetAltKeySizeInBits returns the AltKeySizeInBits field if non-nil, zero value otherwise. + +### GetAltKeySizeInBitsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeySizeInBitsOk() (*int32, bool)` + +GetAltKeySizeInBitsOk returns a tuple with the AltKeySizeInBits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) SetAltKeySizeInBits(v int32)` + +SetAltKeySizeInBits sets AltKeySizeInBits field to given value. + +### HasAltKeySizeInBits + +`func (o *CertificatesCertificateRetrievalResponse) HasAltKeySizeInBits() bool` + +HasAltKeySizeInBits returns a boolean if a field has been set. + +### GetAltKeyType + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeyType() KeyfactorPKIEnumsEncryptionKeyType` + +GetAltKeyType returns the AltKeyType field if non-nil, zero value otherwise. + +### GetAltKeyTypeOk + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeOk() (*KeyfactorPKIEnumsEncryptionKeyType, bool)` + +GetAltKeyTypeOk returns a tuple with the AltKeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltKeyType + +`func (o *CertificatesCertificateRetrievalResponse) SetAltKeyType(v KeyfactorPKIEnumsEncryptionKeyType)` + +SetAltKeyType sets AltKeyType field to given value. + +### HasAltKeyType + +`func (o *CertificatesCertificateRetrievalResponse) HasAltKeyType() bool` + +HasAltKeyType returns a boolean if a field has been set. + +### GetRequesterId + +`func (o *CertificatesCertificateRetrievalResponse) GetRequesterId() int32` + +GetRequesterId returns the RequesterId field if non-nil, zero value otherwise. + +### GetRequesterIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetRequesterIdOk() (*int32, bool)` + +GetRequesterIdOk returns a tuple with the RequesterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterId + +`func (o *CertificatesCertificateRetrievalResponse) SetRequesterId(v int32)` + +SetRequesterId sets RequesterId field to given value. + +### HasRequesterId + +`func (o *CertificatesCertificateRetrievalResponse) HasRequesterId() bool` + +HasRequesterId returns a boolean if a field has been set. + +### SetRequesterIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetRequesterIdNil(b bool)` + + SetRequesterIdNil sets the value for RequesterId to be an explicit nil + +### UnsetRequesterId +`func (o *CertificatesCertificateRetrievalResponse) UnsetRequesterId()` + +UnsetRequesterId ensures that no value is present for RequesterId, not even an explicit nil +### GetIssuedOU + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedOU() string` + +GetIssuedOU returns the IssuedOU field if non-nil, zero value otherwise. + +### GetIssuedOUOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedOUOk() (*string, bool)` + +GetIssuedOUOk returns a tuple with the IssuedOU field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedOU + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedOU(v string)` + +SetIssuedOU sets IssuedOU field to given value. + +### HasIssuedOU + +`func (o *CertificatesCertificateRetrievalResponse) HasIssuedOU() bool` + +HasIssuedOU returns a boolean if a field has been set. + +### SetIssuedOUNil + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedOUNil(b bool)` + + SetIssuedOUNil sets the value for IssuedOU to be an explicit nil + +### UnsetIssuedOU +`func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedOU()` + +UnsetIssuedOU ensures that no value is present for IssuedOU, not even an explicit nil +### GetIssuedEmail + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedEmail() string` + +GetIssuedEmail returns the IssuedEmail field if non-nil, zero value otherwise. + +### GetIssuedEmailOk + +`func (o *CertificatesCertificateRetrievalResponse) GetIssuedEmailOk() (*string, bool)` + +GetIssuedEmailOk returns a tuple with the IssuedEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedEmail + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedEmail(v string)` + +SetIssuedEmail sets IssuedEmail field to given value. + +### HasIssuedEmail + +`func (o *CertificatesCertificateRetrievalResponse) HasIssuedEmail() bool` + +HasIssuedEmail returns a boolean if a field has been set. + +### SetIssuedEmailNil + +`func (o *CertificatesCertificateRetrievalResponse) SetIssuedEmailNil(b bool)` + + SetIssuedEmailNil sets the value for IssuedEmail to be an explicit nil + +### UnsetIssuedEmail +`func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedEmail()` + +UnsetIssuedEmail ensures that no value is present for IssuedEmail, not even an explicit nil +### GetKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### SetKeyUsageNil + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyUsageNil(b bool)` + + SetKeyUsageNil sets the value for KeyUsage to be an explicit nil + +### UnsetKeyUsage +`func (o *CertificatesCertificateRetrievalResponse) UnsetKeyUsage()` + +UnsetKeyUsage ensures that no value is present for KeyUsage, not even an explicit nil +### GetSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *CertificatesCertificateRetrievalResponse) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### SetSigningAlgorithmNil + +`func (o *CertificatesCertificateRetrievalResponse) SetSigningAlgorithmNil(b bool)` + + SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil + +### UnsetSigningAlgorithm +`func (o *CertificatesCertificateRetrievalResponse) UnsetSigningAlgorithm()` + +UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +### GetAltSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) GetAltSigningAlgorithm() string` + +GetAltSigningAlgorithm returns the AltSigningAlgorithm field if non-nil, zero value otherwise. + +### GetAltSigningAlgorithmOk + +`func (o *CertificatesCertificateRetrievalResponse) GetAltSigningAlgorithmOk() (*string, bool)` + +GetAltSigningAlgorithmOk returns a tuple with the AltSigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) SetAltSigningAlgorithm(v string)` + +SetAltSigningAlgorithm sets AltSigningAlgorithm field to given value. + +### HasAltSigningAlgorithm + +`func (o *CertificatesCertificateRetrievalResponse) HasAltSigningAlgorithm() bool` + +HasAltSigningAlgorithm returns a boolean if a field has been set. + +### SetAltSigningAlgorithmNil + +`func (o *CertificatesCertificateRetrievalResponse) SetAltSigningAlgorithmNil(b bool)` + + SetAltSigningAlgorithmNil sets the value for AltSigningAlgorithm to be an explicit nil + +### UnsetAltSigningAlgorithm +`func (o *CertificatesCertificateRetrievalResponse) UnsetAltSigningAlgorithm()` + +UnsetAltSigningAlgorithm ensures that no value is present for AltSigningAlgorithm, not even an explicit nil +### GetCertStateString + +`func (o *CertificatesCertificateRetrievalResponse) GetCertStateString() string` + +GetCertStateString returns the CertStateString field if non-nil, zero value otherwise. + +### GetCertStateStringOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCertStateStringOk() (*string, bool)` + +GetCertStateStringOk returns a tuple with the CertStateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStateString + +`func (o *CertificatesCertificateRetrievalResponse) SetCertStateString(v string)` + +SetCertStateString sets CertStateString field to given value. + +### HasCertStateString + +`func (o *CertificatesCertificateRetrievalResponse) HasCertStateString() bool` + +HasCertStateString returns a boolean if a field has been set. + +### SetCertStateStringNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCertStateStringNil(b bool)` + + SetCertStateStringNil sets the value for CertStateString to be an explicit nil + +### UnsetCertStateString +`func (o *CertificatesCertificateRetrievalResponse) UnsetCertStateString()` + +UnsetCertStateString ensures that no value is present for CertStateString, not even an explicit nil +### GetKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeString() string` + +GetKeyTypeString returns the KeyTypeString field if non-nil, zero value otherwise. + +### GetKeyTypeStringOk + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeStringOk() (*string, bool)` + +GetKeyTypeStringOk returns a tuple with the KeyTypeString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyTypeString(v string)` + +SetKeyTypeString sets KeyTypeString field to given value. + +### HasKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) HasKeyTypeString() bool` + +HasKeyTypeString returns a boolean if a field has been set. + +### SetKeyTypeStringNil + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyTypeStringNil(b bool)` + + SetKeyTypeStringNil sets the value for KeyTypeString to be an explicit nil + +### UnsetKeyTypeString +`func (o *CertificatesCertificateRetrievalResponse) UnsetKeyTypeString()` + +UnsetKeyTypeString ensures that no value is present for KeyTypeString, not even an explicit nil +### GetAltKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeString() string` + +GetAltKeyTypeString returns the AltKeyTypeString field if non-nil, zero value otherwise. + +### GetAltKeyTypeStringOk + +`func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeStringOk() (*string, bool)` + +GetAltKeyTypeStringOk returns a tuple with the AltKeyTypeString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAltKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) SetAltKeyTypeString(v string)` + +SetAltKeyTypeString sets AltKeyTypeString field to given value. + +### HasAltKeyTypeString + +`func (o *CertificatesCertificateRetrievalResponse) HasAltKeyTypeString() bool` + +HasAltKeyTypeString returns a boolean if a field has been set. + +### SetAltKeyTypeStringNil + +`func (o *CertificatesCertificateRetrievalResponse) SetAltKeyTypeStringNil(b bool)` + + SetAltKeyTypeStringNil sets the value for AltKeyTypeString to be an explicit nil + +### UnsetAltKeyTypeString +`func (o *CertificatesCertificateRetrievalResponse) UnsetAltKeyTypeString()` + +UnsetAltKeyTypeString ensures that no value is present for AltKeyTypeString, not even an explicit nil +### GetRevocationEffDate + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationEffDate() time.Time` + +GetRevocationEffDate returns the RevocationEffDate field if non-nil, zero value otherwise. + +### GetRevocationEffDateOk + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationEffDateOk() (*time.Time, bool)` + +GetRevocationEffDateOk returns a tuple with the RevocationEffDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationEffDate + +`func (o *CertificatesCertificateRetrievalResponse) SetRevocationEffDate(v time.Time)` + +SetRevocationEffDate sets RevocationEffDate field to given value. + +### HasRevocationEffDate + +`func (o *CertificatesCertificateRetrievalResponse) HasRevocationEffDate() bool` + +HasRevocationEffDate returns a boolean if a field has been set. + +### SetRevocationEffDateNil + +`func (o *CertificatesCertificateRetrievalResponse) SetRevocationEffDateNil(b bool)` + + SetRevocationEffDateNil sets the value for RevocationEffDate to be an explicit nil + +### UnsetRevocationEffDate +`func (o *CertificatesCertificateRetrievalResponse) UnsetRevocationEffDate()` + +UnsetRevocationEffDate ensures that no value is present for RevocationEffDate, not even an explicit nil +### GetRevocationReason + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationReason() KeyfactorPKIEnumsRevokeCode` + +GetRevocationReason returns the RevocationReason field if non-nil, zero value otherwise. + +### GetRevocationReasonOk + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationReasonOk() (*KeyfactorPKIEnumsRevokeCode, bool)` + +GetRevocationReasonOk returns a tuple with the RevocationReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationReason + +`func (o *CertificatesCertificateRetrievalResponse) SetRevocationReason(v KeyfactorPKIEnumsRevokeCode)` + +SetRevocationReason sets RevocationReason field to given value. + +### HasRevocationReason + +`func (o *CertificatesCertificateRetrievalResponse) HasRevocationReason() bool` + +HasRevocationReason returns a boolean if a field has been set. + +### GetRevocationComment + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationComment() string` + +GetRevocationComment returns the RevocationComment field if non-nil, zero value otherwise. + +### GetRevocationCommentOk + +`func (o *CertificatesCertificateRetrievalResponse) GetRevocationCommentOk() (*string, bool)` + +GetRevocationCommentOk returns a tuple with the RevocationComment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationComment + +`func (o *CertificatesCertificateRetrievalResponse) SetRevocationComment(v string)` + +SetRevocationComment sets RevocationComment field to given value. + +### HasRevocationComment + +`func (o *CertificatesCertificateRetrievalResponse) HasRevocationComment() bool` + +HasRevocationComment returns a boolean if a field has been set. + +### SetRevocationCommentNil + +`func (o *CertificatesCertificateRetrievalResponse) SetRevocationCommentNil(b bool)` + + SetRevocationCommentNil sets the value for RevocationComment to be an explicit nil + +### UnsetRevocationComment +`func (o *CertificatesCertificateRetrievalResponse) UnsetRevocationComment()` + +UnsetRevocationComment ensures that no value is present for RevocationComment, not even an explicit nil +### GetCertificateAuthorityId + +`func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *CertificatesCertificateRetrievalResponse) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### SetCertificateAuthorityIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityIdNil(b bool)` + + SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil + +### UnsetCertificateAuthorityId +`func (o *CertificatesCertificateRetrievalResponse) UnsetCertificateAuthorityId()` + +UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +### GetCertificateAuthorityName + +`func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityName() string` + +GetCertificateAuthorityName returns the CertificateAuthorityName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityNameOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityNameOk() (*string, bool)` + +GetCertificateAuthorityNameOk returns a tuple with the CertificateAuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityName + +`func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityName(v string)` + +SetCertificateAuthorityName sets CertificateAuthorityName field to given value. + +### HasCertificateAuthorityName + +`func (o *CertificatesCertificateRetrievalResponse) HasCertificateAuthorityName() bool` + +HasCertificateAuthorityName returns a boolean if a field has been set. + +### SetCertificateAuthorityNameNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityNameNil(b bool)` + + SetCertificateAuthorityNameNil sets the value for CertificateAuthorityName to be an explicit nil + +### UnsetCertificateAuthorityName +`func (o *CertificatesCertificateRetrievalResponse) UnsetCertificateAuthorityName()` + +UnsetCertificateAuthorityName ensures that no value is present for CertificateAuthorityName, not even an explicit nil +### GetTemplateName + +`func (o *CertificatesCertificateRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *CertificatesCertificateRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *CertificatesCertificateRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *CertificatesCertificateRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### SetTemplateNameNil + +`func (o *CertificatesCertificateRetrievalResponse) SetTemplateNameNil(b bool)` + + SetTemplateNameNil sets the value for TemplateName to be an explicit nil + +### UnsetTemplateName +`func (o *CertificatesCertificateRetrievalResponse) UnsetTemplateName()` + +UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +### GetArchivedKey + +`func (o *CertificatesCertificateRetrievalResponse) GetArchivedKey() bool` + +GetArchivedKey returns the ArchivedKey field if non-nil, zero value otherwise. + +### GetArchivedKeyOk + +`func (o *CertificatesCertificateRetrievalResponse) GetArchivedKeyOk() (*bool, bool)` + +GetArchivedKeyOk returns a tuple with the ArchivedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchivedKey + +`func (o *CertificatesCertificateRetrievalResponse) SetArchivedKey(v bool)` + +SetArchivedKey sets ArchivedKey field to given value. + +### HasArchivedKey + +`func (o *CertificatesCertificateRetrievalResponse) HasArchivedKey() bool` + +HasArchivedKey returns a boolean if a field has been set. + +### GetHasPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) GetHasPrivateKey() bool` + +GetHasPrivateKey returns the HasPrivateKey field if non-nil, zero value otherwise. + +### GetHasPrivateKeyOk + +`func (o *CertificatesCertificateRetrievalResponse) GetHasPrivateKeyOk() (*bool, bool)` + +GetHasPrivateKeyOk returns a tuple with the HasPrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) SetHasPrivateKey(v bool)` + +SetHasPrivateKey sets HasPrivateKey field to given value. + +### HasHasPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) HasHasPrivateKey() bool` + +HasHasPrivateKey returns a boolean if a field has been set. + +### GetHasAltPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) GetHasAltPrivateKey() bool` + +GetHasAltPrivateKey returns the HasAltPrivateKey field if non-nil, zero value otherwise. + +### GetHasAltPrivateKeyOk + +`func (o *CertificatesCertificateRetrievalResponse) GetHasAltPrivateKeyOk() (*bool, bool)` + +GetHasAltPrivateKeyOk returns a tuple with the HasAltPrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasAltPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) SetHasAltPrivateKey(v bool)` + +SetHasAltPrivateKey sets HasAltPrivateKey field to given value. + +### HasHasAltPrivateKey + +`func (o *CertificatesCertificateRetrievalResponse) HasHasAltPrivateKey() bool` + +HasHasAltPrivateKey returns a boolean if a field has been set. + +### GetPrincipalName + +`func (o *CertificatesCertificateRetrievalResponse) GetPrincipalName() string` + +GetPrincipalName returns the PrincipalName field if non-nil, zero value otherwise. + +### GetPrincipalNameOk + +`func (o *CertificatesCertificateRetrievalResponse) GetPrincipalNameOk() (*string, bool)` + +GetPrincipalNameOk returns a tuple with the PrincipalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalName + +`func (o *CertificatesCertificateRetrievalResponse) SetPrincipalName(v string)` + +SetPrincipalName sets PrincipalName field to given value. + +### HasPrincipalName + +`func (o *CertificatesCertificateRetrievalResponse) HasPrincipalName() bool` + +HasPrincipalName returns a boolean if a field has been set. + +### SetPrincipalNameNil + +`func (o *CertificatesCertificateRetrievalResponse) SetPrincipalNameNil(b bool)` + + SetPrincipalNameNil sets the value for PrincipalName to be an explicit nil + +### UnsetPrincipalName +`func (o *CertificatesCertificateRetrievalResponse) UnsetPrincipalName()` + +UnsetPrincipalName ensures that no value is present for PrincipalName, not even an explicit nil +### GetCertRequestId + +`func (o *CertificatesCertificateRetrievalResponse) GetCertRequestId() int32` + +GetCertRequestId returns the CertRequestId field if non-nil, zero value otherwise. + +### GetCertRequestIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCertRequestIdOk() (*int32, bool)` + +GetCertRequestIdOk returns a tuple with the CertRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertRequestId + +`func (o *CertificatesCertificateRetrievalResponse) SetCertRequestId(v int32)` + +SetCertRequestId sets CertRequestId field to given value. + +### HasCertRequestId + +`func (o *CertificatesCertificateRetrievalResponse) HasCertRequestId() bool` + +HasCertRequestId returns a boolean if a field has been set. + +### SetCertRequestIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCertRequestIdNil(b bool)` + + SetCertRequestIdNil sets the value for CertRequestId to be an explicit nil + +### UnsetCertRequestId +`func (o *CertificatesCertificateRetrievalResponse) UnsetCertRequestId()` + +UnsetCertRequestId ensures that no value is present for CertRequestId, not even an explicit nil +### GetRequesterName + +`func (o *CertificatesCertificateRetrievalResponse) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *CertificatesCertificateRetrievalResponse) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *CertificatesCertificateRetrievalResponse) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + +### HasRequesterName + +`func (o *CertificatesCertificateRetrievalResponse) HasRequesterName() bool` + +HasRequesterName returns a boolean if a field has been set. + +### SetRequesterNameNil + +`func (o *CertificatesCertificateRetrievalResponse) SetRequesterNameNil(b bool)` + + SetRequesterNameNil sets the value for RequesterName to be an explicit nil + +### UnsetRequesterName +`func (o *CertificatesCertificateRetrievalResponse) UnsetRequesterName()` + +UnsetRequesterName ensures that no value is present for RequesterName, not even an explicit nil +### GetContentBytes + +`func (o *CertificatesCertificateRetrievalResponse) GetContentBytes() string` + +GetContentBytes returns the ContentBytes field if non-nil, zero value otherwise. + +### GetContentBytesOk + +`func (o *CertificatesCertificateRetrievalResponse) GetContentBytesOk() (*string, bool)` + +GetContentBytesOk returns a tuple with the ContentBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentBytes + +`func (o *CertificatesCertificateRetrievalResponse) SetContentBytes(v string)` + +SetContentBytes sets ContentBytes field to given value. + +### HasContentBytes + +`func (o *CertificatesCertificateRetrievalResponse) HasContentBytes() bool` + +HasContentBytes returns a boolean if a field has been set. + +### SetContentBytesNil + +`func (o *CertificatesCertificateRetrievalResponse) SetContentBytesNil(b bool)` + + SetContentBytesNil sets the value for ContentBytes to be an explicit nil + +### UnsetContentBytes +`func (o *CertificatesCertificateRetrievalResponse) UnsetContentBytes()` + +UnsetContentBytes ensures that no value is present for ContentBytes, not even an explicit nil +### GetExtendedKeyUsages + +`func (o *CertificatesCertificateRetrievalResponse) GetExtendedKeyUsages() []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *CertificatesCertificateRetrievalResponse) GetExtendedKeyUsagesOk() (*[]CertificatesCertificateRetrievalResponseExtendedKeyUsageModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *CertificatesCertificateRetrievalResponse) SetExtendedKeyUsages(v []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *CertificatesCertificateRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### SetExtendedKeyUsagesNil + +`func (o *CertificatesCertificateRetrievalResponse) SetExtendedKeyUsagesNil(b bool)` + + SetExtendedKeyUsagesNil sets the value for ExtendedKeyUsages to be an explicit nil + +### UnsetExtendedKeyUsages +`func (o *CertificatesCertificateRetrievalResponse) UnsetExtendedKeyUsages()` + +UnsetExtendedKeyUsages ensures that no value is present for ExtendedKeyUsages, not even an explicit nil +### GetSubjectAltNameElements + +`func (o *CertificatesCertificateRetrievalResponse) GetSubjectAltNameElements() []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel` + +GetSubjectAltNameElements returns the SubjectAltNameElements field if non-nil, zero value otherwise. + +### GetSubjectAltNameElementsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetSubjectAltNameElementsOk() (*[]CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel, bool)` + +GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAltNameElements + +`func (o *CertificatesCertificateRetrievalResponse) SetSubjectAltNameElements(v []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel)` + +SetSubjectAltNameElements sets SubjectAltNameElements field to given value. + +### HasSubjectAltNameElements + +`func (o *CertificatesCertificateRetrievalResponse) HasSubjectAltNameElements() bool` + +HasSubjectAltNameElements returns a boolean if a field has been set. + +### SetSubjectAltNameElementsNil + +`func (o *CertificatesCertificateRetrievalResponse) SetSubjectAltNameElementsNil(b bool)` + + SetSubjectAltNameElementsNil sets the value for SubjectAltNameElements to be an explicit nil + +### UnsetSubjectAltNameElements +`func (o *CertificatesCertificateRetrievalResponse) UnsetSubjectAltNameElements()` + +UnsetSubjectAltNameElements ensures that no value is present for SubjectAltNameElements, not even an explicit nil +### GetCRLDistributionPoints + +`func (o *CertificatesCertificateRetrievalResponse) GetCRLDistributionPoints() []CertificatesCertificateRetrievalResponseCRLDistributionPointModel` + +GetCRLDistributionPoints returns the CRLDistributionPoints field if non-nil, zero value otherwise. + +### GetCRLDistributionPointsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCRLDistributionPointsOk() (*[]CertificatesCertificateRetrievalResponseCRLDistributionPointModel, bool)` + +GetCRLDistributionPointsOk returns a tuple with the CRLDistributionPoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCRLDistributionPoints + +`func (o *CertificatesCertificateRetrievalResponse) SetCRLDistributionPoints(v []CertificatesCertificateRetrievalResponseCRLDistributionPointModel)` + +SetCRLDistributionPoints sets CRLDistributionPoints field to given value. + +### HasCRLDistributionPoints + +`func (o *CertificatesCertificateRetrievalResponse) HasCRLDistributionPoints() bool` + +HasCRLDistributionPoints returns a boolean if a field has been set. + +### SetCRLDistributionPointsNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCRLDistributionPointsNil(b bool)` + + SetCRLDistributionPointsNil sets the value for CRLDistributionPoints to be an explicit nil + +### UnsetCRLDistributionPoints +`func (o *CertificatesCertificateRetrievalResponse) UnsetCRLDistributionPoints()` + +UnsetCRLDistributionPoints ensures that no value is present for CRLDistributionPoints, not even an explicit nil +### GetLocationsCount + +`func (o *CertificatesCertificateRetrievalResponse) GetLocationsCount() []CertificatesCertificateRetrievalResponseLocationCountModel` + +GetLocationsCount returns the LocationsCount field if non-nil, zero value otherwise. + +### GetLocationsCountOk + +`func (o *CertificatesCertificateRetrievalResponse) GetLocationsCountOk() (*[]CertificatesCertificateRetrievalResponseLocationCountModel, bool)` + +GetLocationsCountOk returns a tuple with the LocationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocationsCount + +`func (o *CertificatesCertificateRetrievalResponse) SetLocationsCount(v []CertificatesCertificateRetrievalResponseLocationCountModel)` + +SetLocationsCount sets LocationsCount field to given value. + +### HasLocationsCount + +`func (o *CertificatesCertificateRetrievalResponse) HasLocationsCount() bool` + +HasLocationsCount returns a boolean if a field has been set. + +### SetLocationsCountNil + +`func (o *CertificatesCertificateRetrievalResponse) SetLocationsCountNil(b bool)` + + SetLocationsCountNil sets the value for LocationsCount to be an explicit nil + +### UnsetLocationsCount +`func (o *CertificatesCertificateRetrievalResponse) UnsetLocationsCount()` + +UnsetLocationsCount ensures that no value is present for LocationsCount, not even an explicit nil +### GetSSLLocations + +`func (o *CertificatesCertificateRetrievalResponse) GetSSLLocations() []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +GetSSLLocations returns the SSLLocations field if non-nil, zero value otherwise. + +### GetSSLLocationsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetSSLLocationsOk() (*[]CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel, bool)` + +GetSSLLocationsOk returns a tuple with the SSLLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSSLLocations + +`func (o *CertificatesCertificateRetrievalResponse) SetSSLLocations(v []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel)` + +SetSSLLocations sets SSLLocations field to given value. + +### HasSSLLocations + +`func (o *CertificatesCertificateRetrievalResponse) HasSSLLocations() bool` + +HasSSLLocations returns a boolean if a field has been set. + +### SetSSLLocationsNil + +`func (o *CertificatesCertificateRetrievalResponse) SetSSLLocationsNil(b bool)` + + SetSSLLocationsNil sets the value for SSLLocations to be an explicit nil + +### UnsetSSLLocations +`func (o *CertificatesCertificateRetrievalResponse) UnsetSSLLocations()` + +UnsetSSLLocations ensures that no value is present for SSLLocations, not even an explicit nil +### GetLocations + +`func (o *CertificatesCertificateRetrievalResponse) GetLocations() []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +GetLocations returns the Locations field if non-nil, zero value otherwise. + +### GetLocationsOk + +`func (o *CertificatesCertificateRetrievalResponse) GetLocationsOk() (*[]CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel, bool)` + +GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocations + +`func (o *CertificatesCertificateRetrievalResponse) SetLocations(v []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel)` + +SetLocations sets Locations field to given value. + +### HasLocations + +`func (o *CertificatesCertificateRetrievalResponse) HasLocations() bool` + +HasLocations returns a boolean if a field has been set. + +### SetLocationsNil + +`func (o *CertificatesCertificateRetrievalResponse) SetLocationsNil(b bool)` + + SetLocationsNil sets the value for Locations to be an explicit nil + +### UnsetLocations +`func (o *CertificatesCertificateRetrievalResponse) UnsetLocations()` + +UnsetLocations ensures that no value is present for Locations, not even an explicit nil +### GetMetadata + +`func (o *CertificatesCertificateRetrievalResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CertificatesCertificateRetrievalResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *CertificatesCertificateRetrievalResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CertificatesCertificateRetrievalResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *CertificatesCertificateRetrievalResponse) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *CertificatesCertificateRetrievalResponse) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetCARowIndex + +`func (o *CertificatesCertificateRetrievalResponse) GetCARowIndex() int64` + +GetCARowIndex returns the CARowIndex field if non-nil, zero value otherwise. + +### GetCARowIndexOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCARowIndexOk() (*int64, bool)` + +GetCARowIndexOk returns a tuple with the CARowIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARowIndex + +`func (o *CertificatesCertificateRetrievalResponse) SetCARowIndex(v int64)` + +SetCARowIndex sets CARowIndex field to given value. + +### HasCARowIndex + +`func (o *CertificatesCertificateRetrievalResponse) HasCARowIndex() bool` + +HasCARowIndex returns a boolean if a field has been set. + +### SetCARowIndexNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCARowIndexNil(b bool)` + + SetCARowIndexNil sets the value for CARowIndex to be an explicit nil + +### UnsetCARowIndex +`func (o *CertificatesCertificateRetrievalResponse) UnsetCARowIndex()` + +UnsetCARowIndex ensures that no value is present for CARowIndex, not even an explicit nil +### GetCARecordId + +`func (o *CertificatesCertificateRetrievalResponse) GetCARecordId() string` + +GetCARecordId returns the CARecordId field if non-nil, zero value otherwise. + +### GetCARecordIdOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCARecordIdOk() (*string, bool)` + +GetCARecordIdOk returns a tuple with the CARecordId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARecordId + +`func (o *CertificatesCertificateRetrievalResponse) SetCARecordId(v string)` + +SetCARecordId sets CARecordId field to given value. + +### HasCARecordId + +`func (o *CertificatesCertificateRetrievalResponse) HasCARecordId() bool` + +HasCARecordId returns a boolean if a field has been set. + +### SetCARecordIdNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCARecordIdNil(b bool)` + + SetCARecordIdNil sets the value for CARecordId to be an explicit nil + +### UnsetCARecordId +`func (o *CertificatesCertificateRetrievalResponse) UnsetCARecordId()` + +UnsetCARecordId ensures that no value is present for CARecordId, not even an explicit nil +### GetDetailedKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) GetDetailedKeyUsage() CertificatesCertificateRetrievalResponseDetailedKeyUsageModel` + +GetDetailedKeyUsage returns the DetailedKeyUsage field if non-nil, zero value otherwise. + +### GetDetailedKeyUsageOk + +`func (o *CertificatesCertificateRetrievalResponse) GetDetailedKeyUsageOk() (*CertificatesCertificateRetrievalResponseDetailedKeyUsageModel, bool)` + +GetDetailedKeyUsageOk returns a tuple with the DetailedKeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetailedKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) SetDetailedKeyUsage(v CertificatesCertificateRetrievalResponseDetailedKeyUsageModel)` + +SetDetailedKeyUsage sets DetailedKeyUsage field to given value. + +### HasDetailedKeyUsage + +`func (o *CertificatesCertificateRetrievalResponse) HasDetailedKeyUsage() bool` + +HasDetailedKeyUsage returns a boolean if a field has been set. + +### GetKeyRecoverable + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyRecoverable() bool` + +GetKeyRecoverable returns the KeyRecoverable field if non-nil, zero value otherwise. + +### GetKeyRecoverableOk + +`func (o *CertificatesCertificateRetrievalResponse) GetKeyRecoverableOk() (*bool, bool)` + +GetKeyRecoverableOk returns a tuple with the KeyRecoverable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRecoverable + +`func (o *CertificatesCertificateRetrievalResponse) SetKeyRecoverable(v bool)` + +SetKeyRecoverable sets KeyRecoverable field to given value. + +### HasKeyRecoverable + +`func (o *CertificatesCertificateRetrievalResponse) HasKeyRecoverable() bool` + +HasKeyRecoverable returns a boolean if a field has been set. + +### GetCurve + +`func (o *CertificatesCertificateRetrievalResponse) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *CertificatesCertificateRetrievalResponse) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *CertificatesCertificateRetrievalResponse) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *CertificatesCertificateRetrievalResponse) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *CertificatesCertificateRetrievalResponse) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *CertificatesCertificateRetrievalResponse) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCRLDistributionPointModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCRLDistributionPointModel.md new file mode 100644 index 0000000..c0d7766 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCRLDistributionPointModel.md @@ -0,0 +1,128 @@ +# CertificatesCertificateRetrievalResponseCRLDistributionPointModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Url** | Pointer to **NullableString** | | [optional] +**UrlHash** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseCRLDistributionPointModel + +`func NewCertificatesCertificateRetrievalResponseCRLDistributionPointModel() *CertificatesCertificateRetrievalResponseCRLDistributionPointModel` + +NewCertificatesCertificateRetrievalResponseCRLDistributionPointModel instantiates a new CertificatesCertificateRetrievalResponseCRLDistributionPointModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseCRLDistributionPointModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseCRLDistributionPointModelWithDefaults() *CertificatesCertificateRetrievalResponseCRLDistributionPointModel` + +NewCertificatesCertificateRetrievalResponseCRLDistributionPointModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCRLDistributionPointModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUrl + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### SetUrlNil + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlNil(b bool)` + + SetUrlNil sets the value for Url to be an explicit nil + +### UnsetUrl +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) UnsetUrl()` + +UnsetUrl ensures that no value is present for Url, not even an explicit nil +### GetUrlHash + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHash() string` + +GetUrlHash returns the UrlHash field if non-nil, zero value otherwise. + +### GetUrlHashOk + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHashOk() (*string, bool)` + +GetUrlHashOk returns a tuple with the UrlHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlHash + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHash(v string)` + +SetUrlHash sets UrlHash field to given value. + +### HasUrlHash + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasUrlHash() bool` + +HasUrlHash returns a boolean if a field has been set. + +### SetUrlHashNil + +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHashNil(b bool)` + + SetUrlHashNil sets the value for UrlHash to be an explicit nil + +### UnsetUrlHash +`func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) UnsetUrlHash()` + +UnsetUrlHash ensures that no value is present for UrlHash, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel.md new file mode 100644 index 0000000..704453d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel.md @@ -0,0 +1,216 @@ +# CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreMachine** | Pointer to **NullableString** | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] +**StoreType** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**ChainLevel** | Pointer to **int32** | | [optional] +**CertStoreId** | Pointer to **string** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel + +`func NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel() *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults() *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreMachine + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachine() string` + +GetStoreMachine returns the StoreMachine field if non-nil, zero value otherwise. + +### GetStoreMachineOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachineOk() (*string, bool)` + +GetStoreMachineOk returns a tuple with the StoreMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreMachine + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachine(v string)` + +SetStoreMachine sets StoreMachine field to given value. + +### HasStoreMachine + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreMachine() bool` + +HasStoreMachine returns a boolean if a field has been set. + +### SetStoreMachineNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachineNil(b bool)` + + SetStoreMachineNil sets the value for StoreMachine to be an explicit nil + +### UnsetStoreMachine +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetStoreMachine()` + +UnsetStoreMachine ensures that no value is present for StoreMachine, not even an explicit nil +### GetStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetStoreType + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### GetAlias + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetChainLevel + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevel() int32` + +GetChainLevel returns the ChainLevel field if non-nil, zero value otherwise. + +### GetChainLevelOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevelOk() (*int32, bool)` + +GetChainLevelOk returns a tuple with the ChainLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainLevel + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetChainLevel(v int32)` + +SetChainLevel sets ChainLevel field to given value. + +### HasChainLevel + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasChainLevel() bool` + +HasChainLevel returns a boolean if a field has been set. + +### GetCertStoreId + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreId() string` + +GetCertStoreId returns the CertStoreId field if non-nil, zero value otherwise. + +### GetCertStoreIdOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreIdOk() (*string, bool)` + +GetCertStoreIdOk returns a tuple with the CertStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreId + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetCertStoreId(v string)` + +SetCertStoreId sets CertStoreId field to given value. + +### HasCertStoreId + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasCertStoreId() bool` + +HasCertStoreId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel.md new file mode 100644 index 0000000..b0fe14f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel.md @@ -0,0 +1,210 @@ +# CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StorePath** | Pointer to **NullableString** | | [optional] +**AgentPool** | Pointer to **NullableString** | | [optional] +**IPAddress** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] +**NetworkName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel + +`func NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel() *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults() *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetAgentPool + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPool() string` + +GetAgentPool returns the AgentPool field if non-nil, zero value otherwise. + +### GetAgentPoolOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPoolOk() (*string, bool)` + +GetAgentPoolOk returns a tuple with the AgentPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPool + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPool(v string)` + +SetAgentPool sets AgentPool field to given value. + +### HasAgentPool + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasAgentPool() bool` + +HasAgentPool returns a boolean if a field has been set. + +### SetAgentPoolNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPoolNil(b bool)` + + SetAgentPoolNil sets the value for AgentPool to be an explicit nil + +### UnsetAgentPool +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetAgentPool()` + +UnsetAgentPool ensures that no value is present for AgentPool, not even an explicit nil +### GetIPAddress + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddress() string` + +GetIPAddress returns the IPAddress field if non-nil, zero value otherwise. + +### GetIPAddressOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddressOk() (*string, bool)` + +GetIPAddressOk returns a tuple with the IPAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIPAddress + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddress(v string)` + +SetIPAddress sets IPAddress field to given value. + +### HasIPAddress + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasIPAddress() bool` + +HasIPAddress returns a boolean if a field has been set. + +### SetIPAddressNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddressNil(b bool)` + + SetIPAddressNil sets the value for IPAddress to be an explicit nil + +### UnsetIPAddress +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetIPAddress()` + +UnsetIPAddress ensures that no value is present for IPAddress, not even an explicit nil +### GetPort + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil +### GetNetworkName + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + +### SetNetworkNameNil + +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkNameNil(b bool)` + + SetNetworkNameNil sets the value for NetworkName to be an explicit nil + +### UnsetNetworkName +`func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetNetworkName()` + +UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseDetailedKeyUsageModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseDetailedKeyUsageModel.md new file mode 100644 index 0000000..bc17915 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseDetailedKeyUsageModel.md @@ -0,0 +1,300 @@ +# CertificatesCertificateRetrievalResponseDetailedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CrlSign** | Pointer to **bool** | | [optional] +**DataEncipherment** | Pointer to **bool** | | [optional] +**DecipherOnly** | Pointer to **bool** | | [optional] +**DigitalSignature** | Pointer to **bool** | | [optional] +**EncipherOnly** | Pointer to **bool** | | [optional] +**KeyAgreement** | Pointer to **bool** | | [optional] +**KeyCertSign** | Pointer to **bool** | | [optional] +**KeyEncipherment** | Pointer to **bool** | | [optional] +**NonRepudiation** | Pointer to **bool** | | [optional] +**HexCode** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModel + +`func NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModel() *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel` + +NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModel instantiates a new CertificatesCertificateRetrievalResponseDetailedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults() *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel` + +NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseDetailedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCrlSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSign() bool` + +GetCrlSign returns the CrlSign field if non-nil, zero value otherwise. + +### GetCrlSignOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSignOk() (*bool, bool)` + +GetCrlSignOk returns a tuple with the CrlSign field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrlSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetCrlSign(v bool)` + +SetCrlSign sets CrlSign field to given value. + +### HasCrlSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasCrlSign() bool` + +HasCrlSign returns a boolean if a field has been set. + +### GetDataEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEncipherment() bool` + +GetDataEncipherment returns the DataEncipherment field if non-nil, zero value otherwise. + +### GetDataEnciphermentOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEnciphermentOk() (*bool, bool)` + +GetDataEnciphermentOk returns a tuple with the DataEncipherment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDataEncipherment(v bool)` + +SetDataEncipherment sets DataEncipherment field to given value. + +### HasDataEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDataEncipherment() bool` + +HasDataEncipherment returns a boolean if a field has been set. + +### GetDecipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnly() bool` + +GetDecipherOnly returns the DecipherOnly field if non-nil, zero value otherwise. + +### GetDecipherOnlyOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnlyOk() (*bool, bool)` + +GetDecipherOnlyOk returns a tuple with the DecipherOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDecipherOnly(v bool)` + +SetDecipherOnly sets DecipherOnly field to given value. + +### HasDecipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDecipherOnly() bool` + +HasDecipherOnly returns a boolean if a field has been set. + +### GetDigitalSignature + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignature() bool` + +GetDigitalSignature returns the DigitalSignature field if non-nil, zero value otherwise. + +### GetDigitalSignatureOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignatureOk() (*bool, bool)` + +GetDigitalSignatureOk returns a tuple with the DigitalSignature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigitalSignature + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDigitalSignature(v bool)` + +SetDigitalSignature sets DigitalSignature field to given value. + +### HasDigitalSignature + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDigitalSignature() bool` + +HasDigitalSignature returns a boolean if a field has been set. + +### GetEncipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnly() bool` + +GetEncipherOnly returns the EncipherOnly field if non-nil, zero value otherwise. + +### GetEncipherOnlyOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnlyOk() (*bool, bool)` + +GetEncipherOnlyOk returns a tuple with the EncipherOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetEncipherOnly(v bool)` + +SetEncipherOnly sets EncipherOnly field to given value. + +### HasEncipherOnly + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasEncipherOnly() bool` + +HasEncipherOnly returns a boolean if a field has been set. + +### GetKeyAgreement + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreement() bool` + +GetKeyAgreement returns the KeyAgreement field if non-nil, zero value otherwise. + +### GetKeyAgreementOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreementOk() (*bool, bool)` + +GetKeyAgreementOk returns a tuple with the KeyAgreement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyAgreement + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyAgreement(v bool)` + +SetKeyAgreement sets KeyAgreement field to given value. + +### HasKeyAgreement + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyAgreement() bool` + +HasKeyAgreement returns a boolean if a field has been set. + +### GetKeyCertSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSign() bool` + +GetKeyCertSign returns the KeyCertSign field if non-nil, zero value otherwise. + +### GetKeyCertSignOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSignOk() (*bool, bool)` + +GetKeyCertSignOk returns a tuple with the KeyCertSign field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCertSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyCertSign(v bool)` + +SetKeyCertSign sets KeyCertSign field to given value. + +### HasKeyCertSign + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyCertSign() bool` + +HasKeyCertSign returns a boolean if a field has been set. + +### GetKeyEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEncipherment() bool` + +GetKeyEncipherment returns the KeyEncipherment field if non-nil, zero value otherwise. + +### GetKeyEnciphermentOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEnciphermentOk() (*bool, bool)` + +GetKeyEnciphermentOk returns a tuple with the KeyEncipherment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyEncipherment(v bool)` + +SetKeyEncipherment sets KeyEncipherment field to given value. + +### HasKeyEncipherment + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyEncipherment() bool` + +HasKeyEncipherment returns a boolean if a field has been set. + +### GetNonRepudiation + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiation() bool` + +GetNonRepudiation returns the NonRepudiation field if non-nil, zero value otherwise. + +### GetNonRepudiationOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiationOk() (*bool, bool)` + +GetNonRepudiationOk returns a tuple with the NonRepudiation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonRepudiation + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetNonRepudiation(v bool)` + +SetNonRepudiation sets NonRepudiation field to given value. + +### HasNonRepudiation + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasNonRepudiation() bool` + +HasNonRepudiation returns a boolean if a field has been set. + +### GetHexCode + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCode() string` + +GetHexCode returns the HexCode field if non-nil, zero value otherwise. + +### GetHexCodeOk + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCodeOk() (*string, bool)` + +GetHexCodeOk returns a tuple with the HexCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHexCode + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCode(v string)` + +SetHexCode sets HexCode field to given value. + +### HasHexCode + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasHexCode() bool` + +HasHexCode returns a boolean if a field has been set. + +### SetHexCodeNil + +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCodeNil(b bool)` + + SetHexCodeNil sets the value for HexCode to be an explicit nil + +### UnsetHexCode +`func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) UnsetHexCode()` + +UnsetHexCode ensures that no value is present for HexCode, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseExtendedKeyUsageModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseExtendedKeyUsageModel.md new file mode 100644 index 0000000..b5cd0a2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseExtendedKeyUsageModel.md @@ -0,0 +1,128 @@ +# CertificatesCertificateRetrievalResponseExtendedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModel + +`func NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModel() *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel` + +NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModel instantiates a new CertificatesCertificateRetrievalResponseExtendedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults() *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel` + +NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseExtendedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### SetOidNil + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetOidNil(b bool)` + + SetOidNil sets the value for Oid to be an explicit nil + +### UnsetOid +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) UnsetOid()` + +UnsetOid ensures that no value is present for Oid, not even an explicit nil +### GetDisplayName + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseLocationCountModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseLocationCountModel.md new file mode 100644 index 0000000..6a03261 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseLocationCountModel.md @@ -0,0 +1,92 @@ +# CertificatesCertificateRetrievalResponseLocationCountModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **NullableString** | | [optional] +**Count** | Pointer to **int32** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseLocationCountModel + +`func NewCertificatesCertificateRetrievalResponseLocationCountModel() *CertificatesCertificateRetrievalResponseLocationCountModel` + +NewCertificatesCertificateRetrievalResponseLocationCountModel instantiates a new CertificatesCertificateRetrievalResponseLocationCountModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseLocationCountModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseLocationCountModelWithDefaults() *CertificatesCertificateRetrievalResponseLocationCountModel` + +NewCertificatesCertificateRetrievalResponseLocationCountModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseLocationCountModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetCount + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *CertificatesCertificateRetrievalResponseLocationCountModel) HasCount() bool` + +HasCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel.md b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel.md new file mode 100644 index 0000000..06600ca --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel.md @@ -0,0 +1,154 @@ +# CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to [**KeyfactorPKIPKIConstantsX509SubjectAltNameElementType**](KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md) | | [optional] +**ValueHash** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel + +`func NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel() *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel` + +NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel instantiates a new CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults + +`func NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults() *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel` + +NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetType + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetType() KeyfactorPKIPKIConstantsX509SubjectAltNameElementType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetTypeOk() (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetType(v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValueHash + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHash() string` + +GetValueHash returns the ValueHash field if non-nil, zero value otherwise. + +### GetValueHashOk + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHashOk() (*string, bool)` + +GetValueHashOk returns a tuple with the ValueHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueHash + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHash(v string)` + +SetValueHash sets ValueHash field to given value. + +### HasValueHash + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasValueHash() bool` + +HasValueHash returns a boolean if a field has been set. + +### SetValueHashNil + +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHashNil(b bool)` + + SetValueHashNil sets the value for ValueHash to be an explicit nil + +### UnsetValueHash +`func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) UnsetValueHash()` + +UnsetValueHash ensures that no value is present for ValueHash, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesOwnerRequest.md b/v24/api/keyfactor/v1/docs/CertificatesOwnerRequest.md new file mode 100644 index 0000000..e950966 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesOwnerRequest.md @@ -0,0 +1,102 @@ +# CertificatesOwnerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NewRoleId** | Pointer to **NullableInt32** | | [optional] +**NewRoleName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesOwnerRequest + +`func NewCertificatesOwnerRequest() *CertificatesOwnerRequest` + +NewCertificatesOwnerRequest instantiates a new CertificatesOwnerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesOwnerRequestWithDefaults + +`func NewCertificatesOwnerRequestWithDefaults() *CertificatesOwnerRequest` + +NewCertificatesOwnerRequestWithDefaults instantiates a new CertificatesOwnerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNewRoleId + +`func (o *CertificatesOwnerRequest) GetNewRoleId() int32` + +GetNewRoleId returns the NewRoleId field if non-nil, zero value otherwise. + +### GetNewRoleIdOk + +`func (o *CertificatesOwnerRequest) GetNewRoleIdOk() (*int32, bool)` + +GetNewRoleIdOk returns a tuple with the NewRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewRoleId + +`func (o *CertificatesOwnerRequest) SetNewRoleId(v int32)` + +SetNewRoleId sets NewRoleId field to given value. + +### HasNewRoleId + +`func (o *CertificatesOwnerRequest) HasNewRoleId() bool` + +HasNewRoleId returns a boolean if a field has been set. + +### SetNewRoleIdNil + +`func (o *CertificatesOwnerRequest) SetNewRoleIdNil(b bool)` + + SetNewRoleIdNil sets the value for NewRoleId to be an explicit nil + +### UnsetNewRoleId +`func (o *CertificatesOwnerRequest) UnsetNewRoleId()` + +UnsetNewRoleId ensures that no value is present for NewRoleId, not even an explicit nil +### GetNewRoleName + +`func (o *CertificatesOwnerRequest) GetNewRoleName() string` + +GetNewRoleName returns the NewRoleName field if non-nil, zero value otherwise. + +### GetNewRoleNameOk + +`func (o *CertificatesOwnerRequest) GetNewRoleNameOk() (*string, bool)` + +GetNewRoleNameOk returns a tuple with the NewRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewRoleName + +`func (o *CertificatesOwnerRequest) SetNewRoleName(v string)` + +SetNewRoleName sets NewRoleName field to given value. + +### HasNewRoleName + +`func (o *CertificatesOwnerRequest) HasNewRoleName() bool` + +HasNewRoleName returns a boolean if a field has been set. + +### SetNewRoleNameNil + +`func (o *CertificatesOwnerRequest) SetNewRoleNameNil(b bool)` + + SetNewRoleNameNil sets the value for NewRoleName to be an explicit nil + +### UnsetNewRoleName +`func (o *CertificatesOwnerRequest) UnsetNewRoleName()` + +UnsetNewRoleName ensures that no value is present for NewRoleName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesRevocationResponse.md b/v24/api/keyfactor/v1/docs/CertificatesRevocationResponse.md new file mode 100644 index 0000000..ba90f95 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesRevocationResponse.md @@ -0,0 +1,102 @@ +# CertificatesRevocationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RevokedIds** | Pointer to **[]int32** | | [optional] +**SuspendedCerts** | Pointer to [**[]CertificatesSuspendedRevocationResponse**](CertificatesSuspendedRevocationResponse.md) | | [optional] + +## Methods + +### NewCertificatesRevocationResponse + +`func NewCertificatesRevocationResponse() *CertificatesRevocationResponse` + +NewCertificatesRevocationResponse instantiates a new CertificatesRevocationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesRevocationResponseWithDefaults + +`func NewCertificatesRevocationResponseWithDefaults() *CertificatesRevocationResponse` + +NewCertificatesRevocationResponseWithDefaults instantiates a new CertificatesRevocationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRevokedIds + +`func (o *CertificatesRevocationResponse) GetRevokedIds() []int32` + +GetRevokedIds returns the RevokedIds field if non-nil, zero value otherwise. + +### GetRevokedIdsOk + +`func (o *CertificatesRevocationResponse) GetRevokedIdsOk() (*[]int32, bool)` + +GetRevokedIdsOk returns a tuple with the RevokedIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevokedIds + +`func (o *CertificatesRevocationResponse) SetRevokedIds(v []int32)` + +SetRevokedIds sets RevokedIds field to given value. + +### HasRevokedIds + +`func (o *CertificatesRevocationResponse) HasRevokedIds() bool` + +HasRevokedIds returns a boolean if a field has been set. + +### SetRevokedIdsNil + +`func (o *CertificatesRevocationResponse) SetRevokedIdsNil(b bool)` + + SetRevokedIdsNil sets the value for RevokedIds to be an explicit nil + +### UnsetRevokedIds +`func (o *CertificatesRevocationResponse) UnsetRevokedIds()` + +UnsetRevokedIds ensures that no value is present for RevokedIds, not even an explicit nil +### GetSuspendedCerts + +`func (o *CertificatesRevocationResponse) GetSuspendedCerts() []CertificatesSuspendedRevocationResponse` + +GetSuspendedCerts returns the SuspendedCerts field if non-nil, zero value otherwise. + +### GetSuspendedCertsOk + +`func (o *CertificatesRevocationResponse) GetSuspendedCertsOk() (*[]CertificatesSuspendedRevocationResponse, bool)` + +GetSuspendedCertsOk returns a tuple with the SuspendedCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspendedCerts + +`func (o *CertificatesRevocationResponse) SetSuspendedCerts(v []CertificatesSuspendedRevocationResponse)` + +SetSuspendedCerts sets SuspendedCerts field to given value. + +### HasSuspendedCerts + +`func (o *CertificatesRevocationResponse) HasSuspendedCerts() bool` + +HasSuspendedCerts returns a boolean if a field has been set. + +### SetSuspendedCertsNil + +`func (o *CertificatesRevocationResponse) SetSuspendedCertsNil(b bool)` + + SetSuspendedCertsNil sets the value for SuspendedCerts to be an explicit nil + +### UnsetSuspendedCerts +`func (o *CertificatesRevocationResponse) UnsetSuspendedCerts()` + +UnsetSuspendedCerts ensures that no value is present for SuspendedCerts, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesRevokeCertificateRequest.md b/v24/api/keyfactor/v1/docs/CertificatesRevokeCertificateRequest.md new file mode 100644 index 0000000..8350167 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesRevokeCertificateRequest.md @@ -0,0 +1,216 @@ +# CertificatesRevokeCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateIds** | Pointer to **[]int32** | | [optional] +**Reason** | Pointer to [**KeyfactorPKIEnumsRevokeCode**](KeyfactorPKIEnumsRevokeCode.md) | | [optional] +**Comment** | Pointer to **NullableString** | | [optional] +**EffectiveDate** | Pointer to **time.Time** | | [optional] +**CollectionId** | Pointer to **NullableInt32** | | [optional] +**PublishCRL** | Pointer to **bool** | | [optional] + +## Methods + +### NewCertificatesRevokeCertificateRequest + +`func NewCertificatesRevokeCertificateRequest() *CertificatesRevokeCertificateRequest` + +NewCertificatesRevokeCertificateRequest instantiates a new CertificatesRevokeCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesRevokeCertificateRequestWithDefaults + +`func NewCertificatesRevokeCertificateRequestWithDefaults() *CertificatesRevokeCertificateRequest` + +NewCertificatesRevokeCertificateRequestWithDefaults instantiates a new CertificatesRevokeCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateIds + +`func (o *CertificatesRevokeCertificateRequest) GetCertificateIds() []int32` + +GetCertificateIds returns the CertificateIds field if non-nil, zero value otherwise. + +### GetCertificateIdsOk + +`func (o *CertificatesRevokeCertificateRequest) GetCertificateIdsOk() (*[]int32, bool)` + +GetCertificateIdsOk returns a tuple with the CertificateIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateIds + +`func (o *CertificatesRevokeCertificateRequest) SetCertificateIds(v []int32)` + +SetCertificateIds sets CertificateIds field to given value. + +### HasCertificateIds + +`func (o *CertificatesRevokeCertificateRequest) HasCertificateIds() bool` + +HasCertificateIds returns a boolean if a field has been set. + +### SetCertificateIdsNil + +`func (o *CertificatesRevokeCertificateRequest) SetCertificateIdsNil(b bool)` + + SetCertificateIdsNil sets the value for CertificateIds to be an explicit nil + +### UnsetCertificateIds +`func (o *CertificatesRevokeCertificateRequest) UnsetCertificateIds()` + +UnsetCertificateIds ensures that no value is present for CertificateIds, not even an explicit nil +### GetReason + +`func (o *CertificatesRevokeCertificateRequest) GetReason() KeyfactorPKIEnumsRevokeCode` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *CertificatesRevokeCertificateRequest) GetReasonOk() (*KeyfactorPKIEnumsRevokeCode, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *CertificatesRevokeCertificateRequest) SetReason(v KeyfactorPKIEnumsRevokeCode)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *CertificatesRevokeCertificateRequest) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetComment + +`func (o *CertificatesRevokeCertificateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CertificatesRevokeCertificateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CertificatesRevokeCertificateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *CertificatesRevokeCertificateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### SetCommentNil + +`func (o *CertificatesRevokeCertificateRequest) SetCommentNil(b bool)` + + SetCommentNil sets the value for Comment to be an explicit nil + +### UnsetComment +`func (o *CertificatesRevokeCertificateRequest) UnsetComment()` + +UnsetComment ensures that no value is present for Comment, not even an explicit nil +### GetEffectiveDate + +`func (o *CertificatesRevokeCertificateRequest) GetEffectiveDate() time.Time` + +GetEffectiveDate returns the EffectiveDate field if non-nil, zero value otherwise. + +### GetEffectiveDateOk + +`func (o *CertificatesRevokeCertificateRequest) GetEffectiveDateOk() (*time.Time, bool)` + +GetEffectiveDateOk returns a tuple with the EffectiveDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffectiveDate + +`func (o *CertificatesRevokeCertificateRequest) SetEffectiveDate(v time.Time)` + +SetEffectiveDate sets EffectiveDate field to given value. + +### HasEffectiveDate + +`func (o *CertificatesRevokeCertificateRequest) HasEffectiveDate() bool` + +HasEffectiveDate returns a boolean if a field has been set. + +### GetCollectionId + +`func (o *CertificatesRevokeCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *CertificatesRevokeCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *CertificatesRevokeCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *CertificatesRevokeCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### SetCollectionIdNil + +`func (o *CertificatesRevokeCertificateRequest) SetCollectionIdNil(b bool)` + + SetCollectionIdNil sets the value for CollectionId to be an explicit nil + +### UnsetCollectionId +`func (o *CertificatesRevokeCertificateRequest) UnsetCollectionId()` + +UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil +### GetPublishCRL + +`func (o *CertificatesRevokeCertificateRequest) GetPublishCRL() bool` + +GetPublishCRL returns the PublishCRL field if non-nil, zero value otherwise. + +### GetPublishCRLOk + +`func (o *CertificatesRevokeCertificateRequest) GetPublishCRLOk() (*bool, bool)` + +GetPublishCRLOk returns a tuple with the PublishCRL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishCRL + +`func (o *CertificatesRevokeCertificateRequest) SetPublishCRL(v bool)` + +SetPublishCRL sets PublishCRL field to given value. + +### HasPublishCRL + +`func (o *CertificatesRevokeCertificateRequest) HasPublishCRL() bool` + +HasPublishCRL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesSubjectAlternativeName.md b/v24/api/keyfactor/v1/docs/CertificatesSubjectAlternativeName.md new file mode 100644 index 0000000..a40b02a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesSubjectAlternativeName.md @@ -0,0 +1,102 @@ +# CertificatesSubjectAlternativeName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesSubjectAlternativeName + +`func NewCertificatesSubjectAlternativeName() *CertificatesSubjectAlternativeName` + +NewCertificatesSubjectAlternativeName instantiates a new CertificatesSubjectAlternativeName object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesSubjectAlternativeNameWithDefaults + +`func NewCertificatesSubjectAlternativeNameWithDefaults() *CertificatesSubjectAlternativeName` + +NewCertificatesSubjectAlternativeNameWithDefaults instantiates a new CertificatesSubjectAlternativeName object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CertificatesSubjectAlternativeName) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CertificatesSubjectAlternativeName) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CertificatesSubjectAlternativeName) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CertificatesSubjectAlternativeName) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *CertificatesSubjectAlternativeName) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *CertificatesSubjectAlternativeName) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetType + +`func (o *CertificatesSubjectAlternativeName) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificatesSubjectAlternativeName) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CertificatesSubjectAlternativeName) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CertificatesSubjectAlternativeName) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *CertificatesSubjectAlternativeName) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CertificatesSubjectAlternativeName) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CertificatesSuspendedRevocationResponse.md b/v24/api/keyfactor/v1/docs/CertificatesSuspendedRevocationResponse.md new file mode 100644 index 0000000..e19b070 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CertificatesSuspendedRevocationResponse.md @@ -0,0 +1,118 @@ +# CertificatesSuspendedRevocationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertId** | Pointer to **int32** | | [optional] +**WorkflowId** | Pointer to **string** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCertificatesSuspendedRevocationResponse + +`func NewCertificatesSuspendedRevocationResponse() *CertificatesSuspendedRevocationResponse` + +NewCertificatesSuspendedRevocationResponse instantiates a new CertificatesSuspendedRevocationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesSuspendedRevocationResponseWithDefaults + +`func NewCertificatesSuspendedRevocationResponseWithDefaults() *CertificatesSuspendedRevocationResponse` + +NewCertificatesSuspendedRevocationResponseWithDefaults instantiates a new CertificatesSuspendedRevocationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertId + +`func (o *CertificatesSuspendedRevocationResponse) GetCertId() int32` + +GetCertId returns the CertId field if non-nil, zero value otherwise. + +### GetCertIdOk + +`func (o *CertificatesSuspendedRevocationResponse) GetCertIdOk() (*int32, bool)` + +GetCertIdOk returns a tuple with the CertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertId + +`func (o *CertificatesSuspendedRevocationResponse) SetCertId(v int32)` + +SetCertId sets CertId field to given value. + +### HasCertId + +`func (o *CertificatesSuspendedRevocationResponse) HasCertId() bool` + +HasCertId returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *CertificatesSuspendedRevocationResponse) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *CertificatesSuspendedRevocationResponse) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *CertificatesSuspendedRevocationResponse) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *CertificatesSuspendedRevocationResponse) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### GetMessage + +`func (o *CertificatesSuspendedRevocationResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *CertificatesSuspendedRevocationResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *CertificatesSuspendedRevocationResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *CertificatesSuspendedRevocationResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *CertificatesSuspendedRevocationResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *CertificatesSuspendedRevocationResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ComponentInstallationApi.md b/v24/api/keyfactor/v1/docs/ComponentInstallationApi.md new file mode 100644 index 0000000..a96c0ee --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ComponentInstallationApi.md @@ -0,0 +1,156 @@ +# \ComponentInstallationApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteComponentInstallationById**](ComponentInstallationApi.md#DeleteComponentInstallationById) | **DELETE** /ComponentInstallation/{id} | Deletes the Keyfactor component installation whose ID is provided. +[**GetComponentInstallation**](ComponentInstallationApi.md#GetComponentInstallation) | **GET** /ComponentInstallation | Returns all Keyfactor component installations. + + + +## DeleteComponentInstallationById + +> NewDeleteComponentInstallationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the Keyfactor component installation whose ID is provided. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor component installation identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentInstallationApi.NewDeleteComponentInstallationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentInstallationApi.DeleteComponentInstallationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor component installation identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComponentInstallationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetComponentInstallation + +> []ComponentInstallationComponentInstallationResponse NewGetComponentInstallationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all Keyfactor component installations. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentInstallationApi.NewGetComponentInstallationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentInstallationApi.GetComponentInstallation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetComponentInstallation`: []ComponentInstallationComponentInstallationResponse + fmt.Fprintf(os.Stdout, "Response from `ComponentInstallationApi.GetComponentInstallation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetComponentInstallationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]ComponentInstallationComponentInstallationResponse**](ComponentInstallationComponentInstallationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/ComponentInstallationComponentInstallationResponse.md b/v24/api/keyfactor/v1/docs/ComponentInstallationComponentInstallationResponse.md new file mode 100644 index 0000000..8595527 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ComponentInstallationComponentInstallationResponse.md @@ -0,0 +1,164 @@ +# ComponentInstallationComponentInstallationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Machine** | Pointer to **NullableString** | | [optional] +**Version** | Pointer to **NullableString** | | [optional] +**Components** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewComponentInstallationComponentInstallationResponse + +`func NewComponentInstallationComponentInstallationResponse() *ComponentInstallationComponentInstallationResponse` + +NewComponentInstallationComponentInstallationResponse instantiates a new ComponentInstallationComponentInstallationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentInstallationComponentInstallationResponseWithDefaults + +`func NewComponentInstallationComponentInstallationResponseWithDefaults() *ComponentInstallationComponentInstallationResponse` + +NewComponentInstallationComponentInstallationResponseWithDefaults instantiates a new ComponentInstallationComponentInstallationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ComponentInstallationComponentInstallationResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComponentInstallationComponentInstallationResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComponentInstallationComponentInstallationResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComponentInstallationComponentInstallationResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMachine + +`func (o *ComponentInstallationComponentInstallationResponse) GetMachine() string` + +GetMachine returns the Machine field if non-nil, zero value otherwise. + +### GetMachineOk + +`func (o *ComponentInstallationComponentInstallationResponse) GetMachineOk() (*string, bool)` + +GetMachineOk returns a tuple with the Machine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachine + +`func (o *ComponentInstallationComponentInstallationResponse) SetMachine(v string)` + +SetMachine sets Machine field to given value. + +### HasMachine + +`func (o *ComponentInstallationComponentInstallationResponse) HasMachine() bool` + +HasMachine returns a boolean if a field has been set. + +### SetMachineNil + +`func (o *ComponentInstallationComponentInstallationResponse) SetMachineNil(b bool)` + + SetMachineNil sets the value for Machine to be an explicit nil + +### UnsetMachine +`func (o *ComponentInstallationComponentInstallationResponse) UnsetMachine()` + +UnsetMachine ensures that no value is present for Machine, not even an explicit nil +### GetVersion + +`func (o *ComponentInstallationComponentInstallationResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ComponentInstallationComponentInstallationResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ComponentInstallationComponentInstallationResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ComponentInstallationComponentInstallationResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *ComponentInstallationComponentInstallationResponse) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *ComponentInstallationComponentInstallationResponse) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetComponents + +`func (o *ComponentInstallationComponentInstallationResponse) GetComponents() string` + +GetComponents returns the Components field if non-nil, zero value otherwise. + +### GetComponentsOk + +`func (o *ComponentInstallationComponentInstallationResponse) GetComponentsOk() (*string, bool)` + +GetComponentsOk returns a tuple with the Components field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponents + +`func (o *ComponentInstallationComponentInstallationResponse) SetComponents(v string)` + +SetComponents sets Components field to given value. + +### HasComponents + +`func (o *ComponentInstallationComponentInstallationResponse) HasComponents() bool` + +HasComponents returns a boolean if a field has been set. + +### SetComponentsNil + +`func (o *ComponentInstallationComponentInstallationResponse) SetComponentsNil(b bool)` + + SetComponentsNil sets the value for Components to be an explicit nil + +### UnsetComponents +`func (o *ComponentInstallationComponentInstallationResponse) UnsetComponents()` + +UnsetComponents ensures that no value is present for Components, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ConfigurationTenantConfigurationTenantRequest.md b/v24/api/keyfactor/v1/docs/ConfigurationTenantConfigurationTenantRequest.md new file mode 100644 index 0000000..82326ea --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ConfigurationTenantConfigurationTenantRequest.md @@ -0,0 +1,66 @@ +# ConfigurationTenantConfigurationTenantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewConfigurationTenantConfigurationTenantRequest + +`func NewConfigurationTenantConfigurationTenantRequest() *ConfigurationTenantConfigurationTenantRequest` + +NewConfigurationTenantConfigurationTenantRequest instantiates a new ConfigurationTenantConfigurationTenantRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewConfigurationTenantConfigurationTenantRequestWithDefaults + +`func NewConfigurationTenantConfigurationTenantRequestWithDefaults() *ConfigurationTenantConfigurationTenantRequest` + +NewConfigurationTenantConfigurationTenantRequestWithDefaults instantiates a new ConfigurationTenantConfigurationTenantRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigurationTenant + +`func (o *ConfigurationTenantConfigurationTenantRequest) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *ConfigurationTenantConfigurationTenantRequest) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *ConfigurationTenantConfigurationTenantRequest) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *ConfigurationTenantConfigurationTenantRequest) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *ConfigurationTenantConfigurationTenantRequest) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *ConfigurationTenantConfigurationTenantRequest) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/CustomJobTypeApi.md b/v24/api/keyfactor/v1/docs/CustomJobTypeApi.md new file mode 100644 index 0000000..99497ab --- /dev/null +++ b/v24/api/keyfactor/v1/docs/CustomJobTypeApi.md @@ -0,0 +1,367 @@ +# \CustomJobTypeApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateJobTypesCustom**](CustomJobTypeApi.md#CreateJobTypesCustom) | **POST** /JobTypes/Custom | Creates a custom job type with the provided properties +[**DeleteJobTypesCustomById**](CustomJobTypeApi.md#DeleteJobTypesCustomById) | **DELETE** /JobTypes/Custom/{id} | Deletes the custom job type associated with the provided id +[**GetJobTypesCustom**](CustomJobTypeApi.md#GetJobTypesCustom) | **GET** /JobTypes/Custom | Returns all custom job types according to the provided filter and output parameters +[**GetJobTypesCustomById**](CustomJobTypeApi.md#GetJobTypesCustomById) | **GET** /JobTypes/Custom/{id} | Returns a single custom job type associated with the provided id +[**UpdateJobTypesCustom**](CustomJobTypeApi.md#UpdateJobTypesCustom) | **PUT** /JobTypes/Custom | Updates an existing custom job type with the provided properties + + + +## CreateJobTypesCustom + +> OrchestratorJobsJobTypeResponse NewCreateJobTypesCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest).Execute() + +Creates a custom job type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest := *openapiclient.NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest("JobTypeName_example") // CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest | job type properties to be applied to the new job type (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.NewCreateJobTypesCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CreateJobTypesCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateJobTypesCustom`: OrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.CreateJobTypesCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateJobTypesCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest** | [**CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest**](CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest.md) | job type properties to be applied to the new job type | + +### Return type + +[**OrchestratorJobsJobTypeResponse**](OrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteJobTypesCustomById + +> NewDeleteJobTypesCustomByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the custom job type associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the job type + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.NewDeleteJobTypesCustomByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.DeleteJobTypesCustomById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the job type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteJobTypesCustomByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetJobTypesCustom + +> []OrchestratorJobsJobTypeResponse NewGetJobTypesCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all custom job types according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.NewGetJobTypesCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.GetJobTypesCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetJobTypesCustom`: []OrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.GetJobTypesCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetJobTypesCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]OrchestratorJobsJobTypeResponse**](OrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetJobTypesCustomById + +> OrchestratorJobsJobTypeResponse NewGetJobTypesCustomByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single custom job type associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor (GUID) identifier of the job type + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.NewGetJobTypesCustomByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.GetJobTypesCustomById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetJobTypesCustomById`: OrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.GetJobTypesCustomById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor (GUID) identifier of the job type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetJobTypesCustomByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorJobsJobTypeResponse**](OrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateJobTypesCustom + +> OrchestratorJobsJobTypeResponse NewUpdateJobTypesCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest).Execute() + +Updates an existing custom job type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest("Id_example", "JobTypeName_example") // CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest | job type properties to be applied to the existing job type (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.NewUpdateJobTypesCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.UpdateJobTypesCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateJobTypesCustom`: OrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.UpdateJobTypesCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateJobTypesCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest** | [**CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest**](CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest.md) | job type properties to be applied to the existing job type | + +### Return type + +[**OrchestratorJobsJobTypeResponse**](OrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/DeniedAlertApi.md b/v24/api/keyfactor/v1/docs/DeniedAlertApi.md new file mode 100644 index 0000000..9967884 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/DeniedAlertApi.md @@ -0,0 +1,367 @@ +# \DeniedAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlertsDenied**](DeniedAlertApi.md#CreateAlertsDenied) | **POST** /Alerts/Denied | Add a denied alert +[**DeleteAlertsDeniedById**](DeniedAlertApi.md#DeleteAlertsDeniedById) | **DELETE** /Alerts/Denied/{id} | Delete a denied alert +[**GetAlertsDenied**](DeniedAlertApi.md#GetAlertsDenied) | **GET** /Alerts/Denied | Gets all denied alerts according to the provided filter and output parameters +[**GetAlertsDeniedById**](DeniedAlertApi.md#GetAlertsDeniedById) | **GET** /Alerts/Denied/{id} | Get a denied alert +[**UpdateAlertsDenied**](DeniedAlertApi.md#UpdateAlertsDenied) | **PUT** /Alerts/Denied | Edit a denied alert + + + +## CreateAlertsDenied + +> AlertsDeniedDeniedAlertDefinitionResponse NewCreateAlertsDeniedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsDeniedDeniedAlertCreationRequest(alertsDeniedDeniedAlertCreationRequest).Execute() + +Add a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsDeniedDeniedAlertCreationRequest := *openapiclient.NewAlertsDeniedDeniedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsDeniedDeniedAlertCreationRequest | Information for the new alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.NewCreateAlertsDeniedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsDeniedDeniedAlertCreationRequest(alertsDeniedDeniedAlertCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.CreateAlertsDenied``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsDenied`: AlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.CreateAlertsDenied`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsDeniedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsDeniedDeniedAlertCreationRequest** | [**AlertsDeniedDeniedAlertCreationRequest**](AlertsDeniedDeniedAlertCreationRequest.md) | Information for the new alert | + +### Return type + +[**AlertsDeniedDeniedAlertDefinitionResponse**](AlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAlertsDeniedById + +> NewDeleteAlertsDeniedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the denied alert + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.NewDeleteAlertsDeniedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeleteAlertsDeniedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the denied alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAlertsDeniedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsDenied + +> []AlertsDeniedDeniedAlertDefinitionResponse NewGetAlertsDeniedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all denied alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.NewGetAlertsDeniedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.GetAlertsDenied``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsDenied`: []AlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.GetAlertsDenied`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsDeniedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AlertsDeniedDeniedAlertDefinitionResponse**](AlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsDeniedById + +> AlertsDeniedDeniedAlertDefinitionResponse NewGetAlertsDeniedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the denied alert to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.NewGetAlertsDeniedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.GetAlertsDeniedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsDeniedById`: AlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.GetAlertsDeniedById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the denied alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsDeniedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsDeniedDeniedAlertDefinitionResponse**](AlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsDenied + +> AlertsDeniedDeniedAlertDefinitionResponse NewUpdateAlertsDeniedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsDeniedDeniedAlertUpdateRequest(alertsDeniedDeniedAlertUpdateRequest).Execute() + +Edit a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsDeniedDeniedAlertUpdateRequest := *openapiclient.NewAlertsDeniedDeniedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsDeniedDeniedAlertUpdateRequest | Information for the denied alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.NewUpdateAlertsDeniedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsDeniedDeniedAlertUpdateRequest(alertsDeniedDeniedAlertUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.UpdateAlertsDenied``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsDenied`: AlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.UpdateAlertsDenied`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsDeniedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsDeniedDeniedAlertUpdateRequest** | [**AlertsDeniedDeniedAlertUpdateRequest**](AlertsDeniedDeniedAlertUpdateRequest.md) | Information for the denied alert | + +### Return type + +[**AlertsDeniedDeniedAlertDefinitionResponse**](AlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentApi.md b/v24/api/keyfactor/v1/docs/EnrollmentApi.md new file mode 100644 index 0000000..5608fbd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentApi.md @@ -0,0 +1,795 @@ +# \EnrollmentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEnrollmentCSR**](EnrollmentApi.md#CreateEnrollmentCSR) | **POST** /Enrollment/CSR | Performs a CSR Enrollment based upon the provided request +[**CreateEnrollmentCSRParse**](EnrollmentApi.md#CreateEnrollmentCSRParse) | **POST** /Enrollment/CSR/Parse | Parses the provided CSR and returns the properties +[**CreateEnrollmentPFX**](EnrollmentApi.md#CreateEnrollmentPFX) | **POST** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request +[**CreateEnrollmentPFXDeploy**](EnrollmentApi.md#CreateEnrollmentPFXDeploy) | **POST** /Enrollment/PFX/Deploy | Creates management jobs to install a newly enrolled pfx in to one or more certificate stores +[**CreateEnrollmentPFXReplace**](EnrollmentApi.md#CreateEnrollmentPFXReplace) | **POST** /Enrollment/PFX/Replace | Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate +[**CreateEnrollmentRenew**](EnrollmentApi.md#CreateEnrollmentRenew) | **POST** /Enrollment/Renew | Performs a renewal based upon the passed in request +[**GetEnrollmentAvailableRenewalIdById**](EnrollmentApi.md#GetEnrollmentAvailableRenewalIdById) | **GET** /Enrollment/AvailableRenewal/Id/{id} | Returns the type of renewal available for a given certificate. +[**GetEnrollmentAvailableRenewalThumbprintThumbprint**](EnrollmentApi.md#GetEnrollmentAvailableRenewalThumbprintThumbprint) | **GET** /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} | Returns the type of renewal available for a given certificate. +[**GetEnrollmentCSRContextMy**](EnrollmentApi.md#GetEnrollmentCSRContextMy) | **GET** /Enrollment/CSR/Context/My | Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on +[**GetEnrollmentPFXContextMy**](EnrollmentApi.md#GetEnrollmentPFXContextMy) | **GET** /Enrollment/PFX/Context/My | Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on +[**GetEnrollmentSettingsById**](EnrollmentApi.md#GetEnrollmentSettingsById) | **GET** /Enrollment/Settings/{id} | Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. + + + +## CreateEnrollmentCSR + +> CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse NewCreateEnrollmentCSRRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).ForceEnroll(forceEnroll).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSREnrollmentRequest(enrollmentCSREnrollmentRequest).Execute() + +Performs a CSR Enrollment based upon the provided request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xCertificateformat := "PEM" // string | Desired format [PEM, DER] + forceEnroll := true // bool | (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + enrollmentCSREnrollmentRequest := *openapiclient.NewEnrollmentCSREnrollmentRequest("CSR_example") // EnrollmentCSREnrollmentRequest | Information needed to perform the CSR Enrollment (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentCSRRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).ForceEnroll(forceEnroll).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentCSREnrollmentRequest(enrollmentCSREnrollmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentCSR``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentCSR`: CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentCSR`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentCSRRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xCertificateformat** | **string** | Desired format [PEM, DER] | + **forceEnroll** | **bool** | | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **enrollmentCSREnrollmentRequest** | [**EnrollmentCSREnrollmentRequest**](EnrollmentCSREnrollmentRequest.md) | Information needed to perform the CSR Enrollment | + +### Return type + +[**CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse**](CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateEnrollmentCSRParse + +> []string NewCreateEnrollmentCSRParseRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCSRContents(cSSCMSDataModelModelsCSRContents).Execute() + +Parses the provided CSR and returns the properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCSRContents := *openapiclient.NewCSSCMSDataModelModelsCSRContents("CSR_example") // CSSCMSDataModelModelsCSRContents | CSR to be parsed (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentCSRParseRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCSRContents(cSSCMSDataModelModelsCSRContents).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentCSRParse``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentCSRParse`: []string + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentCSRParse`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentCSRParseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCSRContents** | [**CSSCMSDataModelModelsCSRContents**](CSSCMSDataModelModelsCSRContents.md) | CSR to be parsed | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateEnrollmentPFX + +> CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse NewCreateEnrollmentPFXRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentRequest(enrollmentPFXEnrollmentRequest).Execute() + +Performs a PFX Enrollment based upon the provided request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xCertificateformat := "PFX" // string | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + enrollmentPFXEnrollmentRequest := *openapiclient.NewEnrollmentPFXEnrollmentRequest() // EnrollmentPFXEnrollmentRequest | The information needed to perform the PFX Enrollment (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentRequest(enrollmentPFXEnrollmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFX``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentPFX`: CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFX`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentPFXRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xCertificateformat** | **string** | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **enrollmentPFXEnrollmentRequest** | [**EnrollmentPFXEnrollmentRequest**](EnrollmentPFXEnrollmentRequest.md) | The information needed to perform the PFX Enrollment | + +### Return type + +[**CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse**](CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateEnrollmentPFXDeploy + +> EnrollmentEnrollmentManagementResponse NewCreateEnrollmentPFXDeployRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentEnrollmentManagementRequest(enrollmentEnrollmentManagementRequest).Execute() + +Creates management jobs to install a newly enrolled pfx in to one or more certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + enrollmentEnrollmentManagementRequest := *openapiclient.NewEnrollmentEnrollmentManagementRequest("Password_example") // EnrollmentEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXDeployRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentEnrollmentManagementRequest(enrollmentEnrollmentManagementRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFXDeploy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentPFXDeploy`: EnrollmentEnrollmentManagementResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFXDeploy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentPFXDeployRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **enrollmentEnrollmentManagementRequest** | [**EnrollmentEnrollmentManagementRequest**](EnrollmentEnrollmentManagementRequest.md) | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to | + +### Return type + +[**EnrollmentEnrollmentManagementResponse**](EnrollmentEnrollmentManagementResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateEnrollmentPFXReplace + +> EnrollmentEnrollmentManagementResponse NewCreateEnrollmentPFXReplaceRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest).Execute() + +Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest := *openapiclient.NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest() // CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXReplaceRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFXReplace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentPFXReplace`: EnrollmentEnrollmentManagementResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFXReplace`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentPFXReplaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest** | [**CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest**](CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest.md) | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate | + +### Return type + +[**EnrollmentEnrollmentManagementResponse**](EnrollmentEnrollmentManagementResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateEnrollmentRenew + +> EnrollmentRenewalApiResponse NewCreateEnrollmentRenewRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentRenewalRequest(cSSCMSDataModelModelsEnrollmentRenewalRequest).Execute() + +Performs a renewal based upon the passed in request + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsEnrollmentRenewalRequest := *openapiclient.NewCSSCMSDataModelModelsEnrollmentRenewalRequest() // CSSCMSDataModelModelsEnrollmentRenewalRequest | The information needed to perform the renewal (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentRenewRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsEnrollmentRenewalRequest(cSSCMSDataModelModelsEnrollmentRenewalRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentRenew``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentRenew`: EnrollmentRenewalApiResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentRenew`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentRenewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | The collection id for the given certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsEnrollmentRenewalRequest** | [**CSSCMSDataModelModelsEnrollmentRenewalRequest**](CSSCMSDataModelModelsEnrollmentRenewalRequest.md) | The information needed to perform the renewal | + +### Return type + +[**EnrollmentRenewalApiResponse**](EnrollmentRenewalApiResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEnrollmentAvailableRenewalIdById + +> CSSCMSDataModelModelsEnrollmentAvailableRenewal NewGetEnrollmentAvailableRenewalIdByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the type of renewal available for a given certificate. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Keyfactor certificate Id + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewGetEnrollmentAvailableRenewalIdByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentAvailableRenewalIdById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEnrollmentAvailableRenewalIdById`: CSSCMSDataModelModelsEnrollmentAvailableRenewal + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentAvailableRenewalIdById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Keyfactor certificate Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEnrollmentAvailableRenewalIdByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | The collection id for the given certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsEnrollmentAvailableRenewal**](CSSCMSDataModelModelsEnrollmentAvailableRenewal.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEnrollmentAvailableRenewalThumbprintThumbprint + +> CSSCMSDataModelModelsEnrollmentAvailableRenewal NewGetEnrollmentAvailableRenewalThumbprintThumbprintRequest(ctx, thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the type of renewal available for a given certificate. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + thumbprint := "thumbprint_example" // string | The certificate thumbprint + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) (default to 0) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewGetEnrollmentAvailableRenewalThumbprintThumbprintRequest(context.Background(), thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentAvailableRenewalThumbprintThumbprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEnrollmentAvailableRenewalThumbprintThumbprint`: CSSCMSDataModelModelsEnrollmentAvailableRenewal + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentAvailableRenewalThumbprintThumbprint`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**thumbprint** | **string** | The certificate thumbprint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEnrollmentAvailableRenewalThumbprintThumbprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | The collection id for the given certificate | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsEnrollmentAvailableRenewal**](CSSCMSDataModelModelsEnrollmentAvailableRenewal.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEnrollmentCSRContextMy + +> KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse NewGetEnrollmentCSRContextMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewGetEnrollmentCSRContextMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentCSRContextMy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEnrollmentCSRContextMy`: KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentCSRContextMy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEnrollmentCSRContextMyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse**](KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEnrollmentPFXContextMy + +> KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse NewGetEnrollmentPFXContextMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewGetEnrollmentPFXContextMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentPFXContextMy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEnrollmentPFXContextMy`: KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentPFXContextMy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEnrollmentPFXContextMyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse**](KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEnrollmentSettingsById + +> TemplatesEnrollmentTemplateEnrollmentSettingsResponse NewGetEnrollmentSettingsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewGetEnrollmentSettingsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.GetEnrollmentSettingsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEnrollmentSettingsById`: TemplatesEnrollmentTemplateEnrollmentSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.GetEnrollmentSettingsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEnrollmentSettingsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**TemplatesEnrollmentTemplateEnrollmentSettingsResponse**](TemplatesEnrollmentTemplateEnrollmentSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentCSREnrollmentRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentCSREnrollmentRequest.md new file mode 100644 index 0000000..fcfcc0a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentCSREnrollmentRequest.md @@ -0,0 +1,417 @@ +# EnrollmentCSREnrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSR** | **string** | | +**PrivateKey** | Pointer to **NullableString** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**IncludeSubjectHeader** | Pointer to **bool** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**AdditionalEnrollmentFields** | Pointer to **map[string]interface{}** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**OwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**OwnerRoleName** | Pointer to **NullableString** | | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewEnrollmentCSREnrollmentRequest + +`func NewEnrollmentCSREnrollmentRequest(cSR string, ) *EnrollmentCSREnrollmentRequest` + +NewEnrollmentCSREnrollmentRequest instantiates a new EnrollmentCSREnrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentCSREnrollmentRequestWithDefaults + +`func NewEnrollmentCSREnrollmentRequestWithDefaults() *EnrollmentCSREnrollmentRequest` + +NewEnrollmentCSREnrollmentRequestWithDefaults instantiates a new EnrollmentCSREnrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSR + +`func (o *EnrollmentCSREnrollmentRequest) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *EnrollmentCSREnrollmentRequest) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *EnrollmentCSREnrollmentRequest) SetCSR(v string)` + +SetCSR sets CSR field to given value. + + +### GetPrivateKey + +`func (o *EnrollmentCSREnrollmentRequest) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *EnrollmentCSREnrollmentRequest) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *EnrollmentCSREnrollmentRequest) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *EnrollmentCSREnrollmentRequest) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### SetPrivateKeyNil + +`func (o *EnrollmentCSREnrollmentRequest) SetPrivateKeyNil(b bool)` + + SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil + +### UnsetPrivateKey +`func (o *EnrollmentCSREnrollmentRequest) UnsetPrivateKey()` + +UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +### GetCertificateAuthority + +`func (o *EnrollmentCSREnrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *EnrollmentCSREnrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *EnrollmentCSREnrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *EnrollmentCSREnrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *EnrollmentCSREnrollmentRequest) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *EnrollmentCSREnrollmentRequest) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetIncludeChain + +`func (o *EnrollmentCSREnrollmentRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *EnrollmentCSREnrollmentRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *EnrollmentCSREnrollmentRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *EnrollmentCSREnrollmentRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetIncludeSubjectHeader + +`func (o *EnrollmentCSREnrollmentRequest) GetIncludeSubjectHeader() bool` + +GetIncludeSubjectHeader returns the IncludeSubjectHeader field if non-nil, zero value otherwise. + +### GetIncludeSubjectHeaderOk + +`func (o *EnrollmentCSREnrollmentRequest) GetIncludeSubjectHeaderOk() (*bool, bool)` + +GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeSubjectHeader + +`func (o *EnrollmentCSREnrollmentRequest) SetIncludeSubjectHeader(v bool)` + +SetIncludeSubjectHeader sets IncludeSubjectHeader field to given value. + +### HasIncludeSubjectHeader + +`func (o *EnrollmentCSREnrollmentRequest) HasIncludeSubjectHeader() bool` + +HasIncludeSubjectHeader returns a boolean if a field has been set. + +### GetMetadata + +`func (o *EnrollmentCSREnrollmentRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *EnrollmentCSREnrollmentRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *EnrollmentCSREnrollmentRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *EnrollmentCSREnrollmentRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *EnrollmentCSREnrollmentRequest) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *EnrollmentCSREnrollmentRequest) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetAdditionalEnrollmentFields + +`func (o *EnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFields() map[string]interface{}` + +GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field if non-nil, zero value otherwise. + +### GetAdditionalEnrollmentFieldsOk + +`func (o *EnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (*map[string]interface{}, bool)` + +GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalEnrollmentFields + +`func (o *EnrollmentCSREnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]interface{})` + +SetAdditionalEnrollmentFields sets AdditionalEnrollmentFields field to given value. + +### HasAdditionalEnrollmentFields + +`func (o *EnrollmentCSREnrollmentRequest) HasAdditionalEnrollmentFields() bool` + +HasAdditionalEnrollmentFields returns a boolean if a field has been set. + +### SetAdditionalEnrollmentFieldsNil + +`func (o *EnrollmentCSREnrollmentRequest) SetAdditionalEnrollmentFieldsNil(b bool)` + + SetAdditionalEnrollmentFieldsNil sets the value for AdditionalEnrollmentFields to be an explicit nil + +### UnsetAdditionalEnrollmentFields +`func (o *EnrollmentCSREnrollmentRequest) UnsetAdditionalEnrollmentFields()` + +UnsetAdditionalEnrollmentFields ensures that no value is present for AdditionalEnrollmentFields, not even an explicit nil +### GetTimestamp + +`func (o *EnrollmentCSREnrollmentRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EnrollmentCSREnrollmentRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EnrollmentCSREnrollmentRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EnrollmentCSREnrollmentRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetOwnerRoleId + +`func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleId() int32` + +GetOwnerRoleId returns the OwnerRoleId field if non-nil, zero value otherwise. + +### GetOwnerRoleIdOk + +`func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleIdOk() (*int32, bool)` + +GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleId + +`func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleId(v int32)` + +SetOwnerRoleId sets OwnerRoleId field to given value. + +### HasOwnerRoleId + +`func (o *EnrollmentCSREnrollmentRequest) HasOwnerRoleId() bool` + +HasOwnerRoleId returns a boolean if a field has been set. + +### SetOwnerRoleIdNil + +`func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleIdNil(b bool)` + + SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil + +### UnsetOwnerRoleId +`func (o *EnrollmentCSREnrollmentRequest) UnsetOwnerRoleId()` + +UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +### GetOwnerRoleName + +`func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleName() string` + +GetOwnerRoleName returns the OwnerRoleName field if non-nil, zero value otherwise. + +### GetOwnerRoleNameOk + +`func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleNameOk() (*string, bool)` + +GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleName + +`func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleName(v string)` + +SetOwnerRoleName sets OwnerRoleName field to given value. + +### HasOwnerRoleName + +`func (o *EnrollmentCSREnrollmentRequest) HasOwnerRoleName() bool` + +HasOwnerRoleName returns a boolean if a field has been set. + +### SetOwnerRoleNameNil + +`func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleNameNil(b bool)` + + SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil + +### UnsetOwnerRoleName +`func (o *EnrollmentCSREnrollmentRequest) UnsetOwnerRoleName()` + +UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +### GetTemplate + +`func (o *EnrollmentCSREnrollmentRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *EnrollmentCSREnrollmentRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *EnrollmentCSREnrollmentRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *EnrollmentCSREnrollmentRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *EnrollmentCSREnrollmentRequest) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *EnrollmentCSREnrollmentRequest) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetSANs + +`func (o *EnrollmentCSREnrollmentRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *EnrollmentCSREnrollmentRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *EnrollmentCSREnrollmentRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *EnrollmentCSREnrollmentRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### SetSANsNil + +`func (o *EnrollmentCSREnrollmentRequest) SetSANsNil(b bool)` + + SetSANsNil sets the value for SANs to be an explicit nil + +### UnsetSANs +`func (o *EnrollmentCSREnrollmentRequest) UnsetSANs()` + +UnsetSANs ensures that no value is present for SANs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentCSRGenerationRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentCSRGenerationRequest.md new file mode 100644 index 0000000..5e4b5b9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentCSRGenerationRequest.md @@ -0,0 +1,314 @@ +# EnrollmentCSRGenerationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | **string** | Subject for the requested certificate | +**KeyType** | **string** | Certificate key type [RSA, ECC, ED448, ED25519] | +**KeyLength** | Pointer to **int32** | Size of the certificate key (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521) | [optional] +**Curve** | Pointer to **NullableString** | The curve used to generate a CSR. | [optional] +**AlternativeKeyType** | Pointer to **NullableString** | Alternative Certificate key type [ML-DSA-44, ML-DSA-65, ML-DSA-87] | [optional] +**AlternativeKeyLength** | Pointer to **NullableInt32** | Size of the alternative certificate key. | [optional] +**AlternativeCurve** | Pointer to **NullableString** | The alternative curve used to generate a CSR. | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewEnrollmentCSRGenerationRequest + +`func NewEnrollmentCSRGenerationRequest(subject string, keyType string, ) *EnrollmentCSRGenerationRequest` + +NewEnrollmentCSRGenerationRequest instantiates a new EnrollmentCSRGenerationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentCSRGenerationRequestWithDefaults + +`func NewEnrollmentCSRGenerationRequestWithDefaults() *EnrollmentCSRGenerationRequest` + +NewEnrollmentCSRGenerationRequestWithDefaults instantiates a new EnrollmentCSRGenerationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *EnrollmentCSRGenerationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *EnrollmentCSRGenerationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *EnrollmentCSRGenerationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetKeyType + +`func (o *EnrollmentCSRGenerationRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *EnrollmentCSRGenerationRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *EnrollmentCSRGenerationRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + + +### GetKeyLength + +`func (o *EnrollmentCSRGenerationRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *EnrollmentCSRGenerationRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *EnrollmentCSRGenerationRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *EnrollmentCSRGenerationRequest) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCurve + +`func (o *EnrollmentCSRGenerationRequest) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *EnrollmentCSRGenerationRequest) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *EnrollmentCSRGenerationRequest) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *EnrollmentCSRGenerationRequest) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *EnrollmentCSRGenerationRequest) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *EnrollmentCSRGenerationRequest) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetAlternativeKeyType + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyType() string` + +GetAlternativeKeyType returns the AlternativeKeyType field if non-nil, zero value otherwise. + +### GetAlternativeKeyTypeOk + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyTypeOk() (*string, bool)` + +GetAlternativeKeyTypeOk returns a tuple with the AlternativeKeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlternativeKeyType + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyType(v string)` + +SetAlternativeKeyType sets AlternativeKeyType field to given value. + +### HasAlternativeKeyType + +`func (o *EnrollmentCSRGenerationRequest) HasAlternativeKeyType() bool` + +HasAlternativeKeyType returns a boolean if a field has been set. + +### SetAlternativeKeyTypeNil + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyTypeNil(b bool)` + + SetAlternativeKeyTypeNil sets the value for AlternativeKeyType to be an explicit nil + +### UnsetAlternativeKeyType +`func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeKeyType()` + +UnsetAlternativeKeyType ensures that no value is present for AlternativeKeyType, not even an explicit nil +### GetAlternativeKeyLength + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyLength() int32` + +GetAlternativeKeyLength returns the AlternativeKeyLength field if non-nil, zero value otherwise. + +### GetAlternativeKeyLengthOk + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyLengthOk() (*int32, bool)` + +GetAlternativeKeyLengthOk returns a tuple with the AlternativeKeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlternativeKeyLength + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyLength(v int32)` + +SetAlternativeKeyLength sets AlternativeKeyLength field to given value. + +### HasAlternativeKeyLength + +`func (o *EnrollmentCSRGenerationRequest) HasAlternativeKeyLength() bool` + +HasAlternativeKeyLength returns a boolean if a field has been set. + +### SetAlternativeKeyLengthNil + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyLengthNil(b bool)` + + SetAlternativeKeyLengthNil sets the value for AlternativeKeyLength to be an explicit nil + +### UnsetAlternativeKeyLength +`func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeKeyLength()` + +UnsetAlternativeKeyLength ensures that no value is present for AlternativeKeyLength, not even an explicit nil +### GetAlternativeCurve + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeCurve() string` + +GetAlternativeCurve returns the AlternativeCurve field if non-nil, zero value otherwise. + +### GetAlternativeCurveOk + +`func (o *EnrollmentCSRGenerationRequest) GetAlternativeCurveOk() (*string, bool)` + +GetAlternativeCurveOk returns a tuple with the AlternativeCurve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlternativeCurve + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeCurve(v string)` + +SetAlternativeCurve sets AlternativeCurve field to given value. + +### HasAlternativeCurve + +`func (o *EnrollmentCSRGenerationRequest) HasAlternativeCurve() bool` + +HasAlternativeCurve returns a boolean if a field has been set. + +### SetAlternativeCurveNil + +`func (o *EnrollmentCSRGenerationRequest) SetAlternativeCurveNil(b bool)` + + SetAlternativeCurveNil sets the value for AlternativeCurve to be an explicit nil + +### UnsetAlternativeCurve +`func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeCurve()` + +UnsetAlternativeCurve ensures that no value is present for AlternativeCurve, not even an explicit nil +### GetTemplate + +`func (o *EnrollmentCSRGenerationRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *EnrollmentCSRGenerationRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *EnrollmentCSRGenerationRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *EnrollmentCSRGenerationRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *EnrollmentCSRGenerationRequest) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *EnrollmentCSRGenerationRequest) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetSANs + +`func (o *EnrollmentCSRGenerationRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *EnrollmentCSRGenerationRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *EnrollmentCSRGenerationRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *EnrollmentCSRGenerationRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### SetSANsNil + +`func (o *EnrollmentCSRGenerationRequest) SetSANsNil(b bool)` + + SetSANsNil sets the value for SANs to be an explicit nil + +### UnsetSANs +`func (o *EnrollmentCSRGenerationRequest) UnsetSANs()` + +UnsetSANs ensures that no value is present for SANs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementRequest.md new file mode 100644 index 0000000..4725eff --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementRequest.md @@ -0,0 +1,237 @@ +# EnrollmentEnrollmentManagementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | Pointer to [**[]EnrollmentManagementStoreRequest**](EnrollmentManagementStoreRequest.md) | The stores to add the certificate to. Values in this collection will take precedence over values in CSS.CMS.Data.Model.Models.Enrollment.SpecificEnrollmentManagementRequest.StoreTypes. | [optional] +**StoreIds** | Pointer to **[]string** | | [optional] +**StoreTypes** | Pointer to [**[]EnrollmentManagementStoreTypeRequest**](EnrollmentManagementStoreTypeRequest.md) | | [optional] +**CertificateId** | Pointer to **int32** | | [optional] +**RequestId** | Pointer to **int32** | | [optional] +**Password** | **string** | | +**JobTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewEnrollmentEnrollmentManagementRequest + +`func NewEnrollmentEnrollmentManagementRequest(password string, ) *EnrollmentEnrollmentManagementRequest` + +NewEnrollmentEnrollmentManagementRequest instantiates a new EnrollmentEnrollmentManagementRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentEnrollmentManagementRequestWithDefaults + +`func NewEnrollmentEnrollmentManagementRequestWithDefaults() *EnrollmentEnrollmentManagementRequest` + +NewEnrollmentEnrollmentManagementRequestWithDefaults instantiates a new EnrollmentEnrollmentManagementRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStores + +`func (o *EnrollmentEnrollmentManagementRequest) GetStores() []EnrollmentManagementStoreRequest` + +GetStores returns the Stores field if non-nil, zero value otherwise. + +### GetStoresOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetStoresOk() (*[]EnrollmentManagementStoreRequest, bool)` + +GetStoresOk returns a tuple with the Stores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStores + +`func (o *EnrollmentEnrollmentManagementRequest) SetStores(v []EnrollmentManagementStoreRequest)` + +SetStores sets Stores field to given value. + +### HasStores + +`func (o *EnrollmentEnrollmentManagementRequest) HasStores() bool` + +HasStores returns a boolean if a field has been set. + +### SetStoresNil + +`func (o *EnrollmentEnrollmentManagementRequest) SetStoresNil(b bool)` + + SetStoresNil sets the value for Stores to be an explicit nil + +### UnsetStores +`func (o *EnrollmentEnrollmentManagementRequest) UnsetStores()` + +UnsetStores ensures that no value is present for Stores, not even an explicit nil +### GetStoreIds + +`func (o *EnrollmentEnrollmentManagementRequest) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *EnrollmentEnrollmentManagementRequest) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + +### HasStoreIds + +`func (o *EnrollmentEnrollmentManagementRequest) HasStoreIds() bool` + +HasStoreIds returns a boolean if a field has been set. + +### SetStoreIdsNil + +`func (o *EnrollmentEnrollmentManagementRequest) SetStoreIdsNil(b bool)` + + SetStoreIdsNil sets the value for StoreIds to be an explicit nil + +### UnsetStoreIds +`func (o *EnrollmentEnrollmentManagementRequest) UnsetStoreIds()` + +UnsetStoreIds ensures that no value is present for StoreIds, not even an explicit nil +### GetStoreTypes + +`func (o *EnrollmentEnrollmentManagementRequest) GetStoreTypes() []EnrollmentManagementStoreTypeRequest` + +GetStoreTypes returns the StoreTypes field if non-nil, zero value otherwise. + +### GetStoreTypesOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetStoreTypesOk() (*[]EnrollmentManagementStoreTypeRequest, bool)` + +GetStoreTypesOk returns a tuple with the StoreTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypes + +`func (o *EnrollmentEnrollmentManagementRequest) SetStoreTypes(v []EnrollmentManagementStoreTypeRequest)` + +SetStoreTypes sets StoreTypes field to given value. + +### HasStoreTypes + +`func (o *EnrollmentEnrollmentManagementRequest) HasStoreTypes() bool` + +HasStoreTypes returns a boolean if a field has been set. + +### SetStoreTypesNil + +`func (o *EnrollmentEnrollmentManagementRequest) SetStoreTypesNil(b bool)` + + SetStoreTypesNil sets the value for StoreTypes to be an explicit nil + +### UnsetStoreTypes +`func (o *EnrollmentEnrollmentManagementRequest) UnsetStoreTypes()` + +UnsetStoreTypes ensures that no value is present for StoreTypes, not even an explicit nil +### GetCertificateId + +`func (o *EnrollmentEnrollmentManagementRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *EnrollmentEnrollmentManagementRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *EnrollmentEnrollmentManagementRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### GetRequestId + +`func (o *EnrollmentEnrollmentManagementRequest) GetRequestId() int32` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *EnrollmentEnrollmentManagementRequest) SetRequestId(v int32)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *EnrollmentEnrollmentManagementRequest) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetPassword + +`func (o *EnrollmentEnrollmentManagementRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *EnrollmentEnrollmentManagementRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetJobTime + +`func (o *EnrollmentEnrollmentManagementRequest) GetJobTime() time.Time` + +GetJobTime returns the JobTime field if non-nil, zero value otherwise. + +### GetJobTimeOk + +`func (o *EnrollmentEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool)` + +GetJobTimeOk returns a tuple with the JobTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTime + +`func (o *EnrollmentEnrollmentManagementRequest) SetJobTime(v time.Time)` + +SetJobTime sets JobTime field to given value. + +### HasJobTime + +`func (o *EnrollmentEnrollmentManagementRequest) HasJobTime() bool` + +HasJobTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementResponse.md b/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementResponse.md new file mode 100644 index 0000000..eb90a77 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentEnrollmentManagementResponse.md @@ -0,0 +1,102 @@ +# EnrollmentEnrollmentManagementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessfulStores** | Pointer to **[]string** | | [optional] +**FailedStores** | Pointer to **[]string** | | [optional] + +## Methods + +### NewEnrollmentEnrollmentManagementResponse + +`func NewEnrollmentEnrollmentManagementResponse() *EnrollmentEnrollmentManagementResponse` + +NewEnrollmentEnrollmentManagementResponse instantiates a new EnrollmentEnrollmentManagementResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentEnrollmentManagementResponseWithDefaults + +`func NewEnrollmentEnrollmentManagementResponseWithDefaults() *EnrollmentEnrollmentManagementResponse` + +NewEnrollmentEnrollmentManagementResponseWithDefaults instantiates a new EnrollmentEnrollmentManagementResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccessfulStores + +`func (o *EnrollmentEnrollmentManagementResponse) GetSuccessfulStores() []string` + +GetSuccessfulStores returns the SuccessfulStores field if non-nil, zero value otherwise. + +### GetSuccessfulStoresOk + +`func (o *EnrollmentEnrollmentManagementResponse) GetSuccessfulStoresOk() (*[]string, bool)` + +GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccessfulStores + +`func (o *EnrollmentEnrollmentManagementResponse) SetSuccessfulStores(v []string)` + +SetSuccessfulStores sets SuccessfulStores field to given value. + +### HasSuccessfulStores + +`func (o *EnrollmentEnrollmentManagementResponse) HasSuccessfulStores() bool` + +HasSuccessfulStores returns a boolean if a field has been set. + +### SetSuccessfulStoresNil + +`func (o *EnrollmentEnrollmentManagementResponse) SetSuccessfulStoresNil(b bool)` + + SetSuccessfulStoresNil sets the value for SuccessfulStores to be an explicit nil + +### UnsetSuccessfulStores +`func (o *EnrollmentEnrollmentManagementResponse) UnsetSuccessfulStores()` + +UnsetSuccessfulStores ensures that no value is present for SuccessfulStores, not even an explicit nil +### GetFailedStores + +`func (o *EnrollmentEnrollmentManagementResponse) GetFailedStores() []string` + +GetFailedStores returns the FailedStores field if non-nil, zero value otherwise. + +### GetFailedStoresOk + +`func (o *EnrollmentEnrollmentManagementResponse) GetFailedStoresOk() (*[]string, bool)` + +GetFailedStoresOk returns a tuple with the FailedStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedStores + +`func (o *EnrollmentEnrollmentManagementResponse) SetFailedStores(v []string)` + +SetFailedStores sets FailedStores field to given value. + +### HasFailedStores + +`func (o *EnrollmentEnrollmentManagementResponse) HasFailedStores() bool` + +HasFailedStores returns a boolean if a field has been set. + +### SetFailedStoresNil + +`func (o *EnrollmentEnrollmentManagementResponse) SetFailedStoresNil(b bool)` + + SetFailedStoresNil sets the value for FailedStores to be an explicit nil + +### UnsetFailedStores +`func (o *EnrollmentEnrollmentManagementResponse) UnsetFailedStores()` + +UnsetFailedStores ensures that no value is present for FailedStores, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreRequest.md new file mode 100644 index 0000000..c651858 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreRequest.md @@ -0,0 +1,154 @@ +# EnrollmentManagementStoreRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | Pointer to **string** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewEnrollmentManagementStoreRequest + +`func NewEnrollmentManagementStoreRequest() *EnrollmentManagementStoreRequest` + +NewEnrollmentManagementStoreRequest instantiates a new EnrollmentManagementStoreRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentManagementStoreRequestWithDefaults + +`func NewEnrollmentManagementStoreRequestWithDefaults() *EnrollmentManagementStoreRequest` + +NewEnrollmentManagementStoreRequestWithDefaults instantiates a new EnrollmentManagementStoreRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreId + +`func (o *EnrollmentManagementStoreRequest) GetStoreId() string` + +GetStoreId returns the StoreId field if non-nil, zero value otherwise. + +### GetStoreIdOk + +`func (o *EnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool)` + +GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreId + +`func (o *EnrollmentManagementStoreRequest) SetStoreId(v string)` + +SetStoreId sets StoreId field to given value. + +### HasStoreId + +`func (o *EnrollmentManagementStoreRequest) HasStoreId() bool` + +HasStoreId returns a boolean if a field has been set. + +### GetAlias + +`func (o *EnrollmentManagementStoreRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *EnrollmentManagementStoreRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *EnrollmentManagementStoreRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *EnrollmentManagementStoreRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *EnrollmentManagementStoreRequest) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *EnrollmentManagementStoreRequest) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetOverwrite + +`func (o *EnrollmentManagementStoreRequest) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *EnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *EnrollmentManagementStoreRequest) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *EnrollmentManagementStoreRequest) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *EnrollmentManagementStoreRequest) GetProperties() map[string]interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *EnrollmentManagementStoreRequest) GetPropertiesOk() (*map[string]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *EnrollmentManagementStoreRequest) SetProperties(v map[string]interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *EnrollmentManagementStoreRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *EnrollmentManagementStoreRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *EnrollmentManagementStoreRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreTypeRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreTypeRequest.md new file mode 100644 index 0000000..870c88c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentManagementStoreTypeRequest.md @@ -0,0 +1,154 @@ +# EnrollmentManagementStoreTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **[]interface{}** | | [optional] + +## Methods + +### NewEnrollmentManagementStoreTypeRequest + +`func NewEnrollmentManagementStoreTypeRequest() *EnrollmentManagementStoreTypeRequest` + +NewEnrollmentManagementStoreTypeRequest instantiates a new EnrollmentManagementStoreTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentManagementStoreTypeRequestWithDefaults + +`func NewEnrollmentManagementStoreTypeRequestWithDefaults() *EnrollmentManagementStoreTypeRequest` + +NewEnrollmentManagementStoreTypeRequestWithDefaults instantiates a new EnrollmentManagementStoreTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *EnrollmentManagementStoreTypeRequest) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *EnrollmentManagementStoreTypeRequest) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *EnrollmentManagementStoreTypeRequest) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *EnrollmentManagementStoreTypeRequest) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetAlias + +`func (o *EnrollmentManagementStoreTypeRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *EnrollmentManagementStoreTypeRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *EnrollmentManagementStoreTypeRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *EnrollmentManagementStoreTypeRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *EnrollmentManagementStoreTypeRequest) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *EnrollmentManagementStoreTypeRequest) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetOverwrite + +`func (o *EnrollmentManagementStoreTypeRequest) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *EnrollmentManagementStoreTypeRequest) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *EnrollmentManagementStoreTypeRequest) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *EnrollmentManagementStoreTypeRequest) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *EnrollmentManagementStoreTypeRequest) GetProperties() []interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *EnrollmentManagementStoreTypeRequest) GetPropertiesOk() (*[]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *EnrollmentManagementStoreTypeRequest) SetProperties(v []interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *EnrollmentManagementStoreTypeRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *EnrollmentManagementStoreTypeRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *EnrollmentManagementStoreTypeRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentPFXEnrollmentRequest.md b/v24/api/keyfactor/v1/docs/EnrollmentPFXEnrollmentRequest.md new file mode 100644 index 0000000..6face78 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentPFXEnrollmentRequest.md @@ -0,0 +1,736 @@ +# EnrollmentPFXEnrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomFriendlyName** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] +**PopulateMissingValuesFromAD** | Pointer to **bool** | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**RenewalCertificateId** | Pointer to **NullableInt32** | | [optional] +**ChainOrder** | Pointer to **NullableString** | | [optional] +**UseLegacyEncryption** | Pointer to **NullableBool** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] +**MicrosoftTargetCSP** | Pointer to **NullableString** | | [optional] +**CertificateAuthority** | Pointer to **NullableString** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**IncludeSubjectHeader** | Pointer to **bool** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**AdditionalEnrollmentFields** | Pointer to **map[string]interface{}** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**OwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**OwnerRoleName** | Pointer to **NullableString** | | [optional] +**Template** | Pointer to **NullableString** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewEnrollmentPFXEnrollmentRequest + +`func NewEnrollmentPFXEnrollmentRequest() *EnrollmentPFXEnrollmentRequest` + +NewEnrollmentPFXEnrollmentRequest instantiates a new EnrollmentPFXEnrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentPFXEnrollmentRequestWithDefaults + +`func NewEnrollmentPFXEnrollmentRequestWithDefaults() *EnrollmentPFXEnrollmentRequest` + +NewEnrollmentPFXEnrollmentRequestWithDefaults instantiates a new EnrollmentPFXEnrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentRequest) GetCustomFriendlyName() string` + +GetCustomFriendlyName returns the CustomFriendlyName field if non-nil, zero value otherwise. + +### GetCustomFriendlyNameOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetCustomFriendlyNameOk() (*string, bool)` + +GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentRequest) SetCustomFriendlyName(v string)` + +SetCustomFriendlyName sets CustomFriendlyName field to given value. + +### HasCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentRequest) HasCustomFriendlyName() bool` + +HasCustomFriendlyName returns a boolean if a field has been set. + +### SetCustomFriendlyNameNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetCustomFriendlyNameNil(b bool)` + + SetCustomFriendlyNameNil sets the value for CustomFriendlyName to be an explicit nil + +### UnsetCustomFriendlyName +`func (o *EnrollmentPFXEnrollmentRequest) UnsetCustomFriendlyName()` + +UnsetCustomFriendlyName ensures that no value is present for CustomFriendlyName, not even an explicit nil +### GetPassword + +`func (o *EnrollmentPFXEnrollmentRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *EnrollmentPFXEnrollmentRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *EnrollmentPFXEnrollmentRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *EnrollmentPFXEnrollmentRequest) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetPopulateMissingValuesFromAD + +`func (o *EnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromAD() bool` + +GetPopulateMissingValuesFromAD returns the PopulateMissingValuesFromAD field if non-nil, zero value otherwise. + +### GetPopulateMissingValuesFromADOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromADOk() (*bool, bool)` + +GetPopulateMissingValuesFromADOk returns a tuple with the PopulateMissingValuesFromAD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPopulateMissingValuesFromAD + +`func (o *EnrollmentPFXEnrollmentRequest) SetPopulateMissingValuesFromAD(v bool)` + +SetPopulateMissingValuesFromAD sets PopulateMissingValuesFromAD field to given value. + +### HasPopulateMissingValuesFromAD + +`func (o *EnrollmentPFXEnrollmentRequest) HasPopulateMissingValuesFromAD() bool` + +HasPopulateMissingValuesFromAD returns a boolean if a field has been set. + +### GetSubject + +`func (o *EnrollmentPFXEnrollmentRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *EnrollmentPFXEnrollmentRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *EnrollmentPFXEnrollmentRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *EnrollmentPFXEnrollmentRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentRequest) GetRenewalCertificateId() int32` + +GetRenewalCertificateId returns the RenewalCertificateId field if non-nil, zero value otherwise. + +### GetRenewalCertificateIdOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetRenewalCertificateIdOk() (*int32, bool)` + +GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentRequest) SetRenewalCertificateId(v int32)` + +SetRenewalCertificateId sets RenewalCertificateId field to given value. + +### HasRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentRequest) HasRenewalCertificateId() bool` + +HasRenewalCertificateId returns a boolean if a field has been set. + +### SetRenewalCertificateIdNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetRenewalCertificateIdNil(b bool)` + + SetRenewalCertificateIdNil sets the value for RenewalCertificateId to be an explicit nil + +### UnsetRenewalCertificateId +`func (o *EnrollmentPFXEnrollmentRequest) UnsetRenewalCertificateId()` + +UnsetRenewalCertificateId ensures that no value is present for RenewalCertificateId, not even an explicit nil +### GetChainOrder + +`func (o *EnrollmentPFXEnrollmentRequest) GetChainOrder() string` + +GetChainOrder returns the ChainOrder field if non-nil, zero value otherwise. + +### GetChainOrderOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetChainOrderOk() (*string, bool)` + +GetChainOrderOk returns a tuple with the ChainOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainOrder + +`func (o *EnrollmentPFXEnrollmentRequest) SetChainOrder(v string)` + +SetChainOrder sets ChainOrder field to given value. + +### HasChainOrder + +`func (o *EnrollmentPFXEnrollmentRequest) HasChainOrder() bool` + +HasChainOrder returns a boolean if a field has been set. + +### SetChainOrderNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetChainOrderNil(b bool)` + + SetChainOrderNil sets the value for ChainOrder to be an explicit nil + +### UnsetChainOrder +`func (o *EnrollmentPFXEnrollmentRequest) UnsetChainOrder()` + +UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +### GetUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentRequest) GetUseLegacyEncryption() bool` + +GetUseLegacyEncryption returns the UseLegacyEncryption field if non-nil, zero value otherwise. + +### GetUseLegacyEncryptionOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetUseLegacyEncryptionOk() (*bool, bool)` + +GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentRequest) SetUseLegacyEncryption(v bool)` + +SetUseLegacyEncryption sets UseLegacyEncryption field to given value. + +### HasUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentRequest) HasUseLegacyEncryption() bool` + +HasUseLegacyEncryption returns a boolean if a field has been set. + +### SetUseLegacyEncryptionNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetUseLegacyEncryptionNil(b bool)` + + SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil + +### UnsetUseLegacyEncryption +`func (o *EnrollmentPFXEnrollmentRequest) UnsetUseLegacyEncryption()` + +UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +### GetKeyType + +`func (o *EnrollmentPFXEnrollmentRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *EnrollmentPFXEnrollmentRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *EnrollmentPFXEnrollmentRequest) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *EnrollmentPFXEnrollmentRequest) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetKeyLength + +`func (o *EnrollmentPFXEnrollmentRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *EnrollmentPFXEnrollmentRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *EnrollmentPFXEnrollmentRequest) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCurve + +`func (o *EnrollmentPFXEnrollmentRequest) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *EnrollmentPFXEnrollmentRequest) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *EnrollmentPFXEnrollmentRequest) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *EnrollmentPFXEnrollmentRequest) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentRequest) GetMicrosoftTargetCSP() string` + +GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field if non-nil, zero value otherwise. + +### GetMicrosoftTargetCSPOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetMicrosoftTargetCSPOk() (*string, bool)` + +GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentRequest) SetMicrosoftTargetCSP(v string)` + +SetMicrosoftTargetCSP sets MicrosoftTargetCSP field to given value. + +### HasMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentRequest) HasMicrosoftTargetCSP() bool` + +HasMicrosoftTargetCSP returns a boolean if a field has been set. + +### SetMicrosoftTargetCSPNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetMicrosoftTargetCSPNil(b bool)` + + SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil + +### UnsetMicrosoftTargetCSP +`func (o *EnrollmentPFXEnrollmentRequest) UnsetMicrosoftTargetCSP()` + +UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +### GetCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *EnrollmentPFXEnrollmentRequest) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetIncludeChain + +`func (o *EnrollmentPFXEnrollmentRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *EnrollmentPFXEnrollmentRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *EnrollmentPFXEnrollmentRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentRequest) GetIncludeSubjectHeader() bool` + +GetIncludeSubjectHeader returns the IncludeSubjectHeader field if non-nil, zero value otherwise. + +### GetIncludeSubjectHeaderOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetIncludeSubjectHeaderOk() (*bool, bool)` + +GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentRequest) SetIncludeSubjectHeader(v bool)` + +SetIncludeSubjectHeader sets IncludeSubjectHeader field to given value. + +### HasIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentRequest) HasIncludeSubjectHeader() bool` + +HasIncludeSubjectHeader returns a boolean if a field has been set. + +### GetMetadata + +`func (o *EnrollmentPFXEnrollmentRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *EnrollmentPFXEnrollmentRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *EnrollmentPFXEnrollmentRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *EnrollmentPFXEnrollmentRequest) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFields() map[string]interface{}` + +GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field if non-nil, zero value otherwise. + +### GetAdditionalEnrollmentFieldsOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (*map[string]interface{}, bool)` + +GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]interface{})` + +SetAdditionalEnrollmentFields sets AdditionalEnrollmentFields field to given value. + +### HasAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentRequest) HasAdditionalEnrollmentFields() bool` + +HasAdditionalEnrollmentFields returns a boolean if a field has been set. + +### SetAdditionalEnrollmentFieldsNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetAdditionalEnrollmentFieldsNil(b bool)` + + SetAdditionalEnrollmentFieldsNil sets the value for AdditionalEnrollmentFields to be an explicit nil + +### UnsetAdditionalEnrollmentFields +`func (o *EnrollmentPFXEnrollmentRequest) UnsetAdditionalEnrollmentFields()` + +UnsetAdditionalEnrollmentFields ensures that no value is present for AdditionalEnrollmentFields, not even an explicit nil +### GetTimestamp + +`func (o *EnrollmentPFXEnrollmentRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EnrollmentPFXEnrollmentRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EnrollmentPFXEnrollmentRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleId() int32` + +GetOwnerRoleId returns the OwnerRoleId field if non-nil, zero value otherwise. + +### GetOwnerRoleIdOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleIdOk() (*int32, bool)` + +GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleId(v int32)` + +SetOwnerRoleId sets OwnerRoleId field to given value. + +### HasOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentRequest) HasOwnerRoleId() bool` + +HasOwnerRoleId returns a boolean if a field has been set. + +### SetOwnerRoleIdNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleIdNil(b bool)` + + SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil + +### UnsetOwnerRoleId +`func (o *EnrollmentPFXEnrollmentRequest) UnsetOwnerRoleId()` + +UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +### GetOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleName() string` + +GetOwnerRoleName returns the OwnerRoleName field if non-nil, zero value otherwise. + +### GetOwnerRoleNameOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleNameOk() (*string, bool)` + +GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleName(v string)` + +SetOwnerRoleName sets OwnerRoleName field to given value. + +### HasOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentRequest) HasOwnerRoleName() bool` + +HasOwnerRoleName returns a boolean if a field has been set. + +### SetOwnerRoleNameNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleNameNil(b bool)` + + SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil + +### UnsetOwnerRoleName +`func (o *EnrollmentPFXEnrollmentRequest) UnsetOwnerRoleName()` + +UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +### GetTemplate + +`func (o *EnrollmentPFXEnrollmentRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *EnrollmentPFXEnrollmentRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *EnrollmentPFXEnrollmentRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *EnrollmentPFXEnrollmentRequest) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetSANs + +`func (o *EnrollmentPFXEnrollmentRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *EnrollmentPFXEnrollmentRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *EnrollmentPFXEnrollmentRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *EnrollmentPFXEnrollmentRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### SetSANsNil + +`func (o *EnrollmentPFXEnrollmentRequest) SetSANsNil(b bool)` + + SetSANsNil sets the value for SANs to be an explicit nil + +### UnsetSANs +`func (o *EnrollmentPFXEnrollmentRequest) UnsetSANs()` + +UnsetSANs ensures that no value is present for SANs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentPatternsValidSubjectPartResponse.md b/v24/api/keyfactor/v1/docs/EnrollmentPatternsValidSubjectPartResponse.md new file mode 100644 index 0000000..cc0e4a1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentPatternsValidSubjectPartResponse.md @@ -0,0 +1,102 @@ +# EnrollmentPatternsValidSubjectPartResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | | [optional] +**SubjectPartName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewEnrollmentPatternsValidSubjectPartResponse + +`func NewEnrollmentPatternsValidSubjectPartResponse() *EnrollmentPatternsValidSubjectPartResponse` + +NewEnrollmentPatternsValidSubjectPartResponse instantiates a new EnrollmentPatternsValidSubjectPartResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentPatternsValidSubjectPartResponseWithDefaults + +`func NewEnrollmentPatternsValidSubjectPartResponseWithDefaults() *EnrollmentPatternsValidSubjectPartResponse` + +NewEnrollmentPatternsValidSubjectPartResponseWithDefaults instantiates a new EnrollmentPatternsValidSubjectPartResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *EnrollmentPatternsValidSubjectPartResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *EnrollmentPatternsValidSubjectPartResponse) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetSubjectPartName + +`func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartName() string` + +GetSubjectPartName returns the SubjectPartName field if non-nil, zero value otherwise. + +### GetSubjectPartNameOk + +`func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartNameOk() (*string, bool)` + +GetSubjectPartNameOk returns a tuple with the SubjectPartName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPartName + +`func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartName(v string)` + +SetSubjectPartName sets SubjectPartName field to given value. + +### HasSubjectPartName + +`func (o *EnrollmentPatternsValidSubjectPartResponse) HasSubjectPartName() bool` + +HasSubjectPartName returns a boolean if a field has been set. + +### SetSubjectPartNameNil + +`func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartNameNil(b bool)` + + SetSubjectPartNameNil sets the value for SubjectPartName to be an explicit nil + +### UnsetSubjectPartName +`func (o *EnrollmentPatternsValidSubjectPartResponse) UnsetSubjectPartName()` + +UnsetSubjectPartName ensures that no value is present for SubjectPartName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EnrollmentRenewalApiResponse.md b/v24/api/keyfactor/v1/docs/EnrollmentRenewalApiResponse.md new file mode 100644 index 0000000..0b36dc7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EnrollmentRenewalApiResponse.md @@ -0,0 +1,298 @@ +# EnrollmentRenewalApiResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyfactorId** | Pointer to **int32** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**RequestDisposition** | Pointer to **NullableString** | | [optional] +**DispositionMessage** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewEnrollmentRenewalApiResponse + +`func NewEnrollmentRenewalApiResponse() *EnrollmentRenewalApiResponse` + +NewEnrollmentRenewalApiResponse instantiates a new EnrollmentRenewalApiResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentRenewalApiResponseWithDefaults + +`func NewEnrollmentRenewalApiResponseWithDefaults() *EnrollmentRenewalApiResponse` + +NewEnrollmentRenewalApiResponseWithDefaults instantiates a new EnrollmentRenewalApiResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyfactorId + +`func (o *EnrollmentRenewalApiResponse) GetKeyfactorId() int32` + +GetKeyfactorId returns the KeyfactorId field if non-nil, zero value otherwise. + +### GetKeyfactorIdOk + +`func (o *EnrollmentRenewalApiResponse) GetKeyfactorIdOk() (*int32, bool)` + +GetKeyfactorIdOk returns a tuple with the KeyfactorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorId + +`func (o *EnrollmentRenewalApiResponse) SetKeyfactorId(v int32)` + +SetKeyfactorId sets KeyfactorId field to given value. + +### HasKeyfactorId + +`func (o *EnrollmentRenewalApiResponse) HasKeyfactorId() bool` + +HasKeyfactorId returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *EnrollmentRenewalApiResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *EnrollmentRenewalApiResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *EnrollmentRenewalApiResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *EnrollmentRenewalApiResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *EnrollmentRenewalApiResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *EnrollmentRenewalApiResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *EnrollmentRenewalApiResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *EnrollmentRenewalApiResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *EnrollmentRenewalApiResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *EnrollmentRenewalApiResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetSerialNumber + +`func (o *EnrollmentRenewalApiResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *EnrollmentRenewalApiResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *EnrollmentRenewalApiResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *EnrollmentRenewalApiResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *EnrollmentRenewalApiResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *EnrollmentRenewalApiResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *EnrollmentRenewalApiResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *EnrollmentRenewalApiResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *EnrollmentRenewalApiResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *EnrollmentRenewalApiResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *EnrollmentRenewalApiResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *EnrollmentRenewalApiResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetRequestDisposition + +`func (o *EnrollmentRenewalApiResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *EnrollmentRenewalApiResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *EnrollmentRenewalApiResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *EnrollmentRenewalApiResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### SetRequestDispositionNil + +`func (o *EnrollmentRenewalApiResponse) SetRequestDispositionNil(b bool)` + + SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil + +### UnsetRequestDisposition +`func (o *EnrollmentRenewalApiResponse) UnsetRequestDisposition()` + +UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +### GetDispositionMessage + +`func (o *EnrollmentRenewalApiResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *EnrollmentRenewalApiResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *EnrollmentRenewalApiResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *EnrollmentRenewalApiResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### SetDispositionMessageNil + +`func (o *EnrollmentRenewalApiResponse) SetDispositionMessageNil(b bool)` + + SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil + +### UnsetDispositionMessage +`func (o *EnrollmentRenewalApiResponse) UnsetDispositionMessage()` + +UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +### GetPassword + +`func (o *EnrollmentRenewalApiResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *EnrollmentRenewalApiResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *EnrollmentRenewalApiResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *EnrollmentRenewalApiResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *EnrollmentRenewalApiResponse) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *EnrollmentRenewalApiResponse) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterRequest.md b/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterRequest.md new file mode 100644 index 0000000..69691ca --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterRequest.md @@ -0,0 +1,93 @@ +# EventHandlerEventHandlerParameterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | | +**DefaultValue** | **string** | | +**ParameterType** | **string** | | + +## Methods + +### NewEventHandlerEventHandlerParameterRequest + +`func NewEventHandlerEventHandlerParameterRequest(key string, defaultValue string, parameterType string, ) *EventHandlerEventHandlerParameterRequest` + +NewEventHandlerEventHandlerParameterRequest instantiates a new EventHandlerEventHandlerParameterRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerEventHandlerParameterRequestWithDefaults + +`func NewEventHandlerEventHandlerParameterRequestWithDefaults() *EventHandlerEventHandlerParameterRequest` + +NewEventHandlerEventHandlerParameterRequestWithDefaults instantiates a new EventHandlerEventHandlerParameterRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *EventHandlerEventHandlerParameterRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *EventHandlerEventHandlerParameterRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *EventHandlerEventHandlerParameterRequest) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetDefaultValue + +`func (o *EventHandlerEventHandlerParameterRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *EventHandlerEventHandlerParameterRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *EventHandlerEventHandlerParameterRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + + +### GetParameterType + +`func (o *EventHandlerEventHandlerParameterRequest) GetParameterType() string` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *EventHandlerEventHandlerParameterRequest) GetParameterTypeOk() (*string, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *EventHandlerEventHandlerParameterRequest) SetParameterType(v string)` + +SetParameterType sets ParameterType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterResponse.md b/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterResponse.md new file mode 100644 index 0000000..4bb4525 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerEventHandlerParameterResponse.md @@ -0,0 +1,164 @@ +# EventHandlerEventHandlerParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**ParameterType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewEventHandlerEventHandlerParameterResponse + +`func NewEventHandlerEventHandlerParameterResponse() *EventHandlerEventHandlerParameterResponse` + +NewEventHandlerEventHandlerParameterResponse instantiates a new EventHandlerEventHandlerParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerEventHandlerParameterResponseWithDefaults + +`func NewEventHandlerEventHandlerParameterResponseWithDefaults() *EventHandlerEventHandlerParameterResponse` + +NewEventHandlerEventHandlerParameterResponseWithDefaults instantiates a new EventHandlerEventHandlerParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *EventHandlerEventHandlerParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventHandlerEventHandlerParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EventHandlerEventHandlerParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *EventHandlerEventHandlerParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *EventHandlerEventHandlerParameterResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *EventHandlerEventHandlerParameterResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *EventHandlerEventHandlerParameterResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *EventHandlerEventHandlerParameterResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### SetKeyNil + +`func (o *EventHandlerEventHandlerParameterResponse) SetKeyNil(b bool)` + + SetKeyNil sets the value for Key to be an explicit nil + +### UnsetKey +`func (o *EventHandlerEventHandlerParameterResponse) UnsetKey()` + +UnsetKey ensures that no value is present for Key, not even an explicit nil +### GetDefaultValue + +`func (o *EventHandlerEventHandlerParameterResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *EventHandlerEventHandlerParameterResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *EventHandlerEventHandlerParameterResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *EventHandlerEventHandlerParameterResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *EventHandlerEventHandlerParameterResponse) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *EventHandlerEventHandlerParameterResponse) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetParameterType + +`func (o *EventHandlerEventHandlerParameterResponse) GetParameterType() string` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *EventHandlerEventHandlerParameterResponse) GetParameterTypeOk() (*string, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *EventHandlerEventHandlerParameterResponse) SetParameterType(v string)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *EventHandlerEventHandlerParameterResponse) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + +### SetParameterTypeNil + +`func (o *EventHandlerEventHandlerParameterResponse) SetParameterTypeNil(b bool)` + + SetParameterTypeNil sets the value for ParameterType to be an explicit nil + +### UnsetParameterType +`func (o *EventHandlerEventHandlerParameterResponse) UnsetParameterType()` + +UnsetParameterType ensures that no value is present for ParameterType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerRequest.md b/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerRequest.md new file mode 100644 index 0000000..bb5b9ac --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerRequest.md @@ -0,0 +1,72 @@ +# EventHandlerRegisteredEventHandlerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**UseHandler** | **bool** | | + +## Methods + +### NewEventHandlerRegisteredEventHandlerRequest + +`func NewEventHandlerRegisteredEventHandlerRequest(id int32, useHandler bool, ) *EventHandlerRegisteredEventHandlerRequest` + +NewEventHandlerRegisteredEventHandlerRequest instantiates a new EventHandlerRegisteredEventHandlerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerRegisteredEventHandlerRequestWithDefaults + +`func NewEventHandlerRegisteredEventHandlerRequestWithDefaults() *EventHandlerRegisteredEventHandlerRequest` + +NewEventHandlerRegisteredEventHandlerRequestWithDefaults instantiates a new EventHandlerRegisteredEventHandlerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *EventHandlerRegisteredEventHandlerRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventHandlerRegisteredEventHandlerRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EventHandlerRegisteredEventHandlerRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUseHandler + +`func (o *EventHandlerRegisteredEventHandlerRequest) GetUseHandler() bool` + +GetUseHandler returns the UseHandler field if non-nil, zero value otherwise. + +### GetUseHandlerOk + +`func (o *EventHandlerRegisteredEventHandlerRequest) GetUseHandlerOk() (*bool, bool)` + +GetUseHandlerOk returns a tuple with the UseHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseHandler + +`func (o *EventHandlerRegisteredEventHandlerRequest) SetUseHandler(v bool)` + +SetUseHandler sets UseHandler field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerResponse.md b/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerResponse.md new file mode 100644 index 0000000..bc814ba --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegisteredEventHandlerResponse.md @@ -0,0 +1,118 @@ +# EventHandlerRegisteredEventHandlerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**UseHandler** | Pointer to **bool** | | [optional] + +## Methods + +### NewEventHandlerRegisteredEventHandlerResponse + +`func NewEventHandlerRegisteredEventHandlerResponse() *EventHandlerRegisteredEventHandlerResponse` + +NewEventHandlerRegisteredEventHandlerResponse instantiates a new EventHandlerRegisteredEventHandlerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerRegisteredEventHandlerResponseWithDefaults + +`func NewEventHandlerRegisteredEventHandlerResponseWithDefaults() *EventHandlerRegisteredEventHandlerResponse` + +NewEventHandlerRegisteredEventHandlerResponseWithDefaults instantiates a new EventHandlerRegisteredEventHandlerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EventHandlerRegisteredEventHandlerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *EventHandlerRegisteredEventHandlerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *EventHandlerRegisteredEventHandlerResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *EventHandlerRegisteredEventHandlerResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *EventHandlerRegisteredEventHandlerResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *EventHandlerRegisteredEventHandlerResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetUseHandler + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetUseHandler() bool` + +GetUseHandler returns the UseHandler field if non-nil, zero value otherwise. + +### GetUseHandlerOk + +`func (o *EventHandlerRegisteredEventHandlerResponse) GetUseHandlerOk() (*bool, bool)` + +GetUseHandlerOk returns a tuple with the UseHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseHandler + +`func (o *EventHandlerRegisteredEventHandlerResponse) SetUseHandler(v bool)` + +SetUseHandler sets UseHandler field to given value. + +### HasUseHandler + +`func (o *EventHandlerRegisteredEventHandlerResponse) HasUseHandler() bool` + +HasUseHandler returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegistrationApi.md b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationApi.md new file mode 100644 index 0000000..cdc72ef --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationApi.md @@ -0,0 +1,373 @@ +# \EventHandlerRegistrationApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEventHandlerRegistration**](EventHandlerRegistrationApi.md#CreateEventHandlerRegistration) | **POST** /EventHandlerRegistration | Registers an event handler +[**DeleteEventHandlerRegistrationById**](EventHandlerRegistrationApi.md#DeleteEventHandlerRegistrationById) | **DELETE** /EventHandlerRegistration/{id} | Deletes an event handler +[**GetEventHandlerRegistration**](EventHandlerRegistrationApi.md#GetEventHandlerRegistration) | **GET** /EventHandlerRegistration | Returns all registered event handlers according to the provided filter and output parameters +[**GetEventHandlerRegistrationById**](EventHandlerRegistrationApi.md#GetEventHandlerRegistrationById) | **GET** /EventHandlerRegistration/{id} | Returns a registered event handler that matches the provided ID +[**UpdateEventHandlerRegistrationById**](EventHandlerRegistrationApi.md#UpdateEventHandlerRegistrationById) | **PUT** /EventHandlerRegistration/{id} | Updates a registered event handler's information + + + +## CreateEventHandlerRegistration + +> []EventHandlerRegistrationEventHandlerRegistrationResponse NewCreateEventHandlerRegistrationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EventHandlerRegistrationEventHandlerRegistrationCreateRequest(eventHandlerRegistrationEventHandlerRegistrationCreateRequest).Execute() + +Registers an event handler + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + eventHandlerRegistrationEventHandlerRegistrationCreateRequest := *openapiclient.NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest("AssemblyName_example") // EventHandlerRegistrationEventHandlerRegistrationCreateRequest | The assembly name of the event handler to register. The handler file must be in the configured extensions directory on the machine running the management portal. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventHandlerRegistrationApi.NewCreateEventHandlerRegistrationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EventHandlerRegistrationEventHandlerRegistrationCreateRequest(eventHandlerRegistrationEventHandlerRegistrationCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventHandlerRegistrationApi.CreateEventHandlerRegistration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEventHandlerRegistration`: []EventHandlerRegistrationEventHandlerRegistrationResponse + fmt.Fprintf(os.Stdout, "Response from `EventHandlerRegistrationApi.CreateEventHandlerRegistration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEventHandlerRegistrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **eventHandlerRegistrationEventHandlerRegistrationCreateRequest** | [**EventHandlerRegistrationEventHandlerRegistrationCreateRequest**](EventHandlerRegistrationEventHandlerRegistrationCreateRequest.md) | The assembly name of the event handler to register. The handler file must be in the configured extensions directory on the machine running the management portal. | + +### Return type + +[**[]EventHandlerRegistrationEventHandlerRegistrationResponse**](EventHandlerRegistrationEventHandlerRegistrationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteEventHandlerRegistrationById + +> NewDeleteEventHandlerRegistrationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes an event handler + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the event handler + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventHandlerRegistrationApi.NewDeleteEventHandlerRegistrationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventHandlerRegistrationApi.DeleteEventHandlerRegistrationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the event handler | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteEventHandlerRegistrationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEventHandlerRegistration + +> []EventHandlerRegistrationEventHandlerRegistrationResponse NewGetEventHandlerRegistrationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all registered event handlers according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventHandlerRegistrationApi.NewGetEventHandlerRegistrationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventHandlerRegistrationApi.GetEventHandlerRegistration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEventHandlerRegistration`: []EventHandlerRegistrationEventHandlerRegistrationResponse + fmt.Fprintf(os.Stdout, "Response from `EventHandlerRegistrationApi.GetEventHandlerRegistration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventHandlerRegistrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]EventHandlerRegistrationEventHandlerRegistrationResponse**](EventHandlerRegistrationEventHandlerRegistrationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetEventHandlerRegistrationById + +> EventHandlerRegistrationEventHandlerRegistrationResponse NewGetEventHandlerRegistrationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a registered event handler that matches the provided ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the event handler + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventHandlerRegistrationApi.NewGetEventHandlerRegistrationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventHandlerRegistrationApi.GetEventHandlerRegistrationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEventHandlerRegistrationById`: EventHandlerRegistrationEventHandlerRegistrationResponse + fmt.Fprintf(os.Stdout, "Response from `EventHandlerRegistrationApi.GetEventHandlerRegistrationById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the event handler | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventHandlerRegistrationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**EventHandlerRegistrationEventHandlerRegistrationResponse**](EventHandlerRegistrationEventHandlerRegistrationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateEventHandlerRegistrationById + +> EventHandlerRegistrationEventHandlerRegistrationResponse NewUpdateEventHandlerRegistrationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EventHandlerRegistrationEventHandlerRegistrationUpdateRequest(eventHandlerRegistrationEventHandlerRegistrationUpdateRequest).Execute() + +Updates a registered event handler's information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the event handler + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + eventHandlerRegistrationEventHandlerRegistrationUpdateRequest := *openapiclient.NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest() // EventHandlerRegistrationEventHandlerRegistrationUpdateRequest | Updated information for the event handler (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventHandlerRegistrationApi.NewUpdateEventHandlerRegistrationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).EventHandlerRegistrationEventHandlerRegistrationUpdateRequest(eventHandlerRegistrationEventHandlerRegistrationUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventHandlerRegistrationApi.UpdateEventHandlerRegistrationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateEventHandlerRegistrationById`: EventHandlerRegistrationEventHandlerRegistrationResponse + fmt.Fprintf(os.Stdout, "Response from `EventHandlerRegistrationApi.UpdateEventHandlerRegistrationById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the event handler | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateEventHandlerRegistrationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **eventHandlerRegistrationEventHandlerRegistrationUpdateRequest** | [**EventHandlerRegistrationEventHandlerRegistrationUpdateRequest**](EventHandlerRegistrationEventHandlerRegistrationUpdateRequest.md) | Updated information for the event handler | + +### Return type + +[**EventHandlerRegistrationEventHandlerRegistrationResponse**](EventHandlerRegistrationEventHandlerRegistrationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationCreateRequest.md b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationCreateRequest.md new file mode 100644 index 0000000..66b41b7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationCreateRequest.md @@ -0,0 +1,51 @@ +# EventHandlerRegistrationEventHandlerRegistrationCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssemblyName** | **string** | | + +## Methods + +### NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest + +`func NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest(assemblyName string, ) *EventHandlerRegistrationEventHandlerRegistrationCreateRequest` + +NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest instantiates a new EventHandlerRegistrationEventHandlerRegistrationCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerRegistrationEventHandlerRegistrationCreateRequestWithDefaults + +`func NewEventHandlerRegistrationEventHandlerRegistrationCreateRequestWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationCreateRequest` + +NewEventHandlerRegistrationEventHandlerRegistrationCreateRequestWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAssemblyName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) GetAssemblyName() string` + +GetAssemblyName returns the AssemblyName field if non-nil, zero value otherwise. + +### GetAssemblyNameOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) GetAssemblyNameOk() (*string, bool)` + +GetAssemblyNameOk returns a tuple with the AssemblyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssemblyName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) SetAssemblyName(v string)` + +SetAssemblyName sets AssemblyName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationResponse.md b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationResponse.md new file mode 100644 index 0000000..feea87d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationResponse.md @@ -0,0 +1,190 @@ +# EventHandlerRegistrationEventHandlerRegistrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**ClassName** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**SupportedEvents** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewEventHandlerRegistrationEventHandlerRegistrationResponse + +`func NewEventHandlerRegistrationEventHandlerRegistrationResponse() *EventHandlerRegistrationEventHandlerRegistrationResponse` + +NewEventHandlerRegistrationEventHandlerRegistrationResponse instantiates a new EventHandlerRegistrationEventHandlerRegistrationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerRegistrationEventHandlerRegistrationResponseWithDefaults + +`func NewEventHandlerRegistrationEventHandlerRegistrationResponseWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationResponse` + +NewEventHandlerRegistrationEventHandlerRegistrationResponseWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetClassName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetClassName() string` + +GetClassName returns the ClassName field if non-nil, zero value otherwise. + +### GetClassNameOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetClassNameOk() (*string, bool)` + +GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetClassName(v string)` + +SetClassName sets ClassName field to given value. + +### HasClassName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasClassName() bool` + +HasClassName returns a boolean if a field has been set. + +### SetClassNameNil + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetClassNameNil(b bool)` + + SetClassNameNil sets the value for ClassName to be an explicit nil + +### UnsetClassName +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetClassName()` + +UnsetClassName ensures that no value is present for ClassName, not even an explicit nil +### GetEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetSupportedEvents + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetSupportedEvents() string` + +GetSupportedEvents returns the SupportedEvents field if non-nil, zero value otherwise. + +### GetSupportedEventsOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetSupportedEventsOk() (*string, bool)` + +GetSupportedEventsOk returns a tuple with the SupportedEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedEvents + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetSupportedEvents(v string)` + +SetSupportedEvents sets SupportedEvents field to given value. + +### HasSupportedEvents + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasSupportedEvents() bool` + +HasSupportedEvents returns a boolean if a field has been set. + +### SetSupportedEventsNil + +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetSupportedEventsNil(b bool)` + + SetSupportedEventsNil sets the value for SupportedEvents to be an explicit nil + +### UnsetSupportedEvents +`func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetSupportedEvents()` + +UnsetSupportedEvents ensures that no value is present for SupportedEvents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationUpdateRequest.md b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationUpdateRequest.md new file mode 100644 index 0000000..bd3d407 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/EventHandlerRegistrationEventHandlerRegistrationUpdateRequest.md @@ -0,0 +1,92 @@ +# EventHandlerRegistrationEventHandlerRegistrationUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest + +`func NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest() *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest` + +NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest instantiates a new EventHandlerRegistrationEventHandlerRegistrationUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequestWithDefaults + +`func NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequestWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest` + +NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequestWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ExpirationAlertApi.md b/v24/api/keyfactor/v1/docs/ExpirationAlertApi.md new file mode 100644 index 0000000..d57840d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ExpirationAlertApi.md @@ -0,0 +1,641 @@ +# \ExpirationAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlertsExpiration**](ExpirationAlertApi.md#CreateAlertsExpiration) | **POST** /Alerts/Expiration | Add an expiration alert +[**CreateAlertsExpirationTest**](ExpirationAlertApi.md#CreateAlertsExpirationTest) | **POST** /Alerts/Expiration/Test | Test an Expiration Alert +[**CreateAlertsExpirationTestAll**](ExpirationAlertApi.md#CreateAlertsExpirationTestAll) | **POST** /Alerts/Expiration/TestAll | Test All Expiration Alerts +[**DeleteAlertsExpirationById**](ExpirationAlertApi.md#DeleteAlertsExpirationById) | **DELETE** /Alerts/Expiration/{id} | Delete an expiration alert +[**GetAlertsExpiration**](ExpirationAlertApi.md#GetAlertsExpiration) | **GET** /Alerts/Expiration | Gets all expiration alerts according to the provided filter and output parameters +[**GetAlertsExpirationById**](ExpirationAlertApi.md#GetAlertsExpirationById) | **GET** /Alerts/Expiration/{id} | Get an expiration alert +[**GetAlertsExpirationSchedule**](ExpirationAlertApi.md#GetAlertsExpirationSchedule) | **GET** /Alerts/Expiration/Schedule | Get the schedule for expiration alerts +[**UpdateAlertsExpiration**](ExpirationAlertApi.md#UpdateAlertsExpiration) | **PUT** /Alerts/Expiration | Edit an expiration alert +[**UpdateAlertsExpirationSchedule**](ExpirationAlertApi.md#UpdateAlertsExpirationSchedule) | **PUT** /Alerts/Expiration/Schedule | Edit schedule + + + +## CreateAlertsExpiration + +> AlertsExpirationExpirationAlertDefinitionResponse NewCreateAlertsExpirationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertCreationRequest(alertsExpirationExpirationAlertCreationRequest).Execute() + +Add an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsExpirationExpirationAlertCreationRequest := *openapiclient.NewAlertsExpirationExpirationAlertCreationRequest("DisplayName_example", int32(123)) // AlertsExpirationExpirationAlertCreationRequest | Information for the new alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewCreateAlertsExpirationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertCreationRequest(alertsExpirationExpirationAlertCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.CreateAlertsExpiration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsExpiration`: AlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.CreateAlertsExpiration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsExpirationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsExpirationExpirationAlertCreationRequest** | [**AlertsExpirationExpirationAlertCreationRequest**](AlertsExpirationExpirationAlertCreationRequest.md) | Information for the new alert | + +### Return type + +[**AlertsExpirationExpirationAlertDefinitionResponse**](AlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsExpirationTest + +> AlertsExpirationExpirationAlertTestResponse NewCreateAlertsExpirationTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertTestRequest(alertsExpirationExpirationAlertTestRequest).Execute() + +Test an Expiration Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsExpirationExpirationAlertTestRequest := *openapiclient.NewAlertsExpirationExpirationAlertTestRequest() // AlertsExpirationExpirationAlertTestRequest | Information about the expiration alert test (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewCreateAlertsExpirationTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertTestRequest(alertsExpirationExpirationAlertTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.CreateAlertsExpirationTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsExpirationTest`: AlertsExpirationExpirationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.CreateAlertsExpirationTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsExpirationTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsExpirationExpirationAlertTestRequest** | [**AlertsExpirationExpirationAlertTestRequest**](AlertsExpirationExpirationAlertTestRequest.md) | Information about the expiration alert test | + +### Return type + +[**AlertsExpirationExpirationAlertTestResponse**](AlertsExpirationExpirationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsExpirationTestAll + +> AlertsExpirationExpirationAlertTestResponse NewCreateAlertsExpirationTestAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertTestAllRequest(alertsExpirationExpirationAlertTestAllRequest).Execute() + +Test All Expiration Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsExpirationExpirationAlertTestAllRequest := *openapiclient.NewAlertsExpirationExpirationAlertTestAllRequest() // AlertsExpirationExpirationAlertTestAllRequest | Information about the expiration alert test (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewCreateAlertsExpirationTestAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertTestAllRequest(alertsExpirationExpirationAlertTestAllRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.CreateAlertsExpirationTestAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsExpirationTestAll`: AlertsExpirationExpirationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.CreateAlertsExpirationTestAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsExpirationTestAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsExpirationExpirationAlertTestAllRequest** | [**AlertsExpirationExpirationAlertTestAllRequest**](AlertsExpirationExpirationAlertTestAllRequest.md) | Information about the expiration alert test | + +### Return type + +[**AlertsExpirationExpirationAlertTestResponse**](AlertsExpirationExpirationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAlertsExpirationById + +> NewDeleteAlertsExpirationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the expiration alert + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewDeleteAlertsExpirationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.DeleteAlertsExpirationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the expiration alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAlertsExpirationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsExpiration + +> []AlertsExpirationExpirationAlertDefinitionResponse NewGetAlertsExpirationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all expiration alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewGetAlertsExpirationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.GetAlertsExpiration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsExpiration`: []AlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.GetAlertsExpiration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsExpirationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AlertsExpirationExpirationAlertDefinitionResponse**](AlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsExpirationById + +> AlertsExpirationExpirationAlertDefinitionResponse NewGetAlertsExpirationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the expiration alert to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewGetAlertsExpirationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.GetAlertsExpirationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsExpirationById`: AlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.GetAlertsExpirationById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the expiration alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsExpirationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsExpirationExpirationAlertDefinitionResponse**](AlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsExpirationSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewGetAlertsExpirationScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for expiration alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewGetAlertsExpirationScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.GetAlertsExpirationSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsExpirationSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.GetAlertsExpirationSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsExpirationScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsExpiration + +> AlertsExpirationExpirationAlertDefinitionResponse NewUpdateAlertsExpirationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertUpdateRequest(alertsExpirationExpirationAlertUpdateRequest).Execute() + +Edit an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsExpirationExpirationAlertUpdateRequest := *openapiclient.NewAlertsExpirationExpirationAlertUpdateRequest("DisplayName_example", int32(123)) // AlertsExpirationExpirationAlertUpdateRequest | Information for the expiration alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewUpdateAlertsExpirationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsExpirationExpirationAlertUpdateRequest(alertsExpirationExpirationAlertUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.UpdateAlertsExpiration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsExpiration`: AlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.UpdateAlertsExpiration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsExpirationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsExpirationExpirationAlertUpdateRequest** | [**AlertsExpirationExpirationAlertUpdateRequest**](AlertsExpirationExpirationAlertUpdateRequest.md) | Information for the expiration alert | + +### Return type + +[**AlertsExpirationExpirationAlertDefinitionResponse**](AlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsExpirationSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewUpdateAlertsExpirationScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsAlertScheduleAlertScheduleRequest := *openapiclient.NewAlertsAlertScheduleAlertScheduleRequest() // AlertsAlertScheduleAlertScheduleRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.NewUpdateAlertsExpirationScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.UpdateAlertsExpirationSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsExpirationSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.UpdateAlertsExpirationSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsExpirationScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsAlertScheduleAlertScheduleRequest** | [**AlertsAlertScheduleAlertScheduleRequest**](AlertsAlertScheduleAlertScheduleRequest.md) | | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/ExtensionsApi.md b/v24/api/keyfactor/v1/docs/ExtensionsApi.md new file mode 100644 index 0000000..bfc3c2b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ExtensionsApi.md @@ -0,0 +1,367 @@ +# \ExtensionsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateExtensionsScripts**](ExtensionsApi.md#CreateExtensionsScripts) | **POST** /Extensions/Scripts | Adds a new script +[**DeleteExtensionsScriptsById**](ExtensionsApi.md#DeleteExtensionsScriptsById) | **DELETE** /Extensions/Scripts/{id} | Deletes a script. Script cannot be configured to an alert or workflow. +[**GetExtensionsScripts**](ExtensionsApi.md#GetExtensionsScripts) | **GET** /Extensions/Scripts | Returns all scripts according to the provided filter and output parameters +[**GetExtensionsScriptsById**](ExtensionsApi.md#GetExtensionsScriptsById) | **GET** /Extensions/Scripts/{id} | Returns a single script that matches the provided Id +[**UpdateExtensionsScripts**](ExtensionsApi.md#UpdateExtensionsScripts) | **PUT** /Extensions/Scripts | Updates a script + + + +## CreateExtensionsScripts + +> ScriptsScriptResponse NewCreateExtensionsScriptsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ScriptsScriptCreateRequest(scriptsScriptCreateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds a new script + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + scriptsScriptCreateRequest := *openapiclient.NewScriptsScriptCreateRequest("Name_example", "Contents_example") // ScriptsScriptCreateRequest | Script parameters + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtensionsApi.NewCreateExtensionsScriptsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ScriptsScriptCreateRequest(scriptsScriptCreateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtensionsApi.CreateExtensionsScripts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateExtensionsScripts`: ScriptsScriptResponse + fmt.Fprintf(os.Stdout, "Response from `ExtensionsApi.CreateExtensionsScripts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateExtensionsScriptsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **scriptsScriptCreateRequest** | [**ScriptsScriptCreateRequest**](ScriptsScriptCreateRequest.md) | Script parameters | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**ScriptsScriptResponse**](ScriptsScriptResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteExtensionsScriptsById + +> NewDeleteExtensionsScriptsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a script. Script cannot be configured to an alert or workflow. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the script to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtensionsApi.NewDeleteExtensionsScriptsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtensionsApi.DeleteExtensionsScriptsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the script to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteExtensionsScriptsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetExtensionsScripts + +> []ScriptsScriptQueryResponse NewGetExtensionsScriptsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all scripts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtensionsApi.NewGetExtensionsScriptsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtensionsApi.GetExtensionsScripts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetExtensionsScripts`: []ScriptsScriptQueryResponse + fmt.Fprintf(os.Stdout, "Response from `ExtensionsApi.GetExtensionsScripts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetExtensionsScriptsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]ScriptsScriptQueryResponse**](ScriptsScriptQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetExtensionsScriptsById + +> ScriptsScriptResponse NewGetExtensionsScriptsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single script that matches the provided Id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the script + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtensionsApi.NewGetExtensionsScriptsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtensionsApi.GetExtensionsScriptsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetExtensionsScriptsById`: ScriptsScriptResponse + fmt.Fprintf(os.Stdout, "Response from `ExtensionsApi.GetExtensionsScriptsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the script | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetExtensionsScriptsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**ScriptsScriptResponse**](ScriptsScriptResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateExtensionsScripts + +> ScriptsScriptResponse NewUpdateExtensionsScriptsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ScriptsScriptsUpdateRequest(scriptsScriptsUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a script + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + scriptsScriptsUpdateRequest := *openapiclient.NewScriptsScriptsUpdateRequest() // ScriptsScriptsUpdateRequest | Script parameters + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtensionsApi.NewUpdateExtensionsScriptsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ScriptsScriptsUpdateRequest(scriptsScriptsUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtensionsApi.UpdateExtensionsScripts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateExtensionsScripts`: ScriptsScriptResponse + fmt.Fprintf(os.Stdout, "Response from `ExtensionsApi.UpdateExtensionsScripts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateExtensionsScriptsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **scriptsScriptsUpdateRequest** | [**ScriptsScriptsUpdateRequest**](ScriptsScriptsUpdateRequest.md) | Script parameters | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**ScriptsScriptResponse**](ScriptsScriptResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/GlobalPermissionsGlobalPermissionResponse.md b/v24/api/keyfactor/v1/docs/GlobalPermissionsGlobalPermissionResponse.md new file mode 100644 index 0000000..861c24c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/GlobalPermissionsGlobalPermissionResponse.md @@ -0,0 +1,102 @@ +# GlobalPermissionsGlobalPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Area** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewGlobalPermissionsGlobalPermissionResponse + +`func NewGlobalPermissionsGlobalPermissionResponse() *GlobalPermissionsGlobalPermissionResponse` + +NewGlobalPermissionsGlobalPermissionResponse instantiates a new GlobalPermissionsGlobalPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGlobalPermissionsGlobalPermissionResponseWithDefaults + +`func NewGlobalPermissionsGlobalPermissionResponseWithDefaults() *GlobalPermissionsGlobalPermissionResponse` + +NewGlobalPermissionsGlobalPermissionResponseWithDefaults instantiates a new GlobalPermissionsGlobalPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArea + +`func (o *GlobalPermissionsGlobalPermissionResponse) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *GlobalPermissionsGlobalPermissionResponse) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *GlobalPermissionsGlobalPermissionResponse) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *GlobalPermissionsGlobalPermissionResponse) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### SetAreaNil + +`func (o *GlobalPermissionsGlobalPermissionResponse) SetAreaNil(b bool)` + + SetAreaNil sets the value for Area to be an explicit nil + +### UnsetArea +`func (o *GlobalPermissionsGlobalPermissionResponse) UnsetArea()` + +UnsetArea ensures that no value is present for Area, not even an explicit nil +### GetPermission + +`func (o *GlobalPermissionsGlobalPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *GlobalPermissionsGlobalPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *GlobalPermissionsGlobalPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *GlobalPermissionsGlobalPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *GlobalPermissionsGlobalPermissionResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *GlobalPermissionsGlobalPermissionResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderApi.md b/v24/api/keyfactor/v1/docs/IdentityProviderApi.md new file mode 100644 index 0000000..a982ec5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderApi.md @@ -0,0 +1,369 @@ +# \IdentityProviderApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateIdentityProviders**](IdentityProviderApi.md#CreateIdentityProviders) | **POST** /IdentityProviders | Creates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. +[**GetIdentityProviders**](IdentityProviderApi.md#GetIdentityProviders) | **GET** /IdentityProviders | Returns all OAuth identity providers according to the provided filter and output parameters and user's security role assigned permission sets. +[**GetIdentityProvidersById**](IdentityProviderApi.md#GetIdentityProvidersById) | **GET** /IdentityProviders/{id} | Gets an OAuth identity provider and its parameters. +[**GetIdentityProvidersTypes**](IdentityProviderApi.md#GetIdentityProvidersTypes) | **GET** /IdentityProviders/Types | Returns a list of all available identity provider types and corresponding type parameters. +[**UpdateIdentityProvidersById**](IdentityProviderApi.md#UpdateIdentityProvidersById) | **PUT** /IdentityProviders/{id} | Updates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. + + + +## CreateIdentityProviders + +> IdentityProviderIdentityProviderCreateResponse NewCreateIdentityProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).IdentityProviderIdentityProviderCreateRequest(identityProviderIdentityProviderCreateRequest).Execute() + +Creates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + identityProviderIdentityProviderCreateRequest := *openapiclient.NewIdentityProviderIdentityProviderCreateRequest("AuthenticationScheme_example", "DisplayName_example", "ProviderType_example") // IdentityProviderIdentityProviderCreateRequest | A IdentityProvider.IdentityProviderCreateRequest with the Id, name, and parameters that for the OAuth identity provider that is to be created. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProviderApi.NewCreateIdentityProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).IdentityProviderIdentityProviderCreateRequest(identityProviderIdentityProviderCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProviderApi.CreateIdentityProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProviders`: IdentityProviderIdentityProviderCreateResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProviderApi.CreateIdentityProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateIdentityProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **identityProviderIdentityProviderCreateRequest** | [**IdentityProviderIdentityProviderCreateRequest**](IdentityProviderIdentityProviderCreateRequest.md) | A IdentityProvider.IdentityProviderCreateRequest with the Id, name, and parameters that for the OAuth identity provider that is to be created. | + +### Return type + +[**IdentityProviderIdentityProviderCreateResponse**](IdentityProviderIdentityProviderCreateResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetIdentityProviders + +> []IdentityProviderIdentityProviderGetResponse NewGetIdentityProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all OAuth identity providers according to the provided filter and output parameters and user's security role assigned permission sets. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProviderApi.NewGetIdentityProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProviderApi.GetIdentityProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProviders`: []IdentityProviderIdentityProviderGetResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProviderApi.GetIdentityProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetIdentityProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]IdentityProviderIdentityProviderGetResponse**](IdentityProviderIdentityProviderGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetIdentityProvidersById + +> IdentityProviderIdentityProviderGetResponse NewGetIdentityProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets an OAuth identity provider and its parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the OAuth identity provider to retrieve. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProviderApi.NewGetIdentityProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProviderApi.GetIdentityProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProvidersById`: IdentityProviderIdentityProviderGetResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProviderApi.GetIdentityProvidersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The Id of the OAuth identity provider to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetIdentityProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**IdentityProviderIdentityProviderGetResponse**](IdentityProviderIdentityProviderGetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetIdentityProvidersTypes + +> []IdentityProviderProviderTypeResponse NewGetIdentityProvidersTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of all available identity provider types and corresponding type parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProviderApi.NewGetIdentityProvidersTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProviderApi.GetIdentityProvidersTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProvidersTypes`: []IdentityProviderProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProviderApi.GetIdentityProvidersTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetIdentityProvidersTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]IdentityProviderProviderTypeResponse**](IdentityProviderProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateIdentityProvidersById + +> IdentityProviderIdentityProviderUpdateResponse NewUpdateIdentityProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).IdentityProviderIdentityProviderUpdateRequest(identityProviderIdentityProviderUpdateRequest).Execute() + +Updates an OAuth identity provider and any provided parameters. The identity provider will be assigned to the Global Permission Set if no PermissionSet is specified in the request and the user is in a security role that belongs to the Global Permission Set. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the OAuth identity provider to update. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + identityProviderIdentityProviderUpdateRequest := *openapiclient.NewIdentityProviderIdentityProviderUpdateRequest("AuthenticationScheme_example", "DisplayName_example") // IdentityProviderIdentityProviderUpdateRequest | A IdentityProvider.IdentityProviderUpdateRequest with the Id, name, and parameters that for the OAuth identity provider that need updated. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdentityProviderApi.NewUpdateIdentityProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).IdentityProviderIdentityProviderUpdateRequest(identityProviderIdentityProviderUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProviderApi.UpdateIdentityProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProvidersById`: IdentityProviderIdentityProviderUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProviderApi.UpdateIdentityProvidersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The Id of the OAuth identity provider to update. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateIdentityProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **identityProviderIdentityProviderUpdateRequest** | [**IdentityProviderIdentityProviderUpdateRequest**](IdentityProviderIdentityProviderUpdateRequest.md) | A IdentityProvider.IdentityProviderUpdateRequest with the Id, name, and parameters that for the OAuth identity provider that need updated. | + +### Return type + +[**IdentityProviderIdentityProviderUpdateResponse**](IdentityProviderIdentityProviderUpdateResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateRequest.md b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateRequest.md new file mode 100644 index 0000000..fb383aa --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateRequest.md @@ -0,0 +1,155 @@ +# IdentityProviderIdentityProviderCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticationScheme** | **string** | | +**DisplayName** | **string** | | +**ProviderType** | **string** | | +**PermissionSetId** | Pointer to **NullableString** | | [optional] +**Parameters** | Pointer to [**IdentityProviderProviderTypeParameterRequest**](IdentityProviderProviderTypeParameterRequest.md) | | [optional] + +## Methods + +### NewIdentityProviderIdentityProviderCreateRequest + +`func NewIdentityProviderIdentityProviderCreateRequest(authenticationScheme string, displayName string, providerType string, ) *IdentityProviderIdentityProviderCreateRequest` + +NewIdentityProviderIdentityProviderCreateRequest instantiates a new IdentityProviderIdentityProviderCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderIdentityProviderCreateRequestWithDefaults + +`func NewIdentityProviderIdentityProviderCreateRequestWithDefaults() *IdentityProviderIdentityProviderCreateRequest` + +NewIdentityProviderIdentityProviderCreateRequestWithDefaults instantiates a new IdentityProviderIdentityProviderCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + + +### GetDisplayName + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetProviderType + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetProviderType() string` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetProviderTypeOk() (*string, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetProviderType(v string)` + +SetProviderType sets ProviderType field to given value. + + +### GetPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateRequest) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### SetPermissionSetIdNil + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetPermissionSetIdNil(b bool)` + + SetPermissionSetIdNil sets the value for PermissionSetId to be an explicit nil + +### UnsetPermissionSetId +`func (o *IdentityProviderIdentityProviderCreateRequest) UnsetPermissionSetId()` + +UnsetPermissionSetId ensures that no value is present for PermissionSetId, not even an explicit nil +### GetParameters + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetParameters() IdentityProviderProviderTypeParameterRequest` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *IdentityProviderIdentityProviderCreateRequest) GetParametersOk() (*IdentityProviderProviderTypeParameterRequest, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *IdentityProviderIdentityProviderCreateRequest) SetParameters(v IdentityProviderProviderTypeParameterRequest)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *IdentityProviderIdentityProviderCreateRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateResponse.md new file mode 100644 index 0000000..0a42f75 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderCreateResponse.md @@ -0,0 +1,242 @@ +# IdentityProviderIdentityProviderCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**AuthenticationScheme** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**TypeId** | Pointer to **string** | | [optional] +**Parameters** | Pointer to [**[]IdentityProviderProviderTypeParameterValueResponse**](IdentityProviderProviderTypeParameterValueResponse.md) | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] +**AuthenticationEnabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewIdentityProviderIdentityProviderCreateResponse + +`func NewIdentityProviderIdentityProviderCreateResponse() *IdentityProviderIdentityProviderCreateResponse` + +NewIdentityProviderIdentityProviderCreateResponse instantiates a new IdentityProviderIdentityProviderCreateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderIdentityProviderCreateResponseWithDefaults + +`func NewIdentityProviderIdentityProviderCreateResponseWithDefaults() *IdentityProviderIdentityProviderCreateResponse` + +NewIdentityProviderIdentityProviderCreateResponseWithDefaults instantiates a new IdentityProviderIdentityProviderCreateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + +### HasAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasAuthenticationScheme() bool` + +HasAuthenticationScheme returns a boolean if a field has been set. + +### SetAuthenticationSchemeNil + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationSchemeNil(b bool)` + + SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil + +### UnsetAuthenticationScheme +`func (o *IdentityProviderIdentityProviderCreateResponse) UnsetAuthenticationScheme()` + +UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +### GetDisplayName + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *IdentityProviderIdentityProviderCreateResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetTypeId + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetTypeId() string` + +GetTypeId returns the TypeId field if non-nil, zero value otherwise. + +### GetTypeIdOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetTypeIdOk() (*string, bool)` + +GetTypeIdOk returns a tuple with the TypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeId + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetTypeId(v string)` + +SetTypeId sets TypeId field to given value. + +### HasTypeId + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasTypeId() bool` + +HasTypeId returns a boolean if a field has been set. + +### GetParameters + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetParametersOk() (*[]IdentityProviderProviderTypeParameterValueResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *IdentityProviderIdentityProviderCreateResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationEnabled() bool` + +GetAuthenticationEnabled returns the AuthenticationEnabled field if non-nil, zero value otherwise. + +### GetAuthenticationEnabledOk + +`func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationEnabledOk() (*bool, bool)` + +GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationEnabled(v bool)` + +SetAuthenticationEnabled sets AuthenticationEnabled field to given value. + +### HasAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderCreateResponse) HasAuthenticationEnabled() bool` + +HasAuthenticationEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderGetResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderGetResponse.md new file mode 100644 index 0000000..8721e87 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderGetResponse.md @@ -0,0 +1,242 @@ +# IdentityProviderIdentityProviderGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**AuthenticationScheme** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**TypeId** | Pointer to **string** | | [optional] +**Parameters** | Pointer to [**[]IdentityProviderProviderTypeParameterValueResponse**](IdentityProviderProviderTypeParameterValueResponse.md) | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] +**AuthenticationEnabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewIdentityProviderIdentityProviderGetResponse + +`func NewIdentityProviderIdentityProviderGetResponse() *IdentityProviderIdentityProviderGetResponse` + +NewIdentityProviderIdentityProviderGetResponse instantiates a new IdentityProviderIdentityProviderGetResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderIdentityProviderGetResponseWithDefaults + +`func NewIdentityProviderIdentityProviderGetResponseWithDefaults() *IdentityProviderIdentityProviderGetResponse` + +NewIdentityProviderIdentityProviderGetResponseWithDefaults instantiates a new IdentityProviderIdentityProviderGetResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderIdentityProviderGetResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderIdentityProviderGetResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderIdentityProviderGetResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + +### HasAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderGetResponse) HasAuthenticationScheme() bool` + +HasAuthenticationScheme returns a boolean if a field has been set. + +### SetAuthenticationSchemeNil + +`func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationSchemeNil(b bool)` + + SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil + +### UnsetAuthenticationScheme +`func (o *IdentityProviderIdentityProviderGetResponse) UnsetAuthenticationScheme()` + +UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +### GetDisplayName + +`func (o *IdentityProviderIdentityProviderGetResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderIdentityProviderGetResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderIdentityProviderGetResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *IdentityProviderIdentityProviderGetResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *IdentityProviderIdentityProviderGetResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetTypeId + +`func (o *IdentityProviderIdentityProviderGetResponse) GetTypeId() string` + +GetTypeId returns the TypeId field if non-nil, zero value otherwise. + +### GetTypeIdOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetTypeIdOk() (*string, bool)` + +GetTypeIdOk returns a tuple with the TypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeId + +`func (o *IdentityProviderIdentityProviderGetResponse) SetTypeId(v string)` + +SetTypeId sets TypeId field to given value. + +### HasTypeId + +`func (o *IdentityProviderIdentityProviderGetResponse) HasTypeId() bool` + +HasTypeId returns a boolean if a field has been set. + +### GetParameters + +`func (o *IdentityProviderIdentityProviderGetResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetParametersOk() (*[]IdentityProviderProviderTypeParameterValueResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *IdentityProviderIdentityProviderGetResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *IdentityProviderIdentityProviderGetResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *IdentityProviderIdentityProviderGetResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *IdentityProviderIdentityProviderGetResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetPermissionSetId + +`func (o *IdentityProviderIdentityProviderGetResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *IdentityProviderIdentityProviderGetResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *IdentityProviderIdentityProviderGetResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationEnabled() bool` + +GetAuthenticationEnabled returns the AuthenticationEnabled field if non-nil, zero value otherwise. + +### GetAuthenticationEnabledOk + +`func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationEnabledOk() (*bool, bool)` + +GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationEnabled(v bool)` + +SetAuthenticationEnabled sets AuthenticationEnabled field to given value. + +### HasAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderGetResponse) HasAuthenticationEnabled() bool` + +HasAuthenticationEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateRequest.md b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateRequest.md new file mode 100644 index 0000000..7b5eb15 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateRequest.md @@ -0,0 +1,170 @@ +# IdentityProviderIdentityProviderUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthenticationScheme** | **string** | | +**DisplayName** | **string** | | +**Parameters** | Pointer to [**IdentityProviderProviderTypeParameterRequest**](IdentityProviderProviderTypeParameterRequest.md) | | [optional] +**PermissionSetId** | Pointer to **NullableString** | | [optional] +**AuthenticationEnabled** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewIdentityProviderIdentityProviderUpdateRequest + +`func NewIdentityProviderIdentityProviderUpdateRequest(authenticationScheme string, displayName string, ) *IdentityProviderIdentityProviderUpdateRequest` + +NewIdentityProviderIdentityProviderUpdateRequest instantiates a new IdentityProviderIdentityProviderUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderIdentityProviderUpdateRequestWithDefaults + +`func NewIdentityProviderIdentityProviderUpdateRequestWithDefaults() *IdentityProviderIdentityProviderUpdateRequest` + +NewIdentityProviderIdentityProviderUpdateRequestWithDefaults instantiates a new IdentityProviderIdentityProviderUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + + +### GetDisplayName + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetParameters + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetParameters() IdentityProviderProviderTypeParameterRequest` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetParametersOk() (*IdentityProviderProviderTypeParameterRequest, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetParameters(v IdentityProviderProviderTypeParameterRequest)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *IdentityProviderIdentityProviderUpdateRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateRequest) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### SetPermissionSetIdNil + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetPermissionSetIdNil(b bool)` + + SetPermissionSetIdNil sets the value for PermissionSetId to be an explicit nil + +### UnsetPermissionSetId +`func (o *IdentityProviderIdentityProviderUpdateRequest) UnsetPermissionSetId()` + +UnsetPermissionSetId ensures that no value is present for PermissionSetId, not even an explicit nil +### GetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationEnabled() bool` + +GetAuthenticationEnabled returns the AuthenticationEnabled field if non-nil, zero value otherwise. + +### GetAuthenticationEnabledOk + +`func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationEnabledOk() (*bool, bool)` + +GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationEnabled(v bool)` + +SetAuthenticationEnabled sets AuthenticationEnabled field to given value. + +### HasAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateRequest) HasAuthenticationEnabled() bool` + +HasAuthenticationEnabled returns a boolean if a field has been set. + +### SetAuthenticationEnabledNil + +`func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationEnabledNil(b bool)` + + SetAuthenticationEnabledNil sets the value for AuthenticationEnabled to be an explicit nil + +### UnsetAuthenticationEnabled +`func (o *IdentityProviderIdentityProviderUpdateRequest) UnsetAuthenticationEnabled()` + +UnsetAuthenticationEnabled ensures that no value is present for AuthenticationEnabled, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateResponse.md new file mode 100644 index 0000000..336cc3f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderIdentityProviderUpdateResponse.md @@ -0,0 +1,242 @@ +# IdentityProviderIdentityProviderUpdateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**AuthenticationScheme** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**TypeId** | Pointer to **string** | | [optional] +**Parameters** | Pointer to [**[]IdentityProviderProviderTypeParameterValueResponse**](IdentityProviderProviderTypeParameterValueResponse.md) | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] +**AuthenticationEnabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewIdentityProviderIdentityProviderUpdateResponse + +`func NewIdentityProviderIdentityProviderUpdateResponse() *IdentityProviderIdentityProviderUpdateResponse` + +NewIdentityProviderIdentityProviderUpdateResponse instantiates a new IdentityProviderIdentityProviderUpdateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderIdentityProviderUpdateResponseWithDefaults + +`func NewIdentityProviderIdentityProviderUpdateResponseWithDefaults() *IdentityProviderIdentityProviderUpdateResponse` + +NewIdentityProviderIdentityProviderUpdateResponseWithDefaults instantiates a new IdentityProviderIdentityProviderUpdateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + +### HasAuthenticationScheme + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasAuthenticationScheme() bool` + +HasAuthenticationScheme returns a boolean if a field has been set. + +### SetAuthenticationSchemeNil + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationSchemeNil(b bool)` + + SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil + +### UnsetAuthenticationScheme +`func (o *IdentityProviderIdentityProviderUpdateResponse) UnsetAuthenticationScheme()` + +UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +### GetDisplayName + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *IdentityProviderIdentityProviderUpdateResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetTypeId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetTypeId() string` + +GetTypeId returns the TypeId field if non-nil, zero value otherwise. + +### GetTypeIdOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetTypeIdOk() (*string, bool)` + +GetTypeIdOk returns a tuple with the TypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetTypeId(v string)` + +SetTypeId sets TypeId field to given value. + +### HasTypeId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasTypeId() bool` + +HasTypeId returns a boolean if a field has been set. + +### GetParameters + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetParametersOk() (*[]IdentityProviderProviderTypeParameterValueResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *IdentityProviderIdentityProviderUpdateResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationEnabled() bool` + +GetAuthenticationEnabled returns the AuthenticationEnabled field if non-nil, zero value otherwise. + +### GetAuthenticationEnabledOk + +`func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationEnabledOk() (*bool, bool)` + +GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationEnabled(v bool)` + +SetAuthenticationEnabled sets AuthenticationEnabled field to given value. + +### HasAuthenticationEnabled + +`func (o *IdentityProviderIdentityProviderUpdateResponse) HasAuthenticationEnabled() bool` + +HasAuthenticationEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterRequest.md b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterRequest.md new file mode 100644 index 0000000..28c7628 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterRequest.md @@ -0,0 +1,431 @@ +# IdentityProviderProviderTypeParameterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timeout** | Pointer to **int32** | | [optional] +**OIDCAudience** | Pointer to **NullableString** | | [optional] +**OIDCScope** | Pointer to **NullableString** | | [optional] +**NameClaimType** | **string** | | +**RoleClaimType** | **string** | | +**UniqueClaimType** | **string** | | +**FallbackUniqueClaimType** | **string** | | +**ClientId** | **string** | | +**ClientSecret** | [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | +**AuthorizationEndpoint** | **string** | | +**TokenEndpoint** | **string** | | +**JSONWebKeySetUri** | **string** | | +**Authority** | **string** | | +**UserInfoEndpoint** | **string** | | +**Auth0ApiUrl** | Pointer to **NullableString** | | [optional] +**SignOutUrl** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewIdentityProviderProviderTypeParameterRequest + +`func NewIdentityProviderProviderTypeParameterRequest(nameClaimType string, roleClaimType string, uniqueClaimType string, fallbackUniqueClaimType string, clientId string, clientSecret CSSCMSDataModelModelsKeyfactorAPISecret, authorizationEndpoint string, tokenEndpoint string, jSONWebKeySetUri string, authority string, userInfoEndpoint string, ) *IdentityProviderProviderTypeParameterRequest` + +NewIdentityProviderProviderTypeParameterRequest instantiates a new IdentityProviderProviderTypeParameterRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderProviderTypeParameterRequestWithDefaults + +`func NewIdentityProviderProviderTypeParameterRequestWithDefaults() *IdentityProviderProviderTypeParameterRequest` + +NewIdentityProviderProviderTypeParameterRequestWithDefaults instantiates a new IdentityProviderProviderTypeParameterRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTimeout + +`func (o *IdentityProviderProviderTypeParameterRequest) GetTimeout() int32` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetTimeoutOk() (*int32, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *IdentityProviderProviderTypeParameterRequest) SetTimeout(v int32)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *IdentityProviderProviderTypeParameterRequest) HasTimeout() bool` + +HasTimeout returns a boolean if a field has been set. + +### GetOIDCAudience + +`func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCAudience() string` + +GetOIDCAudience returns the OIDCAudience field if non-nil, zero value otherwise. + +### GetOIDCAudienceOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCAudienceOk() (*string, bool)` + +GetOIDCAudienceOk returns a tuple with the OIDCAudience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOIDCAudience + +`func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCAudience(v string)` + +SetOIDCAudience sets OIDCAudience field to given value. + +### HasOIDCAudience + +`func (o *IdentityProviderProviderTypeParameterRequest) HasOIDCAudience() bool` + +HasOIDCAudience returns a boolean if a field has been set. + +### SetOIDCAudienceNil + +`func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCAudienceNil(b bool)` + + SetOIDCAudienceNil sets the value for OIDCAudience to be an explicit nil + +### UnsetOIDCAudience +`func (o *IdentityProviderProviderTypeParameterRequest) UnsetOIDCAudience()` + +UnsetOIDCAudience ensures that no value is present for OIDCAudience, not even an explicit nil +### GetOIDCScope + +`func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCScope() string` + +GetOIDCScope returns the OIDCScope field if non-nil, zero value otherwise. + +### GetOIDCScopeOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCScopeOk() (*string, bool)` + +GetOIDCScopeOk returns a tuple with the OIDCScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOIDCScope + +`func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCScope(v string)` + +SetOIDCScope sets OIDCScope field to given value. + +### HasOIDCScope + +`func (o *IdentityProviderProviderTypeParameterRequest) HasOIDCScope() bool` + +HasOIDCScope returns a boolean if a field has been set. + +### SetOIDCScopeNil + +`func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCScopeNil(b bool)` + + SetOIDCScopeNil sets the value for OIDCScope to be an explicit nil + +### UnsetOIDCScope +`func (o *IdentityProviderProviderTypeParameterRequest) UnsetOIDCScope()` + +UnsetOIDCScope ensures that no value is present for OIDCScope, not even an explicit nil +### GetNameClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) GetNameClaimType() string` + +GetNameClaimType returns the NameClaimType field if non-nil, zero value otherwise. + +### GetNameClaimTypeOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetNameClaimTypeOk() (*string, bool)` + +GetNameClaimTypeOk returns a tuple with the NameClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNameClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) SetNameClaimType(v string)` + +SetNameClaimType sets NameClaimType field to given value. + + +### GetRoleClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) GetRoleClaimType() string` + +GetRoleClaimType returns the RoleClaimType field if non-nil, zero value otherwise. + +### GetRoleClaimTypeOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetRoleClaimTypeOk() (*string, bool)` + +GetRoleClaimTypeOk returns a tuple with the RoleClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) SetRoleClaimType(v string)` + +SetRoleClaimType sets RoleClaimType field to given value. + + +### GetUniqueClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) GetUniqueClaimType() string` + +GetUniqueClaimType returns the UniqueClaimType field if non-nil, zero value otherwise. + +### GetUniqueClaimTypeOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetUniqueClaimTypeOk() (*string, bool)` + +GetUniqueClaimTypeOk returns a tuple with the UniqueClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) SetUniqueClaimType(v string)` + +SetUniqueClaimType sets UniqueClaimType field to given value. + + +### GetFallbackUniqueClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) GetFallbackUniqueClaimType() string` + +GetFallbackUniqueClaimType returns the FallbackUniqueClaimType field if non-nil, zero value otherwise. + +### GetFallbackUniqueClaimTypeOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetFallbackUniqueClaimTypeOk() (*string, bool)` + +GetFallbackUniqueClaimTypeOk returns a tuple with the FallbackUniqueClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFallbackUniqueClaimType + +`func (o *IdentityProviderProviderTypeParameterRequest) SetFallbackUniqueClaimType(v string)` + +SetFallbackUniqueClaimType sets FallbackUniqueClaimType field to given value. + + +### GetClientId + +`func (o *IdentityProviderProviderTypeParameterRequest) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *IdentityProviderProviderTypeParameterRequest) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *IdentityProviderProviderTypeParameterRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *IdentityProviderProviderTypeParameterRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + + +### GetAuthorizationEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorizationEndpoint() string` + +GetAuthorizationEndpoint returns the AuthorizationEndpoint field if non-nil, zero value otherwise. + +### GetAuthorizationEndpointOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorizationEndpointOk() (*string, bool)` + +GetAuthorizationEndpointOk returns a tuple with the AuthorizationEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) SetAuthorizationEndpoint(v string)` + +SetAuthorizationEndpoint sets AuthorizationEndpoint field to given value. + + +### GetTokenEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) GetTokenEndpoint() string` + +GetTokenEndpoint returns the TokenEndpoint field if non-nil, zero value otherwise. + +### GetTokenEndpointOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetTokenEndpointOk() (*string, bool)` + +GetTokenEndpointOk returns a tuple with the TokenEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) SetTokenEndpoint(v string)` + +SetTokenEndpoint sets TokenEndpoint field to given value. + + +### GetJSONWebKeySetUri + +`func (o *IdentityProviderProviderTypeParameterRequest) GetJSONWebKeySetUri() string` + +GetJSONWebKeySetUri returns the JSONWebKeySetUri field if non-nil, zero value otherwise. + +### GetJSONWebKeySetUriOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetJSONWebKeySetUriOk() (*string, bool)` + +GetJSONWebKeySetUriOk returns a tuple with the JSONWebKeySetUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJSONWebKeySetUri + +`func (o *IdentityProviderProviderTypeParameterRequest) SetJSONWebKeySetUri(v string)` + +SetJSONWebKeySetUri sets JSONWebKeySetUri field to given value. + + +### GetAuthority + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuthority() string` + +GetAuthority returns the Authority field if non-nil, zero value otherwise. + +### GetAuthorityOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorityOk() (*string, bool)` + +GetAuthorityOk returns a tuple with the Authority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthority + +`func (o *IdentityProviderProviderTypeParameterRequest) SetAuthority(v string)` + +SetAuthority sets Authority field to given value. + + +### GetUserInfoEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) GetUserInfoEndpoint() string` + +GetUserInfoEndpoint returns the UserInfoEndpoint field if non-nil, zero value otherwise. + +### GetUserInfoEndpointOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetUserInfoEndpointOk() (*string, bool)` + +GetUserInfoEndpointOk returns a tuple with the UserInfoEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserInfoEndpoint + +`func (o *IdentityProviderProviderTypeParameterRequest) SetUserInfoEndpoint(v string)` + +SetUserInfoEndpoint sets UserInfoEndpoint field to given value. + + +### GetAuth0ApiUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuth0ApiUrl() string` + +GetAuth0ApiUrl returns the Auth0ApiUrl field if non-nil, zero value otherwise. + +### GetAuth0ApiUrlOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetAuth0ApiUrlOk() (*string, bool)` + +GetAuth0ApiUrlOk returns a tuple with the Auth0ApiUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuth0ApiUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) SetAuth0ApiUrl(v string)` + +SetAuth0ApiUrl sets Auth0ApiUrl field to given value. + +### HasAuth0ApiUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) HasAuth0ApiUrl() bool` + +HasAuth0ApiUrl returns a boolean if a field has been set. + +### SetAuth0ApiUrlNil + +`func (o *IdentityProviderProviderTypeParameterRequest) SetAuth0ApiUrlNil(b bool)` + + SetAuth0ApiUrlNil sets the value for Auth0ApiUrl to be an explicit nil + +### UnsetAuth0ApiUrl +`func (o *IdentityProviderProviderTypeParameterRequest) UnsetAuth0ApiUrl()` + +UnsetAuth0ApiUrl ensures that no value is present for Auth0ApiUrl, not even an explicit nil +### GetSignOutUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) GetSignOutUrl() string` + +GetSignOutUrl returns the SignOutUrl field if non-nil, zero value otherwise. + +### GetSignOutUrlOk + +`func (o *IdentityProviderProviderTypeParameterRequest) GetSignOutUrlOk() (*string, bool)` + +GetSignOutUrlOk returns a tuple with the SignOutUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOutUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) SetSignOutUrl(v string)` + +SetSignOutUrl sets SignOutUrl field to given value. + +### HasSignOutUrl + +`func (o *IdentityProviderProviderTypeParameterRequest) HasSignOutUrl() bool` + +HasSignOutUrl returns a boolean if a field has been set. + +### SetSignOutUrlNil + +`func (o *IdentityProviderProviderTypeParameterRequest) SetSignOutUrlNil(b bool)` + + SetSignOutUrlNil sets the value for SignOutUrl to be an explicit nil + +### UnsetSignOutUrl +`func (o *IdentityProviderProviderTypeParameterRequest) UnsetSignOutUrl()` + +UnsetSignOutUrl ensures that no value is present for SignOutUrl, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterResponse.md new file mode 100644 index 0000000..272aa87 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterResponse.md @@ -0,0 +1,180 @@ +# IdentityProviderProviderTypeParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsIdentityProviderDataType**](CSSCMSDataModelEnumsIdentityProviderDataType.md) | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewIdentityProviderProviderTypeParameterResponse + +`func NewIdentityProviderProviderTypeParameterResponse() *IdentityProviderProviderTypeParameterResponse` + +NewIdentityProviderProviderTypeParameterResponse instantiates a new IdentityProviderProviderTypeParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderProviderTypeParameterResponseWithDefaults + +`func NewIdentityProviderProviderTypeParameterResponseWithDefaults() *IdentityProviderProviderTypeParameterResponse` + +NewIdentityProviderProviderTypeParameterResponseWithDefaults instantiates a new IdentityProviderProviderTypeParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderProviderTypeParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderProviderTypeParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderProviderTypeParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderProviderTypeParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityProviderProviderTypeParameterResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityProviderProviderTypeParameterResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityProviderProviderTypeParameterResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityProviderProviderTypeParameterResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *IdentityProviderProviderTypeParameterResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *IdentityProviderProviderTypeParameterResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *IdentityProviderProviderTypeParameterResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderProviderTypeParameterResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderProviderTypeParameterResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *IdentityProviderProviderTypeParameterResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *IdentityProviderProviderTypeParameterResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *IdentityProviderProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsIdentityProviderDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *IdentityProviderProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsIdentityProviderDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *IdentityProviderProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsIdentityProviderDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *IdentityProviderProviderTypeParameterResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetRequired + +`func (o *IdentityProviderProviderTypeParameterResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *IdentityProviderProviderTypeParameterResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *IdentityProviderProviderTypeParameterResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *IdentityProviderProviderTypeParameterResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterValueResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterValueResponse.md new file mode 100644 index 0000000..2387e7f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeParameterValueResponse.md @@ -0,0 +1,242 @@ +# IdentityProviderProviderTypeParameterValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Required** | Pointer to **bool** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsIdentityProviderDataType**](CSSCMSDataModelEnumsIdentityProviderDataType.md) | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**SecretValue** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewIdentityProviderProviderTypeParameterValueResponse + +`func NewIdentityProviderProviderTypeParameterValueResponse() *IdentityProviderProviderTypeParameterValueResponse` + +NewIdentityProviderProviderTypeParameterValueResponse instantiates a new IdentityProviderProviderTypeParameterValueResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderProviderTypeParameterValueResponseWithDefaults + +`func NewIdentityProviderProviderTypeParameterValueResponseWithDefaults() *IdentityProviderProviderTypeParameterValueResponse` + +NewIdentityProviderProviderTypeParameterValueResponseWithDefaults instantiates a new IdentityProviderProviderTypeParameterValueResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetRequired + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetDataType + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetDataType() CSSCMSDataModelEnumsIdentityProviderDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsIdentityProviderDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetDataType(v CSSCMSDataModelEnumsIdentityProviderDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetSecretValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetSecretValue() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetSecretValue returns the SecretValue field if non-nil, zero value otherwise. + +### GetSecretValueOk + +`func (o *IdentityProviderProviderTypeParameterValueResponse) GetSecretValueOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetSecretValueOk returns a tuple with the SecretValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) SetSecretValue(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetSecretValue sets SecretValue field to given value. + +### HasSecretValue + +`func (o *IdentityProviderProviderTypeParameterValueResponse) HasSecretValue() bool` + +HasSecretValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeResponse.md b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeResponse.md new file mode 100644 index 0000000..eac623f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IdentityProviderProviderTypeResponse.md @@ -0,0 +1,128 @@ +# IdentityProviderProviderTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**TypeParameters** | Pointer to [**[]IdentityProviderProviderTypeParameterResponse**](IdentityProviderProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewIdentityProviderProviderTypeResponse + +`func NewIdentityProviderProviderTypeResponse() *IdentityProviderProviderTypeResponse` + +NewIdentityProviderProviderTypeResponse instantiates a new IdentityProviderProviderTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdentityProviderProviderTypeResponseWithDefaults + +`func NewIdentityProviderProviderTypeResponseWithDefaults() *IdentityProviderProviderTypeResponse` + +NewIdentityProviderProviderTypeResponseWithDefaults instantiates a new IdentityProviderProviderTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *IdentityProviderProviderTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IdentityProviderProviderTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *IdentityProviderProviderTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *IdentityProviderProviderTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *IdentityProviderProviderTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdentityProviderProviderTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdentityProviderProviderTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *IdentityProviderProviderTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *IdentityProviderProviderTypeResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *IdentityProviderProviderTypeResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetTypeParameters + +`func (o *IdentityProviderProviderTypeResponse) GetTypeParameters() []IdentityProviderProviderTypeParameterResponse` + +GetTypeParameters returns the TypeParameters field if non-nil, zero value otherwise. + +### GetTypeParametersOk + +`func (o *IdentityProviderProviderTypeResponse) GetTypeParametersOk() (*[]IdentityProviderProviderTypeParameterResponse, bool)` + +GetTypeParametersOk returns a tuple with the TypeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeParameters + +`func (o *IdentityProviderProviderTypeResponse) SetTypeParameters(v []IdentityProviderProviderTypeParameterResponse)` + +SetTypeParameters sets TypeParameters field to given value. + +### HasTypeParameters + +`func (o *IdentityProviderProviderTypeResponse) HasTypeParameters() bool` + +HasTypeParameters returns a boolean if a field has been set. + +### SetTypeParametersNil + +`func (o *IdentityProviderProviderTypeResponse) SetTypeParametersNil(b bool)` + + SetTypeParametersNil sets the value for TypeParameters to be an explicit nil + +### UnsetTypeParameters +`func (o *IdentityProviderProviderTypeResponse) UnsetTypeParameters()` + +UnsetTypeParameters ensures that no value is present for TypeParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/IssuedAlertApi.md b/v24/api/keyfactor/v1/docs/IssuedAlertApi.md new file mode 100644 index 0000000..c9528d3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/IssuedAlertApi.md @@ -0,0 +1,503 @@ +# \IssuedAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlertsIssued**](IssuedAlertApi.md#CreateAlertsIssued) | **POST** /Alerts/Issued | Add a issued alert +[**DeleteAlertsIssuedById**](IssuedAlertApi.md#DeleteAlertsIssuedById) | **DELETE** /Alerts/Issued/{id} | Delete a issued alert +[**GetAlertsIssued**](IssuedAlertApi.md#GetAlertsIssued) | **GET** /Alerts/Issued | Gets all issued alerts according to the provided filter and output parameters +[**GetAlertsIssuedById**](IssuedAlertApi.md#GetAlertsIssuedById) | **GET** /Alerts/Issued/{id} | Get a issued alert +[**GetAlertsIssuedSchedule**](IssuedAlertApi.md#GetAlertsIssuedSchedule) | **GET** /Alerts/Issued/Schedule | Get the schedule for issued alerts +[**UpdateAlertsIssued**](IssuedAlertApi.md#UpdateAlertsIssued) | **PUT** /Alerts/Issued | Edit a issued alert +[**UpdateAlertsIssuedSchedule**](IssuedAlertApi.md#UpdateAlertsIssuedSchedule) | **PUT** /Alerts/Issued/Schedule | Edit schedule + + + +## CreateAlertsIssued + +> AlertsIssuedIssuedAlertDefinitionResponse NewCreateAlertsIssuedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsIssuedIssuedAlertCreationRequest(alertsIssuedIssuedAlertCreationRequest).Execute() + +Add a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsIssuedIssuedAlertCreationRequest := *openapiclient.NewAlertsIssuedIssuedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsIssuedIssuedAlertCreationRequest | Information for the new alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewCreateAlertsIssuedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsIssuedIssuedAlertCreationRequest(alertsIssuedIssuedAlertCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.CreateAlertsIssued``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsIssued`: AlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.CreateAlertsIssued`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsIssuedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsIssuedIssuedAlertCreationRequest** | [**AlertsIssuedIssuedAlertCreationRequest**](AlertsIssuedIssuedAlertCreationRequest.md) | Information for the new alert | + +### Return type + +[**AlertsIssuedIssuedAlertDefinitionResponse**](AlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAlertsIssuedById + +> NewDeleteAlertsIssuedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the issued alert + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewDeleteAlertsIssuedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.DeleteAlertsIssuedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the issued alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAlertsIssuedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsIssued + +> []AlertsIssuedIssuedAlertDefinitionResponse NewGetAlertsIssuedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all issued alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewGetAlertsIssuedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.GetAlertsIssued``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsIssued`: []AlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.GetAlertsIssued`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsIssuedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AlertsIssuedIssuedAlertDefinitionResponse**](AlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsIssuedById + +> AlertsIssuedIssuedAlertDefinitionResponse NewGetAlertsIssuedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the issued alert to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewGetAlertsIssuedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.GetAlertsIssuedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsIssuedById`: AlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.GetAlertsIssuedById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the issued alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsIssuedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsIssuedIssuedAlertDefinitionResponse**](AlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsIssuedSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewGetAlertsIssuedScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for issued alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewGetAlertsIssuedScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.GetAlertsIssuedSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsIssuedSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.GetAlertsIssuedSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsIssuedScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsIssued + +> AlertsIssuedIssuedAlertDefinitionResponse NewUpdateAlertsIssuedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsIssuedIssuedAlertUpdateRequest(alertsIssuedIssuedAlertUpdateRequest).Execute() + +Edit a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsIssuedIssuedAlertUpdateRequest := *openapiclient.NewAlertsIssuedIssuedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsIssuedIssuedAlertUpdateRequest | Information for the issued alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewUpdateAlertsIssuedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsIssuedIssuedAlertUpdateRequest(alertsIssuedIssuedAlertUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.UpdateAlertsIssued``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsIssued`: AlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.UpdateAlertsIssued`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsIssuedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsIssuedIssuedAlertUpdateRequest** | [**AlertsIssuedIssuedAlertUpdateRequest**](AlertsIssuedIssuedAlertUpdateRequest.md) | Information for the issued alert | + +### Return type + +[**AlertsIssuedIssuedAlertDefinitionResponse**](AlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsIssuedSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewUpdateAlertsIssuedScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsAlertScheduleAlertScheduleRequest := *openapiclient.NewAlertsAlertScheduleAlertScheduleRequest() // AlertsAlertScheduleAlertScheduleRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.NewUpdateAlertsIssuedScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.UpdateAlertsIssuedSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsIssuedSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.UpdateAlertsIssuedSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsIssuedScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsAlertScheduleAlertScheduleRequest** | [**AlertsAlertScheduleAlertScheduleRequest**](AlertsAlertScheduleAlertScheduleRequest.md) | | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/KeyApi.md b/v24/api/keyfactor/v1/docs/KeyApi.md new file mode 100644 index 0000000..5d43ce8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyApi.md @@ -0,0 +1,505 @@ +# \KeyApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHKeysMyKey**](KeyApi.md#CreateSSHKeysMyKey) | **POST** /SSH/Keys/MyKey | Generates an SSH Key Pair for the requesting user. +[**DeleteSSHKeysUnmanaged**](KeyApi.md#DeleteSSHKeysUnmanaged) | **DELETE** /SSH/Keys/Unmanaged | Deletes Unmanaged Keys associated with the provided identifiers +[**DeleteSSHKeysUnmanagedById**](KeyApi.md#DeleteSSHKeysUnmanagedById) | **DELETE** /SSH/Keys/Unmanaged/{id} | Deletes Unmanaged Key associated with the provided identifier +[**GetSSHKeysMyKey**](KeyApi.md#GetSSHKeysMyKey) | **GET** /SSH/Keys/MyKey | Returns the current key of the requesting user +[**GetSSHKeysUnmanaged**](KeyApi.md#GetSSHKeysUnmanaged) | **GET** /SSH/Keys/Unmanaged | Returns Unmanaged SSH keys +[**GetSSHKeysUnmanagedById**](KeyApi.md#GetSSHKeysUnmanagedById) | **GET** /SSH/Keys/Unmanaged/{id} | Returns an unmanaged SSH key with provided id. +[**UpdateSSHKeysMyKey**](KeyApi.md#UpdateSSHKeysMyKey) | **PUT** /SSH/Keys/MyKey | Updates the requesting user's SSH key + + + +## CreateSSHKeysMyKey + +> CSSCMSDataModelModelsSSHKeysKeyResponse NewCreateSSHKeysMyKeyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest).Execute() + +Generates an SSH Key Pair for the requesting user. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHKeysKeyGenerationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // CSSCMSDataModelModelsSSHKeysKeyGenerationRequest | Object containing information about the key to be generated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewCreateSSHKeysMyKeyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.CreateSSHKeysMyKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHKeysMyKey`: CSSCMSDataModelModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.CreateSSHKeysMyKey`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHKeysMyKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHKeysKeyGenerationRequest** | [**CSSCMSDataModelModelsSSHKeysKeyGenerationRequest**](CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md) | Object containing information about the key to be generated | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHKeysUnmanaged + +> NewDeleteSSHKeysUnmanagedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes Unmanaged Keys associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Keyfactor identifers of the Keys to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewDeleteSSHKeysUnmanagedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.DeleteSSHKeysUnmanaged``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHKeysUnmanagedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Keyfactor identifers of the Keys to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHKeysUnmanagedById + +> NewDeleteSSHKeysUnmanagedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes Unmanaged Key associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Key to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewDeleteSSHKeysUnmanagedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.DeleteSSHKeysUnmanagedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Key to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHKeysUnmanagedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHKeysMyKey + +> CSSCMSDataModelModelsSSHKeysKeyResponse NewGetSSHKeysMyKeyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the current key of the requesting user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + includePrivateKey := true // bool | Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewGetSSHKeysMyKeyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.GetSSHKeysMyKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHKeysMyKey`: CSSCMSDataModelModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.GetSSHKeysMyKey`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHKeysMyKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **includePrivateKey** | **bool** | Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHKeysUnmanaged + +> []CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse NewGetSSHKeysUnmanagedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns Unmanaged SSH keys + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewGetSSHKeysUnmanagedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.GetSSHKeysUnmanaged``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHKeysUnmanaged`: []CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.GetSSHKeysUnmanaged`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHKeysUnmanagedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse**](CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHKeysUnmanagedById + +> CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse NewGetSSHKeysUnmanagedByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an unmanaged SSH key with provided id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the key to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewGetSSHKeysUnmanagedByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.GetSSHKeysUnmanagedById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHKeysUnmanagedById`: CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.GetSSHKeysUnmanagedById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the key to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHKeysUnmanagedByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse**](CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSHKeysMyKey + +> CSSCMSDataModelModelsSSHKeysKeyResponse NewUpdateSSHKeysMyKeyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyUpdateRequest(cSSCMSDataModelModelsSSHKeysKeyUpdateRequest).Execute() + +Updates the requesting user's SSH key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHKeysKeyUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example") // CSSCMSDataModelModelsSSHKeysKeyUpdateRequest | Updated state of the SSH key (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.NewUpdateSSHKeysMyKeyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyUpdateRequest(cSSCMSDataModelModelsSSHKeysKeyUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.UpdateSSHKeysMyKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSHKeysMyKey`: CSSCMSDataModelModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.UpdateSSHKeysMyKey`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSHKeysMyKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHKeysKeyUpdateRequest** | [**CSSCMSDataModelModelsSSHKeysKeyUpdateRequest**](CSSCMSDataModelModelsSSHKeysKeyUpdateRequest.md) | Updated state of the SSH key | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/KeyRotationAlertApi.md b/v24/api/keyfactor/v1/docs/KeyRotationAlertApi.md new file mode 100644 index 0000000..b24bac2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyRotationAlertApi.md @@ -0,0 +1,641 @@ +# \KeyRotationAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlertsKeyRotation**](KeyRotationAlertApi.md#CreateAlertsKeyRotation) | **POST** /Alerts/KeyRotation | Add a key rotation alert +[**CreateAlertsKeyRotationTest**](KeyRotationAlertApi.md#CreateAlertsKeyRotationTest) | **POST** /Alerts/KeyRotation/Test | Test An Alert +[**CreateAlertsKeyRotationTestAll**](KeyRotationAlertApi.md#CreateAlertsKeyRotationTestAll) | **POST** /Alerts/KeyRotation/TestAll | Test All Alerts +[**DeleteAlertsKeyRotationById**](KeyRotationAlertApi.md#DeleteAlertsKeyRotationById) | **DELETE** /Alerts/KeyRotation/{id} | Delete a key rotation alert +[**GetAlertsKeyRotation**](KeyRotationAlertApi.md#GetAlertsKeyRotation) | **GET** /Alerts/KeyRotation | Gets all key rotation alerts according to the provided filter and output parameters +[**GetAlertsKeyRotationById**](KeyRotationAlertApi.md#GetAlertsKeyRotationById) | **GET** /Alerts/KeyRotation/{id} | Get a key rotation alert +[**GetAlertsKeyRotationSchedule**](KeyRotationAlertApi.md#GetAlertsKeyRotationSchedule) | **GET** /Alerts/KeyRotation/Schedule | Get the schedule for key rotation alerts +[**UpdateAlertsKeyRotation**](KeyRotationAlertApi.md#UpdateAlertsKeyRotation) | **PUT** /Alerts/KeyRotation | Edit a key rotation alert +[**UpdateAlertsKeyRotationSchedule**](KeyRotationAlertApi.md#UpdateAlertsKeyRotationSchedule) | **PUT** /Alerts/KeyRotation/Schedule | Edit schedule + + + +## CreateAlertsKeyRotation + +> AlertsKeyRotationKeyRotationAlertDefinitionResponse NewCreateAlertsKeyRotationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertCreationRequest(alertsKeyRotationKeyRotationAlertCreationRequest).Execute() + +Add a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsKeyRotationKeyRotationAlertCreationRequest := *openapiclient.NewAlertsKeyRotationKeyRotationAlertCreationRequest("DisplayName_example", int32(123)) // AlertsKeyRotationKeyRotationAlertCreationRequest | Information for the new alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewCreateAlertsKeyRotationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertCreationRequest(alertsKeyRotationKeyRotationAlertCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.CreateAlertsKeyRotation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsKeyRotation`: AlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.CreateAlertsKeyRotation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsKeyRotationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsKeyRotationKeyRotationAlertCreationRequest** | [**AlertsKeyRotationKeyRotationAlertCreationRequest**](AlertsKeyRotationKeyRotationAlertCreationRequest.md) | Information for the new alert | + +### Return type + +[**AlertsKeyRotationKeyRotationAlertDefinitionResponse**](AlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsKeyRotationTest + +> AlertsKeyRotationKeyRotationAlertTestResponse NewCreateAlertsKeyRotationTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertTestRequest(alertsKeyRotationKeyRotationAlertTestRequest).Execute() + +Test An Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsKeyRotationKeyRotationAlertTestRequest := *openapiclient.NewAlertsKeyRotationKeyRotationAlertTestRequest() // AlertsKeyRotationKeyRotationAlertTestRequest | Parameters used to test the alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewCreateAlertsKeyRotationTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertTestRequest(alertsKeyRotationKeyRotationAlertTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.CreateAlertsKeyRotationTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsKeyRotationTest`: AlertsKeyRotationKeyRotationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.CreateAlertsKeyRotationTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsKeyRotationTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsKeyRotationKeyRotationAlertTestRequest** | [**AlertsKeyRotationKeyRotationAlertTestRequest**](AlertsKeyRotationKeyRotationAlertTestRequest.md) | Parameters used to test the alert | + +### Return type + +[**AlertsKeyRotationKeyRotationAlertTestResponse**](AlertsKeyRotationKeyRotationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsKeyRotationTestAll + +> AlertsKeyRotationKeyRotationAlertTestResponse NewCreateAlertsKeyRotationTestAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertTestAllRequest(alertsKeyRotationKeyRotationAlertTestAllRequest).Execute() + +Test All Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsKeyRotationKeyRotationAlertTestAllRequest := *openapiclient.NewAlertsKeyRotationKeyRotationAlertTestAllRequest() // AlertsKeyRotationKeyRotationAlertTestAllRequest | Information about the key rotation alert test (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewCreateAlertsKeyRotationTestAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertTestAllRequest(alertsKeyRotationKeyRotationAlertTestAllRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.CreateAlertsKeyRotationTestAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsKeyRotationTestAll`: AlertsKeyRotationKeyRotationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.CreateAlertsKeyRotationTestAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsKeyRotationTestAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsKeyRotationKeyRotationAlertTestAllRequest** | [**AlertsKeyRotationKeyRotationAlertTestAllRequest**](AlertsKeyRotationKeyRotationAlertTestAllRequest.md) | Information about the key rotation alert test | + +### Return type + +[**AlertsKeyRotationKeyRotationAlertTestResponse**](AlertsKeyRotationKeyRotationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAlertsKeyRotationById + +> NewDeleteAlertsKeyRotationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the key rotation alert + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewDeleteAlertsKeyRotationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.DeleteAlertsKeyRotationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the key rotation alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAlertsKeyRotationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsKeyRotation + +> []AlertsKeyRotationKeyRotationAlertDefinitionResponse NewGetAlertsKeyRotationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all key rotation alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewGetAlertsKeyRotationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.GetAlertsKeyRotation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsKeyRotation`: []AlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.GetAlertsKeyRotation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsKeyRotationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AlertsKeyRotationKeyRotationAlertDefinitionResponse**](AlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsKeyRotationById + +> AlertsKeyRotationKeyRotationAlertDefinitionResponse NewGetAlertsKeyRotationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the key rotation alert to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewGetAlertsKeyRotationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.GetAlertsKeyRotationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsKeyRotationById`: AlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.GetAlertsKeyRotationById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the key rotation alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsKeyRotationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsKeyRotationKeyRotationAlertDefinitionResponse**](AlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsKeyRotationSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewGetAlertsKeyRotationScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for key rotation alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewGetAlertsKeyRotationScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.GetAlertsKeyRotationSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsKeyRotationSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.GetAlertsKeyRotationSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsKeyRotationScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsKeyRotation + +> AlertsKeyRotationKeyRotationAlertDefinitionResponse NewUpdateAlertsKeyRotationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertUpdateRequest(alertsKeyRotationKeyRotationAlertUpdateRequest).Execute() + +Edit a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsKeyRotationKeyRotationAlertUpdateRequest := *openapiclient.NewAlertsKeyRotationKeyRotationAlertUpdateRequest("DisplayName_example", int32(123)) // AlertsKeyRotationKeyRotationAlertUpdateRequest | Information for the key rotation alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewUpdateAlertsKeyRotationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsKeyRotationKeyRotationAlertUpdateRequest(alertsKeyRotationKeyRotationAlertUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.UpdateAlertsKeyRotation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsKeyRotation`: AlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.UpdateAlertsKeyRotation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsKeyRotationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsKeyRotationKeyRotationAlertUpdateRequest** | [**AlertsKeyRotationKeyRotationAlertUpdateRequest**](AlertsKeyRotationKeyRotationAlertUpdateRequest.md) | Information for the key rotation alert | + +### Return type + +[**AlertsKeyRotationKeyRotationAlertDefinitionResponse**](AlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsKeyRotationSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewUpdateAlertsKeyRotationScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsAlertScheduleAlertScheduleRequest := *openapiclient.NewAlertsAlertScheduleAlertScheduleRequest() // AlertsAlertScheduleAlertScheduleRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.NewUpdateAlertsKeyRotationScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.UpdateAlertsKeyRotationSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsKeyRotationSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.UpdateAlertsKeyRotationSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsKeyRotationScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsAlertScheduleAlertScheduleRequest** | [**AlertsAlertScheduleAlertScheduleRequest**](AlertsAlertScheduleAlertScheduleRequest.md) | | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorAuditingEnumsAuditLogLevel.md b/v24/api/keyfactor/v1/docs/KeyfactorAuditingEnumsAuditLogLevel.md new file mode 100644 index 0000000..8fbd97e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorAuditingEnumsAuditLogLevel.md @@ -0,0 +1,15 @@ +# KeyfactorAuditingEnumsAuditLogLevel + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md b/v24/api/keyfactor/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md new file mode 100644 index 0000000..6c12704 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md @@ -0,0 +1,376 @@ +# KeyfactorAuditingQueryingAuditLogEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Signature** | Pointer to **NullableString** | | [optional] +**Category** | Pointer to **int32** | | [optional] +**Operation** | Pointer to **int32** | | [optional] +**Level** | Pointer to [**KeyfactorAuditingEnumsAuditLogLevel**](KeyfactorAuditingEnumsAuditLogLevel.md) | | [optional] +**User** | Pointer to **NullableString** | | [optional] +**EntityType** | Pointer to **NullableString** | | [optional] +**AuditIdentifier** | Pointer to **NullableString** | | [optional] +**ImmutableIdentifier** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewKeyfactorAuditingQueryingAuditLogEntry + +`func NewKeyfactorAuditingQueryingAuditLogEntry() *KeyfactorAuditingQueryingAuditLogEntry` + +NewKeyfactorAuditingQueryingAuditLogEntry instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults + +`func NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults() *KeyfactorAuditingQueryingAuditLogEntry` + +NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetSignature(v string)` + +SetSignature sets Signature field to given value. + +### HasSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasSignature() bool` + +HasSignature returns a boolean if a field has been set. + +### SetSignatureNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetSignatureNil(b bool)` + + SetSignatureNil sets the value for Signature to be an explicit nil + +### UnsetSignature +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetSignature()` + +UnsetSignature ensures that no value is present for Signature, not even an explicit nil +### GetCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategory() int32` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategoryOk() (*int32, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetCategory(v int32)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperation() int32` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperationOk() (*int32, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetOperation(v int32)` + +SetOperation sets Operation field to given value. + +### HasOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasOperation() bool` + +HasOperation returns a boolean if a field has been set. + +### GetLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevel() KeyfactorAuditingEnumsAuditLogLevel` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevelOk() (*KeyfactorAuditingEnumsAuditLogLevel, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetLevel(v KeyfactorAuditingEnumsAuditLogLevel)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### SetUserNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetUserNil(b bool)` + + SetUserNil sets the value for User to be an explicit nil + +### UnsetUser +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetUser()` + +UnsetUser ensures that no value is present for User, not even an explicit nil +### GetEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityType() string` + +GetEntityType returns the EntityType field if non-nil, zero value otherwise. + +### GetEntityTypeOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityTypeOk() (*string, bool)` + +GetEntityTypeOk returns a tuple with the EntityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetEntityType(v string)` + +SetEntityType sets EntityType field to given value. + +### HasEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasEntityType() bool` + +HasEntityType returns a boolean if a field has been set. + +### SetEntityTypeNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetEntityTypeNil(b bool)` + + SetEntityTypeNil sets the value for EntityType to be an explicit nil + +### UnsetEntityType +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetEntityType()` + +UnsetEntityType ensures that no value is present for EntityType, not even an explicit nil +### GetAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifier() string` + +GetAuditIdentifier returns the AuditIdentifier field if non-nil, zero value otherwise. + +### GetAuditIdentifierOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifierOk() (*string, bool)` + +GetAuditIdentifierOk returns a tuple with the AuditIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetAuditIdentifier(v string)` + +SetAuditIdentifier sets AuditIdentifier field to given value. + +### HasAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasAuditIdentifier() bool` + +HasAuditIdentifier returns a boolean if a field has been set. + +### SetAuditIdentifierNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetAuditIdentifierNil(b bool)` + + SetAuditIdentifierNil sets the value for AuditIdentifier to be an explicit nil + +### UnsetAuditIdentifier +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetAuditIdentifier()` + +UnsetAuditIdentifier ensures that no value is present for AuditIdentifier, not even an explicit nil +### GetImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifier() string` + +GetImmutableIdentifier returns the ImmutableIdentifier field if non-nil, zero value otherwise. + +### GetImmutableIdentifierOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifierOk() (*string, bool)` + +GetImmutableIdentifierOk returns a tuple with the ImmutableIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetImmutableIdentifier(v string)` + +SetImmutableIdentifier sets ImmutableIdentifier field to given value. + +### HasImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasImmutableIdentifier() bool` + +HasImmutableIdentifier returns a boolean if a field has been set. + +### SetImmutableIdentifierNil + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetImmutableIdentifierNil(b bool)` + + SetImmutableIdentifierNil sets the value for ImmutableIdentifier to be an explicit nil + +### UnsetImmutableIdentifier +`func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetImmutableIdentifier()` + +UnsetImmutableIdentifier ensures that no value is present for ImmutableIdentifier, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonQueryableExtensionsSortOrder.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonQueryableExtensionsSortOrder.md new file mode 100644 index 0000000..e8b68c2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonQueryableExtensionsSortOrder.md @@ -0,0 +1,13 @@ +# KeyfactorCommonQueryableExtensionsSortOrder + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md new file mode 100644 index 0000000..9115f38 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md @@ -0,0 +1,196 @@ +# KeyfactorCommonSchedulingKeyfactorSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Immediate** | Pointer to **NullableBool** | | [optional] +**Interval** | Pointer to [**KeyfactorCommonSchedulingModelsIntervalModel**](KeyfactorCommonSchedulingModelsIntervalModel.md) | | [optional] +**Daily** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] +**Weekly** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**Monthly** | Pointer to [**KeyfactorCommonSchedulingModelsMonthlyModel**](KeyfactorCommonSchedulingModelsMonthlyModel.md) | | [optional] +**ExactlyOnce** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingKeyfactorSchedule + +`func NewKeyfactorCommonSchedulingKeyfactorSchedule() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorSchedule instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults + +`func NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediate() bool` + +GetImmediate returns the Immediate field if non-nil, zero value otherwise. + +### GetImmediateOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediateOk() (*bool, bool)` + +GetImmediateOk returns a tuple with the Immediate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediate(v bool)` + +SetImmediate sets Immediate field to given value. + +### HasImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasImmediate() bool` + +HasImmediate returns a boolean if a field has been set. + +### SetImmediateNil + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediateNil(b bool)` + + SetImmediateNil sets the value for Immediate to be an explicit nil + +### UnsetImmediate +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) UnsetImmediate()` + +UnsetImmediate ensures that no value is present for Immediate, not even an explicit nil +### GetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetInterval() KeyfactorCommonSchedulingModelsIntervalModel` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetIntervalOk() (*KeyfactorCommonSchedulingModelsIntervalModel, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetInterval(v KeyfactorCommonSchedulingModelsIntervalModel)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDaily() KeyfactorCommonSchedulingModelsTimeModel` + +GetDaily returns the Daily field if non-nil, zero value otherwise. + +### GetDailyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDailyOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetDailyOk returns a tuple with the Daily field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetDaily(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetDaily sets Daily field to given value. + +### HasDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasDaily() bool` + +HasDaily returns a boolean if a field has been set. + +### GetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeekly() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetWeekly returns the Weekly field if non-nil, zero value otherwise. + +### GetWeeklyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeeklyOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetWeeklyOk returns a tuple with the Weekly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetWeekly(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetWeekly sets Weekly field to given value. + +### HasWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasWeekly() bool` + +HasWeekly returns a boolean if a field has been set. + +### GetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthly() KeyfactorCommonSchedulingModelsMonthlyModel` + +GetMonthly returns the Monthly field if non-nil, zero value otherwise. + +### GetMonthlyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthlyOk() (*KeyfactorCommonSchedulingModelsMonthlyModel, bool)` + +GetMonthlyOk returns a tuple with the Monthly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetMonthly(v KeyfactorCommonSchedulingModelsMonthlyModel)` + +SetMonthly sets Monthly field to given value. + +### HasMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasMonthly() bool` + +HasMonthly returns a boolean if a field has been set. + +### GetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnce() KeyfactorCommonSchedulingModelsTimeModel` + +GetExactlyOnce returns the ExactlyOnce field if non-nil, zero value otherwise. + +### GetExactlyOnceOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnceOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetExactlyOnceOk returns a tuple with the ExactlyOnce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetExactlyOnce(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetExactlyOnce sets ExactlyOnce field to given value. + +### HasExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasExactlyOnce() bool` + +HasExactlyOnce returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md new file mode 100644 index 0000000..6fab59c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsIntervalModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Minutes** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsIntervalModel + +`func NewKeyfactorCommonSchedulingModelsIntervalModel() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModel instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutes() int32` + +GetMinutes returns the Minutes field if non-nil, zero value otherwise. + +### GetMinutesOk + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutesOk() (*int32, bool)` + +GetMinutesOk returns a tuple with the Minutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) SetMinutes(v int32)` + +SetMinutes sets Minutes field to given value. + +### HasMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) HasMinutes() bool` + +HasMinutes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md new file mode 100644 index 0000000..76015a9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md @@ -0,0 +1,82 @@ +# KeyfactorCommonSchedulingModelsMonthlyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | Pointer to **int32** | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsMonthlyModel + +`func NewKeyfactorCommonSchedulingModelsMonthlyModel() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModel instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDay() int32` + +GetDay returns the Day field if non-nil, zero value otherwise. + +### GetDayOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDayOk() (*int32, bool)` + +GetDayOk returns a tuple with the Day field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetDay(v int32)` + +SetDay sets Day field to given value. + +### HasDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasDay() bool` + +HasDay returns a boolean if a field has been set. + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md new file mode 100644 index 0000000..7381cf7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsTimeModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsTimeModel + +`func NewKeyfactorCommonSchedulingModelsTimeModel() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModel instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md new file mode 100644 index 0000000..6f3c7ae --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md @@ -0,0 +1,92 @@ +# KeyfactorCommonSchedulingModelsWeeklyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Days** | Pointer to [**[]SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsWeeklyModel + +`func NewKeyfactorCommonSchedulingModelsWeeklyModel() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModel instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDays() []SystemDayOfWeek` + +GetDays returns the Days field if non-nil, zero value otherwise. + +### GetDaysOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDaysOk() (*[]SystemDayOfWeek, bool)` + +GetDaysOk returns a tuple with the Days field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDays(v []SystemDayOfWeek)` + +SetDays sets Days field to given value. + +### HasDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasDays() bool` + +HasDays returns a boolean if a field has been set. + +### SetDaysNil + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDaysNil(b bool)` + + SetDaysNil sets the value for Days to be an explicit nil + +### UnsetDays +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) UnsetDays()` + +UnsetDays ensures that no value is present for Days, not even an explicit nil +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md new file mode 100644 index 0000000..c735e89 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias.md @@ -0,0 +1,15 @@ +# KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult.md new file mode 100644 index 0000000..891dec7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult.md @@ -0,0 +1,19 @@ +# KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus.md new file mode 100644 index 0000000..0b3e284 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus.md @@ -0,0 +1,21 @@ +# KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslEndpointStatus.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslEndpointStatus.md new file mode 100644 index 0000000..864deff --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslEndpointStatus.md @@ -0,0 +1,39 @@ +# KeyfactorOrchestratorsCommonEnumsSslEndpointStatus + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + +* `_9` (value: `9`) + +* `_10` (value: `10`) + +* `_11` (value: `11`) + +* `_12` (value: `12`) + +* `_13` (value: `13`) + +* `_14` (value: `14`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslJobType.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslJobType.md new file mode 100644 index 0000000..21862a1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslJobType.md @@ -0,0 +1,17 @@ +# KeyfactorOrchestratorsCommonEnumsSslJobType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType.md new file mode 100644 index 0000000..ad375ce --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType.md @@ -0,0 +1,17 @@ +# KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslProbeType.md b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslProbeType.md new file mode 100644 index 0000000..7794c44 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorOrchestratorsCommonEnumsSslProbeType.md @@ -0,0 +1,19 @@ +# KeyfactorOrchestratorsCommonEnumsSslProbeType + +## Enum + + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsCertificateState.md b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsCertificateState.md new file mode 100644 index 0000000..e1340c1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsCertificateState.md @@ -0,0 +1,27 @@ +# KeyfactorPKIEnumsCertificateState + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsEncryptionKeyType.md b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsEncryptionKeyType.md new file mode 100644 index 0000000..b86f16a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsEncryptionKeyType.md @@ -0,0 +1,29 @@ +# KeyfactorPKIEnumsEncryptionKeyType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + +* `_9` (value: `9`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsRevokeCode.md b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsRevokeCode.md new file mode 100644 index 0000000..487e114 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorPKIEnumsRevokeCode.md @@ -0,0 +1,29 @@ +# KeyfactorPKIEnumsRevokeCode + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_8` (value: `8`) + +* `_999` (value: `999`) + +* `_MINUS_1` (value: `-1`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md b/v24/api/keyfactor/v1/docs/KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md new file mode 100644 index 0000000..c122b34 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorPKIPKIConstantsX509SubjectAltNameElementType.md @@ -0,0 +1,33 @@ +# KeyfactorPKIPKIConstantsX509SubjectAltNameElementType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + +* `_100` (value: `100`) + +* `_101` (value: `101`) + +* `_999` (value: `999`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md new file mode 100644 index 0000000..40ef2b7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md @@ -0,0 +1,118 @@ +# KeyfactorWebCoreModelsEnrollmentEnrollmentCA + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentCA + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentCA() *KeyfactorWebCoreModelsEnrollmentEnrollmentCA` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentCA instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentCA object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentCAWithDefaults + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentCAWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentCA` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentCAWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentCA object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate.md b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate.md new file mode 100644 index 0000000..4aa1d7f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate.md @@ -0,0 +1,530 @@ +# KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Forest** | Pointer to **NullableString** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**CAs** | Pointer to [**[]KeyfactorWebCoreModelsEnrollmentEnrollmentCA**](KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md) | | [optional] +**EnrollmentFields** | Pointer to [**[]CSSCMSDataModelModelsTemplatesTemplateEnrollmentField**](CSSCMSDataModelModelsTemplatesTemplateEnrollmentField.md) | | [optional] +**MetadataFields** | Pointer to [**[]CSSCMSDataModelModelsTemplatesTemplateMetadataField**](CSSCMSDataModelModelsTemplatesTemplateMetadataField.md) | | [optional] +**Regexes** | Pointer to [**[]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex**](KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex.md) | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]CSSCMSDataModelModelsExtendedKeyUsage**](CSSCMSDataModelModelsExtendedKeyUsage.md) | | [optional] +**EnrollmentTemplatePolicy** | Pointer to [**KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy**](KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy.md) | | [optional] +**KeySize** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateWithDefaults + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetForest + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetForest() string` + +GetForest returns the Forest field if non-nil, zero value otherwise. + +### GetForestOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetForestOk() (*string, bool)` + +GetForestOk returns a tuple with the Forest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForest + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetForest(v string)` + +SetForest sets Forest field to given value. + +### HasForest + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasForest() bool` + +HasForest returns a boolean if a field has been set. + +### SetForestNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetForestNil(b bool)` + + SetForestNil sets the value for Forest to be an explicit nil + +### UnsetForest +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetForest()` + +UnsetForest ensures that no value is present for Forest, not even an explicit nil +### GetRequiresApproval + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCAs() []KeyfactorWebCoreModelsEnrollmentEnrollmentCA` + +GetCAs returns the CAs field if non-nil, zero value otherwise. + +### GetCAsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCAsOk() (*[]KeyfactorWebCoreModelsEnrollmentEnrollmentCA, bool)` + +GetCAsOk returns a tuple with the CAs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCAs(v []KeyfactorWebCoreModelsEnrollmentEnrollmentCA)` + +SetCAs sets CAs field to given value. + +### HasCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasCAs() bool` + +HasCAs returns a boolean if a field has been set. + +### SetCAsNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCAsNil(b bool)` + + SetCAsNil sets the value for CAs to be an explicit nil + +### UnsetCAs +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetCAs()` + +UnsetCAs ensures that no value is present for CAs, not even an explicit nil +### GetEnrollmentFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFields() []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFieldsOk() (*[]CSSCMSDataModelModelsTemplatesTemplateEnrollmentField, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentFields(v []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### SetEnrollmentFieldsNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentFieldsNil(b bool)` + + SetEnrollmentFieldsNil sets the value for EnrollmentFields to be an explicit nil + +### UnsetEnrollmentFields +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetEnrollmentFields()` + +UnsetEnrollmentFields ensures that no value is present for EnrollmentFields, not even an explicit nil +### GetMetadataFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetMetadataFields() []CSSCMSDataModelModelsTemplatesTemplateMetadataField` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetMetadataFieldsOk() (*[]CSSCMSDataModelModelsTemplatesTemplateMetadataField, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetMetadataFields(v []CSSCMSDataModelModelsTemplatesTemplateMetadataField)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### SetMetadataFieldsNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetMetadataFieldsNil(b bool)` + + SetMetadataFieldsNil sets the value for MetadataFields to be an explicit nil + +### UnsetMetadataFields +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetMetadataFields()` + +UnsetMetadataFields ensures that no value is present for MetadataFields, not even an explicit nil +### GetRegexes + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRegexes() []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex` + +GetRegexes returns the Regexes field if non-nil, zero value otherwise. + +### GetRegexesOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRegexesOk() (*[]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex, bool)` + +GetRegexesOk returns a tuple with the Regexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegexes + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRegexes(v []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex)` + +SetRegexes sets Regexes field to given value. + +### HasRegexes + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRegexes() bool` + +HasRegexes returns a boolean if a field has been set. + +### SetRegexesNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRegexesNil(b bool)` + + SetRegexesNil sets the value for Regexes to be an explicit nil + +### UnsetRegexes +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetRegexes()` + +UnsetRegexes ensures that no value is present for Regexes, not even an explicit nil +### GetExtendedKeyUsages + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsages() []CSSCMSDataModelModelsExtendedKeyUsage` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsagesOk() (*[]CSSCMSDataModelModelsExtendedKeyUsage, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetExtendedKeyUsages(v []CSSCMSDataModelModelsExtendedKeyUsage)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### SetExtendedKeyUsagesNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetExtendedKeyUsagesNil(b bool)` + + SetExtendedKeyUsagesNil sets the value for ExtendedKeyUsages to be an explicit nil + +### UnsetExtendedKeyUsages +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetExtendedKeyUsages()` + +UnsetExtendedKeyUsages ensures that no value is present for ExtendedKeyUsages, not even an explicit nil +### GetEnrollmentTemplatePolicy + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentTemplatePolicy() KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy` + +GetEnrollmentTemplatePolicy returns the EnrollmentTemplatePolicy field if non-nil, zero value otherwise. + +### GetEnrollmentTemplatePolicyOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentTemplatePolicyOk() (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy, bool)` + +GetEnrollmentTemplatePolicyOk returns a tuple with the EnrollmentTemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentTemplatePolicy + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentTemplatePolicy(v KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy)` + +SetEnrollmentTemplatePolicy sets EnrollmentTemplatePolicy field to given value. + +### HasEnrollmentTemplatePolicy + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentTemplatePolicy() bool` + +HasEnrollmentTemplatePolicy returns a boolean if a field has been set. + +### GetKeySize + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### SetKeySizeNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeySizeNil(b bool)` + + SetKeySizeNil sets the value for KeySize to be an explicit nil + +### UnsetKeySize +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetKeySize()` + +UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +### GetKeyType + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetCurve + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md new file mode 100644 index 0000000..c00ad91 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse.md @@ -0,0 +1,102 @@ +# KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Templates** | Pointer to [**[]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate**](KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate.md) | | [optional] +**StandaloneCAs** | Pointer to [**[]KeyfactorWebCoreModelsEnrollmentEnrollmentCA**](KeyfactorWebCoreModelsEnrollmentEnrollmentCA.md) | | [optional] + +## Methods + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplates + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplates() []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate` + +GetTemplates returns the Templates field if non-nil, zero value otherwise. + +### GetTemplatesOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplatesOk() (*[]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate, bool)` + +GetTemplatesOk returns a tuple with the Templates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplates + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetTemplates(v []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate)` + +SetTemplates sets Templates field to given value. + +### HasTemplates + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) HasTemplates() bool` + +HasTemplates returns a boolean if a field has been set. + +### SetTemplatesNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetTemplatesNil(b bool)` + + SetTemplatesNil sets the value for Templates to be an explicit nil + +### UnsetTemplates +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) UnsetTemplates()` + +UnsetTemplates ensures that no value is present for Templates, not even an explicit nil +### GetStandaloneCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAs() []KeyfactorWebCoreModelsEnrollmentEnrollmentCA` + +GetStandaloneCAs returns the StandaloneCAs field if non-nil, zero value otherwise. + +### GetStandaloneCAsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAsOk() (*[]KeyfactorWebCoreModelsEnrollmentEnrollmentCA, bool)` + +GetStandaloneCAsOk returns a tuple with the StandaloneCAs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandaloneCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetStandaloneCAs(v []KeyfactorWebCoreModelsEnrollmentEnrollmentCA)` + +SetStandaloneCAs sets StandaloneCAs field to given value. + +### HasStandaloneCAs + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) HasStandaloneCAs() bool` + +HasStandaloneCAs returns a boolean if a field has been set. + +### SetStandaloneCAsNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetStandaloneCAsNil(b bool)` + + SetStandaloneCAsNil sets the value for StandaloneCAs to be an explicit nil + +### UnsetStandaloneCAs +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) UnsetStandaloneCAs()` + +UnsetStandaloneCAs ensures that no value is present for StandaloneCAs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy.md b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy.md new file mode 100644 index 0000000..5664f2e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy.md @@ -0,0 +1,160 @@ +# KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] +**AllowKeyReuse** | Pointer to **bool** | | [optional] +**AllowWildcards** | Pointer to **bool** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**CertificateOwnerRole** | Pointer to [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | [optional] + +## Methods + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicyWithDefaults + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicyWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicyWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyInfo + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetCertificateOwnerRole + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + +### HasCertificateOwnerRole + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasCertificateOwnerRole() bool` + +HasCertificateOwnerRole returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex.md b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex.md new file mode 100644 index 0000000..0f5ab88 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex.md @@ -0,0 +1,190 @@ +# KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **NullableString** | | [optional] +**Regex** | Pointer to **NullableString** | | [optional] +**Error** | Pointer to **NullableString** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegexWithDefaults + +`func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegexWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex` + +NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegexWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetRegex + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### SetRegexNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetRegexNil(b bool)` + + SetRegexNil sets the value for Regex to be an explicit nil + +### UnsetRegex +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetRegex()` + +UnsetRegex ensures that no value is present for Regex, not even an explicit nil +### GetError + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetCaseSensitive + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsDataType.md b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsDataType.md new file mode 100644 index 0000000..07cc6ea --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsDataType.md @@ -0,0 +1,25 @@ +# KeyfactorWorkflowsDataType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsInputControlType.md b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsInputControlType.md new file mode 100644 index 0000000..ea81db1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsInputControlType.md @@ -0,0 +1,25 @@ +# KeyfactorWorkflowsInputControlType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsWorkflowInstanceStatus.md b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsWorkflowInstanceStatus.md new file mode 100644 index 0000000..56af38f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/KeyfactorWorkflowsWorkflowInstanceStatus.md @@ -0,0 +1,23 @@ +# KeyfactorWorkflowsWorkflowInstanceStatus + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LicenseApi.md b/v24/api/keyfactor/v1/docs/LicenseApi.md new file mode 100644 index 0000000..98137b1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseApi.md @@ -0,0 +1,75 @@ +# \LicenseApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetLicense**](LicenseApi.md#GetLicense) | **GET** /License | Gets the current license + + + +## GetLicense + +> LicenseLicenseResponse NewGetLicenseRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the current license + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LicenseApi.NewGetLicenseRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LicenseApi.GetLicense``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLicense`: LicenseLicenseResponse + fmt.Fprintf(os.Stdout, "Response from `LicenseApi.GetLicense`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLicenseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**LicenseLicenseResponse**](LicenseLicenseResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/LicenseLicenseResponse.md b/v24/api/keyfactor/v1/docs/LicenseLicenseResponse.md new file mode 100644 index 0000000..c0adec9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseLicenseResponse.md @@ -0,0 +1,92 @@ +# LicenseLicenseResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyfactorVersion** | Pointer to **NullableString** | | [optional] [readonly] +**LicenseData** | Pointer to [**LicenseLicenseResponseLicense**](LicenseLicenseResponseLicense.md) | | [optional] + +## Methods + +### NewLicenseLicenseResponse + +`func NewLicenseLicenseResponse() *LicenseLicenseResponse` + +NewLicenseLicenseResponse instantiates a new LicenseLicenseResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseLicenseResponseWithDefaults + +`func NewLicenseLicenseResponseWithDefaults() *LicenseLicenseResponse` + +NewLicenseLicenseResponseWithDefaults instantiates a new LicenseLicenseResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyfactorVersion + +`func (o *LicenseLicenseResponse) GetKeyfactorVersion() string` + +GetKeyfactorVersion returns the KeyfactorVersion field if non-nil, zero value otherwise. + +### GetKeyfactorVersionOk + +`func (o *LicenseLicenseResponse) GetKeyfactorVersionOk() (*string, bool)` + +GetKeyfactorVersionOk returns a tuple with the KeyfactorVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorVersion + +`func (o *LicenseLicenseResponse) SetKeyfactorVersion(v string)` + +SetKeyfactorVersion sets KeyfactorVersion field to given value. + +### HasKeyfactorVersion + +`func (o *LicenseLicenseResponse) HasKeyfactorVersion() bool` + +HasKeyfactorVersion returns a boolean if a field has been set. + +### SetKeyfactorVersionNil + +`func (o *LicenseLicenseResponse) SetKeyfactorVersionNil(b bool)` + + SetKeyfactorVersionNil sets the value for KeyfactorVersion to be an explicit nil + +### UnsetKeyfactorVersion +`func (o *LicenseLicenseResponse) UnsetKeyfactorVersion()` + +UnsetKeyfactorVersion ensures that no value is present for KeyfactorVersion, not even an explicit nil +### GetLicenseData + +`func (o *LicenseLicenseResponse) GetLicenseData() LicenseLicenseResponseLicense` + +GetLicenseData returns the LicenseData field if non-nil, zero value otherwise. + +### GetLicenseDataOk + +`func (o *LicenseLicenseResponse) GetLicenseDataOk() (*LicenseLicenseResponseLicense, bool)` + +GetLicenseDataOk returns a tuple with the LicenseData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseData + +`func (o *LicenseLicenseResponse) SetLicenseData(v LicenseLicenseResponseLicense)` + +SetLicenseData sets LicenseData field to given value. + +### HasLicenseData + +`func (o *LicenseLicenseResponse) HasLicenseData() bool` + +HasLicenseData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicense.md b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicense.md new file mode 100644 index 0000000..9d2490c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicense.md @@ -0,0 +1,190 @@ +# LicenseLicenseResponseLicense + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LicenseId** | Pointer to **NullableString** | | [optional] +**Customer** | Pointer to [**LicenseLicenseResponseLicensedCustomer**](LicenseLicenseResponseLicensedCustomer.md) | | [optional] +**IssuedDate** | Pointer to **time.Time** | | [optional] +**ExpirationDate** | Pointer to **NullableTime** | | [optional] +**LicensedProducts** | Pointer to [**[]LicenseLicenseResponseLicensedProduct**](LicenseLicenseResponseLicensedProduct.md) | | [optional] + +## Methods + +### NewLicenseLicenseResponseLicense + +`func NewLicenseLicenseResponseLicense() *LicenseLicenseResponseLicense` + +NewLicenseLicenseResponseLicense instantiates a new LicenseLicenseResponseLicense object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseLicenseResponseLicenseWithDefaults + +`func NewLicenseLicenseResponseLicenseWithDefaults() *LicenseLicenseResponseLicense` + +NewLicenseLicenseResponseLicenseWithDefaults instantiates a new LicenseLicenseResponseLicense object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLicenseId + +`func (o *LicenseLicenseResponseLicense) GetLicenseId() string` + +GetLicenseId returns the LicenseId field if non-nil, zero value otherwise. + +### GetLicenseIdOk + +`func (o *LicenseLicenseResponseLicense) GetLicenseIdOk() (*string, bool)` + +GetLicenseIdOk returns a tuple with the LicenseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseId + +`func (o *LicenseLicenseResponseLicense) SetLicenseId(v string)` + +SetLicenseId sets LicenseId field to given value. + +### HasLicenseId + +`func (o *LicenseLicenseResponseLicense) HasLicenseId() bool` + +HasLicenseId returns a boolean if a field has been set. + +### SetLicenseIdNil + +`func (o *LicenseLicenseResponseLicense) SetLicenseIdNil(b bool)` + + SetLicenseIdNil sets the value for LicenseId to be an explicit nil + +### UnsetLicenseId +`func (o *LicenseLicenseResponseLicense) UnsetLicenseId()` + +UnsetLicenseId ensures that no value is present for LicenseId, not even an explicit nil +### GetCustomer + +`func (o *LicenseLicenseResponseLicense) GetCustomer() LicenseLicenseResponseLicensedCustomer` + +GetCustomer returns the Customer field if non-nil, zero value otherwise. + +### GetCustomerOk + +`func (o *LicenseLicenseResponseLicense) GetCustomerOk() (*LicenseLicenseResponseLicensedCustomer, bool)` + +GetCustomerOk returns a tuple with the Customer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomer + +`func (o *LicenseLicenseResponseLicense) SetCustomer(v LicenseLicenseResponseLicensedCustomer)` + +SetCustomer sets Customer field to given value. + +### HasCustomer + +`func (o *LicenseLicenseResponseLicense) HasCustomer() bool` + +HasCustomer returns a boolean if a field has been set. + +### GetIssuedDate + +`func (o *LicenseLicenseResponseLicense) GetIssuedDate() time.Time` + +GetIssuedDate returns the IssuedDate field if non-nil, zero value otherwise. + +### GetIssuedDateOk + +`func (o *LicenseLicenseResponseLicense) GetIssuedDateOk() (*time.Time, bool)` + +GetIssuedDateOk returns a tuple with the IssuedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDate + +`func (o *LicenseLicenseResponseLicense) SetIssuedDate(v time.Time)` + +SetIssuedDate sets IssuedDate field to given value. + +### HasIssuedDate + +`func (o *LicenseLicenseResponseLicense) HasIssuedDate() bool` + +HasIssuedDate returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *LicenseLicenseResponseLicense) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *LicenseLicenseResponseLicense) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *LicenseLicenseResponseLicense) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *LicenseLicenseResponseLicense) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + +### SetExpirationDateNil + +`func (o *LicenseLicenseResponseLicense) SetExpirationDateNil(b bool)` + + SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil + +### UnsetExpirationDate +`func (o *LicenseLicenseResponseLicense) UnsetExpirationDate()` + +UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil +### GetLicensedProducts + +`func (o *LicenseLicenseResponseLicense) GetLicensedProducts() []LicenseLicenseResponseLicensedProduct` + +GetLicensedProducts returns the LicensedProducts field if non-nil, zero value otherwise. + +### GetLicensedProductsOk + +`func (o *LicenseLicenseResponseLicense) GetLicensedProductsOk() (*[]LicenseLicenseResponseLicensedProduct, bool)` + +GetLicensedProductsOk returns a tuple with the LicensedProducts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicensedProducts + +`func (o *LicenseLicenseResponseLicense) SetLicensedProducts(v []LicenseLicenseResponseLicensedProduct)` + +SetLicensedProducts sets LicensedProducts field to given value. + +### HasLicensedProducts + +`func (o *LicenseLicenseResponseLicense) HasLicensedProducts() bool` + +HasLicensedProducts returns a boolean if a field has been set. + +### SetLicensedProductsNil + +`func (o *LicenseLicenseResponseLicense) SetLicensedProductsNil(b bool)` + + SetLicensedProductsNil sets the value for LicensedProducts to be an explicit nil + +### UnsetLicensedProducts +`func (o *LicenseLicenseResponseLicense) UnsetLicensedProducts()` + +UnsetLicensedProducts ensures that no value is present for LicensedProducts, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedCustomer.md b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedCustomer.md new file mode 100644 index 0000000..51d3608 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedCustomer.md @@ -0,0 +1,102 @@ +# LicenseLicenseResponseLicensedCustomer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewLicenseLicenseResponseLicensedCustomer + +`func NewLicenseLicenseResponseLicensedCustomer() *LicenseLicenseResponseLicensedCustomer` + +NewLicenseLicenseResponseLicensedCustomer instantiates a new LicenseLicenseResponseLicensedCustomer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseLicenseResponseLicensedCustomerWithDefaults + +`func NewLicenseLicenseResponseLicensedCustomerWithDefaults() *LicenseLicenseResponseLicensedCustomer` + +NewLicenseLicenseResponseLicensedCustomerWithDefaults instantiates a new LicenseLicenseResponseLicensedCustomer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *LicenseLicenseResponseLicensedCustomer) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LicenseLicenseResponseLicensedCustomer) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LicenseLicenseResponseLicensedCustomer) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LicenseLicenseResponseLicensedCustomer) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *LicenseLicenseResponseLicensedCustomer) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *LicenseLicenseResponseLicensedCustomer) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetId + +`func (o *LicenseLicenseResponseLicensedCustomer) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LicenseLicenseResponseLicensedCustomer) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LicenseLicenseResponseLicensedCustomer) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *LicenseLicenseResponseLicensedCustomer) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *LicenseLicenseResponseLicensedCustomer) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LicenseLicenseResponseLicensedCustomer) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedFeature.md b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedFeature.md new file mode 100644 index 0000000..7abceb5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedFeature.md @@ -0,0 +1,200 @@ +# LicenseLicenseResponseLicensedFeature + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeatureID** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Quantity** | Pointer to **NullableInt32** | | [optional] +**ExpirationDate** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewLicenseLicenseResponseLicensedFeature + +`func NewLicenseLicenseResponseLicensedFeature() *LicenseLicenseResponseLicensedFeature` + +NewLicenseLicenseResponseLicensedFeature instantiates a new LicenseLicenseResponseLicensedFeature object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseLicenseResponseLicensedFeatureWithDefaults + +`func NewLicenseLicenseResponseLicensedFeatureWithDefaults() *LicenseLicenseResponseLicensedFeature` + +NewLicenseLicenseResponseLicensedFeatureWithDefaults instantiates a new LicenseLicenseResponseLicensedFeature object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFeatureID + +`func (o *LicenseLicenseResponseLicensedFeature) GetFeatureID() string` + +GetFeatureID returns the FeatureID field if non-nil, zero value otherwise. + +### GetFeatureIDOk + +`func (o *LicenseLicenseResponseLicensedFeature) GetFeatureIDOk() (*string, bool)` + +GetFeatureIDOk returns a tuple with the FeatureID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureID + +`func (o *LicenseLicenseResponseLicensedFeature) SetFeatureID(v string)` + +SetFeatureID sets FeatureID field to given value. + +### HasFeatureID + +`func (o *LicenseLicenseResponseLicensedFeature) HasFeatureID() bool` + +HasFeatureID returns a boolean if a field has been set. + +### SetFeatureIDNil + +`func (o *LicenseLicenseResponseLicensedFeature) SetFeatureIDNil(b bool)` + + SetFeatureIDNil sets the value for FeatureID to be an explicit nil + +### UnsetFeatureID +`func (o *LicenseLicenseResponseLicensedFeature) UnsetFeatureID()` + +UnsetFeatureID ensures that no value is present for FeatureID, not even an explicit nil +### GetDisplayName + +`func (o *LicenseLicenseResponseLicensedFeature) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *LicenseLicenseResponseLicensedFeature) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *LicenseLicenseResponseLicensedFeature) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *LicenseLicenseResponseLicensedFeature) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *LicenseLicenseResponseLicensedFeature) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *LicenseLicenseResponseLicensedFeature) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetEnabled + +`func (o *LicenseLicenseResponseLicensedFeature) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *LicenseLicenseResponseLicensedFeature) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *LicenseLicenseResponseLicensedFeature) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *LicenseLicenseResponseLicensedFeature) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetQuantity + +`func (o *LicenseLicenseResponseLicensedFeature) GetQuantity() int32` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *LicenseLicenseResponseLicensedFeature) GetQuantityOk() (*int32, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *LicenseLicenseResponseLicensedFeature) SetQuantity(v int32)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *LicenseLicenseResponseLicensedFeature) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *LicenseLicenseResponseLicensedFeature) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *LicenseLicenseResponseLicensedFeature) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetExpirationDate + +`func (o *LicenseLicenseResponseLicensedFeature) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *LicenseLicenseResponseLicensedFeature) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *LicenseLicenseResponseLicensedFeature) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *LicenseLicenseResponseLicensedFeature) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + +### SetExpirationDateNil + +`func (o *LicenseLicenseResponseLicensedFeature) SetExpirationDateNil(b bool)` + + SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil + +### UnsetExpirationDate +`func (o *LicenseLicenseResponseLicensedFeature) UnsetExpirationDate()` + +UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedProduct.md b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedProduct.md new file mode 100644 index 0000000..6df4568 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LicenseLicenseResponseLicensedProduct.md @@ -0,0 +1,210 @@ +# LicenseLicenseResponseLicensedProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProductId** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**MajorRev** | Pointer to **NullableString** | | [optional] +**MinorRev** | Pointer to **NullableString** | | [optional] +**LicensedFeatures** | Pointer to [**[]LicenseLicenseResponseLicensedFeature**](LicenseLicenseResponseLicensedFeature.md) | | [optional] + +## Methods + +### NewLicenseLicenseResponseLicensedProduct + +`func NewLicenseLicenseResponseLicensedProduct() *LicenseLicenseResponseLicensedProduct` + +NewLicenseLicenseResponseLicensedProduct instantiates a new LicenseLicenseResponseLicensedProduct object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLicenseLicenseResponseLicensedProductWithDefaults + +`func NewLicenseLicenseResponseLicensedProductWithDefaults() *LicenseLicenseResponseLicensedProduct` + +NewLicenseLicenseResponseLicensedProductWithDefaults instantiates a new LicenseLicenseResponseLicensedProduct object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProductId + +`func (o *LicenseLicenseResponseLicensedProduct) GetProductId() string` + +GetProductId returns the ProductId field if non-nil, zero value otherwise. + +### GetProductIdOk + +`func (o *LicenseLicenseResponseLicensedProduct) GetProductIdOk() (*string, bool)` + +GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductId + +`func (o *LicenseLicenseResponseLicensedProduct) SetProductId(v string)` + +SetProductId sets ProductId field to given value. + +### HasProductId + +`func (o *LicenseLicenseResponseLicensedProduct) HasProductId() bool` + +HasProductId returns a boolean if a field has been set. + +### SetProductIdNil + +`func (o *LicenseLicenseResponseLicensedProduct) SetProductIdNil(b bool)` + + SetProductIdNil sets the value for ProductId to be an explicit nil + +### UnsetProductId +`func (o *LicenseLicenseResponseLicensedProduct) UnsetProductId()` + +UnsetProductId ensures that no value is present for ProductId, not even an explicit nil +### GetDisplayName + +`func (o *LicenseLicenseResponseLicensedProduct) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *LicenseLicenseResponseLicensedProduct) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *LicenseLicenseResponseLicensedProduct) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *LicenseLicenseResponseLicensedProduct) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *LicenseLicenseResponseLicensedProduct) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *LicenseLicenseResponseLicensedProduct) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetMajorRev + +`func (o *LicenseLicenseResponseLicensedProduct) GetMajorRev() string` + +GetMajorRev returns the MajorRev field if non-nil, zero value otherwise. + +### GetMajorRevOk + +`func (o *LicenseLicenseResponseLicensedProduct) GetMajorRevOk() (*string, bool)` + +GetMajorRevOk returns a tuple with the MajorRev field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMajorRev + +`func (o *LicenseLicenseResponseLicensedProduct) SetMajorRev(v string)` + +SetMajorRev sets MajorRev field to given value. + +### HasMajorRev + +`func (o *LicenseLicenseResponseLicensedProduct) HasMajorRev() bool` + +HasMajorRev returns a boolean if a field has been set. + +### SetMajorRevNil + +`func (o *LicenseLicenseResponseLicensedProduct) SetMajorRevNil(b bool)` + + SetMajorRevNil sets the value for MajorRev to be an explicit nil + +### UnsetMajorRev +`func (o *LicenseLicenseResponseLicensedProduct) UnsetMajorRev()` + +UnsetMajorRev ensures that no value is present for MajorRev, not even an explicit nil +### GetMinorRev + +`func (o *LicenseLicenseResponseLicensedProduct) GetMinorRev() string` + +GetMinorRev returns the MinorRev field if non-nil, zero value otherwise. + +### GetMinorRevOk + +`func (o *LicenseLicenseResponseLicensedProduct) GetMinorRevOk() (*string, bool)` + +GetMinorRevOk returns a tuple with the MinorRev field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinorRev + +`func (o *LicenseLicenseResponseLicensedProduct) SetMinorRev(v string)` + +SetMinorRev sets MinorRev field to given value. + +### HasMinorRev + +`func (o *LicenseLicenseResponseLicensedProduct) HasMinorRev() bool` + +HasMinorRev returns a boolean if a field has been set. + +### SetMinorRevNil + +`func (o *LicenseLicenseResponseLicensedProduct) SetMinorRevNil(b bool)` + + SetMinorRevNil sets the value for MinorRev to be an explicit nil + +### UnsetMinorRev +`func (o *LicenseLicenseResponseLicensedProduct) UnsetMinorRev()` + +UnsetMinorRev ensures that no value is present for MinorRev, not even an explicit nil +### GetLicensedFeatures + +`func (o *LicenseLicenseResponseLicensedProduct) GetLicensedFeatures() []LicenseLicenseResponseLicensedFeature` + +GetLicensedFeatures returns the LicensedFeatures field if non-nil, zero value otherwise. + +### GetLicensedFeaturesOk + +`func (o *LicenseLicenseResponseLicensedProduct) GetLicensedFeaturesOk() (*[]LicenseLicenseResponseLicensedFeature, bool)` + +GetLicensedFeaturesOk returns a tuple with the LicensedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicensedFeatures + +`func (o *LicenseLicenseResponseLicensedProduct) SetLicensedFeatures(v []LicenseLicenseResponseLicensedFeature)` + +SetLicensedFeatures sets LicensedFeatures field to given value. + +### HasLicensedFeatures + +`func (o *LicenseLicenseResponseLicensedProduct) HasLicensedFeatures() bool` + +HasLicensedFeatures returns a boolean if a field has been set. + +### SetLicensedFeaturesNil + +`func (o *LicenseLicenseResponseLicensedProduct) SetLicensedFeaturesNil(b bool)` + + SetLicensedFeaturesNil sets the value for LicensedFeatures to be an explicit nil + +### UnsetLicensedFeatures +`func (o *LicenseLicenseResponseLicensedProduct) UnsetLicensedFeatures()` + +UnsetLicensedFeatures ensures that no value is present for LicensedFeatures, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/LogonApi.md b/v24/api/keyfactor/v1/docs/LogonApi.md new file mode 100644 index 0000000..b72464b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/LogonApi.md @@ -0,0 +1,367 @@ +# \LogonApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHLogons**](LogonApi.md#CreateSSHLogons) | **POST** /SSH/Logons | Creates a logon with the provided properties +[**CreateSSHLogonsAccess**](LogonApi.md#CreateSSHLogonsAccess) | **POST** /SSH/Logons/Access | Updates the users with access to an existing logon +[**DeleteSSHLogonsById**](LogonApi.md#DeleteSSHLogonsById) | **DELETE** /SSH/Logons/{id} | Deletes a Logon associated with the provided identifier +[**GetSSHLogons**](LogonApi.md#GetSSHLogons) | **GET** /SSH/Logons | Returns all Logons according to the provided filter parameters +[**GetSSHLogonsById**](LogonApi.md#GetSSHLogonsById) | **GET** /SSH/Logons/{id} | Fetches a Logon associated with the provided identifier + + + +## CreateSSHLogons + +> CSSCMSDataModelModelsSSHLogonsLogonResponse NewCreateSSHLogonsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHLogonsLogonCreationRequest(cSSCMSDataModelModelsSSHLogonsLogonCreationRequest).Execute() + +Creates a logon with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHLogonsLogonCreationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest("Username_example", int32(123)) // CSSCMSDataModelModelsSSHLogonsLogonCreationRequest | Logon properties to be applied to the new logon (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.NewCreateSSHLogonsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHLogonsLogonCreationRequest(cSSCMSDataModelModelsSSHLogonsLogonCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.CreateSSHLogons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHLogons`: CSSCMSDataModelModelsSSHLogonsLogonResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.CreateSSHLogons`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHLogonsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHLogonsLogonCreationRequest** | [**CSSCMSDataModelModelsSSHLogonsLogonCreationRequest**](CSSCMSDataModelModelsSSHLogonsLogonCreationRequest.md) | Logon properties to be applied to the new logon | + +### Return type + +[**CSSCMSDataModelModelsSSHLogonsLogonResponse**](CSSCMSDataModelModelsSSHLogonsLogonResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSHLogonsAccess + +> CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse NewCreateSSHLogonsAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHLogonsLogonAccessRequest(cSSCMSDataModelModelsSSHLogonsLogonAccessRequest).Execute() + +Updates the users with access to an existing logon + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHLogonsLogonAccessRequest := *openapiclient.NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest(int32(123)) // CSSCMSDataModelModelsSSHLogonsLogonAccessRequest | Users to add the existing logon (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.NewCreateSSHLogonsAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHLogonsLogonAccessRequest(cSSCMSDataModelModelsSSHLogonsLogonAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.CreateSSHLogonsAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHLogonsAccess`: CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.CreateSSHLogonsAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHLogonsAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHLogonsLogonAccessRequest** | [**CSSCMSDataModelModelsSSHLogonsLogonAccessRequest**](CSSCMSDataModelModelsSSHLogonsLogonAccessRequest.md) | Users to add the existing logon | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse**](CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHLogonsById + +> NewDeleteSSHLogonsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a Logon associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Logon to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.NewDeleteSSHLogonsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.DeleteSSHLogonsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Logon to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHLogonsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHLogons + +> []CSSCMSDataModelModelsSSHLogonsLogonQueryResponse NewGetSSHLogonsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all Logons according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.NewGetSSHLogonsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.GetSSHLogons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHLogons`: []CSSCMSDataModelModelsSSHLogonsLogonQueryResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.GetSSHLogons`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHLogonsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHLogonsLogonQueryResponse**](CSSCMSDataModelModelsSSHLogonsLogonQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHLogonsById + +> CSSCMSDataModelModelsSSHLogonsLogonResponse NewGetSSHLogonsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Fetches a Logon associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Logon to be Fetched + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.NewGetSSHLogonsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.GetSSHLogonsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHLogonsById`: CSSCMSDataModelModelsSSHLogonsLogonResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.GetSSHLogonsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Logon to be Fetched | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHLogonsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHLogonsLogonResponse**](CSSCMSDataModelModelsSSHLogonsLogonResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/MacEnrollmentApi.md b/v24/api/keyfactor/v1/docs/MacEnrollmentApi.md new file mode 100644 index 0000000..f0fbd31 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MacEnrollmentApi.md @@ -0,0 +1,148 @@ +# \MacEnrollmentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetMacEnrollment**](MacEnrollmentApi.md#GetMacEnrollment) | **GET** /MacEnrollment | Gets mac enrollment settings data +[**UpdateMacEnrollment**](MacEnrollmentApi.md#UpdateMacEnrollment) | **PUT** /MacEnrollment | Updates mac enrollment settings data + + + +## GetMacEnrollment + +> MacEnrollmentMacEnrollmentAPIModel NewGetMacEnrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets mac enrollment settings data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MacEnrollmentApi.NewGetMacEnrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.GetMacEnrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMacEnrollment`: MacEnrollmentMacEnrollmentAPIModel + fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.GetMacEnrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMacEnrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**MacEnrollmentMacEnrollmentAPIModel**](MacEnrollmentMacEnrollmentAPIModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateMacEnrollment + +> MacEnrollmentMacEnrollmentAPIModel NewUpdateMacEnrollmentRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MacEnrollmentMacEnrollmentAPIModel(macEnrollmentMacEnrollmentAPIModel).Execute() + +Updates mac enrollment settings data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + macEnrollmentMacEnrollmentAPIModel := *openapiclient.NewMacEnrollmentMacEnrollmentAPIModel() // MacEnrollmentMacEnrollmentAPIModel | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MacEnrollmentApi.NewUpdateMacEnrollmentRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MacEnrollmentMacEnrollmentAPIModel(macEnrollmentMacEnrollmentAPIModel).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.UpdateMacEnrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMacEnrollment`: MacEnrollmentMacEnrollmentAPIModel + fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.UpdateMacEnrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateMacEnrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **macEnrollmentMacEnrollmentAPIModel** | [**MacEnrollmentMacEnrollmentAPIModel**](MacEnrollmentMacEnrollmentAPIModel.md) | | + +### Return type + +[**MacEnrollmentMacEnrollmentAPIModel**](MacEnrollmentMacEnrollmentAPIModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/MacEnrollmentMacEnrollmentAPIModel.md b/v24/api/keyfactor/v1/docs/MacEnrollmentMacEnrollmentAPIModel.md new file mode 100644 index 0000000..8512642 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MacEnrollmentMacEnrollmentAPIModel.md @@ -0,0 +1,206 @@ +# MacEnrollmentMacEnrollmentAPIModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Interval** | Pointer to **int32** | | [optional] +**UseMetadata** | Pointer to **bool** | | [optional] +**MetadataField** | Pointer to **NullableString** | | [optional] +**MetadataValue** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewMacEnrollmentMacEnrollmentAPIModel + +`func NewMacEnrollmentMacEnrollmentAPIModel() *MacEnrollmentMacEnrollmentAPIModel` + +NewMacEnrollmentMacEnrollmentAPIModel instantiates a new MacEnrollmentMacEnrollmentAPIModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMacEnrollmentMacEnrollmentAPIModelWithDefaults + +`func NewMacEnrollmentMacEnrollmentAPIModelWithDefaults() *MacEnrollmentMacEnrollmentAPIModel` + +NewMacEnrollmentMacEnrollmentAPIModelWithDefaults instantiates a new MacEnrollmentMacEnrollmentAPIModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEnabled + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetInterval + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetUseMetadata + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetUseMetadata() bool` + +GetUseMetadata returns the UseMetadata field if non-nil, zero value otherwise. + +### GetUseMetadataOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetUseMetadataOk() (*bool, bool)` + +GetUseMetadataOk returns a tuple with the UseMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseMetadata + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetUseMetadata(v bool)` + +SetUseMetadata sets UseMetadata field to given value. + +### HasUseMetadata + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasUseMetadata() bool` + +HasUseMetadata returns a boolean if a field has been set. + +### GetMetadataField + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataField() string` + +GetMetadataField returns the MetadataField field if non-nil, zero value otherwise. + +### GetMetadataFieldOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataFieldOk() (*string, bool)` + +GetMetadataFieldOk returns a tuple with the MetadataField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataField + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataField(v string)` + +SetMetadataField sets MetadataField field to given value. + +### HasMetadataField + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasMetadataField() bool` + +HasMetadataField returns a boolean if a field has been set. + +### SetMetadataFieldNil + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataFieldNil(b bool)` + + SetMetadataFieldNil sets the value for MetadataField to be an explicit nil + +### UnsetMetadataField +`func (o *MacEnrollmentMacEnrollmentAPIModel) UnsetMetadataField()` + +UnsetMetadataField ensures that no value is present for MetadataField, not even an explicit nil +### GetMetadataValue + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataValue() string` + +GetMetadataValue returns the MetadataValue field if non-nil, zero value otherwise. + +### GetMetadataValueOk + +`func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataValueOk() (*string, bool)` + +GetMetadataValueOk returns a tuple with the MetadataValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataValue + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataValue(v string)` + +SetMetadataValue sets MetadataValue field to given value. + +### HasMetadataValue + +`func (o *MacEnrollmentMacEnrollmentAPIModel) HasMetadataValue() bool` + +HasMetadataValue returns a boolean if a field has been set. + +### SetMetadataValueNil + +`func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataValueNil(b bool)` + + SetMetadataValueNil sets the value for MetadataValue to be an explicit nil + +### UnsetMetadataValue +`func (o *MacEnrollmentMacEnrollmentAPIModel) UnsetMetadataValue()` + +UnsetMetadataValue ensures that no value is present for MetadataValue, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MetadataFieldApi.md b/v24/api/keyfactor/v1/docs/MetadataFieldApi.md new file mode 100644 index 0000000..c931794 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MetadataFieldApi.md @@ -0,0 +1,596 @@ +# \MetadataFieldApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMetadataFields**](MetadataFieldApi.md#CreateMetadataFields) | **POST** /MetadataFields | Creates a new metadata field type with the given metadata field type properties +[**DeleteMetadataFields**](MetadataFieldApi.md#DeleteMetadataFields) | **DELETE** /MetadataFields | Deletes multiple persisted metadata field types by their unique ids +[**DeleteMetadataFieldsById**](MetadataFieldApi.md#DeleteMetadataFieldsById) | **DELETE** /MetadataFields/{id} | Deletes a persisted metadata field type by its unique id +[**GetMetadataFields**](MetadataFieldApi.md#GetMetadataFields) | **GET** /MetadataFields | Returns all metadata field types according to the provided filter and output parameters +[**GetMetadataFieldsById**](MetadataFieldApi.md#GetMetadataFieldsById) | **GET** /MetadataFields/{id} | Gets a persisted metadata field type by its unique id +[**GetMetadataFieldsByIdInUse**](MetadataFieldApi.md#GetMetadataFieldsByIdInUse) | **GET** /MetadataFields/{id}/InUse | Determines if a metadata field type associated with the provided identifier is currently in use +[**GetMetadataFieldsName**](MetadataFieldApi.md#GetMetadataFieldsName) | **GET** /MetadataFields/{name} | Gets a persisted metadata field type by its unique name +[**UpdateMetadataFields**](MetadataFieldApi.md#UpdateMetadataFields) | **PUT** /MetadataFields | Updates a persisted metadata field with the given metadata field type + + + +## CreateMetadataFields + +> MetadataFieldMetadataFieldResponse NewCreateMetadataFieldsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MetadataFieldMetadataFieldCreateRequest(metadataFieldMetadataFieldCreateRequest).Execute() + +Creates a new metadata field type with the given metadata field type properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + metadataFieldMetadataFieldCreateRequest := *openapiclient.NewMetadataFieldMetadataFieldCreateRequest("Name_example", "Description_example", openapiclient.CSS.CMS.Core.Enums.MetadataDataType(1)) // MetadataFieldMetadataFieldCreateRequest | Properties of the metadata field type to be created (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewCreateMetadataFieldsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MetadataFieldMetadataFieldCreateRequest(metadataFieldMetadataFieldCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.CreateMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMetadataFields`: MetadataFieldMetadataFieldResponse + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.CreateMetadataFields`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **metadataFieldMetadataFieldCreateRequest** | [**MetadataFieldMetadataFieldCreateRequest**](MetadataFieldMetadataFieldCreateRequest.md) | Properties of the metadata field type to be created | + +### Return type + +[**MetadataFieldMetadataFieldResponse**](MetadataFieldMetadataFieldResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteMetadataFields + +> NewDeleteMetadataFieldsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes multiple persisted metadata field types by their unique ids + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Forces deletion of the metadata field type even if in-use (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers for metadata field types to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewDeleteMetadataFieldsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.DeleteMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Forces deletion of the metadata field type even if in-use | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Array of Keyfactor identifiers for metadata field types to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteMetadataFieldsById + +> NewDeleteMetadataFieldsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted metadata field type by its unique id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the metadata field type + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Forces deletion of the metadata field type even if in-use (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewDeleteMetadataFieldsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.DeleteMetadataFieldsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the metadata field type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteMetadataFieldsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Forces deletion of the metadata field type even if in-use | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetadataFields + +> []CSSCMSDataModelModelsMetadataType NewGetMetadataFieldsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all metadata field types according to the provided filter and output parameters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewGetMetadataFieldsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.GetMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetadataFields`: []CSSCMSDataModelModelsMetadataType + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.GetMetadataFields`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsMetadataType**](CSSCMSDataModelModelsMetadataType.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetadataFieldsById + +> CSSCMSDataModelModelsMetadataType NewGetMetadataFieldsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a persisted metadata field type by its unique id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The unique id of the metadata field type + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewGetMetadataFieldsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.GetMetadataFieldsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetadataFieldsById`: CSSCMSDataModelModelsMetadataType + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.GetMetadataFieldsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The unique id of the metadata field type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetadataFieldsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsMetadataType**](CSSCMSDataModelModelsMetadataType.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetadataFieldsByIdInUse + +> bool NewGetMetadataFieldsByIdInUseRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Determines if a metadata field type associated with the provided identifier is currently in use + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identitifer of the metadata field + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewGetMetadataFieldsByIdInUseRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.GetMetadataFieldsByIdInUse``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetadataFieldsByIdInUse`: bool + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.GetMetadataFieldsByIdInUse`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identitifer of the metadata field | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetadataFieldsByIdInUseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetadataFieldsName + +> CSSCMSDataModelModelsMetadataType NewGetMetadataFieldsNameRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a persisted metadata field type by its unique name + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | The unique name of the metadata field. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewGetMetadataFieldsNameRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.GetMetadataFieldsName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetadataFieldsName`: CSSCMSDataModelModelsMetadataType + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.GetMetadataFieldsName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The unique name of the metadata field. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetadataFieldsNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsMetadataType**](CSSCMSDataModelModelsMetadataType.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateMetadataFields + +> MetadataFieldMetadataFieldResponse NewUpdateMetadataFieldsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MetadataFieldMetadataFieldUpdateRequest(metadataFieldMetadataFieldUpdateRequest).Execute() + +Updates a persisted metadata field with the given metadata field type + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + metadataFieldMetadataFieldUpdateRequest := *openapiclient.NewMetadataFieldMetadataFieldUpdateRequest(int32(123), "Name_example", "Description_example", openapiclient.CSS.CMS.Core.Enums.MetadataDataType(1), int32(123)) // MetadataFieldMetadataFieldUpdateRequest | Properties of the metadata field type to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.NewUpdateMetadataFieldsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MetadataFieldMetadataFieldUpdateRequest(metadataFieldMetadataFieldUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.UpdateMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMetadataFields`: MetadataFieldMetadataFieldResponse + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.UpdateMetadataFields`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **metadataFieldMetadataFieldUpdateRequest** | [**MetadataFieldMetadataFieldUpdateRequest**](MetadataFieldMetadataFieldUpdateRequest.md) | Properties of the metadata field type to be updated | + +### Return type + +[**MetadataFieldMetadataFieldResponse**](MetadataFieldMetadataFieldResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldCreateRequest.md b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldCreateRequest.md new file mode 100644 index 0000000..50028a8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldCreateRequest.md @@ -0,0 +1,439 @@ +# MetadataFieldMetadataFieldCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | +**DataType** | [**CSSCMSCoreEnumsMetadataDataType**](CSSCMSCoreEnumsMetadataDataType.md) | | +**Hint** | Pointer to **NullableString** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**AllowAPI** | Pointer to **bool** | | [optional] +**ExplicitUpdate** | Pointer to **bool** | | [optional] +**DisplayOrder** | Pointer to **NullableInt32** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] +**ExemptFromActionedCount** | Pointer to **bool** | | [optional] + +## Methods + +### NewMetadataFieldMetadataFieldCreateRequest + +`func NewMetadataFieldMetadataFieldCreateRequest(name string, description string, dataType CSSCMSCoreEnumsMetadataDataType, ) *MetadataFieldMetadataFieldCreateRequest` + +NewMetadataFieldMetadataFieldCreateRequest instantiates a new MetadataFieldMetadataFieldCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetadataFieldMetadataFieldCreateRequestWithDefaults + +`func NewMetadataFieldMetadataFieldCreateRequestWithDefaults() *MetadataFieldMetadataFieldCreateRequest` + +NewMetadataFieldMetadataFieldCreateRequestWithDefaults instantiates a new MetadataFieldMetadataFieldCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDataType + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDataType() CSSCMSCoreEnumsMetadataDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDataType(v CSSCMSCoreEnumsMetadataDataType)` + +SetDataType sets DataType field to given value. + + +### GetHint + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### SetHintNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetHintNil(b bool)` + + SetHintNil sets the value for Hint to be an explicit nil + +### UnsetHint +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetHint()` + +UnsetHint ensures that no value is present for Hint, not even an explicit nil +### GetValidation + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetEnrollment + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetOptions + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDefaultValue + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetAllowAPI + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetAllowAPI() bool` + +GetAllowAPI returns the AllowAPI field if non-nil, zero value otherwise. + +### GetAllowAPIOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetAllowAPIOk() (*bool, bool)` + +GetAllowAPIOk returns a tuple with the AllowAPI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowAPI + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetAllowAPI(v bool)` + +SetAllowAPI sets AllowAPI field to given value. + +### HasAllowAPI + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasAllowAPI() bool` + +HasAllowAPI returns a boolean if a field has been set. + +### GetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetExplicitUpdate() bool` + +GetExplicitUpdate returns the ExplicitUpdate field if non-nil, zero value otherwise. + +### GetExplicitUpdateOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetExplicitUpdateOk() (*bool, bool)` + +GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetExplicitUpdate(v bool)` + +SetExplicitUpdate sets ExplicitUpdate field to given value. + +### HasExplicitUpdate + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasExplicitUpdate() bool` + +HasExplicitUpdate returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + +### SetDisplayOrderNil + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetDisplayOrderNil(b bool)` + + SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil + +### UnsetDisplayOrder +`func (o *MetadataFieldMetadataFieldCreateRequest) UnsetDisplayOrder()` + +UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +### GetCaseSensitive + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetExemptFromActionedCount() bool` + +GetExemptFromActionedCount returns the ExemptFromActionedCount field if non-nil, zero value otherwise. + +### GetExemptFromActionedCountOk + +`func (o *MetadataFieldMetadataFieldCreateRequest) GetExemptFromActionedCountOk() (*bool, bool)` + +GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldCreateRequest) SetExemptFromActionedCount(v bool)` + +SetExemptFromActionedCount sets ExemptFromActionedCount field to given value. + +### HasExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldCreateRequest) HasExemptFromActionedCount() bool` + +HasExemptFromActionedCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldResponse.md b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldResponse.md new file mode 100644 index 0000000..0ef983e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldResponse.md @@ -0,0 +1,500 @@ +# MetadataFieldMetadataFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSCoreEnumsMetadataDataType**](CSSCMSCoreEnumsMetadataDataType.md) | | [optional] +**Hint** | Pointer to **NullableString** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**AllowAPI** | Pointer to **bool** | | [optional] +**ExplicitUpdate** | Pointer to **bool** | | [optional] +**DisplayOrder** | Pointer to **NullableInt32** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] +**ExemptFromActionedCount** | Pointer to **bool** | | [optional] + +## Methods + +### NewMetadataFieldMetadataFieldResponse + +`func NewMetadataFieldMetadataFieldResponse() *MetadataFieldMetadataFieldResponse` + +NewMetadataFieldMetadataFieldResponse instantiates a new MetadataFieldMetadataFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetadataFieldMetadataFieldResponseWithDefaults + +`func NewMetadataFieldMetadataFieldResponseWithDefaults() *MetadataFieldMetadataFieldResponse` + +NewMetadataFieldMetadataFieldResponseWithDefaults instantiates a new MetadataFieldMetadataFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MetadataFieldMetadataFieldResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetadataFieldMetadataFieldResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MetadataFieldMetadataFieldResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetadataFieldMetadataFieldResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *MetadataFieldMetadataFieldResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MetadataFieldMetadataFieldResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MetadataFieldMetadataFieldResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *MetadataFieldMetadataFieldResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *MetadataFieldMetadataFieldResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *MetadataFieldMetadataFieldResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *MetadataFieldMetadataFieldResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MetadataFieldMetadataFieldResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MetadataFieldMetadataFieldResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MetadataFieldMetadataFieldResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *MetadataFieldMetadataFieldResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *MetadataFieldMetadataFieldResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDataType + +`func (o *MetadataFieldMetadataFieldResponse) GetDataType() CSSCMSCoreEnumsMetadataDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *MetadataFieldMetadataFieldResponse) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *MetadataFieldMetadataFieldResponse) SetDataType(v CSSCMSCoreEnumsMetadataDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *MetadataFieldMetadataFieldResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetHint + +`func (o *MetadataFieldMetadataFieldResponse) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *MetadataFieldMetadataFieldResponse) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *MetadataFieldMetadataFieldResponse) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *MetadataFieldMetadataFieldResponse) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### SetHintNil + +`func (o *MetadataFieldMetadataFieldResponse) SetHintNil(b bool)` + + SetHintNil sets the value for Hint to be an explicit nil + +### UnsetHint +`func (o *MetadataFieldMetadataFieldResponse) UnsetHint()` + +UnsetHint ensures that no value is present for Hint, not even an explicit nil +### GetValidation + +`func (o *MetadataFieldMetadataFieldResponse) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *MetadataFieldMetadataFieldResponse) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *MetadataFieldMetadataFieldResponse) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *MetadataFieldMetadataFieldResponse) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *MetadataFieldMetadataFieldResponse) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *MetadataFieldMetadataFieldResponse) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetEnrollment + +`func (o *MetadataFieldMetadataFieldResponse) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *MetadataFieldMetadataFieldResponse) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *MetadataFieldMetadataFieldResponse) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *MetadataFieldMetadataFieldResponse) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *MetadataFieldMetadataFieldResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataFieldMetadataFieldResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *MetadataFieldMetadataFieldResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *MetadataFieldMetadataFieldResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *MetadataFieldMetadataFieldResponse) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *MetadataFieldMetadataFieldResponse) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetOptions + +`func (o *MetadataFieldMetadataFieldResponse) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *MetadataFieldMetadataFieldResponse) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *MetadataFieldMetadataFieldResponse) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *MetadataFieldMetadataFieldResponse) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *MetadataFieldMetadataFieldResponse) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *MetadataFieldMetadataFieldResponse) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDefaultValue + +`func (o *MetadataFieldMetadataFieldResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *MetadataFieldMetadataFieldResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *MetadataFieldMetadataFieldResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *MetadataFieldMetadataFieldResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *MetadataFieldMetadataFieldResponse) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *MetadataFieldMetadataFieldResponse) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetAllowAPI + +`func (o *MetadataFieldMetadataFieldResponse) GetAllowAPI() bool` + +GetAllowAPI returns the AllowAPI field if non-nil, zero value otherwise. + +### GetAllowAPIOk + +`func (o *MetadataFieldMetadataFieldResponse) GetAllowAPIOk() (*bool, bool)` + +GetAllowAPIOk returns a tuple with the AllowAPI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowAPI + +`func (o *MetadataFieldMetadataFieldResponse) SetAllowAPI(v bool)` + +SetAllowAPI sets AllowAPI field to given value. + +### HasAllowAPI + +`func (o *MetadataFieldMetadataFieldResponse) HasAllowAPI() bool` + +HasAllowAPI returns a boolean if a field has been set. + +### GetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldResponse) GetExplicitUpdate() bool` + +GetExplicitUpdate returns the ExplicitUpdate field if non-nil, zero value otherwise. + +### GetExplicitUpdateOk + +`func (o *MetadataFieldMetadataFieldResponse) GetExplicitUpdateOk() (*bool, bool)` + +GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldResponse) SetExplicitUpdate(v bool)` + +SetExplicitUpdate sets ExplicitUpdate field to given value. + +### HasExplicitUpdate + +`func (o *MetadataFieldMetadataFieldResponse) HasExplicitUpdate() bool` + +HasExplicitUpdate returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *MetadataFieldMetadataFieldResponse) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *MetadataFieldMetadataFieldResponse) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *MetadataFieldMetadataFieldResponse) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *MetadataFieldMetadataFieldResponse) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + +### SetDisplayOrderNil + +`func (o *MetadataFieldMetadataFieldResponse) SetDisplayOrderNil(b bool)` + + SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil + +### UnsetDisplayOrder +`func (o *MetadataFieldMetadataFieldResponse) UnsetDisplayOrder()` + +UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +### GetCaseSensitive + +`func (o *MetadataFieldMetadataFieldResponse) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *MetadataFieldMetadataFieldResponse) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *MetadataFieldMetadataFieldResponse) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *MetadataFieldMetadataFieldResponse) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldResponse) GetExemptFromActionedCount() bool` + +GetExemptFromActionedCount returns the ExemptFromActionedCount field if non-nil, zero value otherwise. + +### GetExemptFromActionedCountOk + +`func (o *MetadataFieldMetadataFieldResponse) GetExemptFromActionedCountOk() (*bool, bool)` + +GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldResponse) SetExemptFromActionedCount(v bool)` + +SetExemptFromActionedCount sets ExemptFromActionedCount field to given value. + +### HasExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldResponse) HasExemptFromActionedCount() bool` + +HasExemptFromActionedCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldUpdateRequest.md b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldUpdateRequest.md new file mode 100644 index 0000000..c1c123e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MetadataFieldMetadataFieldUpdateRequest.md @@ -0,0 +1,445 @@ +# MetadataFieldMetadataFieldUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Description** | **string** | | +**DataType** | [**CSSCMSCoreEnumsMetadataDataType**](CSSCMSCoreEnumsMetadataDataType.md) | | +**Hint** | Pointer to **NullableString** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **NullableString** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**AllowAPI** | Pointer to **bool** | | [optional] +**ExplicitUpdate** | Pointer to **bool** | | [optional] +**DisplayOrder** | **int32** | | +**CaseSensitive** | Pointer to **bool** | | [optional] +**ExemptFromActionedCount** | Pointer to **bool** | | [optional] + +## Methods + +### NewMetadataFieldMetadataFieldUpdateRequest + +`func NewMetadataFieldMetadataFieldUpdateRequest(id int32, name string, description string, dataType CSSCMSCoreEnumsMetadataDataType, displayOrder int32, ) *MetadataFieldMetadataFieldUpdateRequest` + +NewMetadataFieldMetadataFieldUpdateRequest instantiates a new MetadataFieldMetadataFieldUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetadataFieldMetadataFieldUpdateRequestWithDefaults + +`func NewMetadataFieldMetadataFieldUpdateRequestWithDefaults() *MetadataFieldMetadataFieldUpdateRequest` + +NewMetadataFieldMetadataFieldUpdateRequestWithDefaults instantiates a new MetadataFieldMetadataFieldUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDataType + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDataType() CSSCMSCoreEnumsMetadataDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetDataType(v CSSCMSCoreEnumsMetadataDataType)` + +SetDataType sets DataType field to given value. + + +### GetHint + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### SetHintNil + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetHintNil(b bool)` + + SetHintNil sets the value for Hint to be an explicit nil + +### UnsetHint +`func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetHint()` + +UnsetHint ensures that no value is present for Hint, not even an explicit nil +### GetValidation + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetEnrollment + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetOptions + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDefaultValue + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetAllowAPI + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetAllowAPI() bool` + +GetAllowAPI returns the AllowAPI field if non-nil, zero value otherwise. + +### GetAllowAPIOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetAllowAPIOk() (*bool, bool)` + +GetAllowAPIOk returns a tuple with the AllowAPI field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowAPI + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetAllowAPI(v bool)` + +SetAllowAPI sets AllowAPI field to given value. + +### HasAllowAPI + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasAllowAPI() bool` + +HasAllowAPI returns a boolean if a field has been set. + +### GetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetExplicitUpdate() bool` + +GetExplicitUpdate returns the ExplicitUpdate field if non-nil, zero value otherwise. + +### GetExplicitUpdateOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetExplicitUpdateOk() (*bool, bool)` + +GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUpdate + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetExplicitUpdate(v bool)` + +SetExplicitUpdate sets ExplicitUpdate field to given value. + +### HasExplicitUpdate + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasExplicitUpdate() bool` + +HasExplicitUpdate returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + + +### GetCaseSensitive + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetExemptFromActionedCount() bool` + +GetExemptFromActionedCount returns the ExemptFromActionedCount field if non-nil, zero value otherwise. + +### GetExemptFromActionedCountOk + +`func (o *MetadataFieldMetadataFieldUpdateRequest) GetExemptFromActionedCountOk() (*bool, bool)` + +GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldUpdateRequest) SetExemptFromActionedCount(v bool)` + +SetExemptFromActionedCount sets ExemptFromActionedCount field to given value. + +### HasExemptFromActionedCount + +`func (o *MetadataFieldMetadataFieldUpdateRequest) HasExemptFromActionedCount() bool` + +HasExemptFromActionedCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringApi.md b/v24/api/keyfactor/v1/docs/MonitoringApi.md new file mode 100644 index 0000000..19b8457 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringApi.md @@ -0,0 +1,785 @@ +# \MonitoringApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMonitoringResolveOCSP**](MonitoringApi.md#CreateMonitoringResolveOCSP) | **POST** /Monitoring/ResolveOCSP | Resolve the Certificate authority given +[**CreateMonitoringRevocation**](MonitoringApi.md#CreateMonitoringRevocation) | **POST** /Monitoring/Revocation | Add a revocation monitoring endpoint +[**CreateMonitoringRevocationCRLTest**](MonitoringApi.md#CreateMonitoringRevocationCRLTest) | **POST** /Monitoring/Revocation/CRL/Test | Validates the connection info for the CRL provided by the model. +[**CreateMonitoringRevocationOCSPTest**](MonitoringApi.md#CreateMonitoringRevocationOCSPTest) | **POST** /Monitoring/Revocation/OCSP/Test | Validates the connection info for the OCSP endpoint provided by the model. +[**CreateMonitoringRevocationTest**](MonitoringApi.md#CreateMonitoringRevocationTest) | **POST** /Monitoring/Revocation/Test | Test Alert +[**CreateMonitoringRevocationTestAll**](MonitoringApi.md#CreateMonitoringRevocationTestAll) | **POST** /Monitoring/Revocation/TestAll | Test All Alerts +[**DeleteMonitoringRevocationById**](MonitoringApi.md#DeleteMonitoringRevocationById) | **DELETE** /Monitoring/Revocation/{id} | Delete a revocation monitoring endpoint +[**GetMonitoringRevocation**](MonitoringApi.md#GetMonitoringRevocation) | **GET** /Monitoring/Revocation | Gets all revocation monitoring endpoints according to the provided filter and output parameters +[**GetMonitoringRevocationById**](MonitoringApi.md#GetMonitoringRevocationById) | **GET** /Monitoring/Revocation/{id} | Get a revocation monitoring endpoint +[**UpdateMonitoringRevocation**](MonitoringApi.md#UpdateMonitoringRevocation) | **PUT** /Monitoring/Revocation | Edit a revocation monitoring endpoint +[**UpdateMonitoringRevocationSchedule**](MonitoringApi.md#UpdateMonitoringRevocationSchedule) | **PUT** /Monitoring/Revocation/Schedule | Edit a revocation monitoring's schedule. + + + +## CreateMonitoringResolveOCSP + +> MonitoringOCSPParametersResponse NewCreateMonitoringResolveOCSPRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringOCSPParametersRequest(monitoringOCSPParametersRequest).Execute() + +Resolve the Certificate authority given + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringOCSPParametersRequest := *openapiclient.NewMonitoringOCSPParametersRequest() // MonitoringOCSPParametersRequest | Information for the new endpoint (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringResolveOCSPRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringOCSPParametersRequest(monitoringOCSPParametersRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringResolveOCSP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringResolveOCSP`: MonitoringOCSPParametersResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringResolveOCSP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringResolveOCSPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringOCSPParametersRequest** | [**MonitoringOCSPParametersRequest**](MonitoringOCSPParametersRequest.md) | Information for the new endpoint | + +### Return type + +[**MonitoringOCSPParametersResponse**](MonitoringOCSPParametersResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateMonitoringRevocation + +> MonitoringRevocationMonitoringDefinitionResponse NewCreateMonitoringRevocationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringCreationRequest(monitoringRevocationMonitoringCreationRequest).Execute() + +Add a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + forceSave := true // bool | Bypass testing the connection to either the CRL or the OCSP endpoint (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringRevocationMonitoringCreationRequest := *openapiclient.NewMonitoringRevocationMonitoringCreationRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewMonitoringDashboardRequest(false)) // MonitoringRevocationMonitoringCreationRequest | Information for the new endpoint (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringRevocationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringCreationRequest(monitoringRevocationMonitoringCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringRevocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringRevocation`: MonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringRevocation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringRevocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **forceSave** | **bool** | Bypass testing the connection to either the CRL or the OCSP endpoint | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringRevocationMonitoringCreationRequest** | [**MonitoringRevocationMonitoringCreationRequest**](MonitoringRevocationMonitoringCreationRequest.md) | Information for the new endpoint | + +### Return type + +[**MonitoringRevocationMonitoringDefinitionResponse**](MonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateMonitoringRevocationCRLTest + +> CSSCMSDataModelModelsMonitoringCRLTestResponse NewCreateMonitoringRevocationCRLTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMonitoringCRLTestRequest(cSSCMSDataModelModelsMonitoringCRLTestRequest).Execute() + +Validates the connection info for the CRL provided by the model. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsMonitoringCRLTestRequest := *openapiclient.NewCSSCMSDataModelModelsMonitoringCRLTestRequest() // CSSCMSDataModelModelsMonitoringCRLTestRequest | The CRL being tested. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringRevocationCRLTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMonitoringCRLTestRequest(cSSCMSDataModelModelsMonitoringCRLTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringRevocationCRLTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringRevocationCRLTest`: CSSCMSDataModelModelsMonitoringCRLTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringRevocationCRLTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringRevocationCRLTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsMonitoringCRLTestRequest** | [**CSSCMSDataModelModelsMonitoringCRLTestRequest**](CSSCMSDataModelModelsMonitoringCRLTestRequest.md) | The CRL being tested. | + +### Return type + +[**CSSCMSDataModelModelsMonitoringCRLTestResponse**](CSSCMSDataModelModelsMonitoringCRLTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateMonitoringRevocationOCSPTest + +> CSSCMSDataModelModelsMonitoringOCSPTestResponse NewCreateMonitoringRevocationOCSPTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMonitoringOCSPTestRequest(cSSCMSDataModelModelsMonitoringOCSPTestRequest).Execute() + +Validates the connection info for the OCSP endpoint provided by the model. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsMonitoringOCSPTestRequest := *openapiclient.NewCSSCMSDataModelModelsMonitoringOCSPTestRequest() // CSSCMSDataModelModelsMonitoringOCSPTestRequest | The OCSP endpoint being tested. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringRevocationOCSPTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsMonitoringOCSPTestRequest(cSSCMSDataModelModelsMonitoringOCSPTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringRevocationOCSPTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringRevocationOCSPTest`: CSSCMSDataModelModelsMonitoringOCSPTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringRevocationOCSPTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringRevocationOCSPTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsMonitoringOCSPTestRequest** | [**CSSCMSDataModelModelsMonitoringOCSPTestRequest**](CSSCMSDataModelModelsMonitoringOCSPTestRequest.md) | The OCSP endpoint being tested. | + +### Return type + +[**CSSCMSDataModelModelsMonitoringOCSPTestResponse**](CSSCMSDataModelModelsMonitoringOCSPTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateMonitoringRevocationTest + +> MonitoringRevocationMonitoringAlertTestResponse NewCreateMonitoringRevocationTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringAlertTestRequest(monitoringRevocationMonitoringAlertTestRequest).Execute() + +Test Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringRevocationMonitoringAlertTestRequest := *openapiclient.NewMonitoringRevocationMonitoringAlertTestRequest() // MonitoringRevocationMonitoringAlertTestRequest | Information about the revocation monitoring alert test (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringRevocationTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringAlertTestRequest(monitoringRevocationMonitoringAlertTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringRevocationTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringRevocationTest`: MonitoringRevocationMonitoringAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringRevocationTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringRevocationTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringRevocationMonitoringAlertTestRequest** | [**MonitoringRevocationMonitoringAlertTestRequest**](MonitoringRevocationMonitoringAlertTestRequest.md) | Information about the revocation monitoring alert test | + +### Return type + +[**MonitoringRevocationMonitoringAlertTestResponse**](MonitoringRevocationMonitoringAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateMonitoringRevocationTestAll + +> MonitoringRevocationMonitoringAlertTestResponse NewCreateMonitoringRevocationTestAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringAlertTestAllRequest(monitoringRevocationMonitoringAlertTestAllRequest).Execute() + +Test All Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringRevocationMonitoringAlertTestAllRequest := *openapiclient.NewMonitoringRevocationMonitoringAlertTestAllRequest() // MonitoringRevocationMonitoringAlertTestAllRequest | Information about the revocation monitoring alert test (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewCreateMonitoringRevocationTestAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringAlertTestAllRequest(monitoringRevocationMonitoringAlertTestAllRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.CreateMonitoringRevocationTestAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMonitoringRevocationTestAll`: MonitoringRevocationMonitoringAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.CreateMonitoringRevocationTestAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateMonitoringRevocationTestAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringRevocationMonitoringAlertTestAllRequest** | [**MonitoringRevocationMonitoringAlertTestAllRequest**](MonitoringRevocationMonitoringAlertTestAllRequest.md) | Information about the revocation monitoring alert test | + +### Return type + +[**MonitoringRevocationMonitoringAlertTestResponse**](MonitoringRevocationMonitoringAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteMonitoringRevocationById + +> NewDeleteMonitoringRevocationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the revocation monitoring endpoint + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewDeleteMonitoringRevocationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.DeleteMonitoringRevocationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the revocation monitoring endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteMonitoringRevocationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMonitoringRevocation + +> []MonitoringRevocationMonitoringDefinitionResponse NewGetMonitoringRevocationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all revocation monitoring endpoints according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewGetMonitoringRevocationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.GetMonitoringRevocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMonitoringRevocation`: []MonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.GetMonitoringRevocation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMonitoringRevocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]MonitoringRevocationMonitoringDefinitionResponse**](MonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMonitoringRevocationById + +> MonitoringRevocationMonitoringDefinitionResponse NewGetMonitoringRevocationByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the endpoint to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewGetMonitoringRevocationByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.GetMonitoringRevocationById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMonitoringRevocationById`: MonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.GetMonitoringRevocationById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the endpoint to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMonitoringRevocationByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**MonitoringRevocationMonitoringDefinitionResponse**](MonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateMonitoringRevocation + +> MonitoringRevocationMonitoringDefinitionResponse NewUpdateMonitoringRevocationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringUpdateRequest(monitoringRevocationMonitoringUpdateRequest).Execute() + +Edit a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + forceSave := true // bool | Bypass testing the connection to either the CRL or the OCSP endpoint (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringRevocationMonitoringUpdateRequest := *openapiclient.NewMonitoringRevocationMonitoringUpdateRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewMonitoringDashboardRequest(false)) // MonitoringRevocationMonitoringUpdateRequest | Information for the endpoint (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewUpdateMonitoringRevocationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ForceSave(forceSave).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringUpdateRequest(monitoringRevocationMonitoringUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.UpdateMonitoringRevocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMonitoringRevocation`: MonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.UpdateMonitoringRevocation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateMonitoringRevocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **forceSave** | **bool** | Bypass testing the connection to either the CRL or the OCSP endpoint | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringRevocationMonitoringUpdateRequest** | [**MonitoringRevocationMonitoringUpdateRequest**](MonitoringRevocationMonitoringUpdateRequest.md) | Information for the endpoint | + +### Return type + +[**MonitoringRevocationMonitoringDefinitionResponse**](MonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateMonitoringRevocationSchedule + +> MonitoringRevocationMonitoringDefinitionResponse NewUpdateMonitoringRevocationScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringUpdateScheduleRequest(monitoringRevocationMonitoringUpdateScheduleRequest).Execute() + +Edit a revocation monitoring's schedule. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + monitoringRevocationMonitoringUpdateScheduleRequest := *openapiclient.NewMonitoringRevocationMonitoringUpdateScheduleRequest(int32(123)) // MonitoringRevocationMonitoringUpdateScheduleRequest | The information for the updating the schedule. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.NewUpdateMonitoringRevocationScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).MonitoringRevocationMonitoringUpdateScheduleRequest(monitoringRevocationMonitoringUpdateScheduleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.UpdateMonitoringRevocationSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMonitoringRevocationSchedule`: MonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.UpdateMonitoringRevocationSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateMonitoringRevocationScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **monitoringRevocationMonitoringUpdateScheduleRequest** | [**MonitoringRevocationMonitoringUpdateScheduleRequest**](MonitoringRevocationMonitoringUpdateScheduleRequest.md) | The information for the updating the schedule. | + +### Return type + +[**MonitoringRevocationMonitoringDefinitionResponse**](MonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/MonitoringDashboardRequest.md b/v24/api/keyfactor/v1/docs/MonitoringDashboardRequest.md new file mode 100644 index 0000000..cfba3e3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringDashboardRequest.md @@ -0,0 +1,77 @@ +# MonitoringDashboardRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Show** | **bool** | | +**WarningHours** | Pointer to **int32** | | [optional] + +## Methods + +### NewMonitoringDashboardRequest + +`func NewMonitoringDashboardRequest(show bool, ) *MonitoringDashboardRequest` + +NewMonitoringDashboardRequest instantiates a new MonitoringDashboardRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringDashboardRequestWithDefaults + +`func NewMonitoringDashboardRequestWithDefaults() *MonitoringDashboardRequest` + +NewMonitoringDashboardRequestWithDefaults instantiates a new MonitoringDashboardRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShow + +`func (o *MonitoringDashboardRequest) GetShow() bool` + +GetShow returns the Show field if non-nil, zero value otherwise. + +### GetShowOk + +`func (o *MonitoringDashboardRequest) GetShowOk() (*bool, bool)` + +GetShowOk returns a tuple with the Show field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShow + +`func (o *MonitoringDashboardRequest) SetShow(v bool)` + +SetShow sets Show field to given value. + + +### GetWarningHours + +`func (o *MonitoringDashboardRequest) GetWarningHours() int32` + +GetWarningHours returns the WarningHours field if non-nil, zero value otherwise. + +### GetWarningHoursOk + +`func (o *MonitoringDashboardRequest) GetWarningHoursOk() (*int32, bool)` + +GetWarningHoursOk returns a tuple with the WarningHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningHours + +`func (o *MonitoringDashboardRequest) SetWarningHours(v int32)` + +SetWarningHours sets WarningHours field to given value. + +### HasWarningHours + +`func (o *MonitoringDashboardRequest) HasWarningHours() bool` + +HasWarningHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringDashboardResponse.md b/v24/api/keyfactor/v1/docs/MonitoringDashboardResponse.md new file mode 100644 index 0000000..40a6665 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringDashboardResponse.md @@ -0,0 +1,82 @@ +# MonitoringDashboardResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Show** | Pointer to **bool** | | [optional] +**WarningHours** | Pointer to **int32** | | [optional] + +## Methods + +### NewMonitoringDashboardResponse + +`func NewMonitoringDashboardResponse() *MonitoringDashboardResponse` + +NewMonitoringDashboardResponse instantiates a new MonitoringDashboardResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringDashboardResponseWithDefaults + +`func NewMonitoringDashboardResponseWithDefaults() *MonitoringDashboardResponse` + +NewMonitoringDashboardResponseWithDefaults instantiates a new MonitoringDashboardResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShow + +`func (o *MonitoringDashboardResponse) GetShow() bool` + +GetShow returns the Show field if non-nil, zero value otherwise. + +### GetShowOk + +`func (o *MonitoringDashboardResponse) GetShowOk() (*bool, bool)` + +GetShowOk returns a tuple with the Show field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShow + +`func (o *MonitoringDashboardResponse) SetShow(v bool)` + +SetShow sets Show field to given value. + +### HasShow + +`func (o *MonitoringDashboardResponse) HasShow() bool` + +HasShow returns a boolean if a field has been set. + +### GetWarningHours + +`func (o *MonitoringDashboardResponse) GetWarningHours() int32` + +GetWarningHours returns the WarningHours field if non-nil, zero value otherwise. + +### GetWarningHoursOk + +`func (o *MonitoringDashboardResponse) GetWarningHoursOk() (*int32, bool)` + +GetWarningHoursOk returns a tuple with the WarningHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningHours + +`func (o *MonitoringDashboardResponse) SetWarningHours(v int32)` + +SetWarningHours sets WarningHours field to given value. + +### HasWarningHours + +`func (o *MonitoringDashboardResponse) HasWarningHours() bool` + +HasWarningHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringEmailRequest.md b/v24/api/keyfactor/v1/docs/MonitoringEmailRequest.md new file mode 100644 index 0000000..ccf5b8d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringEmailRequest.md @@ -0,0 +1,118 @@ +# MonitoringEmailRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnableReminder** | Pointer to **bool** | | [optional] +**WarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewMonitoringEmailRequest + +`func NewMonitoringEmailRequest() *MonitoringEmailRequest` + +NewMonitoringEmailRequest instantiates a new MonitoringEmailRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringEmailRequestWithDefaults + +`func NewMonitoringEmailRequestWithDefaults() *MonitoringEmailRequest` + +NewMonitoringEmailRequestWithDefaults instantiates a new MonitoringEmailRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnableReminder + +`func (o *MonitoringEmailRequest) GetEnableReminder() bool` + +GetEnableReminder returns the EnableReminder field if non-nil, zero value otherwise. + +### GetEnableReminderOk + +`func (o *MonitoringEmailRequest) GetEnableReminderOk() (*bool, bool)` + +GetEnableReminderOk returns a tuple with the EnableReminder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableReminder + +`func (o *MonitoringEmailRequest) SetEnableReminder(v bool)` + +SetEnableReminder sets EnableReminder field to given value. + +### HasEnableReminder + +`func (o *MonitoringEmailRequest) HasEnableReminder() bool` + +HasEnableReminder returns a boolean if a field has been set. + +### GetWarningDays + +`func (o *MonitoringEmailRequest) GetWarningDays() int32` + +GetWarningDays returns the WarningDays field if non-nil, zero value otherwise. + +### GetWarningDaysOk + +`func (o *MonitoringEmailRequest) GetWarningDaysOk() (*int32, bool)` + +GetWarningDaysOk returns a tuple with the WarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningDays + +`func (o *MonitoringEmailRequest) SetWarningDays(v int32)` + +SetWarningDays sets WarningDays field to given value. + +### HasWarningDays + +`func (o *MonitoringEmailRequest) HasWarningDays() bool` + +HasWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *MonitoringEmailRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *MonitoringEmailRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *MonitoringEmailRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *MonitoringEmailRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *MonitoringEmailRequest) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *MonitoringEmailRequest) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringEmailResponse.md b/v24/api/keyfactor/v1/docs/MonitoringEmailResponse.md new file mode 100644 index 0000000..48e1ba9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringEmailResponse.md @@ -0,0 +1,118 @@ +# MonitoringEmailResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnableReminder** | Pointer to **bool** | | [optional] +**WarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewMonitoringEmailResponse + +`func NewMonitoringEmailResponse() *MonitoringEmailResponse` + +NewMonitoringEmailResponse instantiates a new MonitoringEmailResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringEmailResponseWithDefaults + +`func NewMonitoringEmailResponseWithDefaults() *MonitoringEmailResponse` + +NewMonitoringEmailResponseWithDefaults instantiates a new MonitoringEmailResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnableReminder + +`func (o *MonitoringEmailResponse) GetEnableReminder() bool` + +GetEnableReminder returns the EnableReminder field if non-nil, zero value otherwise. + +### GetEnableReminderOk + +`func (o *MonitoringEmailResponse) GetEnableReminderOk() (*bool, bool)` + +GetEnableReminderOk returns a tuple with the EnableReminder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableReminder + +`func (o *MonitoringEmailResponse) SetEnableReminder(v bool)` + +SetEnableReminder sets EnableReminder field to given value. + +### HasEnableReminder + +`func (o *MonitoringEmailResponse) HasEnableReminder() bool` + +HasEnableReminder returns a boolean if a field has been set. + +### GetWarningDays + +`func (o *MonitoringEmailResponse) GetWarningDays() int32` + +GetWarningDays returns the WarningDays field if non-nil, zero value otherwise. + +### GetWarningDaysOk + +`func (o *MonitoringEmailResponse) GetWarningDaysOk() (*int32, bool)` + +GetWarningDaysOk returns a tuple with the WarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningDays + +`func (o *MonitoringEmailResponse) SetWarningDays(v int32)` + +SetWarningDays sets WarningDays field to given value. + +### HasWarningDays + +`func (o *MonitoringEmailResponse) HasWarningDays() bool` + +HasWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *MonitoringEmailResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *MonitoringEmailResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *MonitoringEmailResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *MonitoringEmailResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### SetRecipientsNil + +`func (o *MonitoringEmailResponse) SetRecipientsNil(b bool)` + + SetRecipientsNil sets the value for Recipients to be an explicit nil + +### UnsetRecipients +`func (o *MonitoringEmailResponse) UnsetRecipients()` + +UnsetRecipients ensures that no value is present for Recipients, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersRequest.md b/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersRequest.md new file mode 100644 index 0000000..51efb35 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersRequest.md @@ -0,0 +1,282 @@ +# MonitoringOCSPParametersRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateContents** | Pointer to **NullableString** | | [optional] +**CertificateAuthorityId** | Pointer to **NullableInt32** | | [optional] +**AuthorityName** | Pointer to **NullableString** | | [optional] +**AuthorityNameId** | Pointer to **NullableString** | | [optional] +**AuthorityKeyId** | Pointer to **NullableString** | | [optional] +**SampleSerialNumber** | Pointer to **NullableString** | | [optional] +**FileName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewMonitoringOCSPParametersRequest + +`func NewMonitoringOCSPParametersRequest() *MonitoringOCSPParametersRequest` + +NewMonitoringOCSPParametersRequest instantiates a new MonitoringOCSPParametersRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringOCSPParametersRequestWithDefaults + +`func NewMonitoringOCSPParametersRequestWithDefaults() *MonitoringOCSPParametersRequest` + +NewMonitoringOCSPParametersRequestWithDefaults instantiates a new MonitoringOCSPParametersRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateContents + +`func (o *MonitoringOCSPParametersRequest) GetCertificateContents() string` + +GetCertificateContents returns the CertificateContents field if non-nil, zero value otherwise. + +### GetCertificateContentsOk + +`func (o *MonitoringOCSPParametersRequest) GetCertificateContentsOk() (*string, bool)` + +GetCertificateContentsOk returns a tuple with the CertificateContents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateContents + +`func (o *MonitoringOCSPParametersRequest) SetCertificateContents(v string)` + +SetCertificateContents sets CertificateContents field to given value. + +### HasCertificateContents + +`func (o *MonitoringOCSPParametersRequest) HasCertificateContents() bool` + +HasCertificateContents returns a boolean if a field has been set. + +### SetCertificateContentsNil + +`func (o *MonitoringOCSPParametersRequest) SetCertificateContentsNil(b bool)` + + SetCertificateContentsNil sets the value for CertificateContents to be an explicit nil + +### UnsetCertificateContents +`func (o *MonitoringOCSPParametersRequest) UnsetCertificateContents()` + +UnsetCertificateContents ensures that no value is present for CertificateContents, not even an explicit nil +### GetCertificateAuthorityId + +`func (o *MonitoringOCSPParametersRequest) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *MonitoringOCSPParametersRequest) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *MonitoringOCSPParametersRequest) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *MonitoringOCSPParametersRequest) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### SetCertificateAuthorityIdNil + +`func (o *MonitoringOCSPParametersRequest) SetCertificateAuthorityIdNil(b bool)` + + SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil + +### UnsetCertificateAuthorityId +`func (o *MonitoringOCSPParametersRequest) UnsetCertificateAuthorityId()` + +UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +### GetAuthorityName + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityName() string` + +GetAuthorityName returns the AuthorityName field if non-nil, zero value otherwise. + +### GetAuthorityNameOk + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityNameOk() (*string, bool)` + +GetAuthorityNameOk returns a tuple with the AuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityName + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityName(v string)` + +SetAuthorityName sets AuthorityName field to given value. + +### HasAuthorityName + +`func (o *MonitoringOCSPParametersRequest) HasAuthorityName() bool` + +HasAuthorityName returns a boolean if a field has been set. + +### SetAuthorityNameNil + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityNameNil(b bool)` + + SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil + +### UnsetAuthorityName +`func (o *MonitoringOCSPParametersRequest) UnsetAuthorityName()` + +UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +### GetAuthorityNameId + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityNameId() string` + +GetAuthorityNameId returns the AuthorityNameId field if non-nil, zero value otherwise. + +### GetAuthorityNameIdOk + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityNameIdOk() (*string, bool)` + +GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityNameId + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityNameId(v string)` + +SetAuthorityNameId sets AuthorityNameId field to given value. + +### HasAuthorityNameId + +`func (o *MonitoringOCSPParametersRequest) HasAuthorityNameId() bool` + +HasAuthorityNameId returns a boolean if a field has been set. + +### SetAuthorityNameIdNil + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityNameIdNil(b bool)` + + SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil + +### UnsetAuthorityNameId +`func (o *MonitoringOCSPParametersRequest) UnsetAuthorityNameId()` + +UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +### GetAuthorityKeyId + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityKeyId() string` + +GetAuthorityKeyId returns the AuthorityKeyId field if non-nil, zero value otherwise. + +### GetAuthorityKeyIdOk + +`func (o *MonitoringOCSPParametersRequest) GetAuthorityKeyIdOk() (*string, bool)` + +GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityKeyId + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityKeyId(v string)` + +SetAuthorityKeyId sets AuthorityKeyId field to given value. + +### HasAuthorityKeyId + +`func (o *MonitoringOCSPParametersRequest) HasAuthorityKeyId() bool` + +HasAuthorityKeyId returns a boolean if a field has been set. + +### SetAuthorityKeyIdNil + +`func (o *MonitoringOCSPParametersRequest) SetAuthorityKeyIdNil(b bool)` + + SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil + +### UnsetAuthorityKeyId +`func (o *MonitoringOCSPParametersRequest) UnsetAuthorityKeyId()` + +UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +### GetSampleSerialNumber + +`func (o *MonitoringOCSPParametersRequest) GetSampleSerialNumber() string` + +GetSampleSerialNumber returns the SampleSerialNumber field if non-nil, zero value otherwise. + +### GetSampleSerialNumberOk + +`func (o *MonitoringOCSPParametersRequest) GetSampleSerialNumberOk() (*string, bool)` + +GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSampleSerialNumber + +`func (o *MonitoringOCSPParametersRequest) SetSampleSerialNumber(v string)` + +SetSampleSerialNumber sets SampleSerialNumber field to given value. + +### HasSampleSerialNumber + +`func (o *MonitoringOCSPParametersRequest) HasSampleSerialNumber() bool` + +HasSampleSerialNumber returns a boolean if a field has been set. + +### SetSampleSerialNumberNil + +`func (o *MonitoringOCSPParametersRequest) SetSampleSerialNumberNil(b bool)` + + SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil + +### UnsetSampleSerialNumber +`func (o *MonitoringOCSPParametersRequest) UnsetSampleSerialNumber()` + +UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +### GetFileName + +`func (o *MonitoringOCSPParametersRequest) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *MonitoringOCSPParametersRequest) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *MonitoringOCSPParametersRequest) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *MonitoringOCSPParametersRequest) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + +### SetFileNameNil + +`func (o *MonitoringOCSPParametersRequest) SetFileNameNil(b bool)` + + SetFileNameNil sets the value for FileName to be an explicit nil + +### UnsetFileName +`func (o *MonitoringOCSPParametersRequest) UnsetFileName()` + +UnsetFileName ensures that no value is present for FileName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersResponse.md b/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersResponse.md new file mode 100644 index 0000000..18037c9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringOCSPParametersResponse.md @@ -0,0 +1,246 @@ +# MonitoringOCSPParametersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateAuthorityId** | Pointer to **NullableInt32** | | [optional] +**AuthorityName** | Pointer to **NullableString** | | [optional] +**AuthorityNameId** | Pointer to **NullableString** | | [optional] +**AuthorityKeyId** | Pointer to **NullableString** | | [optional] +**SampleSerialNumber** | Pointer to **NullableString** | | [optional] +**FileName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewMonitoringOCSPParametersResponse + +`func NewMonitoringOCSPParametersResponse() *MonitoringOCSPParametersResponse` + +NewMonitoringOCSPParametersResponse instantiates a new MonitoringOCSPParametersResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringOCSPParametersResponseWithDefaults + +`func NewMonitoringOCSPParametersResponseWithDefaults() *MonitoringOCSPParametersResponse` + +NewMonitoringOCSPParametersResponseWithDefaults instantiates a new MonitoringOCSPParametersResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateAuthorityId + +`func (o *MonitoringOCSPParametersResponse) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *MonitoringOCSPParametersResponse) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *MonitoringOCSPParametersResponse) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *MonitoringOCSPParametersResponse) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### SetCertificateAuthorityIdNil + +`func (o *MonitoringOCSPParametersResponse) SetCertificateAuthorityIdNil(b bool)` + + SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil + +### UnsetCertificateAuthorityId +`func (o *MonitoringOCSPParametersResponse) UnsetCertificateAuthorityId()` + +UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +### GetAuthorityName + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityName() string` + +GetAuthorityName returns the AuthorityName field if non-nil, zero value otherwise. + +### GetAuthorityNameOk + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityNameOk() (*string, bool)` + +GetAuthorityNameOk returns a tuple with the AuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityName + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityName(v string)` + +SetAuthorityName sets AuthorityName field to given value. + +### HasAuthorityName + +`func (o *MonitoringOCSPParametersResponse) HasAuthorityName() bool` + +HasAuthorityName returns a boolean if a field has been set. + +### SetAuthorityNameNil + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityNameNil(b bool)` + + SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil + +### UnsetAuthorityName +`func (o *MonitoringOCSPParametersResponse) UnsetAuthorityName()` + +UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +### GetAuthorityNameId + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityNameId() string` + +GetAuthorityNameId returns the AuthorityNameId field if non-nil, zero value otherwise. + +### GetAuthorityNameIdOk + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityNameIdOk() (*string, bool)` + +GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityNameId + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityNameId(v string)` + +SetAuthorityNameId sets AuthorityNameId field to given value. + +### HasAuthorityNameId + +`func (o *MonitoringOCSPParametersResponse) HasAuthorityNameId() bool` + +HasAuthorityNameId returns a boolean if a field has been set. + +### SetAuthorityNameIdNil + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityNameIdNil(b bool)` + + SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil + +### UnsetAuthorityNameId +`func (o *MonitoringOCSPParametersResponse) UnsetAuthorityNameId()` + +UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +### GetAuthorityKeyId + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityKeyId() string` + +GetAuthorityKeyId returns the AuthorityKeyId field if non-nil, zero value otherwise. + +### GetAuthorityKeyIdOk + +`func (o *MonitoringOCSPParametersResponse) GetAuthorityKeyIdOk() (*string, bool)` + +GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityKeyId + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityKeyId(v string)` + +SetAuthorityKeyId sets AuthorityKeyId field to given value. + +### HasAuthorityKeyId + +`func (o *MonitoringOCSPParametersResponse) HasAuthorityKeyId() bool` + +HasAuthorityKeyId returns a boolean if a field has been set. + +### SetAuthorityKeyIdNil + +`func (o *MonitoringOCSPParametersResponse) SetAuthorityKeyIdNil(b bool)` + + SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil + +### UnsetAuthorityKeyId +`func (o *MonitoringOCSPParametersResponse) UnsetAuthorityKeyId()` + +UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +### GetSampleSerialNumber + +`func (o *MonitoringOCSPParametersResponse) GetSampleSerialNumber() string` + +GetSampleSerialNumber returns the SampleSerialNumber field if non-nil, zero value otherwise. + +### GetSampleSerialNumberOk + +`func (o *MonitoringOCSPParametersResponse) GetSampleSerialNumberOk() (*string, bool)` + +GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSampleSerialNumber + +`func (o *MonitoringOCSPParametersResponse) SetSampleSerialNumber(v string)` + +SetSampleSerialNumber sets SampleSerialNumber field to given value. + +### HasSampleSerialNumber + +`func (o *MonitoringOCSPParametersResponse) HasSampleSerialNumber() bool` + +HasSampleSerialNumber returns a boolean if a field has been set. + +### SetSampleSerialNumberNil + +`func (o *MonitoringOCSPParametersResponse) SetSampleSerialNumberNil(b bool)` + + SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil + +### UnsetSampleSerialNumber +`func (o *MonitoringOCSPParametersResponse) UnsetSampleSerialNumber()` + +UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +### GetFileName + +`func (o *MonitoringOCSPParametersResponse) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *MonitoringOCSPParametersResponse) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *MonitoringOCSPParametersResponse) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *MonitoringOCSPParametersResponse) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + +### SetFileNameNil + +`func (o *MonitoringOCSPParametersResponse) SetFileNameNil(b bool)` + + SetFileNameNil sets the value for FileName to be an explicit nil + +### UnsetFileName +`func (o *MonitoringOCSPParametersResponse) UnsetFileName()` + +UnsetFileName ensures that no value is present for FileName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestAllRequest.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestAllRequest.md new file mode 100644 index 0000000..cd884e4 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestAllRequest.md @@ -0,0 +1,82 @@ +# MonitoringRevocationMonitoringAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringAlertTestAllRequest + +`func NewMonitoringRevocationMonitoringAlertTestAllRequest() *MonitoringRevocationMonitoringAlertTestAllRequest` + +NewMonitoringRevocationMonitoringAlertTestAllRequest instantiates a new MonitoringRevocationMonitoringAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults + +`func NewMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults() *MonitoringRevocationMonitoringAlertTestAllRequest` + +NewMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestRequest.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestRequest.md new file mode 100644 index 0000000..df4c403 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestRequest.md @@ -0,0 +1,108 @@ +# MonitoringRevocationMonitoringAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringAlertTestRequest + +`func NewMonitoringRevocationMonitoringAlertTestRequest() *MonitoringRevocationMonitoringAlertTestRequest` + +NewMonitoringRevocationMonitoringAlertTestRequest instantiates a new MonitoringRevocationMonitoringAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringAlertTestRequestWithDefaults + +`func NewMonitoringRevocationMonitoringAlertTestRequestWithDefaults() *MonitoringRevocationMonitoringAlertTestRequest` + +NewMonitoringRevocationMonitoringAlertTestRequestWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestResponse.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestResponse.md new file mode 100644 index 0000000..e627e47 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringAlertTestResponse.md @@ -0,0 +1,92 @@ +# MonitoringRevocationMonitoringAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RevocationMonitoringAlerts** | Pointer to [**[]CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse**](CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to [**CSSCMSDataModelEnumsAlertBuildResult**](CSSCMSDataModelEnumsAlertBuildResult.md) | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringAlertTestResponse + +`func NewMonitoringRevocationMonitoringAlertTestResponse() *MonitoringRevocationMonitoringAlertTestResponse` + +NewMonitoringRevocationMonitoringAlertTestResponse instantiates a new MonitoringRevocationMonitoringAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringAlertTestResponseWithDefaults + +`func NewMonitoringRevocationMonitoringAlertTestResponseWithDefaults() *MonitoringRevocationMonitoringAlertTestResponse` + +NewMonitoringRevocationMonitoringAlertTestResponseWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRevocationMonitoringAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlerts() []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse` + +GetRevocationMonitoringAlerts returns the RevocationMonitoringAlerts field if non-nil, zero value otherwise. + +### GetRevocationMonitoringAlertsOk + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlertsOk() (*[]CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse, bool)` + +GetRevocationMonitoringAlertsOk returns a tuple with the RevocationMonitoringAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationMonitoringAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) SetRevocationMonitoringAlerts(v []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse)` + +SetRevocationMonitoringAlerts sets RevocationMonitoringAlerts field to given value. + +### HasRevocationMonitoringAlerts + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) HasRevocationMonitoringAlerts() bool` + +HasRevocationMonitoringAlerts returns a boolean if a field has been set. + +### SetRevocationMonitoringAlertsNil + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) SetRevocationMonitoringAlertsNil(b bool)` + + SetRevocationMonitoringAlertsNil sets the value for RevocationMonitoringAlerts to be an explicit nil + +### UnsetRevocationMonitoringAlerts +`func (o *MonitoringRevocationMonitoringAlertTestResponse) UnsetRevocationMonitoringAlerts()` + +UnsetRevocationMonitoringAlerts ensures that no value is present for RevocationMonitoringAlerts, not even an explicit nil +### GetAlertBuildResult + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *MonitoringRevocationMonitoringAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringCreationRequest.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringCreationRequest.md new file mode 100644 index 0000000..17211ed --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringCreationRequest.md @@ -0,0 +1,218 @@ +# MonitoringRevocationMonitoringCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**EndpointType** | **string** | | +**Location** | **string** | | +**Email** | Pointer to [**MonitoringEmailRequest**](MonitoringEmailRequest.md) | | [optional] +**Dashboard** | [**MonitoringDashboardRequest**](MonitoringDashboardRequest.md) | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**MonitoringOCSPParametersRequest**](MonitoringOCSPParametersRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringCreationRequest + +`func NewMonitoringRevocationMonitoringCreationRequest(name string, endpointType string, location string, dashboard MonitoringDashboardRequest, ) *MonitoringRevocationMonitoringCreationRequest` + +NewMonitoringRevocationMonitoringCreationRequest instantiates a new MonitoringRevocationMonitoringCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringCreationRequestWithDefaults + +`func NewMonitoringRevocationMonitoringCreationRequestWithDefaults() *MonitoringRevocationMonitoringCreationRequest` + +NewMonitoringRevocationMonitoringCreationRequestWithDefaults instantiates a new MonitoringRevocationMonitoringCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEndpointType + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + + +### GetLocation + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetEmail + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetEmail() MonitoringEmailRequest` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetEmailOk() (*MonitoringEmailRequest, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetEmail(v MonitoringEmailRequest)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MonitoringRevocationMonitoringCreationRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetDashboard() MonitoringDashboardRequest` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetDashboardOk() (*MonitoringDashboardRequest, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetDashboard(v MonitoringDashboardRequest)` + +SetDashboard sets Dashboard field to given value. + + +### GetSchedule + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *MonitoringRevocationMonitoringCreationRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetOCSPParameters() MonitoringOCSPParametersRequest` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetOCSPParametersOk() (*MonitoringOCSPParametersRequest, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetOCSPParameters(v MonitoringOCSPParametersRequest)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *MonitoringRevocationMonitoringCreationRequest) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + +### GetUseWorkflows + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *MonitoringRevocationMonitoringCreationRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *MonitoringRevocationMonitoringCreationRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *MonitoringRevocationMonitoringCreationRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringDefinitionResponse.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringDefinitionResponse.md new file mode 100644 index 0000000..20070dc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringDefinitionResponse.md @@ -0,0 +1,438 @@ +# MonitoringRevocationMonitoringDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**EndpointType** | Pointer to **NullableString** | | [optional] +**Location** | Pointer to **NullableString** | | [optional] +**Email** | Pointer to [**MonitoringEmailResponse**](MonitoringEmailResponse.md) | | [optional] +**Dashboard** | Pointer to [**MonitoringDashboardResponse**](MonitoringDashboardResponse.md) | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**MonitoringOCSPParametersResponse**](MonitoringOCSPParametersResponse.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] +**WorkflowId** | Pointer to **NullableString** | | [optional] +**WorkflowName** | Pointer to **NullableString** | | [optional] +**WorkflowPublishedVersion** | Pointer to **NullableInt32** | | [optional] +**WorkflowEnabled** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringDefinitionResponse + +`func NewMonitoringRevocationMonitoringDefinitionResponse() *MonitoringRevocationMonitoringDefinitionResponse` + +NewMonitoringRevocationMonitoringDefinitionResponse instantiates a new MonitoringRevocationMonitoringDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringDefinitionResponseWithDefaults + +`func NewMonitoringRevocationMonitoringDefinitionResponseWithDefaults() *MonitoringRevocationMonitoringDefinitionResponse` + +NewMonitoringRevocationMonitoringDefinitionResponseWithDefaults instantiates a new MonitoringRevocationMonitoringDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEndpointType + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + +### HasEndpointType + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasEndpointType() bool` + +HasEndpointType returns a boolean if a field has been set. + +### SetEndpointTypeNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEndpointTypeNil(b bool)` + + SetEndpointTypeNil sets the value for EndpointType to be an explicit nil + +### UnsetEndpointType +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetEndpointType()` + +UnsetEndpointType ensures that no value is present for EndpointType, not even an explicit nil +### GetLocation + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetEmail + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEmail() MonitoringEmailResponse` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEmailOk() (*MonitoringEmailResponse, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEmail(v MonitoringEmailResponse)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetDashboard() MonitoringDashboardResponse` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetDashboardOk() (*MonitoringDashboardResponse, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetDashboard(v MonitoringDashboardResponse)` + +SetDashboard sets Dashboard field to given value. + +### HasDashboard + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasDashboard() bool` + +HasDashboard returns a boolean if a field has been set. + +### GetSchedule + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetOCSPParameters() MonitoringOCSPParametersResponse` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetOCSPParametersOk() (*MonitoringOCSPParametersResponse, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetOCSPParameters(v MonitoringOCSPParametersResponse)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + +### GetUseWorkflows + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### SetWorkflowIdNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowIdNil(b bool)` + + SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil + +### UnsetWorkflowId +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowId()` + +UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +### GetWorkflowName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowName() string` + +GetWorkflowName returns the WorkflowName field if non-nil, zero value otherwise. + +### GetWorkflowNameOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowNameOk() (*string, bool)` + +GetWorkflowNameOk returns a tuple with the WorkflowName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowName(v string)` + +SetWorkflowName sets WorkflowName field to given value. + +### HasWorkflowName + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowName() bool` + +HasWorkflowName returns a boolean if a field has been set. + +### SetWorkflowNameNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowNameNil(b bool)` + + SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil + +### UnsetWorkflowName +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowName()` + +UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +### GetWorkflowPublishedVersion + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowPublishedVersion() int32` + +GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field if non-nil, zero value otherwise. + +### GetWorkflowPublishedVersionOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool)` + +GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowPublishedVersion + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowPublishedVersion(v int32)` + +SetWorkflowPublishedVersion sets WorkflowPublishedVersion field to given value. + +### HasWorkflowPublishedVersion + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowPublishedVersion() bool` + +HasWorkflowPublishedVersion returns a boolean if a field has been set. + +### SetWorkflowPublishedVersionNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowPublishedVersionNil(b bool)` + + SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil + +### UnsetWorkflowPublishedVersion +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowPublishedVersion()` + +UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +### GetWorkflowEnabled + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowEnabled() bool` + +GetWorkflowEnabled returns the WorkflowEnabled field if non-nil, zero value otherwise. + +### GetWorkflowEnabledOk + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool)` + +GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowEnabled + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowEnabled(v bool)` + +SetWorkflowEnabled sets WorkflowEnabled field to given value. + +### HasWorkflowEnabled + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowEnabled() bool` + +HasWorkflowEnabled returns a boolean if a field has been set. + +### SetWorkflowEnabledNil + +`func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowEnabledNil(b bool)` + + SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil + +### UnsetWorkflowEnabled +`func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowEnabled()` + +UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateRequest.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateRequest.md new file mode 100644 index 0000000..2571117 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateRequest.md @@ -0,0 +1,244 @@ +# MonitoringRevocationMonitoringUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**EndpointType** | **string** | | +**Location** | **string** | | +**Email** | Pointer to [**MonitoringEmailRequest**](MonitoringEmailRequest.md) | | [optional] +**Dashboard** | [**MonitoringDashboardRequest**](MonitoringDashboardRequest.md) | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**MonitoringOCSPParametersRequest**](MonitoringOCSPParametersRequest.md) | | [optional] +**UseWorkflows** | Pointer to **bool** | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringUpdateRequest + +`func NewMonitoringRevocationMonitoringUpdateRequest(name string, endpointType string, location string, dashboard MonitoringDashboardRequest, ) *MonitoringRevocationMonitoringUpdateRequest` + +NewMonitoringRevocationMonitoringUpdateRequest instantiates a new MonitoringRevocationMonitoringUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringUpdateRequestWithDefaults + +`func NewMonitoringRevocationMonitoringUpdateRequestWithDefaults() *MonitoringRevocationMonitoringUpdateRequest` + +NewMonitoringRevocationMonitoringUpdateRequestWithDefaults instantiates a new MonitoringRevocationMonitoringUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MonitoringRevocationMonitoringUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEndpointType + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + + +### GetLocation + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetEmail + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetEmail() MonitoringEmailRequest` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetEmailOk() (*MonitoringEmailRequest, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetEmail(v MonitoringEmailRequest)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MonitoringRevocationMonitoringUpdateRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetDashboard() MonitoringDashboardRequest` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetDashboardOk() (*MonitoringDashboardRequest, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetDashboard(v MonitoringDashboardRequest)` + +SetDashboard sets Dashboard field to given value. + + +### GetSchedule + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *MonitoringRevocationMonitoringUpdateRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetOCSPParameters() MonitoringOCSPParametersRequest` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetOCSPParametersOk() (*MonitoringOCSPParametersRequest, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetOCSPParameters(v MonitoringOCSPParametersRequest)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *MonitoringRevocationMonitoringUpdateRequest) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + +### GetUseWorkflows + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetUseWorkflows() bool` + +GetUseWorkflows returns the UseWorkflows field if non-nil, zero value otherwise. + +### GetUseWorkflowsOk + +`func (o *MonitoringRevocationMonitoringUpdateRequest) GetUseWorkflowsOk() (*bool, bool)` + +GetUseWorkflowsOk returns a tuple with the UseWorkflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseWorkflows + +`func (o *MonitoringRevocationMonitoringUpdateRequest) SetUseWorkflows(v bool)` + +SetUseWorkflows sets UseWorkflows field to given value. + +### HasUseWorkflows + +`func (o *MonitoringRevocationMonitoringUpdateRequest) HasUseWorkflows() bool` + +HasUseWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateScheduleRequest.md b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateScheduleRequest.md new file mode 100644 index 0000000..c31f6c3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/MonitoringRevocationMonitoringUpdateScheduleRequest.md @@ -0,0 +1,77 @@ +# MonitoringRevocationMonitoringUpdateScheduleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewMonitoringRevocationMonitoringUpdateScheduleRequest + +`func NewMonitoringRevocationMonitoringUpdateScheduleRequest(id int32, ) *MonitoringRevocationMonitoringUpdateScheduleRequest` + +NewMonitoringRevocationMonitoringUpdateScheduleRequest instantiates a new MonitoringRevocationMonitoringUpdateScheduleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMonitoringRevocationMonitoringUpdateScheduleRequestWithDefaults + +`func NewMonitoringRevocationMonitoringUpdateScheduleRequestWithDefaults() *MonitoringRevocationMonitoringUpdateScheduleRequest` + +NewMonitoringRevocationMonitoringUpdateScheduleRequestWithDefaults instantiates a new MonitoringRevocationMonitoringUpdateScheduleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetSchedule + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobApi.md b/v24/api/keyfactor/v1/docs/OrchestratorJobApi.md new file mode 100644 index 0000000..84a3684 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobApi.md @@ -0,0 +1,570 @@ +# \OrchestratorJobApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateOrchestratorJobsAcknowledge**](OrchestratorJobApi.md#CreateOrchestratorJobsAcknowledge) | **POST** /OrchestratorJobs/Acknowledge | Acknowledges orchestrator jobs based on the provided information +[**CreateOrchestratorJobsCustom**](OrchestratorJobApi.md#CreateOrchestratorJobsCustom) | **POST** /OrchestratorJobs/Custom | Schedules a job for a custom JobType on the agent using the provided information +[**CreateOrchestratorJobsCustomBulk**](OrchestratorJobApi.md#CreateOrchestratorJobsCustomBulk) | **POST** /OrchestratorJobs/Custom/Bulk | Schedules the same job for a custom JobType on the specified agents using the provided information +[**CreateOrchestratorJobsReschedule**](OrchestratorJobApi.md#CreateOrchestratorJobsReschedule) | **POST** /OrchestratorJobs/Reschedule | Reschedules orchestrator jobs based on the provided information +[**CreateOrchestratorJobsUnschedule**](OrchestratorJobApi.md#CreateOrchestratorJobsUnschedule) | **POST** /OrchestratorJobs/Unschedule | Unschedules orchestrator jobs based on the provided information +[**GetOrchestratorJobsJobHistory**](OrchestratorJobApi.md#GetOrchestratorJobsJobHistory) | **GET** /OrchestratorJobs/JobHistory | Returns all histories of an orchestrator job according to the provided filter and output parameters +[**GetOrchestratorJobsJobStatusData**](OrchestratorJobApi.md#GetOrchestratorJobsJobStatusData) | **GET** /OrchestratorJobs/JobStatus/Data | Retrieves the results of a custom job using the provided information +[**GetOrchestratorJobsScheduledJobs**](OrchestratorJobApi.md#GetOrchestratorJobsScheduledJobs) | **GET** /OrchestratorJobs/ScheduledJobs | Returns all scheduled orchestrator jobs according to the provided filter and output parameters + + + +## CreateOrchestratorJobsAcknowledge + +> NewCreateOrchestratorJobsAcknowledgeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsAcknowledgeJobRequest(orchestratorJobsAcknowledgeJobRequest).Execute() + +Acknowledges orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorJobsAcknowledgeJobRequest := *openapiclient.NewOrchestratorJobsAcknowledgeJobRequest() // OrchestratorJobsAcknowledgeJobRequest | Information to identify the jobs to acknowledge, either a query or a list of job identifiers (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewCreateOrchestratorJobsAcknowledgeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsAcknowledgeJobRequest(orchestratorJobsAcknowledgeJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.CreateOrchestratorJobsAcknowledge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestratorJobsAcknowledgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorJobsAcknowledgeJobRequest** | [**OrchestratorJobsAcknowledgeJobRequest**](OrchestratorJobsAcknowledgeJobRequest.md) | Information to identify the jobs to acknowledge, either a query or a list of job identifiers | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrchestratorJobsCustom + +> OrchestratorJobsJobResponse NewCreateOrchestratorJobsCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest).Execute() + +Schedules a job for a custom JobType on the agent using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest := *openapiclient.NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest("AgentId_example", "JobTypeName_example") // CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest | Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewCreateOrchestratorJobsCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.CreateOrchestratorJobsCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOrchestratorJobsCustom`: OrchestratorJobsJobResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.CreateOrchestratorJobsCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestratorJobsCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest** | [**CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest**](CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest.md) | Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. | + +### Return type + +[**OrchestratorJobsJobResponse**](OrchestratorJobsJobResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrchestratorJobsCustomBulk + +> OrchestratorJobsBulkJobResponse NewCreateOrchestratorJobsCustomBulkRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest).Execute() + +Schedules the same job for a custom JobType on the specified agents using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest := *openapiclient.NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest([]string{"OrchestratorIds_example"}, "JobTypeName_example") // CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest | Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewCreateOrchestratorJobsCustomBulkRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.CreateOrchestratorJobsCustomBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOrchestratorJobsCustomBulk`: OrchestratorJobsBulkJobResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.CreateOrchestratorJobsCustomBulk`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestratorJobsCustomBulkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest** | [**CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest**](CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest.md) | Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. | + +### Return type + +[**OrchestratorJobsBulkJobResponse**](OrchestratorJobsBulkJobResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrchestratorJobsReschedule + +> NewCreateOrchestratorJobsRescheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsRescheduleJobRequest(orchestratorJobsRescheduleJobRequest).Execute() + +Reschedules orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorJobsRescheduleJobRequest := *openapiclient.NewOrchestratorJobsRescheduleJobRequest() // OrchestratorJobsRescheduleJobRequest | Information to identify the jobs to reschedule, either a query or a list of job identifiers (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewCreateOrchestratorJobsRescheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsRescheduleJobRequest(orchestratorJobsRescheduleJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.CreateOrchestratorJobsReschedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestratorJobsRescheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorJobsRescheduleJobRequest** | [**OrchestratorJobsRescheduleJobRequest**](OrchestratorJobsRescheduleJobRequest.md) | Information to identify the jobs to reschedule, either a query or a list of job identifiers | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateOrchestratorJobsUnschedule + +> NewCreateOrchestratorJobsUnscheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsUnscheduleJobRequest(orchestratorJobsUnscheduleJobRequest).Execute() + +Unschedules orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + orchestratorJobsUnscheduleJobRequest := *openapiclient.NewOrchestratorJobsUnscheduleJobRequest() // OrchestratorJobsUnscheduleJobRequest | Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewCreateOrchestratorJobsUnscheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).OrchestratorJobsUnscheduleJobRequest(orchestratorJobsUnscheduleJobRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.CreateOrchestratorJobsUnschedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestratorJobsUnscheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **orchestratorJobsUnscheduleJobRequest** | [**OrchestratorJobsUnscheduleJobRequest**](OrchestratorJobsUnscheduleJobRequest.md) | Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrchestratorJobsJobHistory + +> []CertificateStoresJobHistoryResponse NewGetOrchestratorJobsJobHistoryRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all histories of an orchestrator job according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewGetOrchestratorJobsJobHistoryRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.GetOrchestratorJobsJobHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrchestratorJobsJobHistory`: []CertificateStoresJobHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.GetOrchestratorJobsJobHistory`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrchestratorJobsJobHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificateStoresJobHistoryResponse**](CertificateStoresJobHistoryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrchestratorJobsJobStatusData + +> OrchestratorJobsCustomJobResultDataResponse NewGetOrchestratorJobsJobStatusDataRequest(ctx).JobHistoryId(jobHistoryId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves the results of a custom job using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + jobHistoryId := int64(789) // int64 | Identifier of the job history record to retrieve + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewGetOrchestratorJobsJobStatusDataRequest(context.Background()).JobHistoryId(jobHistoryId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.GetOrchestratorJobsJobStatusData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrchestratorJobsJobStatusData`: OrchestratorJobsCustomJobResultDataResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.GetOrchestratorJobsJobStatusData`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrchestratorJobsJobStatusDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobHistoryId** | **int64** | Identifier of the job history record to retrieve | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**OrchestratorJobsCustomJobResultDataResponse**](OrchestratorJobsCustomJobResultDataResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrchestratorJobsScheduledJobs + +> []CSSCMSDataModelModelsOrchestratorJobsJob NewGetOrchestratorJobsScheduledJobsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all scheduled orchestrator jobs according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.NewGetOrchestratorJobsScheduledJobsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.GetOrchestratorJobsScheduledJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrchestratorJobsScheduledJobs`: []CSSCMSDataModelModelsOrchestratorJobsJob + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.GetOrchestratorJobsScheduledJobs`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrchestratorJobsScheduledJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsOrchestratorJobsJob**](CSSCMSDataModelModelsOrchestratorJobsJob.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsAcknowledgeJobRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsAcknowledgeJobRequest.md new file mode 100644 index 0000000..5cf2498 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsAcknowledgeJobRequest.md @@ -0,0 +1,102 @@ +# OrchestratorJobsAcknowledgeJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobAuditIds** | Pointer to **[]int64** | List of orchestrator job audit ids to be acknowledged | [optional] +**Query** | Pointer to **NullableString** | Query identifying orchestrator jobs to be acknowledged | [optional] + +## Methods + +### NewOrchestratorJobsAcknowledgeJobRequest + +`func NewOrchestratorJobsAcknowledgeJobRequest() *OrchestratorJobsAcknowledgeJobRequest` + +NewOrchestratorJobsAcknowledgeJobRequest instantiates a new OrchestratorJobsAcknowledgeJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsAcknowledgeJobRequestWithDefaults + +`func NewOrchestratorJobsAcknowledgeJobRequestWithDefaults() *OrchestratorJobsAcknowledgeJobRequest` + +NewOrchestratorJobsAcknowledgeJobRequestWithDefaults instantiates a new OrchestratorJobsAcknowledgeJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobAuditIds + +`func (o *OrchestratorJobsAcknowledgeJobRequest) GetJobAuditIds() []int64` + +GetJobAuditIds returns the JobAuditIds field if non-nil, zero value otherwise. + +### GetJobAuditIdsOk + +`func (o *OrchestratorJobsAcknowledgeJobRequest) GetJobAuditIdsOk() (*[]int64, bool)` + +GetJobAuditIdsOk returns a tuple with the JobAuditIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobAuditIds + +`func (o *OrchestratorJobsAcknowledgeJobRequest) SetJobAuditIds(v []int64)` + +SetJobAuditIds sets JobAuditIds field to given value. + +### HasJobAuditIds + +`func (o *OrchestratorJobsAcknowledgeJobRequest) HasJobAuditIds() bool` + +HasJobAuditIds returns a boolean if a field has been set. + +### SetJobAuditIdsNil + +`func (o *OrchestratorJobsAcknowledgeJobRequest) SetJobAuditIdsNil(b bool)` + + SetJobAuditIdsNil sets the value for JobAuditIds to be an explicit nil + +### UnsetJobAuditIds +`func (o *OrchestratorJobsAcknowledgeJobRequest) UnsetJobAuditIds()` + +UnsetJobAuditIds ensures that no value is present for JobAuditIds, not even an explicit nil +### GetQuery + +`func (o *OrchestratorJobsAcknowledgeJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OrchestratorJobsAcknowledgeJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OrchestratorJobsAcknowledgeJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *OrchestratorJobsAcknowledgeJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *OrchestratorJobsAcknowledgeJobRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *OrchestratorJobsAcknowledgeJobRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsBulkJobResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsBulkJobResponse.md new file mode 100644 index 0000000..e652ae8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsBulkJobResponse.md @@ -0,0 +1,226 @@ +# OrchestratorJobsBulkJobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorJobPairs** | Pointer to [**[]CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair**](CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair.md) | | [optional] +**FailedOrchestratorIds** | Pointer to **[]string** | | [optional] +**JobTypeName** | Pointer to **NullableString** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to [**[]OrchestratorJobsJobFieldResponse**](OrchestratorJobsJobFieldResponse.md) | | [optional] +**RequestTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrchestratorJobsBulkJobResponse + +`func NewOrchestratorJobsBulkJobResponse() *OrchestratorJobsBulkJobResponse` + +NewOrchestratorJobsBulkJobResponse instantiates a new OrchestratorJobsBulkJobResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsBulkJobResponseWithDefaults + +`func NewOrchestratorJobsBulkJobResponseWithDefaults() *OrchestratorJobsBulkJobResponse` + +NewOrchestratorJobsBulkJobResponseWithDefaults instantiates a new OrchestratorJobsBulkJobResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorJobPairs + +`func (o *OrchestratorJobsBulkJobResponse) GetOrchestratorJobPairs() []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair` + +GetOrchestratorJobPairs returns the OrchestratorJobPairs field if non-nil, zero value otherwise. + +### GetOrchestratorJobPairsOk + +`func (o *OrchestratorJobsBulkJobResponse) GetOrchestratorJobPairsOk() (*[]CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair, bool)` + +GetOrchestratorJobPairsOk returns a tuple with the OrchestratorJobPairs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorJobPairs + +`func (o *OrchestratorJobsBulkJobResponse) SetOrchestratorJobPairs(v []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair)` + +SetOrchestratorJobPairs sets OrchestratorJobPairs field to given value. + +### HasOrchestratorJobPairs + +`func (o *OrchestratorJobsBulkJobResponse) HasOrchestratorJobPairs() bool` + +HasOrchestratorJobPairs returns a boolean if a field has been set. + +### SetOrchestratorJobPairsNil + +`func (o *OrchestratorJobsBulkJobResponse) SetOrchestratorJobPairsNil(b bool)` + + SetOrchestratorJobPairsNil sets the value for OrchestratorJobPairs to be an explicit nil + +### UnsetOrchestratorJobPairs +`func (o *OrchestratorJobsBulkJobResponse) UnsetOrchestratorJobPairs()` + +UnsetOrchestratorJobPairs ensures that no value is present for OrchestratorJobPairs, not even an explicit nil +### GetFailedOrchestratorIds + +`func (o *OrchestratorJobsBulkJobResponse) GetFailedOrchestratorIds() []string` + +GetFailedOrchestratorIds returns the FailedOrchestratorIds field if non-nil, zero value otherwise. + +### GetFailedOrchestratorIdsOk + +`func (o *OrchestratorJobsBulkJobResponse) GetFailedOrchestratorIdsOk() (*[]string, bool)` + +GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedOrchestratorIds + +`func (o *OrchestratorJobsBulkJobResponse) SetFailedOrchestratorIds(v []string)` + +SetFailedOrchestratorIds sets FailedOrchestratorIds field to given value. + +### HasFailedOrchestratorIds + +`func (o *OrchestratorJobsBulkJobResponse) HasFailedOrchestratorIds() bool` + +HasFailedOrchestratorIds returns a boolean if a field has been set. + +### SetFailedOrchestratorIdsNil + +`func (o *OrchestratorJobsBulkJobResponse) SetFailedOrchestratorIdsNil(b bool)` + + SetFailedOrchestratorIdsNil sets the value for FailedOrchestratorIds to be an explicit nil + +### UnsetFailedOrchestratorIds +`func (o *OrchestratorJobsBulkJobResponse) UnsetFailedOrchestratorIds()` + +UnsetFailedOrchestratorIds ensures that no value is present for FailedOrchestratorIds, not even an explicit nil +### GetJobTypeName + +`func (o *OrchestratorJobsBulkJobResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *OrchestratorJobsBulkJobResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *OrchestratorJobsBulkJobResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *OrchestratorJobsBulkJobResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### SetJobTypeNameNil + +`func (o *OrchestratorJobsBulkJobResponse) SetJobTypeNameNil(b bool)` + + SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil + +### UnsetJobTypeName +`func (o *OrchestratorJobsBulkJobResponse) UnsetJobTypeName()` + +UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +### GetSchedule + +`func (o *OrchestratorJobsBulkJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *OrchestratorJobsBulkJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *OrchestratorJobsBulkJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *OrchestratorJobsBulkJobResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *OrchestratorJobsBulkJobResponse) GetJobFields() []OrchestratorJobsJobFieldResponse` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *OrchestratorJobsBulkJobResponse) GetJobFieldsOk() (*[]OrchestratorJobsJobFieldResponse, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *OrchestratorJobsBulkJobResponse) SetJobFields(v []OrchestratorJobsJobFieldResponse)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *OrchestratorJobsBulkJobResponse) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *OrchestratorJobsBulkJobResponse) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *OrchestratorJobsBulkJobResponse) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil +### GetRequestTimestamp + +`func (o *OrchestratorJobsBulkJobResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *OrchestratorJobsBulkJobResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *OrchestratorJobsBulkJobResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *OrchestratorJobsBulkJobResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsCustomJobResultDataResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsCustomJobResultDataResponse.md new file mode 100644 index 0000000..87d2f6f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsCustomJobResultDataResponse.md @@ -0,0 +1,92 @@ +# OrchestratorJobsCustomJobResultDataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobHistoryId** | Pointer to **int64** | | [optional] +**Data** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewOrchestratorJobsCustomJobResultDataResponse + +`func NewOrchestratorJobsCustomJobResultDataResponse() *OrchestratorJobsCustomJobResultDataResponse` + +NewOrchestratorJobsCustomJobResultDataResponse instantiates a new OrchestratorJobsCustomJobResultDataResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsCustomJobResultDataResponseWithDefaults + +`func NewOrchestratorJobsCustomJobResultDataResponseWithDefaults() *OrchestratorJobsCustomJobResultDataResponse` + +NewOrchestratorJobsCustomJobResultDataResponseWithDefaults instantiates a new OrchestratorJobsCustomJobResultDataResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobHistoryId + +`func (o *OrchestratorJobsCustomJobResultDataResponse) GetJobHistoryId() int64` + +GetJobHistoryId returns the JobHistoryId field if non-nil, zero value otherwise. + +### GetJobHistoryIdOk + +`func (o *OrchestratorJobsCustomJobResultDataResponse) GetJobHistoryIdOk() (*int64, bool)` + +GetJobHistoryIdOk returns a tuple with the JobHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobHistoryId + +`func (o *OrchestratorJobsCustomJobResultDataResponse) SetJobHistoryId(v int64)` + +SetJobHistoryId sets JobHistoryId field to given value. + +### HasJobHistoryId + +`func (o *OrchestratorJobsCustomJobResultDataResponse) HasJobHistoryId() bool` + +HasJobHistoryId returns a boolean if a field has been set. + +### GetData + +`func (o *OrchestratorJobsCustomJobResultDataResponse) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrchestratorJobsCustomJobResultDataResponse) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrchestratorJobsCustomJobResultDataResponse) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OrchestratorJobsCustomJobResultDataResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *OrchestratorJobsCustomJobResultDataResponse) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *OrchestratorJobsCustomJobResultDataResponse) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsJobFieldResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobFieldResponse.md new file mode 100644 index 0000000..7a9c3bb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobFieldResponse.md @@ -0,0 +1,102 @@ +# OrchestratorJobsJobFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobTypeField** | Pointer to **NullableString** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewOrchestratorJobsJobFieldResponse + +`func NewOrchestratorJobsJobFieldResponse() *OrchestratorJobsJobFieldResponse` + +NewOrchestratorJobsJobFieldResponse instantiates a new OrchestratorJobsJobFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsJobFieldResponseWithDefaults + +`func NewOrchestratorJobsJobFieldResponseWithDefaults() *OrchestratorJobsJobFieldResponse` + +NewOrchestratorJobsJobFieldResponseWithDefaults instantiates a new OrchestratorJobsJobFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobTypeField + +`func (o *OrchestratorJobsJobFieldResponse) GetJobTypeField() string` + +GetJobTypeField returns the JobTypeField field if non-nil, zero value otherwise. + +### GetJobTypeFieldOk + +`func (o *OrchestratorJobsJobFieldResponse) GetJobTypeFieldOk() (*string, bool)` + +GetJobTypeFieldOk returns a tuple with the JobTypeField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeField + +`func (o *OrchestratorJobsJobFieldResponse) SetJobTypeField(v string)` + +SetJobTypeField sets JobTypeField field to given value. + +### HasJobTypeField + +`func (o *OrchestratorJobsJobFieldResponse) HasJobTypeField() bool` + +HasJobTypeField returns a boolean if a field has been set. + +### SetJobTypeFieldNil + +`func (o *OrchestratorJobsJobFieldResponse) SetJobTypeFieldNil(b bool)` + + SetJobTypeFieldNil sets the value for JobTypeField to be an explicit nil + +### UnsetJobTypeField +`func (o *OrchestratorJobsJobFieldResponse) UnsetJobTypeField()` + +UnsetJobTypeField ensures that no value is present for JobTypeField, not even an explicit nil +### GetValue + +`func (o *OrchestratorJobsJobFieldResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *OrchestratorJobsJobFieldResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *OrchestratorJobsJobFieldResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *OrchestratorJobsJobFieldResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *OrchestratorJobsJobFieldResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *OrchestratorJobsJobFieldResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsJobResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobResponse.md new file mode 100644 index 0000000..5bcbf76 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobResponse.md @@ -0,0 +1,206 @@ +# OrchestratorJobsJobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | Pointer to **string** | | [optional] +**OrchestratorId** | Pointer to **string** | | [optional] +**JobTypeName** | Pointer to **NullableString** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to [**[]OrchestratorJobsJobFieldResponse**](OrchestratorJobsJobFieldResponse.md) | | [optional] +**RequestTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrchestratorJobsJobResponse + +`func NewOrchestratorJobsJobResponse() *OrchestratorJobsJobResponse` + +NewOrchestratorJobsJobResponse instantiates a new OrchestratorJobsJobResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsJobResponseWithDefaults + +`func NewOrchestratorJobsJobResponseWithDefaults() *OrchestratorJobsJobResponse` + +NewOrchestratorJobsJobResponseWithDefaults instantiates a new OrchestratorJobsJobResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobId + +`func (o *OrchestratorJobsJobResponse) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *OrchestratorJobsJobResponse) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *OrchestratorJobsJobResponse) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *OrchestratorJobsJobResponse) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetOrchestratorId + +`func (o *OrchestratorJobsJobResponse) GetOrchestratorId() string` + +GetOrchestratorId returns the OrchestratorId field if non-nil, zero value otherwise. + +### GetOrchestratorIdOk + +`func (o *OrchestratorJobsJobResponse) GetOrchestratorIdOk() (*string, bool)` + +GetOrchestratorIdOk returns a tuple with the OrchestratorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorId + +`func (o *OrchestratorJobsJobResponse) SetOrchestratorId(v string)` + +SetOrchestratorId sets OrchestratorId field to given value. + +### HasOrchestratorId + +`func (o *OrchestratorJobsJobResponse) HasOrchestratorId() bool` + +HasOrchestratorId returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *OrchestratorJobsJobResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *OrchestratorJobsJobResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *OrchestratorJobsJobResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *OrchestratorJobsJobResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### SetJobTypeNameNil + +`func (o *OrchestratorJobsJobResponse) SetJobTypeNameNil(b bool)` + + SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil + +### UnsetJobTypeName +`func (o *OrchestratorJobsJobResponse) UnsetJobTypeName()` + +UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +### GetSchedule + +`func (o *OrchestratorJobsJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *OrchestratorJobsJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *OrchestratorJobsJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *OrchestratorJobsJobResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *OrchestratorJobsJobResponse) GetJobFields() []OrchestratorJobsJobFieldResponse` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *OrchestratorJobsJobResponse) GetJobFieldsOk() (*[]OrchestratorJobsJobFieldResponse, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *OrchestratorJobsJobResponse) SetJobFields(v []OrchestratorJobsJobFieldResponse)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *OrchestratorJobsJobResponse) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### SetJobFieldsNil + +`func (o *OrchestratorJobsJobResponse) SetJobFieldsNil(b bool)` + + SetJobFieldsNil sets the value for JobFields to be an explicit nil + +### UnsetJobFields +`func (o *OrchestratorJobsJobResponse) UnsetJobFields()` + +UnsetJobFields ensures that no value is present for JobFields, not even an explicit nil +### GetRequestTimestamp + +`func (o *OrchestratorJobsJobResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *OrchestratorJobsJobResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *OrchestratorJobsJobResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *OrchestratorJobsJobResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeFieldResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeFieldResponse.md new file mode 100644 index 0000000..3ce97dd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeFieldResponse.md @@ -0,0 +1,154 @@ +# OrchestratorJobsJobTypeFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to [**CSSCMSDataModelEnumsDataType**](CSSCMSDataModelEnumsDataType.md) | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewOrchestratorJobsJobTypeFieldResponse + +`func NewOrchestratorJobsJobTypeFieldResponse() *OrchestratorJobsJobTypeFieldResponse` + +NewOrchestratorJobsJobTypeFieldResponse instantiates a new OrchestratorJobsJobTypeFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsJobTypeFieldResponseWithDefaults + +`func NewOrchestratorJobsJobTypeFieldResponseWithDefaults() *OrchestratorJobsJobTypeFieldResponse` + +NewOrchestratorJobsJobTypeFieldResponseWithDefaults instantiates a new OrchestratorJobsJobTypeFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrchestratorJobsJobTypeFieldResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *OrchestratorJobsJobTypeFieldResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetType() CSSCMSDataModelEnumsDataType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetTypeOk() (*CSSCMSDataModelEnumsDataType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetType(v CSSCMSDataModelEnumsDataType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *OrchestratorJobsJobTypeFieldResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *OrchestratorJobsJobTypeFieldResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *OrchestratorJobsJobTypeFieldResponse) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetRequired + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *OrchestratorJobsJobTypeFieldResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *OrchestratorJobsJobTypeFieldResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *OrchestratorJobsJobTypeFieldResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeResponse.md new file mode 100644 index 0000000..13b5b21 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsJobTypeResponse.md @@ -0,0 +1,174 @@ +# OrchestratorJobsJobTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableString** | | [optional] +**JobTypeName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**JobTypeFields** | Pointer to [**[]OrchestratorJobsJobTypeFieldResponse**](OrchestratorJobsJobTypeFieldResponse.md) | | [optional] + +## Methods + +### NewOrchestratorJobsJobTypeResponse + +`func NewOrchestratorJobsJobTypeResponse() *OrchestratorJobsJobTypeResponse` + +NewOrchestratorJobsJobTypeResponse instantiates a new OrchestratorJobsJobTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsJobTypeResponseWithDefaults + +`func NewOrchestratorJobsJobTypeResponseWithDefaults() *OrchestratorJobsJobTypeResponse` + +NewOrchestratorJobsJobTypeResponseWithDefaults instantiates a new OrchestratorJobsJobTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *OrchestratorJobsJobTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrchestratorJobsJobTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrchestratorJobsJobTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *OrchestratorJobsJobTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *OrchestratorJobsJobTypeResponse) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *OrchestratorJobsJobTypeResponse) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetJobTypeName + +`func (o *OrchestratorJobsJobTypeResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *OrchestratorJobsJobTypeResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *OrchestratorJobsJobTypeResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *OrchestratorJobsJobTypeResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### SetJobTypeNameNil + +`func (o *OrchestratorJobsJobTypeResponse) SetJobTypeNameNil(b bool)` + + SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil + +### UnsetJobTypeName +`func (o *OrchestratorJobsJobTypeResponse) UnsetJobTypeName()` + +UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +### GetDescription + +`func (o *OrchestratorJobsJobTypeResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *OrchestratorJobsJobTypeResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *OrchestratorJobsJobTypeResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *OrchestratorJobsJobTypeResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *OrchestratorJobsJobTypeResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *OrchestratorJobsJobTypeResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetJobTypeFields + +`func (o *OrchestratorJobsJobTypeResponse) GetJobTypeFields() []OrchestratorJobsJobTypeFieldResponse` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *OrchestratorJobsJobTypeResponse) GetJobTypeFieldsOk() (*[]OrchestratorJobsJobTypeFieldResponse, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *OrchestratorJobsJobTypeResponse) SetJobTypeFields(v []OrchestratorJobsJobTypeFieldResponse)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *OrchestratorJobsJobTypeResponse) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + +### SetJobTypeFieldsNil + +`func (o *OrchestratorJobsJobTypeResponse) SetJobTypeFieldsNil(b bool)` + + SetJobTypeFieldsNil sets the value for JobTypeFields to be an explicit nil + +### UnsetJobTypeFields +`func (o *OrchestratorJobsJobTypeResponse) UnsetJobTypeFields()` + +UnsetJobTypeFields ensures that no value is present for JobTypeFields, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsRescheduleJobRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsRescheduleJobRequest.md new file mode 100644 index 0000000..09d894c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsRescheduleJobRequest.md @@ -0,0 +1,102 @@ +# OrchestratorJobsRescheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobAuditIds** | Pointer to **[]int64** | List of orchestrator job audit ids to be rescheduled | [optional] +**Query** | Pointer to **NullableString** | Query identifying orchestrator jobs to be rescheduled | [optional] + +## Methods + +### NewOrchestratorJobsRescheduleJobRequest + +`func NewOrchestratorJobsRescheduleJobRequest() *OrchestratorJobsRescheduleJobRequest` + +NewOrchestratorJobsRescheduleJobRequest instantiates a new OrchestratorJobsRescheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsRescheduleJobRequestWithDefaults + +`func NewOrchestratorJobsRescheduleJobRequestWithDefaults() *OrchestratorJobsRescheduleJobRequest` + +NewOrchestratorJobsRescheduleJobRequestWithDefaults instantiates a new OrchestratorJobsRescheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobAuditIds + +`func (o *OrchestratorJobsRescheduleJobRequest) GetJobAuditIds() []int64` + +GetJobAuditIds returns the JobAuditIds field if non-nil, zero value otherwise. + +### GetJobAuditIdsOk + +`func (o *OrchestratorJobsRescheduleJobRequest) GetJobAuditIdsOk() (*[]int64, bool)` + +GetJobAuditIdsOk returns a tuple with the JobAuditIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobAuditIds + +`func (o *OrchestratorJobsRescheduleJobRequest) SetJobAuditIds(v []int64)` + +SetJobAuditIds sets JobAuditIds field to given value. + +### HasJobAuditIds + +`func (o *OrchestratorJobsRescheduleJobRequest) HasJobAuditIds() bool` + +HasJobAuditIds returns a boolean if a field has been set. + +### SetJobAuditIdsNil + +`func (o *OrchestratorJobsRescheduleJobRequest) SetJobAuditIdsNil(b bool)` + + SetJobAuditIdsNil sets the value for JobAuditIds to be an explicit nil + +### UnsetJobAuditIds +`func (o *OrchestratorJobsRescheduleJobRequest) UnsetJobAuditIds()` + +UnsetJobAuditIds ensures that no value is present for JobAuditIds, not even an explicit nil +### GetQuery + +`func (o *OrchestratorJobsRescheduleJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OrchestratorJobsRescheduleJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OrchestratorJobsRescheduleJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *OrchestratorJobsRescheduleJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *OrchestratorJobsRescheduleJobRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *OrchestratorJobsRescheduleJobRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorJobsUnscheduleJobRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorJobsUnscheduleJobRequest.md new file mode 100644 index 0000000..dd94820 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorJobsUnscheduleJobRequest.md @@ -0,0 +1,102 @@ +# OrchestratorJobsUnscheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobIds** | Pointer to **[]string** | List of orchestrator job ids to be unscheduled | [optional] +**Query** | Pointer to **NullableString** | Query identifying orchestrator jobs to be unscheduled | [optional] + +## Methods + +### NewOrchestratorJobsUnscheduleJobRequest + +`func NewOrchestratorJobsUnscheduleJobRequest() *OrchestratorJobsUnscheduleJobRequest` + +NewOrchestratorJobsUnscheduleJobRequest instantiates a new OrchestratorJobsUnscheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorJobsUnscheduleJobRequestWithDefaults + +`func NewOrchestratorJobsUnscheduleJobRequestWithDefaults() *OrchestratorJobsUnscheduleJobRequest` + +NewOrchestratorJobsUnscheduleJobRequestWithDefaults instantiates a new OrchestratorJobsUnscheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobIds + +`func (o *OrchestratorJobsUnscheduleJobRequest) GetJobIds() []string` + +GetJobIds returns the JobIds field if non-nil, zero value otherwise. + +### GetJobIdsOk + +`func (o *OrchestratorJobsUnscheduleJobRequest) GetJobIdsOk() (*[]string, bool)` + +GetJobIdsOk returns a tuple with the JobIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobIds + +`func (o *OrchestratorJobsUnscheduleJobRequest) SetJobIds(v []string)` + +SetJobIds sets JobIds field to given value. + +### HasJobIds + +`func (o *OrchestratorJobsUnscheduleJobRequest) HasJobIds() bool` + +HasJobIds returns a boolean if a field has been set. + +### SetJobIdsNil + +`func (o *OrchestratorJobsUnscheduleJobRequest) SetJobIdsNil(b bool)` + + SetJobIdsNil sets the value for JobIds to be an explicit nil + +### UnsetJobIds +`func (o *OrchestratorJobsUnscheduleJobRequest) UnsetJobIds()` + +UnsetJobIds ensures that no value is present for JobIds, not even an explicit nil +### GetQuery + +`func (o *OrchestratorJobsUnscheduleJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OrchestratorJobsUnscheduleJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OrchestratorJobsUnscheduleJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *OrchestratorJobsUnscheduleJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### SetQueryNil + +`func (o *OrchestratorJobsUnscheduleJobRequest) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *OrchestratorJobsUnscheduleJobRequest) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentCreationRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentCreationRequest.md new file mode 100644 index 0000000..9723cb4 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentCreationRequest.md @@ -0,0 +1,108 @@ +# OrchestratorPoolsAgentPoolAgentCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**EnableDiscover** | Pointer to **bool** | | [optional] +**EnableMonitor** | Pointer to **bool** | | [optional] + +## Methods + +### NewOrchestratorPoolsAgentPoolAgentCreationRequest + +`func NewOrchestratorPoolsAgentPoolAgentCreationRequest() *OrchestratorPoolsAgentPoolAgentCreationRequest` + +NewOrchestratorPoolsAgentPoolAgentCreationRequest instantiates a new OrchestratorPoolsAgentPoolAgentCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorPoolsAgentPoolAgentCreationRequestWithDefaults + +`func NewOrchestratorPoolsAgentPoolAgentCreationRequestWithDefaults() *OrchestratorPoolsAgentPoolAgentCreationRequest` + +NewOrchestratorPoolsAgentPoolAgentCreationRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolAgentCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableDiscover() bool` + +GetEnableDiscover returns the EnableDiscover field if non-nil, zero value otherwise. + +### GetEnableDiscoverOk + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableDiscoverOk() (*bool, bool)` + +GetEnableDiscoverOk returns a tuple with the EnableDiscover field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetEnableDiscover(v bool)` + +SetEnableDiscover sets EnableDiscover field to given value. + +### HasEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasEnableDiscover() bool` + +HasEnableDiscover returns a boolean if a field has been set. + +### GetEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableMonitor() bool` + +GetEnableMonitor returns the EnableMonitor field if non-nil, zero value otherwise. + +### GetEnableMonitorOk + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableMonitorOk() (*bool, bool)` + +GetEnableMonitorOk returns a tuple with the EnableMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetEnableMonitor(v bool)` + +SetEnableMonitor sets EnableMonitor field to given value. + +### HasEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasEnableMonitor() bool` + +HasEnableMonitor returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentGetResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentGetResponse.md new file mode 100644 index 0000000..031d7ab --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolAgentGetResponse.md @@ -0,0 +1,232 @@ +# OrchestratorPoolsAgentPoolAgentGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**EnableDiscover** | Pointer to **bool** | | [optional] +**EnableMonitor** | Pointer to **bool** | | [optional] +**Version** | Pointer to **NullableString** | | [optional] +**AllowsDiscover** | Pointer to **bool** | | [optional] +**AllowsMonitor** | Pointer to **bool** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewOrchestratorPoolsAgentPoolAgentGetResponse + +`func NewOrchestratorPoolsAgentPoolAgentGetResponse() *OrchestratorPoolsAgentPoolAgentGetResponse` + +NewOrchestratorPoolsAgentPoolAgentGetResponse instantiates a new OrchestratorPoolsAgentPoolAgentGetResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorPoolsAgentPoolAgentGetResponseWithDefaults + +`func NewOrchestratorPoolsAgentPoolAgentGetResponseWithDefaults() *OrchestratorPoolsAgentPoolAgentGetResponse` + +NewOrchestratorPoolsAgentPoolAgentGetResponseWithDefaults instantiates a new OrchestratorPoolsAgentPoolAgentGetResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableDiscover() bool` + +GetEnableDiscover returns the EnableDiscover field if non-nil, zero value otherwise. + +### GetEnableDiscoverOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableDiscoverOk() (*bool, bool)` + +GetEnableDiscoverOk returns a tuple with the EnableDiscover field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetEnableDiscover(v bool)` + +SetEnableDiscover sets EnableDiscover field to given value. + +### HasEnableDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasEnableDiscover() bool` + +HasEnableDiscover returns a boolean if a field has been set. + +### GetEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableMonitor() bool` + +GetEnableMonitor returns the EnableMonitor field if non-nil, zero value otherwise. + +### GetEnableMonitorOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableMonitorOk() (*bool, bool)` + +GetEnableMonitorOk returns a tuple with the EnableMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetEnableMonitor(v bool)` + +SetEnableMonitor sets EnableMonitor field to given value. + +### HasEnableMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasEnableMonitor() bool` + +HasEnableMonitor returns a boolean if a field has been set. + +### GetVersion + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetAllowsDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsDiscover() bool` + +GetAllowsDiscover returns the AllowsDiscover field if non-nil, zero value otherwise. + +### GetAllowsDiscoverOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsDiscoverOk() (*bool, bool)` + +GetAllowsDiscoverOk returns a tuple with the AllowsDiscover field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowsDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAllowsDiscover(v bool)` + +SetAllowsDiscover sets AllowsDiscover field to given value. + +### HasAllowsDiscover + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAllowsDiscover() bool` + +HasAllowsDiscover returns a boolean if a field has been set. + +### GetAllowsMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsMonitor() bool` + +GetAllowsMonitor returns the AllowsMonitor field if non-nil, zero value otherwise. + +### GetAllowsMonitorOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsMonitorOk() (*bool, bool)` + +GetAllowsMonitorOk returns a tuple with the AllowsMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowsMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAllowsMonitor(v bool)` + +SetAllowsMonitor sets AllowsMonitor field to given value. + +### HasAllowsMonitor + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAllowsMonitor() bool` + +HasAllowsMonitor returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *OrchestratorPoolsAgentPoolAgentGetResponse) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolCreationRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolCreationRequest.md new file mode 100644 index 0000000..f373905 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolCreationRequest.md @@ -0,0 +1,87 @@ +# OrchestratorPoolsAgentPoolCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Agents** | Pointer to [**[]OrchestratorPoolsAgentPoolAgentCreationRequest**](OrchestratorPoolsAgentPoolAgentCreationRequest.md) | | [optional] + +## Methods + +### NewOrchestratorPoolsAgentPoolCreationRequest + +`func NewOrchestratorPoolsAgentPoolCreationRequest(name string, ) *OrchestratorPoolsAgentPoolCreationRequest` + +NewOrchestratorPoolsAgentPoolCreationRequest instantiates a new OrchestratorPoolsAgentPoolCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorPoolsAgentPoolCreationRequestWithDefaults + +`func NewOrchestratorPoolsAgentPoolCreationRequestWithDefaults() *OrchestratorPoolsAgentPoolCreationRequest` + +NewOrchestratorPoolsAgentPoolCreationRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgents + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) GetAgents() []OrchestratorPoolsAgentPoolAgentCreationRequest` + +GetAgents returns the Agents field if non-nil, zero value otherwise. + +### GetAgentsOk + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) GetAgentsOk() (*[]OrchestratorPoolsAgentPoolAgentCreationRequest, bool)` + +GetAgentsOk returns a tuple with the Agents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgents + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) SetAgents(v []OrchestratorPoolsAgentPoolAgentCreationRequest)` + +SetAgents sets Agents field to given value. + +### HasAgents + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) HasAgents() bool` + +HasAgents returns a boolean if a field has been set. + +### SetAgentsNil + +`func (o *OrchestratorPoolsAgentPoolCreationRequest) SetAgentsNil(b bool)` + + SetAgentsNil sets the value for Agents to be an explicit nil + +### UnsetAgents +`func (o *OrchestratorPoolsAgentPoolCreationRequest) UnsetAgents()` + +UnsetAgents ensures that no value is present for Agents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolGetResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolGetResponse.md new file mode 100644 index 0000000..5e55fd1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolGetResponse.md @@ -0,0 +1,180 @@ +# OrchestratorPoolsAgentPoolGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentPoolId** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DiscoverAgentsCount** | Pointer to **int32** | | [optional] +**MonitorAgentsCount** | Pointer to **int32** | | [optional] +**Agents** | Pointer to [**[]OrchestratorPoolsAgentPoolAgentGetResponse**](OrchestratorPoolsAgentPoolAgentGetResponse.md) | | [optional] + +## Methods + +### NewOrchestratorPoolsAgentPoolGetResponse + +`func NewOrchestratorPoolsAgentPoolGetResponse() *OrchestratorPoolsAgentPoolGetResponse` + +NewOrchestratorPoolsAgentPoolGetResponse instantiates a new OrchestratorPoolsAgentPoolGetResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorPoolsAgentPoolGetResponseWithDefaults + +`func NewOrchestratorPoolsAgentPoolGetResponseWithDefaults() *OrchestratorPoolsAgentPoolGetResponse` + +NewOrchestratorPoolsAgentPoolGetResponseWithDefaults instantiates a new OrchestratorPoolsAgentPoolGetResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentPoolId + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *OrchestratorPoolsAgentPoolGetResponse) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### GetName + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrchestratorPoolsAgentPoolGetResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *OrchestratorPoolsAgentPoolGetResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDiscoverAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetDiscoverAgentsCount() int32` + +GetDiscoverAgentsCount returns the DiscoverAgentsCount field if non-nil, zero value otherwise. + +### GetDiscoverAgentsCountOk + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetDiscoverAgentsCountOk() (*int32, bool)` + +GetDiscoverAgentsCountOk returns a tuple with the DiscoverAgentsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetDiscoverAgentsCount(v int32)` + +SetDiscoverAgentsCount sets DiscoverAgentsCount field to given value. + +### HasDiscoverAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) HasDiscoverAgentsCount() bool` + +HasDiscoverAgentsCount returns a boolean if a field has been set. + +### GetMonitorAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetMonitorAgentsCount() int32` + +GetMonitorAgentsCount returns the MonitorAgentsCount field if non-nil, zero value otherwise. + +### GetMonitorAgentsCountOk + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetMonitorAgentsCountOk() (*int32, bool)` + +GetMonitorAgentsCountOk returns a tuple with the MonitorAgentsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetMonitorAgentsCount(v int32)` + +SetMonitorAgentsCount sets MonitorAgentsCount field to given value. + +### HasMonitorAgentsCount + +`func (o *OrchestratorPoolsAgentPoolGetResponse) HasMonitorAgentsCount() bool` + +HasMonitorAgentsCount returns a boolean if a field has been set. + +### GetAgents + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgents() []OrchestratorPoolsAgentPoolAgentGetResponse` + +GetAgents returns the Agents field if non-nil, zero value otherwise. + +### GetAgentsOk + +`func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentsOk() (*[]OrchestratorPoolsAgentPoolAgentGetResponse, bool)` + +GetAgentsOk returns a tuple with the Agents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgents + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetAgents(v []OrchestratorPoolsAgentPoolAgentGetResponse)` + +SetAgents sets Agents field to given value. + +### HasAgents + +`func (o *OrchestratorPoolsAgentPoolGetResponse) HasAgents() bool` + +HasAgents returns a boolean if a field has been set. + +### SetAgentsNil + +`func (o *OrchestratorPoolsAgentPoolGetResponse) SetAgentsNil(b bool)` + + SetAgentsNil sets the value for Agents to be an explicit nil + +### UnsetAgents +`func (o *OrchestratorPoolsAgentPoolGetResponse) UnsetAgents()` + +UnsetAgents ensures that no value is present for Agents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolUpdateRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolUpdateRequest.md new file mode 100644 index 0000000..0853f12 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorPoolsAgentPoolUpdateRequest.md @@ -0,0 +1,108 @@ +# OrchestratorPoolsAgentPoolUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentPoolId** | **string** | | +**Name** | **string** | | +**Agents** | Pointer to [**[]OrchestratorPoolsAgentPoolAgentCreationRequest**](OrchestratorPoolsAgentPoolAgentCreationRequest.md) | | [optional] + +## Methods + +### NewOrchestratorPoolsAgentPoolUpdateRequest + +`func NewOrchestratorPoolsAgentPoolUpdateRequest(agentPoolId string, name string, ) *OrchestratorPoolsAgentPoolUpdateRequest` + +NewOrchestratorPoolsAgentPoolUpdateRequest instantiates a new OrchestratorPoolsAgentPoolUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorPoolsAgentPoolUpdateRequestWithDefaults + +`func NewOrchestratorPoolsAgentPoolUpdateRequestWithDefaults() *OrchestratorPoolsAgentPoolUpdateRequest` + +NewOrchestratorPoolsAgentPoolUpdateRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentPoolId + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + + +### GetName + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgents + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgents() []OrchestratorPoolsAgentPoolAgentCreationRequest` + +GetAgents returns the Agents field if non-nil, zero value otherwise. + +### GetAgentsOk + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentsOk() (*[]OrchestratorPoolsAgentPoolAgentCreationRequest, bool)` + +GetAgentsOk returns a tuple with the Agents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgents + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetAgents(v []OrchestratorPoolsAgentPoolAgentCreationRequest)` + +SetAgents sets Agents field to given value. + +### HasAgents + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) HasAgents() bool` + +HasAgents returns a boolean if a field has been set. + +### SetAgentsNil + +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetAgentsNil(b bool)` + + SetAgentsNil sets the value for Agents to be an explicit nil + +### UnsetAgents +`func (o *OrchestratorPoolsAgentPoolUpdateRequest) UnsetAgents()` + +UnsetAgents ensures that no value is present for Agents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintJobsResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintJobsResponse.md new file mode 100644 index 0000000..847b7c9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintJobsResponse.md @@ -0,0 +1,798 @@ +# OrchestratorsAgentBlueprintJobsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintJobId** | Pointer to **string** | | [optional] +**AgentBlueprintStoreId** | Pointer to **string** | | [optional] +**AgentBlueprintId** | Pointer to **string** | | [optional] +**JobType** | Pointer to **string** | | [optional] +**JobTypeName** | Pointer to **NullableString** | | [optional] +**OperationType** | Pointer to **NullableInt32** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**Contents** | Pointer to **NullableString** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**PrivateKeyEntry** | Pointer to **NullableBool** | | [optional] +**Overwrite** | Pointer to **NullableBool** | | [optional] +**HasEntryPassword** | Pointer to **NullableBool** | | [optional] +**HasPfxPassword** | Pointer to **NullableBool** | | [optional] +**RequestTimestamp** | Pointer to **NullableTime** | | [optional] +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Subject** | Pointer to **NullableString** | | [optional] +**Directories** | Pointer to **NullableString** | | [optional] +**IgnoredDirectories** | Pointer to **NullableString** | | [optional] +**SymLinks** | Pointer to **NullableBool** | | [optional] +**Compatibility** | Pointer to **NullableBool** | | [optional] +**FileExtensions** | Pointer to **NullableString** | | [optional] +**FileNamePatterns** | Pointer to **NullableString** | | [optional] +**AgentBlueprintStores** | Pointer to [**OrchestratorsAgentBlueprintStoresResponse**](OrchestratorsAgentBlueprintStoresResponse.md) | | [optional] + +## Methods + +### NewOrchestratorsAgentBlueprintJobsResponse + +`func NewOrchestratorsAgentBlueprintJobsResponse() *OrchestratorsAgentBlueprintJobsResponse` + +NewOrchestratorsAgentBlueprintJobsResponse instantiates a new OrchestratorsAgentBlueprintJobsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsAgentBlueprintJobsResponseWithDefaults + +`func NewOrchestratorsAgentBlueprintJobsResponseWithDefaults() *OrchestratorsAgentBlueprintJobsResponse` + +NewOrchestratorsAgentBlueprintJobsResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintJobsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintJobId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobId() string` + +GetAgentBlueprintJobId returns the AgentBlueprintJobId field if non-nil, zero value otherwise. + +### GetAgentBlueprintJobIdOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobIdOk() (*string, bool)` + +GetAgentBlueprintJobIdOk returns a tuple with the AgentBlueprintJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintJobId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintJobId(v string)` + +SetAgentBlueprintJobId sets AgentBlueprintJobId field to given value. + +### HasAgentBlueprintJobId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintJobId() bool` + +HasAgentBlueprintJobId returns a boolean if a field has been set. + +### GetAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreId() string` + +GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoreIdOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreIdOk() (*string, bool)` + +GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStoreId(v string)` + +SetAgentBlueprintStoreId sets AgentBlueprintStoreId field to given value. + +### HasAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStoreId() bool` + +HasAgentBlueprintStoreId returns a boolean if a field has been set. + +### GetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetJobType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### SetJobTypeNameNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobTypeNameNil(b bool)` + + SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil + +### UnsetJobTypeName +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetJobTypeName()` + +UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +### GetOperationType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetOperationType() int32` + +GetOperationType returns the OperationType field if non-nil, zero value otherwise. + +### GetOperationTypeOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetOperationTypeOk() (*int32, bool)` + +GetOperationTypeOk returns a tuple with the OperationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetOperationType(v int32)` + +SetOperationType sets OperationType field to given value. + +### HasOperationType + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasOperationType() bool` + +HasOperationType returns a boolean if a field has been set. + +### SetOperationTypeNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetOperationTypeNil(b bool)` + + SetOperationTypeNil sets the value for OperationType to be an explicit nil + +### UnsetOperationType +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetOperationType()` + +UnsetOperationType ensures that no value is present for OperationType, not even an explicit nil +### GetThumbprint + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetContents + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetContents() string` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetContentsOk() (*string, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetContents(v string)` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasContents() bool` + +HasContents returns a boolean if a field has been set. + +### SetContentsNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetContentsNil(b bool)` + + SetContentsNil sets the value for Contents to be an explicit nil + +### UnsetContents +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetContents()` + +UnsetContents ensures that no value is present for Contents, not even an explicit nil +### GetAlias + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetPrivateKeyEntry + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntry() bool` + +GetPrivateKeyEntry returns the PrivateKeyEntry field if non-nil, zero value otherwise. + +### GetPrivateKeyEntryOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntryOk() (*bool, bool)` + +GetPrivateKeyEntryOk returns a tuple with the PrivateKeyEntry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyEntry + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntry(v bool)` + +SetPrivateKeyEntry sets PrivateKeyEntry field to given value. + +### HasPrivateKeyEntry + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasPrivateKeyEntry() bool` + +HasPrivateKeyEntry returns a boolean if a field has been set. + +### SetPrivateKeyEntryNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntryNil(b bool)` + + SetPrivateKeyEntryNil sets the value for PrivateKeyEntry to be an explicit nil + +### UnsetPrivateKeyEntry +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetPrivateKeyEntry()` + +UnsetPrivateKeyEntry ensures that no value is present for PrivateKeyEntry, not even an explicit nil +### GetOverwrite + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### SetOverwriteNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetOverwriteNil(b bool)` + + SetOverwriteNil sets the value for Overwrite to be an explicit nil + +### UnsetOverwrite +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetOverwrite()` + +UnsetOverwrite ensures that no value is present for Overwrite, not even an explicit nil +### GetHasEntryPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasEntryPassword() bool` + +GetHasEntryPassword returns the HasEntryPassword field if non-nil, zero value otherwise. + +### GetHasEntryPasswordOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasEntryPasswordOk() (*bool, bool)` + +GetHasEntryPasswordOk returns a tuple with the HasEntryPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEntryPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasEntryPassword(v bool)` + +SetHasEntryPassword sets HasEntryPassword field to given value. + +### HasHasEntryPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasHasEntryPassword() bool` + +HasHasEntryPassword returns a boolean if a field has been set. + +### SetHasEntryPasswordNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasEntryPasswordNil(b bool)` + + SetHasEntryPasswordNil sets the value for HasEntryPassword to be an explicit nil + +### UnsetHasEntryPassword +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetHasEntryPassword()` + +UnsetHasEntryPassword ensures that no value is present for HasEntryPassword, not even an explicit nil +### GetHasPfxPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasPfxPassword() bool` + +GetHasPfxPassword returns the HasPfxPassword field if non-nil, zero value otherwise. + +### GetHasPfxPasswordOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasPfxPasswordOk() (*bool, bool)` + +GetHasPfxPasswordOk returns a tuple with the HasPfxPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasPfxPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasPfxPassword(v bool)` + +SetHasPfxPassword sets HasPfxPassword field to given value. + +### HasHasPfxPassword + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasHasPfxPassword() bool` + +HasHasPfxPassword returns a boolean if a field has been set. + +### SetHasPfxPasswordNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasPfxPasswordNil(b bool)` + + SetHasPfxPasswordNil sets the value for HasPfxPassword to be an explicit nil + +### UnsetHasPfxPassword +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetHasPfxPassword()` + +UnsetHasPfxPassword ensures that no value is present for HasPfxPassword, not even an explicit nil +### GetRequestTimestamp + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + +### SetRequestTimestampNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetRequestTimestampNil(b bool)` + + SetRequestTimestampNil sets the value for RequestTimestamp to be an explicit nil + +### UnsetRequestTimestamp +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetRequestTimestamp()` + +UnsetRequestTimestamp ensures that no value is present for RequestTimestamp, not even an explicit nil +### GetKeyfactorSchedule + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetSubject + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetDirectories() string` + +GetDirectories returns the Directories field if non-nil, zero value otherwise. + +### GetDirectoriesOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetDirectoriesOk() (*string, bool)` + +GetDirectoriesOk returns a tuple with the Directories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetDirectories(v string)` + +SetDirectories sets Directories field to given value. + +### HasDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasDirectories() bool` + +HasDirectories returns a boolean if a field has been set. + +### SetDirectoriesNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetDirectoriesNil(b bool)` + + SetDirectoriesNil sets the value for Directories to be an explicit nil + +### UnsetDirectories +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetDirectories()` + +UnsetDirectories ensures that no value is present for Directories, not even an explicit nil +### GetIgnoredDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectories() string` + +GetIgnoredDirectories returns the IgnoredDirectories field if non-nil, zero value otherwise. + +### GetIgnoredDirectoriesOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectoriesOk() (*string, bool)` + +GetIgnoredDirectoriesOk returns a tuple with the IgnoredDirectories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoredDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectories(v string)` + +SetIgnoredDirectories sets IgnoredDirectories field to given value. + +### HasIgnoredDirectories + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasIgnoredDirectories() bool` + +HasIgnoredDirectories returns a boolean if a field has been set. + +### SetIgnoredDirectoriesNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectoriesNil(b bool)` + + SetIgnoredDirectoriesNil sets the value for IgnoredDirectories to be an explicit nil + +### UnsetIgnoredDirectories +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetIgnoredDirectories()` + +UnsetIgnoredDirectories ensures that no value is present for IgnoredDirectories, not even an explicit nil +### GetSymLinks + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetSymLinks() bool` + +GetSymLinks returns the SymLinks field if non-nil, zero value otherwise. + +### GetSymLinksOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetSymLinksOk() (*bool, bool)` + +GetSymLinksOk returns a tuple with the SymLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSymLinks + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetSymLinks(v bool)` + +SetSymLinks sets SymLinks field to given value. + +### HasSymLinks + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasSymLinks() bool` + +HasSymLinks returns a boolean if a field has been set. + +### SetSymLinksNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetSymLinksNil(b bool)` + + SetSymLinksNil sets the value for SymLinks to be an explicit nil + +### UnsetSymLinks +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetSymLinks()` + +UnsetSymLinks ensures that no value is present for SymLinks, not even an explicit nil +### GetCompatibility + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetCompatibility() bool` + +GetCompatibility returns the Compatibility field if non-nil, zero value otherwise. + +### GetCompatibilityOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetCompatibilityOk() (*bool, bool)` + +GetCompatibilityOk returns a tuple with the Compatibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompatibility + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetCompatibility(v bool)` + +SetCompatibility sets Compatibility field to given value. + +### HasCompatibility + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasCompatibility() bool` + +HasCompatibility returns a boolean if a field has been set. + +### SetCompatibilityNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetCompatibilityNil(b bool)` + + SetCompatibilityNil sets the value for Compatibility to be an explicit nil + +### UnsetCompatibility +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetCompatibility()` + +UnsetCompatibility ensures that no value is present for Compatibility, not even an explicit nil +### GetFileExtensions + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileExtensions() string` + +GetFileExtensions returns the FileExtensions field if non-nil, zero value otherwise. + +### GetFileExtensionsOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileExtensionsOk() (*string, bool)` + +GetFileExtensionsOk returns a tuple with the FileExtensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileExtensions + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileExtensions(v string)` + +SetFileExtensions sets FileExtensions field to given value. + +### HasFileExtensions + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasFileExtensions() bool` + +HasFileExtensions returns a boolean if a field has been set. + +### SetFileExtensionsNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileExtensionsNil(b bool)` + + SetFileExtensionsNil sets the value for FileExtensions to be an explicit nil + +### UnsetFileExtensions +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetFileExtensions()` + +UnsetFileExtensions ensures that no value is present for FileExtensions, not even an explicit nil +### GetFileNamePatterns + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileNamePatterns() string` + +GetFileNamePatterns returns the FileNamePatterns field if non-nil, zero value otherwise. + +### GetFileNamePatternsOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileNamePatternsOk() (*string, bool)` + +GetFileNamePatternsOk returns a tuple with the FileNamePatterns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileNamePatterns + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileNamePatterns(v string)` + +SetFileNamePatterns sets FileNamePatterns field to given value. + +### HasFileNamePatterns + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasFileNamePatterns() bool` + +HasFileNamePatterns returns a boolean if a field has been set. + +### SetFileNamePatternsNil + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileNamePatternsNil(b bool)` + + SetFileNamePatternsNil sets the value for FileNamePatterns to be an explicit nil + +### UnsetFileNamePatterns +`func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetFileNamePatterns()` + +UnsetFileNamePatterns ensures that no value is present for FileNamePatterns, not even an explicit nil +### GetAgentBlueprintStores + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStores() OrchestratorsAgentBlueprintStoresResponse` + +GetAgentBlueprintStores returns the AgentBlueprintStores field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoresOk + +`func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoresOk() (*OrchestratorsAgentBlueprintStoresResponse, bool)` + +GetAgentBlueprintStoresOk returns a tuple with the AgentBlueprintStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStores + +`func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStores(v OrchestratorsAgentBlueprintStoresResponse)` + +SetAgentBlueprintStores sets AgentBlueprintStores field to given value. + +### HasAgentBlueprintStores + +`func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStores() bool` + +HasAgentBlueprintStores returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintResponse.md new file mode 100644 index 0000000..880a2f3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintResponse.md @@ -0,0 +1,154 @@ +# OrchestratorsAgentBlueprintResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintId** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**RequiredCapabilities** | Pointer to **[]string** | | [optional] +**LastModified** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrchestratorsAgentBlueprintResponse + +`func NewOrchestratorsAgentBlueprintResponse() *OrchestratorsAgentBlueprintResponse` + +NewOrchestratorsAgentBlueprintResponse instantiates a new OrchestratorsAgentBlueprintResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsAgentBlueprintResponseWithDefaults + +`func NewOrchestratorsAgentBlueprintResponseWithDefaults() *OrchestratorsAgentBlueprintResponse` + +NewOrchestratorsAgentBlueprintResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *OrchestratorsAgentBlueprintResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetName + +`func (o *OrchestratorsAgentBlueprintResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorsAgentBlueprintResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorsAgentBlueprintResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrchestratorsAgentBlueprintResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *OrchestratorsAgentBlueprintResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *OrchestratorsAgentBlueprintResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetRequiredCapabilities + +`func (o *OrchestratorsAgentBlueprintResponse) GetRequiredCapabilities() []string` + +GetRequiredCapabilities returns the RequiredCapabilities field if non-nil, zero value otherwise. + +### GetRequiredCapabilitiesOk + +`func (o *OrchestratorsAgentBlueprintResponse) GetRequiredCapabilitiesOk() (*[]string, bool)` + +GetRequiredCapabilitiesOk returns a tuple with the RequiredCapabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredCapabilities + +`func (o *OrchestratorsAgentBlueprintResponse) SetRequiredCapabilities(v []string)` + +SetRequiredCapabilities sets RequiredCapabilities field to given value. + +### HasRequiredCapabilities + +`func (o *OrchestratorsAgentBlueprintResponse) HasRequiredCapabilities() bool` + +HasRequiredCapabilities returns a boolean if a field has been set. + +### SetRequiredCapabilitiesNil + +`func (o *OrchestratorsAgentBlueprintResponse) SetRequiredCapabilitiesNil(b bool)` + + SetRequiredCapabilitiesNil sets the value for RequiredCapabilities to be an explicit nil + +### UnsetRequiredCapabilities +`func (o *OrchestratorsAgentBlueprintResponse) UnsetRequiredCapabilities()` + +UnsetRequiredCapabilities ensures that no value is present for RequiredCapabilities, not even an explicit nil +### GetLastModified + +`func (o *OrchestratorsAgentBlueprintResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *OrchestratorsAgentBlueprintResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *OrchestratorsAgentBlueprintResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *OrchestratorsAgentBlueprintResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintStoresResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintStoresResponse.md new file mode 100644 index 0000000..91320d1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsAgentBlueprintStoresResponse.md @@ -0,0 +1,294 @@ +# OrchestratorsAgentBlueprintStoresResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintStoreId** | Pointer to **string** | | [optional] +**AgentBlueprintId** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **NullableString** | | [optional] +**ContainerId** | Pointer to **int32** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CertStoreTypeName** | Pointer to **NullableString** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewOrchestratorsAgentBlueprintStoresResponse + +`func NewOrchestratorsAgentBlueprintStoresResponse() *OrchestratorsAgentBlueprintStoresResponse` + +NewOrchestratorsAgentBlueprintStoresResponse instantiates a new OrchestratorsAgentBlueprintStoresResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsAgentBlueprintStoresResponseWithDefaults + +`func NewOrchestratorsAgentBlueprintStoresResponseWithDefaults() *OrchestratorsAgentBlueprintStoresResponse` + +NewOrchestratorsAgentBlueprintStoresResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintStoresResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreId() string` + +GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoreIdOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreIdOk() (*string, bool)` + +GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintStoreId(v string)` + +SetAgentBlueprintStoreId sets AgentBlueprintStoreId field to given value. + +### HasAgentBlueprintStoreId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintStoreId() bool` + +HasAgentBlueprintStoreId returns a boolean if a field has been set. + +### GetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetStorePath + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### SetStorePathNil + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetStorePathNil(b bool)` + + SetStorePathNil sets the value for StorePath to be an explicit nil + +### UnsetStorePath +`func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetStorePath()` + +UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +### GetContainerId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCertStoreTypeName + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeName() string` + +GetCertStoreTypeName returns the CertStoreTypeName field if non-nil, zero value otherwise. + +### GetCertStoreTypeNameOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeNameOk() (*string, bool)` + +GetCertStoreTypeNameOk returns a tuple with the CertStoreTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreTypeName + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeName(v string)` + +SetCertStoreTypeName sets CertStoreTypeName field to given value. + +### HasCertStoreTypeName + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasCertStoreTypeName() bool` + +HasCertStoreTypeName returns a boolean if a field has been set. + +### SetCertStoreTypeNameNil + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeNameNil(b bool)` + + SetCertStoreTypeNameNil sets the value for CertStoreTypeName to be an explicit nil + +### UnsetCertStoreTypeName +`func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetCertStoreTypeName()` + +UnsetCertStoreTypeName ensures that no value is present for CertStoreTypeName, not even an explicit nil +### GetApproved + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *OrchestratorsAgentBlueprintStoresResponse) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *OrchestratorsAgentBlueprintStoresResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *OrchestratorsAgentBlueprintStoresResponse) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsAgentResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsAgentResponse.md new file mode 100644 index 0000000..3bdac4f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsAgentResponse.md @@ -0,0 +1,566 @@ +# OrchestratorsAgentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **NullableString** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**AgentPlatform** | Pointer to [**CSSCMSCoreEnumsAgentPlatformType**](CSSCMSCoreEnumsAgentPlatformType.md) | | [optional] +**Version** | Pointer to **NullableString** | | [optional] +**Status** | Pointer to [**CSSCMSCoreEnumsAgentStatusType**](CSSCMSCoreEnumsAgentStatusType.md) | | [optional] +**LastSeen** | Pointer to **time.Time** | | [optional] +**Capabilities** | Pointer to **[]string** | | [optional] +**Blueprint** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**LegacyThumbprint** | Pointer to **NullableString** | | [optional] +**AuthCertificateReenrollment** | Pointer to **NullableString** | | [optional] +**LastThumbprintUsed** | Pointer to **NullableString** | | [optional] +**LastErrorCode** | Pointer to **NullableInt64** | | [optional] +**LastErrorMessage** | Pointer to **NullableString** | | [optional] +**JobTypes** | Pointer to [**[]OrchestratorsJobTypesResponse**](OrchestratorsJobTypesResponse.md) | | [optional] + +## Methods + +### NewOrchestratorsAgentResponse + +`func NewOrchestratorsAgentResponse() *OrchestratorsAgentResponse` + +NewOrchestratorsAgentResponse instantiates a new OrchestratorsAgentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsAgentResponseWithDefaults + +`func NewOrchestratorsAgentResponseWithDefaults() *OrchestratorsAgentResponse` + +NewOrchestratorsAgentResponseWithDefaults instantiates a new OrchestratorsAgentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *OrchestratorsAgentResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *OrchestratorsAgentResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *OrchestratorsAgentResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *OrchestratorsAgentResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *OrchestratorsAgentResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *OrchestratorsAgentResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *OrchestratorsAgentResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *OrchestratorsAgentResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### SetClientMachineNil + +`func (o *OrchestratorsAgentResponse) SetClientMachineNil(b bool)` + + SetClientMachineNil sets the value for ClientMachine to be an explicit nil + +### UnsetClientMachine +`func (o *OrchestratorsAgentResponse) UnsetClientMachine()` + +UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +### GetUsername + +`func (o *OrchestratorsAgentResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *OrchestratorsAgentResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *OrchestratorsAgentResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *OrchestratorsAgentResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *OrchestratorsAgentResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *OrchestratorsAgentResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetAgentPlatform + +`func (o *OrchestratorsAgentResponse) GetAgentPlatform() CSSCMSCoreEnumsAgentPlatformType` + +GetAgentPlatform returns the AgentPlatform field if non-nil, zero value otherwise. + +### GetAgentPlatformOk + +`func (o *OrchestratorsAgentResponse) GetAgentPlatformOk() (*CSSCMSCoreEnumsAgentPlatformType, bool)` + +GetAgentPlatformOk returns a tuple with the AgentPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPlatform + +`func (o *OrchestratorsAgentResponse) SetAgentPlatform(v CSSCMSCoreEnumsAgentPlatformType)` + +SetAgentPlatform sets AgentPlatform field to given value. + +### HasAgentPlatform + +`func (o *OrchestratorsAgentResponse) HasAgentPlatform() bool` + +HasAgentPlatform returns a boolean if a field has been set. + +### GetVersion + +`func (o *OrchestratorsAgentResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *OrchestratorsAgentResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *OrchestratorsAgentResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *OrchestratorsAgentResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *OrchestratorsAgentResponse) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *OrchestratorsAgentResponse) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetStatus + +`func (o *OrchestratorsAgentResponse) GetStatus() CSSCMSCoreEnumsAgentStatusType` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OrchestratorsAgentResponse) GetStatusOk() (*CSSCMSCoreEnumsAgentStatusType, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *OrchestratorsAgentResponse) SetStatus(v CSSCMSCoreEnumsAgentStatusType)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *OrchestratorsAgentResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetLastSeen + +`func (o *OrchestratorsAgentResponse) GetLastSeen() time.Time` + +GetLastSeen returns the LastSeen field if non-nil, zero value otherwise. + +### GetLastSeenOk + +`func (o *OrchestratorsAgentResponse) GetLastSeenOk() (*time.Time, bool)` + +GetLastSeenOk returns a tuple with the LastSeen field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSeen + +`func (o *OrchestratorsAgentResponse) SetLastSeen(v time.Time)` + +SetLastSeen sets LastSeen field to given value. + +### HasLastSeen + +`func (o *OrchestratorsAgentResponse) HasLastSeen() bool` + +HasLastSeen returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *OrchestratorsAgentResponse) GetCapabilities() []string` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *OrchestratorsAgentResponse) GetCapabilitiesOk() (*[]string, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *OrchestratorsAgentResponse) SetCapabilities(v []string)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *OrchestratorsAgentResponse) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### SetCapabilitiesNil + +`func (o *OrchestratorsAgentResponse) SetCapabilitiesNil(b bool)` + + SetCapabilitiesNil sets the value for Capabilities to be an explicit nil + +### UnsetCapabilities +`func (o *OrchestratorsAgentResponse) UnsetCapabilities()` + +UnsetCapabilities ensures that no value is present for Capabilities, not even an explicit nil +### GetBlueprint + +`func (o *OrchestratorsAgentResponse) GetBlueprint() string` + +GetBlueprint returns the Blueprint field if non-nil, zero value otherwise. + +### GetBlueprintOk + +`func (o *OrchestratorsAgentResponse) GetBlueprintOk() (*string, bool)` + +GetBlueprintOk returns a tuple with the Blueprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprint + +`func (o *OrchestratorsAgentResponse) SetBlueprint(v string)` + +SetBlueprint sets Blueprint field to given value. + +### HasBlueprint + +`func (o *OrchestratorsAgentResponse) HasBlueprint() bool` + +HasBlueprint returns a boolean if a field has been set. + +### SetBlueprintNil + +`func (o *OrchestratorsAgentResponse) SetBlueprintNil(b bool)` + + SetBlueprintNil sets the value for Blueprint to be an explicit nil + +### UnsetBlueprint +`func (o *OrchestratorsAgentResponse) UnsetBlueprint()` + +UnsetBlueprint ensures that no value is present for Blueprint, not even an explicit nil +### GetThumbprint + +`func (o *OrchestratorsAgentResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *OrchestratorsAgentResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *OrchestratorsAgentResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *OrchestratorsAgentResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *OrchestratorsAgentResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *OrchestratorsAgentResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetLegacyThumbprint + +`func (o *OrchestratorsAgentResponse) GetLegacyThumbprint() string` + +GetLegacyThumbprint returns the LegacyThumbprint field if non-nil, zero value otherwise. + +### GetLegacyThumbprintOk + +`func (o *OrchestratorsAgentResponse) GetLegacyThumbprintOk() (*string, bool)` + +GetLegacyThumbprintOk returns a tuple with the LegacyThumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyThumbprint + +`func (o *OrchestratorsAgentResponse) SetLegacyThumbprint(v string)` + +SetLegacyThumbprint sets LegacyThumbprint field to given value. + +### HasLegacyThumbprint + +`func (o *OrchestratorsAgentResponse) HasLegacyThumbprint() bool` + +HasLegacyThumbprint returns a boolean if a field has been set. + +### SetLegacyThumbprintNil + +`func (o *OrchestratorsAgentResponse) SetLegacyThumbprintNil(b bool)` + + SetLegacyThumbprintNil sets the value for LegacyThumbprint to be an explicit nil + +### UnsetLegacyThumbprint +`func (o *OrchestratorsAgentResponse) UnsetLegacyThumbprint()` + +UnsetLegacyThumbprint ensures that no value is present for LegacyThumbprint, not even an explicit nil +### GetAuthCertificateReenrollment + +`func (o *OrchestratorsAgentResponse) GetAuthCertificateReenrollment() string` + +GetAuthCertificateReenrollment returns the AuthCertificateReenrollment field if non-nil, zero value otherwise. + +### GetAuthCertificateReenrollmentOk + +`func (o *OrchestratorsAgentResponse) GetAuthCertificateReenrollmentOk() (*string, bool)` + +GetAuthCertificateReenrollmentOk returns a tuple with the AuthCertificateReenrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificateReenrollment + +`func (o *OrchestratorsAgentResponse) SetAuthCertificateReenrollment(v string)` + +SetAuthCertificateReenrollment sets AuthCertificateReenrollment field to given value. + +### HasAuthCertificateReenrollment + +`func (o *OrchestratorsAgentResponse) HasAuthCertificateReenrollment() bool` + +HasAuthCertificateReenrollment returns a boolean if a field has been set. + +### SetAuthCertificateReenrollmentNil + +`func (o *OrchestratorsAgentResponse) SetAuthCertificateReenrollmentNil(b bool)` + + SetAuthCertificateReenrollmentNil sets the value for AuthCertificateReenrollment to be an explicit nil + +### UnsetAuthCertificateReenrollment +`func (o *OrchestratorsAgentResponse) UnsetAuthCertificateReenrollment()` + +UnsetAuthCertificateReenrollment ensures that no value is present for AuthCertificateReenrollment, not even an explicit nil +### GetLastThumbprintUsed + +`func (o *OrchestratorsAgentResponse) GetLastThumbprintUsed() string` + +GetLastThumbprintUsed returns the LastThumbprintUsed field if non-nil, zero value otherwise. + +### GetLastThumbprintUsedOk + +`func (o *OrchestratorsAgentResponse) GetLastThumbprintUsedOk() (*string, bool)` + +GetLastThumbprintUsedOk returns a tuple with the LastThumbprintUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastThumbprintUsed + +`func (o *OrchestratorsAgentResponse) SetLastThumbprintUsed(v string)` + +SetLastThumbprintUsed sets LastThumbprintUsed field to given value. + +### HasLastThumbprintUsed + +`func (o *OrchestratorsAgentResponse) HasLastThumbprintUsed() bool` + +HasLastThumbprintUsed returns a boolean if a field has been set. + +### SetLastThumbprintUsedNil + +`func (o *OrchestratorsAgentResponse) SetLastThumbprintUsedNil(b bool)` + + SetLastThumbprintUsedNil sets the value for LastThumbprintUsed to be an explicit nil + +### UnsetLastThumbprintUsed +`func (o *OrchestratorsAgentResponse) UnsetLastThumbprintUsed()` + +UnsetLastThumbprintUsed ensures that no value is present for LastThumbprintUsed, not even an explicit nil +### GetLastErrorCode + +`func (o *OrchestratorsAgentResponse) GetLastErrorCode() int64` + +GetLastErrorCode returns the LastErrorCode field if non-nil, zero value otherwise. + +### GetLastErrorCodeOk + +`func (o *OrchestratorsAgentResponse) GetLastErrorCodeOk() (*int64, bool)` + +GetLastErrorCodeOk returns a tuple with the LastErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastErrorCode + +`func (o *OrchestratorsAgentResponse) SetLastErrorCode(v int64)` + +SetLastErrorCode sets LastErrorCode field to given value. + +### HasLastErrorCode + +`func (o *OrchestratorsAgentResponse) HasLastErrorCode() bool` + +HasLastErrorCode returns a boolean if a field has been set. + +### SetLastErrorCodeNil + +`func (o *OrchestratorsAgentResponse) SetLastErrorCodeNil(b bool)` + + SetLastErrorCodeNil sets the value for LastErrorCode to be an explicit nil + +### UnsetLastErrorCode +`func (o *OrchestratorsAgentResponse) UnsetLastErrorCode()` + +UnsetLastErrorCode ensures that no value is present for LastErrorCode, not even an explicit nil +### GetLastErrorMessage + +`func (o *OrchestratorsAgentResponse) GetLastErrorMessage() string` + +GetLastErrorMessage returns the LastErrorMessage field if non-nil, zero value otherwise. + +### GetLastErrorMessageOk + +`func (o *OrchestratorsAgentResponse) GetLastErrorMessageOk() (*string, bool)` + +GetLastErrorMessageOk returns a tuple with the LastErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastErrorMessage + +`func (o *OrchestratorsAgentResponse) SetLastErrorMessage(v string)` + +SetLastErrorMessage sets LastErrorMessage field to given value. + +### HasLastErrorMessage + +`func (o *OrchestratorsAgentResponse) HasLastErrorMessage() bool` + +HasLastErrorMessage returns a boolean if a field has been set. + +### SetLastErrorMessageNil + +`func (o *OrchestratorsAgentResponse) SetLastErrorMessageNil(b bool)` + + SetLastErrorMessageNil sets the value for LastErrorMessage to be an explicit nil + +### UnsetLastErrorMessage +`func (o *OrchestratorsAgentResponse) UnsetLastErrorMessage()` + +UnsetLastErrorMessage ensures that no value is present for LastErrorMessage, not even an explicit nil +### GetJobTypes + +`func (o *OrchestratorsAgentResponse) GetJobTypes() []OrchestratorsJobTypesResponse` + +GetJobTypes returns the JobTypes field if non-nil, zero value otherwise. + +### GetJobTypesOk + +`func (o *OrchestratorsAgentResponse) GetJobTypesOk() (*[]OrchestratorsJobTypesResponse, bool)` + +GetJobTypesOk returns a tuple with the JobTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypes + +`func (o *OrchestratorsAgentResponse) SetJobTypes(v []OrchestratorsJobTypesResponse)` + +SetJobTypes sets JobTypes field to given value. + +### HasJobTypes + +`func (o *OrchestratorsAgentResponse) HasJobTypes() bool` + +HasJobTypes returns a boolean if a field has been set. + +### SetJobTypesNil + +`func (o *OrchestratorsAgentResponse) SetJobTypesNil(b bool)` + + SetJobTypesNil sets the value for JobTypes to be an explicit nil + +### UnsetJobTypes +`func (o *OrchestratorsAgentResponse) UnsetJobTypes()` + +UnsetJobTypes ensures that no value is present for JobTypes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsJobTypesResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsJobTypesResponse.md new file mode 100644 index 0000000..f986f68 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsJobTypesResponse.md @@ -0,0 +1,164 @@ +# OrchestratorsJobTypesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**CertStoreTypeShortName** | Pointer to **NullableString** | | [optional] +**CertStoreJobType** | Pointer to **NullableString** | | [optional] +**JobTypeId** | Pointer to **string** | | [optional] + +## Methods + +### NewOrchestratorsJobTypesResponse + +`func NewOrchestratorsJobTypesResponse() *OrchestratorsJobTypesResponse` + +NewOrchestratorsJobTypesResponse instantiates a new OrchestratorsJobTypesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsJobTypesResponseWithDefaults + +`func NewOrchestratorsJobTypesResponseWithDefaults() *OrchestratorsJobTypesResponse` + +NewOrchestratorsJobTypesResponseWithDefaults instantiates a new OrchestratorsJobTypesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OrchestratorsJobTypesResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrchestratorsJobTypesResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OrchestratorsJobTypesResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrchestratorsJobTypesResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *OrchestratorsJobTypesResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *OrchestratorsJobTypesResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCertStoreTypeShortName + +`func (o *OrchestratorsJobTypesResponse) GetCertStoreTypeShortName() string` + +GetCertStoreTypeShortName returns the CertStoreTypeShortName field if non-nil, zero value otherwise. + +### GetCertStoreTypeShortNameOk + +`func (o *OrchestratorsJobTypesResponse) GetCertStoreTypeShortNameOk() (*string, bool)` + +GetCertStoreTypeShortNameOk returns a tuple with the CertStoreTypeShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreTypeShortName + +`func (o *OrchestratorsJobTypesResponse) SetCertStoreTypeShortName(v string)` + +SetCertStoreTypeShortName sets CertStoreTypeShortName field to given value. + +### HasCertStoreTypeShortName + +`func (o *OrchestratorsJobTypesResponse) HasCertStoreTypeShortName() bool` + +HasCertStoreTypeShortName returns a boolean if a field has been set. + +### SetCertStoreTypeShortNameNil + +`func (o *OrchestratorsJobTypesResponse) SetCertStoreTypeShortNameNil(b bool)` + + SetCertStoreTypeShortNameNil sets the value for CertStoreTypeShortName to be an explicit nil + +### UnsetCertStoreTypeShortName +`func (o *OrchestratorsJobTypesResponse) UnsetCertStoreTypeShortName()` + +UnsetCertStoreTypeShortName ensures that no value is present for CertStoreTypeShortName, not even an explicit nil +### GetCertStoreJobType + +`func (o *OrchestratorsJobTypesResponse) GetCertStoreJobType() string` + +GetCertStoreJobType returns the CertStoreJobType field if non-nil, zero value otherwise. + +### GetCertStoreJobTypeOk + +`func (o *OrchestratorsJobTypesResponse) GetCertStoreJobTypeOk() (*string, bool)` + +GetCertStoreJobTypeOk returns a tuple with the CertStoreJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreJobType + +`func (o *OrchestratorsJobTypesResponse) SetCertStoreJobType(v string)` + +SetCertStoreJobType sets CertStoreJobType field to given value. + +### HasCertStoreJobType + +`func (o *OrchestratorsJobTypesResponse) HasCertStoreJobType() bool` + +HasCertStoreJobType returns a boolean if a field has been set. + +### SetCertStoreJobTypeNil + +`func (o *OrchestratorsJobTypesResponse) SetCertStoreJobTypeNil(b bool)` + + SetCertStoreJobTypeNil sets the value for CertStoreJobType to be an explicit nil + +### UnsetCertStoreJobType +`func (o *OrchestratorsJobTypesResponse) UnsetCertStoreJobType()` + +UnsetCertStoreJobType ensures that no value is present for CertStoreJobType, not even an explicit nil +### GetJobTypeId + +`func (o *OrchestratorsJobTypesResponse) GetJobTypeId() string` + +GetJobTypeId returns the JobTypeId field if non-nil, zero value otherwise. + +### GetJobTypeIdOk + +`func (o *OrchestratorsJobTypesResponse) GetJobTypeIdOk() (*string, bool)` + +GetJobTypeIdOk returns a tuple with the JobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeId + +`func (o *OrchestratorsJobTypesResponse) SetJobTypeId(v string)` + +SetJobTypeId sets JobTypeId field to given value. + +### HasJobTypeId + +`func (o *OrchestratorsJobTypesResponse) HasJobTypeId() bool` + +HasJobTypeId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md b/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md new file mode 100644 index 0000000..f46316e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md @@ -0,0 +1,87 @@ +# OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorIds** | Pointer to **[]string** | | [optional] +**Status** | **string** | | + +## Methods + +### NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + +`func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(status string, ) *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest` + +NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults + +`func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest` + +NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIds() []string` + +GetOrchestratorIds returns the OrchestratorIds field if non-nil, zero value otherwise. + +### GetOrchestratorIdsOk + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIdsOk() (*[]string, bool)` + +GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetOrchestratorIds(v []string)` + +SetOrchestratorIds sets OrchestratorIds field to given value. + +### HasOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) HasOrchestratorIds() bool` + +HasOrchestratorIds returns a boolean if a field has been set. + +### SetOrchestratorIdsNil + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetOrchestratorIdsNil(b bool)` + + SetOrchestratorIdsNil sets the value for OrchestratorIds to be an explicit nil + +### UnsetOrchestratorIds +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) UnsetOrchestratorIds()` + +UnsetOrchestratorIds ensures that no value is present for OrchestratorIds, not even an explicit nil +### GetStatus + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md b/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md new file mode 100644 index 0000000..5d4196e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md @@ -0,0 +1,92 @@ +# OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailedOrchestratorIds** | Pointer to **[]string** | | [optional] +**Status** | Pointer to [**CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment**](CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment.md) | | [optional] + +## Methods + +### NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + +`func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse` + +NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults + +`func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse` + +NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailedOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIds() []string` + +GetFailedOrchestratorIds returns the FailedOrchestratorIds field if non-nil, zero value otherwise. + +### GetFailedOrchestratorIdsOk + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIdsOk() (*[]string, bool)` + +GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetFailedOrchestratorIds(v []string)` + +SetFailedOrchestratorIds sets FailedOrchestratorIds field to given value. + +### HasFailedOrchestratorIds + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasFailedOrchestratorIds() bool` + +HasFailedOrchestratorIds returns a boolean if a field has been set. + +### SetFailedOrchestratorIdsNil + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetFailedOrchestratorIdsNil(b bool)` + + SetFailedOrchestratorIdsNil sets the value for FailedOrchestratorIds to be an explicit nil + +### UnsetFailedOrchestratorIds +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) UnsetFailedOrchestratorIds()` + +UnsetFailedOrchestratorIds ensures that no value is present for FailedOrchestratorIds, not even an explicit nil +### GetStatus + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatus() CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatusOk() (*CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetStatus(v CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMLocalEntriesApi.md b/v24/api/keyfactor/v1/docs/PAMLocalEntriesApi.md new file mode 100644 index 0000000..35096ac --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMLocalEntriesApi.md @@ -0,0 +1,314 @@ +# \PAMLocalEntriesApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePamProvidersLocalProviderIdEntries**](PAMLocalEntriesApi.md#CreatePamProvidersLocalProviderIdEntries) | **POST** /PamProviders/Local/{providerId}/Entries | Creates a new local PAM entry with the associated properties +[**DeletePamProvidersLocalProviderIdEntries**](PAMLocalEntriesApi.md#DeletePamProvidersLocalProviderIdEntries) | **DELETE** /PamProviders/Local/{providerId}/Entries | Deletes a local PAM entry +[**GetPamProvidersLocalProviderIdEntries**](PAMLocalEntriesApi.md#GetPamProvidersLocalProviderIdEntries) | **GET** /PamProviders/Local/{providerId}/Entries | Returns local PAM entries for the given PAM provider according to the provided filter and output parameters +[**UpdatePamProvidersLocalProviderIdEntries**](PAMLocalEntriesApi.md#UpdatePamProvidersLocalProviderIdEntries) | **PUT** /PamProviders/Local/{providerId}/Entries | Updates local PAM entry with the associated properties + + + +## CreatePamProvidersLocalProviderIdEntries + +> PAMLocalLocalPAMEntryResponse NewCreatePamProvidersLocalProviderIdEntriesRequest(ctx, providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMLocalLocalPAMEntryCreateRequest(pAMLocalLocalPAMEntryCreateRequest).Execute() + +Creates a new local PAM entry with the associated properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + providerId := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMLocalLocalPAMEntryCreateRequest := *openapiclient.NewPAMLocalLocalPAMEntryCreateRequest("SecretName_example", "SecretValue_example") // PAMLocalLocalPAMEntryCreateRequest | Local PAM entry properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMLocalEntriesApi.NewCreatePamProvidersLocalProviderIdEntriesRequest(context.Background(), providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMLocalLocalPAMEntryCreateRequest(pAMLocalLocalPAMEntryCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMLocalEntriesApi.CreatePamProvidersLocalProviderIdEntries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePamProvidersLocalProviderIdEntries`: PAMLocalLocalPAMEntryResponse + fmt.Fprintf(os.Stdout, "Response from `PAMLocalEntriesApi.CreatePamProvidersLocalProviderIdEntries`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**providerId** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePamProvidersLocalProviderIdEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMLocalLocalPAMEntryCreateRequest** | [**PAMLocalLocalPAMEntryCreateRequest**](PAMLocalLocalPAMEntryCreateRequest.md) | Local PAM entry properties to be used | + +### Return type + +[**PAMLocalLocalPAMEntryResponse**](PAMLocalLocalPAMEntryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePamProvidersLocalProviderIdEntries + +> NewDeletePamProvidersLocalProviderIdEntriesRequest(ctx, providerId).SecretName(secretName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a local PAM entry + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + providerId := int32(56) // int32 | Keyfactor identifier of the PAM provider + secretName := "secretName_example" // string | Name of the secret entry to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMLocalEntriesApi.NewDeletePamProvidersLocalProviderIdEntriesRequest(context.Background(), providerId).SecretName(secretName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMLocalEntriesApi.DeletePamProvidersLocalProviderIdEntries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**providerId** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePamProvidersLocalProviderIdEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **secretName** | **string** | Name of the secret entry to be deleted | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersLocalProviderIdEntries + +> []PAMLocalLocalPAMEntryResponse NewGetPamProvidersLocalProviderIdEntriesRequest(ctx, providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns local PAM entries for the given PAM provider according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + providerId := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMLocalEntriesApi.NewGetPamProvidersLocalProviderIdEntriesRequest(context.Background(), providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMLocalEntriesApi.GetPamProvidersLocalProviderIdEntries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersLocalProviderIdEntries`: []PAMLocalLocalPAMEntryResponse + fmt.Fprintf(os.Stdout, "Response from `PAMLocalEntriesApi.GetPamProvidersLocalProviderIdEntries`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**providerId** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersLocalProviderIdEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMLocalLocalPAMEntryResponse**](PAMLocalLocalPAMEntryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePamProvidersLocalProviderIdEntries + +> PAMLocalLocalPAMEntryResponse NewUpdatePamProvidersLocalProviderIdEntriesRequest(ctx, providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMLocalLocalPAMEntryUpdateRequest(pAMLocalLocalPAMEntryUpdateRequest).Execute() + +Updates local PAM entry with the associated properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + providerId := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMLocalLocalPAMEntryUpdateRequest := *openapiclient.NewPAMLocalLocalPAMEntryUpdateRequest("SecretName_example", "SecretValue_example") // PAMLocalLocalPAMEntryUpdateRequest | Local PAM entry properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMLocalEntriesApi.NewUpdatePamProvidersLocalProviderIdEntriesRequest(context.Background(), providerId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMLocalLocalPAMEntryUpdateRequest(pAMLocalLocalPAMEntryUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMLocalEntriesApi.UpdatePamProvidersLocalProviderIdEntries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePamProvidersLocalProviderIdEntries`: PAMLocalLocalPAMEntryResponse + fmt.Fprintf(os.Stdout, "Response from `PAMLocalEntriesApi.UpdatePamProvidersLocalProviderIdEntries`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**providerId** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePamProvidersLocalProviderIdEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMLocalLocalPAMEntryUpdateRequest** | [**PAMLocalLocalPAMEntryUpdateRequest**](PAMLocalLocalPAMEntryUpdateRequest.md) | Local PAM entry properties to be used | + +### Return type + +[**PAMLocalLocalPAMEntryResponse**](PAMLocalLocalPAMEntryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryCreateRequest.md b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryCreateRequest.md new file mode 100644 index 0000000..ace247c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryCreateRequest.md @@ -0,0 +1,108 @@ +# PAMLocalLocalPAMEntryCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecretName** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**SecretValue** | **string** | | + +## Methods + +### NewPAMLocalLocalPAMEntryCreateRequest + +`func NewPAMLocalLocalPAMEntryCreateRequest(secretName string, secretValue string, ) *PAMLocalLocalPAMEntryCreateRequest` + +NewPAMLocalLocalPAMEntryCreateRequest instantiates a new PAMLocalLocalPAMEntryCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMLocalLocalPAMEntryCreateRequestWithDefaults + +`func NewPAMLocalLocalPAMEntryCreateRequestWithDefaults() *PAMLocalLocalPAMEntryCreateRequest` + +NewPAMLocalLocalPAMEntryCreateRequestWithDefaults instantiates a new PAMLocalLocalPAMEntryCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecretName + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretName() string` + +GetSecretName returns the SecretName field if non-nil, zero value otherwise. + +### GetSecretNameOk + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretNameOk() (*string, bool)` + +GetSecretNameOk returns a tuple with the SecretName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretName + +`func (o *PAMLocalLocalPAMEntryCreateRequest) SetSecretName(v string)` + +SetSecretName sets SecretName field to given value. + + +### GetDescription + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PAMLocalLocalPAMEntryCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PAMLocalLocalPAMEntryCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *PAMLocalLocalPAMEntryCreateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *PAMLocalLocalPAMEntryCreateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetSecretValue + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretValue() string` + +GetSecretValue returns the SecretValue field if non-nil, zero value otherwise. + +### GetSecretValueOk + +`func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretValueOk() (*string, bool)` + +GetSecretValueOk returns a tuple with the SecretValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretValue + +`func (o *PAMLocalLocalPAMEntryCreateRequest) SetSecretValue(v string)` + +SetSecretValue sets SecretValue field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryResponse.md b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryResponse.md new file mode 100644 index 0000000..7951088 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryResponse.md @@ -0,0 +1,128 @@ +# PAMLocalLocalPAMEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProviderId** | Pointer to **int32** | | [optional] +**SecretName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewPAMLocalLocalPAMEntryResponse + +`func NewPAMLocalLocalPAMEntryResponse() *PAMLocalLocalPAMEntryResponse` + +NewPAMLocalLocalPAMEntryResponse instantiates a new PAMLocalLocalPAMEntryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMLocalLocalPAMEntryResponseWithDefaults + +`func NewPAMLocalLocalPAMEntryResponseWithDefaults() *PAMLocalLocalPAMEntryResponse` + +NewPAMLocalLocalPAMEntryResponseWithDefaults instantiates a new PAMLocalLocalPAMEntryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProviderId + +`func (o *PAMLocalLocalPAMEntryResponse) GetProviderId() int32` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *PAMLocalLocalPAMEntryResponse) GetProviderIdOk() (*int32, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *PAMLocalLocalPAMEntryResponse) SetProviderId(v int32)` + +SetProviderId sets ProviderId field to given value. + +### HasProviderId + +`func (o *PAMLocalLocalPAMEntryResponse) HasProviderId() bool` + +HasProviderId returns a boolean if a field has been set. + +### GetSecretName + +`func (o *PAMLocalLocalPAMEntryResponse) GetSecretName() string` + +GetSecretName returns the SecretName field if non-nil, zero value otherwise. + +### GetSecretNameOk + +`func (o *PAMLocalLocalPAMEntryResponse) GetSecretNameOk() (*string, bool)` + +GetSecretNameOk returns a tuple with the SecretName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretName + +`func (o *PAMLocalLocalPAMEntryResponse) SetSecretName(v string)` + +SetSecretName sets SecretName field to given value. + +### HasSecretName + +`func (o *PAMLocalLocalPAMEntryResponse) HasSecretName() bool` + +HasSecretName returns a boolean if a field has been set. + +### SetSecretNameNil + +`func (o *PAMLocalLocalPAMEntryResponse) SetSecretNameNil(b bool)` + + SetSecretNameNil sets the value for SecretName to be an explicit nil + +### UnsetSecretName +`func (o *PAMLocalLocalPAMEntryResponse) UnsetSecretName()` + +UnsetSecretName ensures that no value is present for SecretName, not even an explicit nil +### GetDescription + +`func (o *PAMLocalLocalPAMEntryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PAMLocalLocalPAMEntryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PAMLocalLocalPAMEntryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PAMLocalLocalPAMEntryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *PAMLocalLocalPAMEntryResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *PAMLocalLocalPAMEntryResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryUpdateRequest.md b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryUpdateRequest.md new file mode 100644 index 0000000..2127250 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMLocalLocalPAMEntryUpdateRequest.md @@ -0,0 +1,108 @@ +# PAMLocalLocalPAMEntryUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecretName** | **string** | | +**Description** | Pointer to **NullableString** | | [optional] +**SecretValue** | **string** | | + +## Methods + +### NewPAMLocalLocalPAMEntryUpdateRequest + +`func NewPAMLocalLocalPAMEntryUpdateRequest(secretName string, secretValue string, ) *PAMLocalLocalPAMEntryUpdateRequest` + +NewPAMLocalLocalPAMEntryUpdateRequest instantiates a new PAMLocalLocalPAMEntryUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMLocalLocalPAMEntryUpdateRequestWithDefaults + +`func NewPAMLocalLocalPAMEntryUpdateRequestWithDefaults() *PAMLocalLocalPAMEntryUpdateRequest` + +NewPAMLocalLocalPAMEntryUpdateRequestWithDefaults instantiates a new PAMLocalLocalPAMEntryUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecretName + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretName() string` + +GetSecretName returns the SecretName field if non-nil, zero value otherwise. + +### GetSecretNameOk + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretNameOk() (*string, bool)` + +GetSecretNameOk returns a tuple with the SecretName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretName + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) SetSecretName(v string)` + +SetSecretName sets SecretName field to given value. + + +### GetDescription + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *PAMLocalLocalPAMEntryUpdateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetSecretValue + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretValue() string` + +GetSecretValue returns the SecretValue field if non-nil, zero value otherwise. + +### GetSecretValueOk + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretValueOk() (*string, bool)` + +GetSecretValueOk returns a tuple with the SecretValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretValue + +`func (o *PAMLocalLocalPAMEntryUpdateRequest) SetSecretValue(v string)` + +SetSecretValue sets SecretValue field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMPamProviderTypeParamValueResponse.md b/v24/api/keyfactor/v1/docs/PAMPamProviderTypeParamValueResponse.md new file mode 100644 index 0000000..0c25418 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMPamProviderTypeParamValueResponse.md @@ -0,0 +1,190 @@ +# PAMPamProviderTypeParamValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**ProviderTypeParam** | Pointer to [**PAMProviderTypeParameterResponse**](PAMProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewPAMPamProviderTypeParamValueResponse + +`func NewPAMPamProviderTypeParamValueResponse() *PAMPamProviderTypeParamValueResponse` + +NewPAMPamProviderTypeParamValueResponse instantiates a new PAMPamProviderTypeParamValueResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMPamProviderTypeParamValueResponseWithDefaults + +`func NewPAMPamProviderTypeParamValueResponseWithDefaults() *PAMPamProviderTypeParamValueResponse` + +NewPAMPamProviderTypeParamValueResponseWithDefaults instantiates a new PAMPamProviderTypeParamValueResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMPamProviderTypeParamValueResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMPamProviderTypeParamValueResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMPamProviderTypeParamValueResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *PAMPamProviderTypeParamValueResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PAMPamProviderTypeParamValueResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PAMPamProviderTypeParamValueResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PAMPamProviderTypeParamValueResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParam() PAMProviderTypeParameterResponse` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParamOk() (*PAMProviderTypeParameterResponse, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) SetProviderTypeParam(v PAMProviderTypeParameterResponse)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderApi.md b/v24/api/keyfactor/v1/docs/PAMProviderApi.md new file mode 100644 index 0000000..9908628 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderApi.md @@ -0,0 +1,588 @@ +# \PAMProviderApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePamProviders**](PAMProviderApi.md#CreatePamProviders) | **POST** /PamProviders | Creates a new PAM provider with the associated properties +[**CreatePamProvidersTypes**](PAMProviderApi.md#CreatePamProvidersTypes) | **POST** /PamProviders/Types | Creates a new PAM provider type with the associated properties +[**DeletePamProvidersById**](PAMProviderApi.md#DeletePamProvidersById) | **DELETE** /PamProviders/{id} | Deletes a PAM Provider +[**DeletePamProvidersTypesById**](PAMProviderApi.md#DeletePamProvidersTypesById) | **DELETE** /PamProviders/Types/{id} | Deletes a PAM provider Type, as long as the PAM type is not currently in use. +[**GetPamProviders**](PAMProviderApi.md#GetPamProviders) | **GET** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +[**GetPamProvidersById**](PAMProviderApi.md#GetPamProvidersById) | **GET** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +[**GetPamProvidersTypes**](PAMProviderApi.md#GetPamProvidersTypes) | **GET** /PamProviders/Types | Returns all PAM provider types in the Keyfactor instance +[**UpdatePamProviders**](PAMProviderApi.md#UpdatePamProviders) | **PUT** /PamProviders | Updates an existing PAM provider according to the provided properties + + + +## CreatePamProviders + +> PAMProviderResponseLegacy NewCreatePamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderCreateRequest(pAMProviderCreateRequest).Execute() + +Creates a new PAM provider with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderCreateRequest := *openapiclient.NewPAMProviderCreateRequest("Name_example", *openapiclient.NewPAMProviderCreateRequestProviderType()) // PAMProviderCreateRequest | PAM provider properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewCreatePamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderCreateRequest(pAMProviderCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.CreatePamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePamProviders`: PAMProviderResponseLegacy + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.CreatePamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderCreateRequest** | [**PAMProviderCreateRequest**](PAMProviderCreateRequest.md) | PAM provider properties to be used | + +### Return type + +[**PAMProviderResponseLegacy**](PAMProviderResponseLegacy.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreatePamProvidersTypes + +> PAMProviderTypeResponse NewCreatePamProvidersTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest).Execute() + +Creates a new PAM provider type with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderTypeCreateRequest := *openapiclient.NewPAMProviderTypeCreateRequest("Name_example") // PAMProviderTypeCreateRequest | PAM provider type properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewCreatePamProvidersTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.CreatePamProvidersTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePamProvidersTypes`: PAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.CreatePamProvidersTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePamProvidersTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderTypeCreateRequest** | [**PAMProviderTypeCreateRequest**](PAMProviderTypeCreateRequest.md) | PAM provider type properties to be used | + +### Return type + +[**PAMProviderTypeResponse**](PAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePamProvidersById + +> NewDeletePamProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a PAM Provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewDeletePamProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.DeletePamProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePamProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePamProvidersTypesById + +> NewDeletePamProvidersTypesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a PAM provider Type, as long as the PAM type is not currently in use. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | PAM provider type Id to be used + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewDeletePamProvidersTypesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.DeletePamProvidersTypesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | PAM provider type Id to be used | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePamProvidersTypesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProviders + +> []PAMProviderResponseLegacy NewGetPamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM providers according to the provided filter and output parameters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProviders`: []PAMProviderResponseLegacy + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMProviderResponseLegacy**](PAMProviderResponseLegacy.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersById + +> PAMProviderResponseLegacy NewGetPamProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single PAM Provider that matches the associated id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersById`: PAMProviderResponseLegacy + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProvidersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**PAMProviderResponseLegacy**](PAMProviderResponseLegacy.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersTypes + +> []PAMProviderTypeResponse NewGetPamProvidersTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM provider types in the Keyfactor instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProvidersTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersTypes`: []PAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProvidersTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMProviderTypeResponse**](PAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePamProviders + +> PAMProviderResponseLegacy NewUpdatePamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderUpdateRequestLegacy(pAMProviderUpdateRequestLegacy).Execute() + +Updates an existing PAM provider according to the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderUpdateRequestLegacy := *openapiclient.NewPAMProviderUpdateRequestLegacy(int32(123), "Name_example", *openapiclient.NewPAMProviderCreateRequestProviderType()) // PAMProviderUpdateRequestLegacy | PAM provider properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewUpdatePamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderUpdateRequestLegacy(pAMProviderUpdateRequestLegacy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.UpdatePamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePamProviders`: PAMProviderResponseLegacy + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.UpdatePamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderUpdateRequestLegacy** | [**PAMProviderUpdateRequestLegacy**](PAMProviderUpdateRequestLegacy.md) | PAM provider properties to be used | + +### Return type + +[**PAMProviderResponseLegacy**](PAMProviderResponseLegacy.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderCreateRequest.md b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequest.md new file mode 100644 index 0000000..1ebf074 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequest.md @@ -0,0 +1,196 @@ +# PAMProviderCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Remote** | Pointer to **bool** | | [optional] +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | [**PAMProviderCreateRequestProviderType**](PAMProviderCreateRequestProviderType.md) | | +**ProviderTypeParamValues** | Pointer to [**[]PAMProviderCreateRequestTypeParamValue**](PAMProviderCreateRequestTypeParamValue.md) | | [optional] +**SecuredAreaId** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPAMProviderCreateRequest + +`func NewPAMProviderCreateRequest(name string, providerType PAMProviderCreateRequestProviderType, ) *PAMProviderCreateRequest` + +NewPAMProviderCreateRequest instantiates a new PAMProviderCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestWithDefaults + +`func NewPAMProviderCreateRequestWithDefaults() *PAMProviderCreateRequest` + +NewPAMProviderCreateRequestWithDefaults instantiates a new PAMProviderCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRemote + +`func (o *PAMProviderCreateRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderCreateRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderCreateRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *PAMProviderCreateRequest) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetArea + +`func (o *PAMProviderCreateRequest) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *PAMProviderCreateRequest) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *PAMProviderCreateRequest) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *PAMProviderCreateRequest) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *PAMProviderCreateRequest) GetProviderType() PAMProviderCreateRequestProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *PAMProviderCreateRequest) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *PAMProviderCreateRequest) SetProviderType(v PAMProviderCreateRequestProviderType)` + +SetProviderType sets ProviderType field to given value. + + +### GetProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderCreateRequest) GetProviderTypeParamValuesOk() (*[]PAMProviderCreateRequestTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderCreateRequest) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderCreateRequest) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetSecuredAreaId + +`func (o *PAMProviderCreateRequest) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *PAMProviderCreateRequest) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *PAMProviderCreateRequest) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *PAMProviderCreateRequest) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + +### SetSecuredAreaIdNil + +`func (o *PAMProviderCreateRequest) SetSecuredAreaIdNil(b bool)` + + SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil + +### UnsetSecuredAreaId +`func (o *PAMProviderCreateRequest) UnsetSecuredAreaId()` + +UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderType.md b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderType.md new file mode 100644 index 0000000..1b8472a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderType.md @@ -0,0 +1,56 @@ +# PAMProviderCreateRequestProviderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewPAMProviderCreateRequestProviderType + +`func NewPAMProviderCreateRequestProviderType() *PAMProviderCreateRequestProviderType` + +NewPAMProviderCreateRequestProviderType instantiates a new PAMProviderCreateRequestProviderType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestProviderTypeWithDefaults + +`func NewPAMProviderCreateRequestProviderTypeWithDefaults() *PAMProviderCreateRequestProviderType` + +NewPAMProviderCreateRequestProviderTypeWithDefaults instantiates a new PAMProviderCreateRequestProviderType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestProviderType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestProviderType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestProviderType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestProviderType) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderTypeParam.md b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderTypeParam.md new file mode 100644 index 0000000..3d0852f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestProviderTypeParam.md @@ -0,0 +1,154 @@ +# PAMProviderCreateRequestProviderTypeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderCreateRequestProviderTypeParam + +`func NewPAMProviderCreateRequestProviderTypeParam() *PAMProviderCreateRequestProviderTypeParam` + +NewPAMProviderCreateRequestProviderTypeParam instantiates a new PAMProviderCreateRequestProviderTypeParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestProviderTypeParamWithDefaults + +`func NewPAMProviderCreateRequestProviderTypeParamWithDefaults() *PAMProviderCreateRequestProviderTypeParam` + +NewPAMProviderCreateRequestProviderTypeParamWithDefaults instantiates a new PAMProviderCreateRequestProviderTypeParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderCreateRequestProviderTypeParam) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderCreateRequestProviderTypeParam) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestTypeParamValue.md b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestTypeParamValue.md new file mode 100644 index 0000000..3f3eb15 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderCreateRequestTypeParamValue.md @@ -0,0 +1,190 @@ +# PAMProviderCreateRequestTypeParamValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**ProviderTypeParam** | Pointer to [**PAMProviderCreateRequestProviderTypeParam**](PAMProviderCreateRequestProviderTypeParam.md) | | [optional] + +## Methods + +### NewPAMProviderCreateRequestTypeParamValue + +`func NewPAMProviderCreateRequestTypeParamValue() *PAMProviderCreateRequestTypeParamValue` + +NewPAMProviderCreateRequestTypeParamValue instantiates a new PAMProviderCreateRequestTypeParamValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestTypeParamValueWithDefaults + +`func NewPAMProviderCreateRequestTypeParamValueWithDefaults() *PAMProviderCreateRequestTypeParamValue` + +NewPAMProviderCreateRequestTypeParamValueWithDefaults instantiates a new PAMProviderCreateRequestTypeParamValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestTypeParamValue) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestTypeParamValue) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestTypeParamValue) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *PAMProviderCreateRequestTypeParamValue) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PAMProviderCreateRequestTypeParamValue) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PAMProviderCreateRequestTypeParamValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParam() PAMProviderCreateRequestProviderTypeParam` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParamOk() (*PAMProviderCreateRequestProviderTypeParam, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) SetProviderTypeParam(v PAMProviderCreateRequestProviderTypeParam)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderResponseLegacy.md b/v24/api/keyfactor/v1/docs/PAMProviderResponseLegacy.md new file mode 100644 index 0000000..6dee3f9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderResponseLegacy.md @@ -0,0 +1,242 @@ +# PAMProviderResponseLegacy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | Pointer to [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | [optional] +**ProviderTypeParamValues** | Pointer to [**[]PAMPamProviderTypeParamValueResponse**](PAMPamProviderTypeParamValueResponse.md) | | [optional] +**SecuredAreaId** | Pointer to **NullableInt32** | | [optional] +**Remote** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderResponseLegacy + +`func NewPAMProviderResponseLegacy() *PAMProviderResponseLegacy` + +NewPAMProviderResponseLegacy instantiates a new PAMProviderResponseLegacy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderResponseLegacyWithDefaults + +`func NewPAMProviderResponseLegacyWithDefaults() *PAMProviderResponseLegacy` + +NewPAMProviderResponseLegacyWithDefaults instantiates a new PAMProviderResponseLegacy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderResponseLegacy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderResponseLegacy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderResponseLegacy) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderResponseLegacy) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderResponseLegacy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderResponseLegacy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderResponseLegacy) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderResponseLegacy) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderResponseLegacy) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderResponseLegacy) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetArea + +`func (o *PAMProviderResponseLegacy) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *PAMProviderResponseLegacy) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *PAMProviderResponseLegacy) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *PAMProviderResponseLegacy) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *PAMProviderResponseLegacy) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *PAMProviderResponseLegacy) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *PAMProviderResponseLegacy) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *PAMProviderResponseLegacy) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + +### GetProviderTypeParamValues + +`func (o *PAMProviderResponseLegacy) GetProviderTypeParamValues() []PAMPamProviderTypeParamValueResponse` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderResponseLegacy) GetProviderTypeParamValuesOk() (*[]PAMPamProviderTypeParamValueResponse, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderResponseLegacy) SetProviderTypeParamValues(v []PAMPamProviderTypeParamValueResponse)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderResponseLegacy) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderResponseLegacy) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderResponseLegacy) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetSecuredAreaId + +`func (o *PAMProviderResponseLegacy) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *PAMProviderResponseLegacy) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *PAMProviderResponseLegacy) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *PAMProviderResponseLegacy) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + +### SetSecuredAreaIdNil + +`func (o *PAMProviderResponseLegacy) SetSecuredAreaIdNil(b bool)` + + SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil + +### UnsetSecuredAreaId +`func (o *PAMProviderResponseLegacy) UnsetSecuredAreaId()` + +UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +### GetRemote + +`func (o *PAMProviderResponseLegacy) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderResponseLegacy) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderResponseLegacy) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *PAMProviderResponseLegacy) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderTypeCreateRequest.md b/v24/api/keyfactor/v1/docs/PAMProviderTypeCreateRequest.md new file mode 100644 index 0000000..18d2f7f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderTypeCreateRequest.md @@ -0,0 +1,87 @@ +# PAMProviderTypeCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Parameters** | Pointer to [**[]PAMProviderTypeParameterCreateRequest**](PAMProviderTypeParameterCreateRequest.md) | | [optional] + +## Methods + +### NewPAMProviderTypeCreateRequest + +`func NewPAMProviderTypeCreateRequest(name string, ) *PAMProviderTypeCreateRequest` + +NewPAMProviderTypeCreateRequest instantiates a new PAMProviderTypeCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeCreateRequestWithDefaults + +`func NewPAMProviderTypeCreateRequestWithDefaults() *PAMProviderTypeCreateRequest` + +NewPAMProviderTypeCreateRequestWithDefaults instantiates a new PAMProviderTypeCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderTypeCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetParameters + +`func (o *PAMProviderTypeCreateRequest) GetParameters() []PAMProviderTypeParameterCreateRequest` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PAMProviderTypeCreateRequest) GetParametersOk() (*[]PAMProviderTypeParameterCreateRequest, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PAMProviderTypeCreateRequest) SetParameters(v []PAMProviderTypeParameterCreateRequest)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PAMProviderTypeCreateRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *PAMProviderTypeCreateRequest) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *PAMProviderTypeCreateRequest) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterCreateRequest.md b/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterCreateRequest.md new file mode 100644 index 0000000..a66728f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterCreateRequest.md @@ -0,0 +1,139 @@ +# PAMProviderTypeParameterCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderTypeParameterCreateRequest + +`func NewPAMProviderTypeParameterCreateRequest(name string, ) *PAMProviderTypeParameterCreateRequest` + +NewPAMProviderTypeParameterCreateRequest instantiates a new PAMProviderTypeParameterCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeParameterCreateRequestWithDefaults + +`func NewPAMProviderTypeParameterCreateRequestWithDefaults() *PAMProviderTypeParameterCreateRequest` + +NewPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new PAMProviderTypeParameterCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderTypeParameterCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeParameterCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderTypeParameterCreateRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderTypeParameterCreateRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *PAMProviderTypeParameterCreateRequest) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *PAMProviderTypeParameterCreateRequest) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *PAMProviderTypeParameterCreateRequest) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterResponse.md b/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterResponse.md new file mode 100644 index 0000000..8c00c4f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderTypeParameterResponse.md @@ -0,0 +1,180 @@ +# PAMProviderTypeParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderTypeParameterResponse + +`func NewPAMProviderTypeParameterResponse() *PAMProviderTypeParameterResponse` + +NewPAMProviderTypeParameterResponse instantiates a new PAMProviderTypeParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeParameterResponseWithDefaults + +`func NewPAMProviderTypeParameterResponseWithDefaults() *PAMProviderTypeParameterResponse` + +NewPAMProviderTypeParameterResponseWithDefaults instantiates a new PAMProviderTypeParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderTypeParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderTypeParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderTypeParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderTypeParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderTypeParameterResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeParameterResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeParameterResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderTypeParameterResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderTypeParameterResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderTypeParameterResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *PAMProviderTypeParameterResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderTypeParameterResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderTypeParameterResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderTypeParameterResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderTypeParameterResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *PAMProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *PAMProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *PAMProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *PAMProviderTypeParameterResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderTypeResponse.md b/v24/api/keyfactor/v1/docs/PAMProviderTypeResponse.md new file mode 100644 index 0000000..3d57671 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderTypeResponse.md @@ -0,0 +1,128 @@ +# PAMProviderTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Parameters** | Pointer to [**[]PAMProviderTypeParameterResponse**](PAMProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewPAMProviderTypeResponse + +`func NewPAMProviderTypeResponse() *PAMProviderTypeResponse` + +NewPAMProviderTypeResponse instantiates a new PAMProviderTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeResponseWithDefaults + +`func NewPAMProviderTypeResponseWithDefaults() *PAMProviderTypeResponse` + +NewPAMProviderTypeResponseWithDefaults instantiates a new PAMProviderTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderTypeResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderTypeResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetParameters + +`func (o *PAMProviderTypeResponse) GetParameters() []PAMProviderTypeParameterResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PAMProviderTypeResponse) GetParametersOk() (*[]PAMProviderTypeParameterResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PAMProviderTypeResponse) SetParameters(v []PAMProviderTypeParameterResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PAMProviderTypeResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *PAMProviderTypeResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *PAMProviderTypeResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PAMProviderUpdateRequestLegacy.md b/v24/api/keyfactor/v1/docs/PAMProviderUpdateRequestLegacy.md new file mode 100644 index 0000000..bbc478b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PAMProviderUpdateRequestLegacy.md @@ -0,0 +1,217 @@ +# PAMProviderUpdateRequestLegacy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Remote** | Pointer to **bool** | | [optional] +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | [**PAMProviderCreateRequestProviderType**](PAMProviderCreateRequestProviderType.md) | | +**ProviderTypeParamValues** | Pointer to [**[]PAMProviderCreateRequestTypeParamValue**](PAMProviderCreateRequestTypeParamValue.md) | | [optional] +**SecuredAreaId** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPAMProviderUpdateRequestLegacy + +`func NewPAMProviderUpdateRequestLegacy(id int32, name string, providerType PAMProviderCreateRequestProviderType, ) *PAMProviderUpdateRequestLegacy` + +NewPAMProviderUpdateRequestLegacy instantiates a new PAMProviderUpdateRequestLegacy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderUpdateRequestLegacyWithDefaults + +`func NewPAMProviderUpdateRequestLegacyWithDefaults() *PAMProviderUpdateRequestLegacy` + +NewPAMProviderUpdateRequestLegacyWithDefaults instantiates a new PAMProviderUpdateRequestLegacy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderUpdateRequestLegacy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderUpdateRequestLegacy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderUpdateRequestLegacy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *PAMProviderUpdateRequestLegacy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderUpdateRequestLegacy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderUpdateRequestLegacy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRemote + +`func (o *PAMProviderUpdateRequestLegacy) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderUpdateRequestLegacy) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderUpdateRequestLegacy) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *PAMProviderUpdateRequestLegacy) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetArea + +`func (o *PAMProviderUpdateRequestLegacy) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *PAMProviderUpdateRequestLegacy) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *PAMProviderUpdateRequestLegacy) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *PAMProviderUpdateRequestLegacy) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *PAMProviderUpdateRequestLegacy) GetProviderType() PAMProviderCreateRequestProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *PAMProviderUpdateRequestLegacy) SetProviderType(v PAMProviderCreateRequestProviderType)` + +SetProviderType sets ProviderType field to given value. + + +### GetProviderTypeParamValues + +`func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeParamValuesOk() (*[]PAMProviderCreateRequestTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderUpdateRequestLegacy) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderUpdateRequestLegacy) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderUpdateRequestLegacy) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderUpdateRequestLegacy) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetSecuredAreaId + +`func (o *PAMProviderUpdateRequestLegacy) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *PAMProviderUpdateRequestLegacy) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *PAMProviderUpdateRequestLegacy) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *PAMProviderUpdateRequestLegacy) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + +### SetSecuredAreaIdNil + +`func (o *PAMProviderUpdateRequestLegacy) SetSecuredAreaIdNil(b bool)` + + SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil + +### UnsetSecuredAreaId +`func (o *PAMProviderUpdateRequestLegacy) UnsetSecuredAreaId()` + +UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PendingAlertApi.md b/v24/api/keyfactor/v1/docs/PendingAlertApi.md new file mode 100644 index 0000000..fb3e9cf --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PendingAlertApi.md @@ -0,0 +1,641 @@ +# \PendingAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlertsPending**](PendingAlertApi.md#CreateAlertsPending) | **POST** /Alerts/Pending | Add a pending alert +[**CreateAlertsPendingTest**](PendingAlertApi.md#CreateAlertsPendingTest) | **POST** /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true +[**CreateAlertsPendingTestAll**](PendingAlertApi.md#CreateAlertsPendingTestAll) | **POST** /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true +[**DeleteAlertsPendingById**](PendingAlertApi.md#DeleteAlertsPendingById) | **DELETE** /Alerts/Pending/{id} | Delete a pending alert +[**GetAlertsPending**](PendingAlertApi.md#GetAlertsPending) | **GET** /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters +[**GetAlertsPendingById**](PendingAlertApi.md#GetAlertsPendingById) | **GET** /Alerts/Pending/{id} | Get a pending alert +[**GetAlertsPendingSchedule**](PendingAlertApi.md#GetAlertsPendingSchedule) | **GET** /Alerts/Pending/Schedule | Get the schedule for pending alerts +[**UpdateAlertsPending**](PendingAlertApi.md#UpdateAlertsPending) | **PUT** /Alerts/Pending | Edit a pending alert +[**UpdateAlertsPendingSchedule**](PendingAlertApi.md#UpdateAlertsPendingSchedule) | **PUT** /Alerts/Pending/Schedule | Edit schedule + + + +## CreateAlertsPending + +> AlertsPendingPendingAlertDefinitionResponse NewCreateAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertCreationRequest(alertsPendingPendingAlertCreationRequest).Execute() + +Add a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsPendingPendingAlertCreationRequest := *openapiclient.NewAlertsPendingPendingAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsPendingPendingAlertCreationRequest | Information for the new alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertCreationRequest(alertsPendingPendingAlertCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsPending`: AlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsPendingPendingAlertCreationRequest** | [**AlertsPendingPendingAlertCreationRequest**](AlertsPendingPendingAlertCreationRequest.md) | Information for the new alert | + +### Return type + +[**AlertsPendingPendingAlertDefinitionResponse**](AlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsPendingTest + +> AlertsPendingPendingAlertTestResponse NewCreateAlertsPendingTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestRequest(alertsPendingPendingAlertTestRequest).Execute() + +Test pending alert. Will send alert emails if SendAlerts is true + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsPendingPendingAlertTestRequest := *openapiclient.NewAlertsPendingPendingAlertTestRequest() // AlertsPendingPendingAlertTestRequest | Information for the pending alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestRequest(alertsPendingPendingAlertTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPendingTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsPendingTest`: AlertsPendingPendingAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPendingTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsPendingTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsPendingPendingAlertTestRequest** | [**AlertsPendingPendingAlertTestRequest**](AlertsPendingPendingAlertTestRequest.md) | Information for the pending alert | + +### Return type + +[**AlertsPendingPendingAlertTestResponse**](AlertsPendingPendingAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAlertsPendingTestAll + +> AlertsPendingPendingAlertTestResponse NewCreateAlertsPendingTestAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestAllRequest(alertsPendingPendingAlertTestAllRequest).Execute() + +Test all pending alerts. Will send alert emails if SendAlerts is true + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsPendingPendingAlertTestAllRequest := *openapiclient.NewAlertsPendingPendingAlertTestAllRequest() // AlertsPendingPendingAlertTestAllRequest | Information for the pending alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewCreateAlertsPendingTestAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertTestAllRequest(alertsPendingPendingAlertTestAllRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.CreateAlertsPendingTestAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAlertsPendingTestAll`: AlertsPendingPendingAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.CreateAlertsPendingTestAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAlertsPendingTestAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsPendingPendingAlertTestAllRequest** | [**AlertsPendingPendingAlertTestAllRequest**](AlertsPendingPendingAlertTestAllRequest.md) | Information for the pending alert | + +### Return type + +[**AlertsPendingPendingAlertTestResponse**](AlertsPendingPendingAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAlertsPendingById + +> NewDeleteAlertsPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the pending alert + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewDeleteAlertsPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.DeleteAlertsPendingById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the pending alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAlertsPendingByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsPending + +> []AlertsPendingPendingAlertDefinitionResponse NewGetAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all pending alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsPending`: []AlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]AlertsPendingPendingAlertDefinitionResponse**](AlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsPendingById + +> AlertsPendingPendingAlertDefinitionResponse NewGetAlertsPendingByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the pending alert to get + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPendingById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsPendingById`: AlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPendingById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the pending alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsPendingByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsPendingPendingAlertDefinitionResponse**](AlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAlertsPendingSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewGetAlertsPendingScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for pending alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewGetAlertsPendingScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.GetAlertsPendingSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertsPendingSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.GetAlertsPendingSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsPendingScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsPending + +> AlertsPendingPendingAlertDefinitionResponse NewUpdateAlertsPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertUpdateRequest(alertsPendingPendingAlertUpdateRequest).Execute() + +Edit a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsPendingPendingAlertUpdateRequest := *openapiclient.NewAlertsPendingPendingAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // AlertsPendingPendingAlertUpdateRequest | Information for the pending alert (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewUpdateAlertsPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsPendingPendingAlertUpdateRequest(alertsPendingPendingAlertUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.UpdateAlertsPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsPending`: AlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.UpdateAlertsPending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsPendingPendingAlertUpdateRequest** | [**AlertsPendingPendingAlertUpdateRequest**](AlertsPendingPendingAlertUpdateRequest.md) | Information for the pending alert | + +### Return type + +[**AlertsPendingPendingAlertDefinitionResponse**](AlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateAlertsPendingSchedule + +> AlertsAlertScheduleAlertScheduleResponse NewUpdateAlertsPendingScheduleRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + alertsAlertScheduleAlertScheduleRequest := *openapiclient.NewAlertsAlertScheduleAlertScheduleRequest() // AlertsAlertScheduleAlertScheduleRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.NewUpdateAlertsPendingScheduleRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).AlertsAlertScheduleAlertScheduleRequest(alertsAlertScheduleAlertScheduleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.UpdateAlertsPendingSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAlertsPendingSchedule`: AlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.UpdateAlertsPendingSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAlertsPendingScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **alertsAlertScheduleAlertScheduleRequest** | [**AlertsAlertScheduleAlertScheduleRequest**](AlertsAlertScheduleAlertScheduleRequest.md) | | + +### Return type + +[**AlertsAlertScheduleAlertScheduleResponse**](AlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/PermissionSetApi.md b/v24/api/keyfactor/v1/docs/PermissionSetApi.md new file mode 100644 index 0000000..f14629d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PermissionSetApi.md @@ -0,0 +1,438 @@ +# \PermissionSetApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePermissionSets**](PermissionSetApi.md#CreatePermissionSets) | **POST** /PermissionSets | Creates a new permission set. +[**DeletePermissionSetsById**](PermissionSetApi.md#DeletePermissionSetsById) | **DELETE** /PermissionSets/{id} | Deletes a permission set. +[**GetPermissionSets**](PermissionSetApi.md#GetPermissionSets) | **GET** /PermissionSets | Gets all Permission Set(s) in the system if the user has a security role that is assigned to the Global Permission Set and the security role has the Global Security Read permission. Otherwise, returns only the Permission Sets with the Security Modify permission that are assigned to the user's security role(s). +[**GetPermissionSetsById**](PermissionSetApi.md#GetPermissionSetsById) | **GET** /PermissionSets/{id} | Gets permission set data. +[**GetPermissionSetsMy**](PermissionSetApi.md#GetPermissionSetsMy) | **GET** /PermissionSets/My | +[**UpdatePermissionSets**](PermissionSetApi.md#UpdatePermissionSets) | **PUT** /PermissionSets | + + + +## CreatePermissionSets + +> PermissionSetsPermissionSetResponse NewCreatePermissionSetsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PermissionSetsPermissionSetCreateRequest(permissionSetsPermissionSetCreateRequest).Execute() + +Creates a new permission set. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + permissionSetsPermissionSetCreateRequest := *openapiclient.NewPermissionSetsPermissionSetCreateRequest("Name_example", []string{"Permissions_example"}) // PermissionSetsPermissionSetCreateRequest | Information about the new permission set. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewCreatePermissionSetsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PermissionSetsPermissionSetCreateRequest(permissionSetsPermissionSetCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.CreatePermissionSets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePermissionSets`: PermissionSetsPermissionSetResponse + fmt.Fprintf(os.Stdout, "Response from `PermissionSetApi.CreatePermissionSets`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePermissionSetsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **permissionSetsPermissionSetCreateRequest** | [**PermissionSetsPermissionSetCreateRequest**](PermissionSetsPermissionSetCreateRequest.md) | Information about the new permission set. | + +### Return type + +[**PermissionSetsPermissionSetResponse**](PermissionSetsPermissionSetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePermissionSetsById + +> NewDeletePermissionSetsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a permission set. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The id of the permission set to delete. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewDeletePermissionSetsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.DeletePermissionSetsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of the permission set to delete. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePermissionSetsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPermissionSets + +> []PermissionSetsPermissionSetResponse NewGetPermissionSetsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all Permission Set(s) in the system if the user has a security role that is assigned to the Global Permission Set and the security role has the Global Security Read permission. Otherwise, returns only the Permission Sets with the Security Modify permission that are assigned to the user's security role(s). + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewGetPermissionSetsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.GetPermissionSets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPermissionSets`: []PermissionSetsPermissionSetResponse + fmt.Fprintf(os.Stdout, "Response from `PermissionSetApi.GetPermissionSets`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPermissionSetsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PermissionSetsPermissionSetResponse**](PermissionSetsPermissionSetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPermissionSetsById + +> PermissionSetsPermissionSetResponse NewGetPermissionSetsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets permission set data. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewGetPermissionSetsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.GetPermissionSetsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPermissionSetsById`: PermissionSetsPermissionSetResponse + fmt.Fprintf(os.Stdout, "Response from `PermissionSetApi.GetPermissionSetsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPermissionSetsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**PermissionSetsPermissionSetResponse**](PermissionSetsPermissionSetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPermissionSetsMy + +> []CSSCMSDataModelModelsSecurityPermissionSet NewGetPermissionSetsMyRequest(ctx).AccessControlString(accessControlString).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + accessControlString := "accessControlString_example" // string | The access control string to check within the user's security role's permission set(s). + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewGetPermissionSetsMyRequest(context.Background()).AccessControlString(accessControlString).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.GetPermissionSetsMy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPermissionSetsMy`: []CSSCMSDataModelModelsSecurityPermissionSet + fmt.Fprintf(os.Stdout, "Response from `PermissionSetApi.GetPermissionSetsMy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPermissionSetsMyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessControlString** | **string** | The access control string to check within the user's security role's permission set(s). | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSecurityPermissionSet**](CSSCMSDataModelModelsSecurityPermissionSet.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePermissionSets + +> PermissionSetsPermissionSetResponse NewUpdatePermissionSetsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PermissionSetsPermissionSetUpdateRequest(permissionSetsPermissionSetUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + permissionSetsPermissionSetUpdateRequest := *openapiclient.NewPermissionSetsPermissionSetUpdateRequest("Id_example", []string{"Permissions_example"}) // PermissionSetsPermissionSetUpdateRequest | + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionSetApi.NewUpdatePermissionSetsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PermissionSetsPermissionSetUpdateRequest(permissionSetsPermissionSetUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionSetApi.UpdatePermissionSets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePermissionSets`: PermissionSetsPermissionSetResponse + fmt.Fprintf(os.Stdout, "Response from `PermissionSetApi.UpdatePermissionSets`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePermissionSetsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **permissionSetsPermissionSetUpdateRequest** | [**PermissionSetsPermissionSetUpdateRequest**](PermissionSetsPermissionSetUpdateRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**PermissionSetsPermissionSetResponse**](PermissionSetsPermissionSetResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetCreateRequest.md b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetCreateRequest.md new file mode 100644 index 0000000..5480207 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetCreateRequest.md @@ -0,0 +1,72 @@ +# PermissionSetsPermissionSetCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the permission set. | +**Permissions** | **[]string** | The permissions within the set. | + +## Methods + +### NewPermissionSetsPermissionSetCreateRequest + +`func NewPermissionSetsPermissionSetCreateRequest(name string, permissions []string, ) *PermissionSetsPermissionSetCreateRequest` + +NewPermissionSetsPermissionSetCreateRequest instantiates a new PermissionSetsPermissionSetCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionSetsPermissionSetCreateRequestWithDefaults + +`func NewPermissionSetsPermissionSetCreateRequestWithDefaults() *PermissionSetsPermissionSetCreateRequest` + +NewPermissionSetsPermissionSetCreateRequestWithDefaults instantiates a new PermissionSetsPermissionSetCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PermissionSetsPermissionSetCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PermissionSetsPermissionSetCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PermissionSetsPermissionSetCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPermissions + +`func (o *PermissionSetsPermissionSetCreateRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *PermissionSetsPermissionSetCreateRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *PermissionSetsPermissionSetCreateRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetResponse.md b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetResponse.md new file mode 100644 index 0000000..64c2a18 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetResponse.md @@ -0,0 +1,128 @@ +# PermissionSetsPermissionSetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The Id of the permission set. | [optional] +**Name** | Pointer to **NullableString** | The name of the permission set. | [optional] +**Permissions** | Pointer to **[]string** | The permissions within the set. | [optional] + +## Methods + +### NewPermissionSetsPermissionSetResponse + +`func NewPermissionSetsPermissionSetResponse() *PermissionSetsPermissionSetResponse` + +NewPermissionSetsPermissionSetResponse instantiates a new PermissionSetsPermissionSetResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionSetsPermissionSetResponseWithDefaults + +`func NewPermissionSetsPermissionSetResponseWithDefaults() *PermissionSetsPermissionSetResponse` + +NewPermissionSetsPermissionSetResponseWithDefaults instantiates a new PermissionSetsPermissionSetResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PermissionSetsPermissionSetResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionSetsPermissionSetResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionSetsPermissionSetResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PermissionSetsPermissionSetResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PermissionSetsPermissionSetResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PermissionSetsPermissionSetResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PermissionSetsPermissionSetResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PermissionSetsPermissionSetResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PermissionSetsPermissionSetResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PermissionSetsPermissionSetResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *PermissionSetsPermissionSetResponse) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *PermissionSetsPermissionSetResponse) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *PermissionSetsPermissionSetResponse) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *PermissionSetsPermissionSetResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *PermissionSetsPermissionSetResponse) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *PermissionSetsPermissionSetResponse) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetUpdateRequest.md b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetUpdateRequest.md new file mode 100644 index 0000000..41b003a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PermissionSetsPermissionSetUpdateRequest.md @@ -0,0 +1,72 @@ +# PermissionSetsPermissionSetUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The Id of the permission set. | +**Permissions** | **[]string** | The permissions within the set. | + +## Methods + +### NewPermissionSetsPermissionSetUpdateRequest + +`func NewPermissionSetsPermissionSetUpdateRequest(id string, permissions []string, ) *PermissionSetsPermissionSetUpdateRequest` + +NewPermissionSetsPermissionSetUpdateRequest instantiates a new PermissionSetsPermissionSetUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionSetsPermissionSetUpdateRequestWithDefaults + +`func NewPermissionSetsPermissionSetUpdateRequestWithDefaults() *PermissionSetsPermissionSetUpdateRequest` + +NewPermissionSetsPermissionSetUpdateRequestWithDefaults instantiates a new PermissionSetsPermissionSetUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PermissionSetsPermissionSetUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PermissionSetsPermissionSetUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PermissionSetsPermissionSetUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetPermissions + +`func (o *PermissionSetsPermissionSetUpdateRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *PermissionSetsPermissionSetUpdateRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *PermissionSetsPermissionSetUpdateRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/PermissionsApi.md b/v24/api/keyfactor/v1/docs/PermissionsApi.md new file mode 100644 index 0000000..6e3cb23 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/PermissionsApi.md @@ -0,0 +1,75 @@ +# \PermissionsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPermissions**](PermissionsApi.md#GetPermissions) | **GET** /Permissions | Gets all permissions in the system. + + + +## GetPermissions + +> []string NewGetPermissionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets all permissions in the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PermissionsApi.NewGetPermissionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PermissionsApi.GetPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPermissions`: []string + fmt.Fprintf(os.Stdout, "Response from `PermissionsApi.GetPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/RabbitMQJobQueueRequest.md b/v24/api/keyfactor/v1/docs/RabbitMQJobQueueRequest.md new file mode 100644 index 0000000..9f81b8f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/RabbitMQJobQueueRequest.md @@ -0,0 +1,334 @@ +# RabbitMQJobQueueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthType** | Pointer to **NullableString** | | [optional] +**TaskQueueURL** | Pointer to **NullableString** | | [optional] +**TokenURL** | Pointer to **NullableString** | | [optional] +**ClientID** | Pointer to **NullableString** | | [optional] +**ClientSecret** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**Scope** | Pointer to **NullableString** | | [optional] +**Audience** | Pointer to **NullableString** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewRabbitMQJobQueueRequest + +`func NewRabbitMQJobQueueRequest() *RabbitMQJobQueueRequest` + +NewRabbitMQJobQueueRequest instantiates a new RabbitMQJobQueueRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRabbitMQJobQueueRequestWithDefaults + +`func NewRabbitMQJobQueueRequestWithDefaults() *RabbitMQJobQueueRequest` + +NewRabbitMQJobQueueRequestWithDefaults instantiates a new RabbitMQJobQueueRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthType + +`func (o *RabbitMQJobQueueRequest) GetAuthType() string` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *RabbitMQJobQueueRequest) GetAuthTypeOk() (*string, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *RabbitMQJobQueueRequest) SetAuthType(v string)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *RabbitMQJobQueueRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### SetAuthTypeNil + +`func (o *RabbitMQJobQueueRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *RabbitMQJobQueueRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +### GetTaskQueueURL + +`func (o *RabbitMQJobQueueRequest) GetTaskQueueURL() string` + +GetTaskQueueURL returns the TaskQueueURL field if non-nil, zero value otherwise. + +### GetTaskQueueURLOk + +`func (o *RabbitMQJobQueueRequest) GetTaskQueueURLOk() (*string, bool)` + +GetTaskQueueURLOk returns a tuple with the TaskQueueURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskQueueURL + +`func (o *RabbitMQJobQueueRequest) SetTaskQueueURL(v string)` + +SetTaskQueueURL sets TaskQueueURL field to given value. + +### HasTaskQueueURL + +`func (o *RabbitMQJobQueueRequest) HasTaskQueueURL() bool` + +HasTaskQueueURL returns a boolean if a field has been set. + +### SetTaskQueueURLNil + +`func (o *RabbitMQJobQueueRequest) SetTaskQueueURLNil(b bool)` + + SetTaskQueueURLNil sets the value for TaskQueueURL to be an explicit nil + +### UnsetTaskQueueURL +`func (o *RabbitMQJobQueueRequest) UnsetTaskQueueURL()` + +UnsetTaskQueueURL ensures that no value is present for TaskQueueURL, not even an explicit nil +### GetTokenURL + +`func (o *RabbitMQJobQueueRequest) GetTokenURL() string` + +GetTokenURL returns the TokenURL field if non-nil, zero value otherwise. + +### GetTokenURLOk + +`func (o *RabbitMQJobQueueRequest) GetTokenURLOk() (*string, bool)` + +GetTokenURLOk returns a tuple with the TokenURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenURL + +`func (o *RabbitMQJobQueueRequest) SetTokenURL(v string)` + +SetTokenURL sets TokenURL field to given value. + +### HasTokenURL + +`func (o *RabbitMQJobQueueRequest) HasTokenURL() bool` + +HasTokenURL returns a boolean if a field has been set. + +### SetTokenURLNil + +`func (o *RabbitMQJobQueueRequest) SetTokenURLNil(b bool)` + + SetTokenURLNil sets the value for TokenURL to be an explicit nil + +### UnsetTokenURL +`func (o *RabbitMQJobQueueRequest) UnsetTokenURL()` + +UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +### GetClientID + +`func (o *RabbitMQJobQueueRequest) GetClientID() string` + +GetClientID returns the ClientID field if non-nil, zero value otherwise. + +### GetClientIDOk + +`func (o *RabbitMQJobQueueRequest) GetClientIDOk() (*string, bool)` + +GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientID + +`func (o *RabbitMQJobQueueRequest) SetClientID(v string)` + +SetClientID sets ClientID field to given value. + +### HasClientID + +`func (o *RabbitMQJobQueueRequest) HasClientID() bool` + +HasClientID returns a boolean if a field has been set. + +### SetClientIDNil + +`func (o *RabbitMQJobQueueRequest) SetClientIDNil(b bool)` + + SetClientIDNil sets the value for ClientID to be an explicit nil + +### UnsetClientID +`func (o *RabbitMQJobQueueRequest) UnsetClientID()` + +UnsetClientID ensures that no value is present for ClientID, not even an explicit nil +### GetClientSecret + +`func (o *RabbitMQJobQueueRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *RabbitMQJobQueueRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *RabbitMQJobQueueRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *RabbitMQJobQueueRequest) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetScope + +`func (o *RabbitMQJobQueueRequest) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *RabbitMQJobQueueRequest) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *RabbitMQJobQueueRequest) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *RabbitMQJobQueueRequest) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *RabbitMQJobQueueRequest) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *RabbitMQJobQueueRequest) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetAudience + +`func (o *RabbitMQJobQueueRequest) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *RabbitMQJobQueueRequest) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *RabbitMQJobQueueRequest) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *RabbitMQJobQueueRequest) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### SetAudienceNil + +`func (o *RabbitMQJobQueueRequest) SetAudienceNil(b bool)` + + SetAudienceNil sets the value for Audience to be an explicit nil + +### UnsetAudience +`func (o *RabbitMQJobQueueRequest) UnsetAudience()` + +UnsetAudience ensures that no value is present for Audience, not even an explicit nil +### GetUsername + +`func (o *RabbitMQJobQueueRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RabbitMQJobQueueRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *RabbitMQJobQueueRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RabbitMQJobQueueRequest) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *RabbitMQJobQueueRequest) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *RabbitMQJobQueueRequest) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetPassword + +`func (o *RabbitMQJobQueueRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *RabbitMQJobQueueRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *RabbitMQJobQueueRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *RabbitMQJobQueueRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/RabbitMQJobQueueResponse.md b/v24/api/keyfactor/v1/docs/RabbitMQJobQueueResponse.md new file mode 100644 index 0000000..f34f074 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/RabbitMQJobQueueResponse.md @@ -0,0 +1,334 @@ +# RabbitMQJobQueueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskQueueURL** | Pointer to **NullableString** | | [optional] +**TokenURL** | Pointer to **NullableString** | | [optional] +**ClientID** | Pointer to **NullableString** | | [optional] +**ClientSecret** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**Scope** | Pointer to **NullableString** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**Audience** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to [**CSSCMSDataModelModelsKeyfactorAPISecret**](CSSCMSDataModelModelsKeyfactorAPISecret.md) | | [optional] +**AuthType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewRabbitMQJobQueueResponse + +`func NewRabbitMQJobQueueResponse() *RabbitMQJobQueueResponse` + +NewRabbitMQJobQueueResponse instantiates a new RabbitMQJobQueueResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRabbitMQJobQueueResponseWithDefaults + +`func NewRabbitMQJobQueueResponseWithDefaults() *RabbitMQJobQueueResponse` + +NewRabbitMQJobQueueResponseWithDefaults instantiates a new RabbitMQJobQueueResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTaskQueueURL + +`func (o *RabbitMQJobQueueResponse) GetTaskQueueURL() string` + +GetTaskQueueURL returns the TaskQueueURL field if non-nil, zero value otherwise. + +### GetTaskQueueURLOk + +`func (o *RabbitMQJobQueueResponse) GetTaskQueueURLOk() (*string, bool)` + +GetTaskQueueURLOk returns a tuple with the TaskQueueURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskQueueURL + +`func (o *RabbitMQJobQueueResponse) SetTaskQueueURL(v string)` + +SetTaskQueueURL sets TaskQueueURL field to given value. + +### HasTaskQueueURL + +`func (o *RabbitMQJobQueueResponse) HasTaskQueueURL() bool` + +HasTaskQueueURL returns a boolean if a field has been set. + +### SetTaskQueueURLNil + +`func (o *RabbitMQJobQueueResponse) SetTaskQueueURLNil(b bool)` + + SetTaskQueueURLNil sets the value for TaskQueueURL to be an explicit nil + +### UnsetTaskQueueURL +`func (o *RabbitMQJobQueueResponse) UnsetTaskQueueURL()` + +UnsetTaskQueueURL ensures that no value is present for TaskQueueURL, not even an explicit nil +### GetTokenURL + +`func (o *RabbitMQJobQueueResponse) GetTokenURL() string` + +GetTokenURL returns the TokenURL field if non-nil, zero value otherwise. + +### GetTokenURLOk + +`func (o *RabbitMQJobQueueResponse) GetTokenURLOk() (*string, bool)` + +GetTokenURLOk returns a tuple with the TokenURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenURL + +`func (o *RabbitMQJobQueueResponse) SetTokenURL(v string)` + +SetTokenURL sets TokenURL field to given value. + +### HasTokenURL + +`func (o *RabbitMQJobQueueResponse) HasTokenURL() bool` + +HasTokenURL returns a boolean if a field has been set. + +### SetTokenURLNil + +`func (o *RabbitMQJobQueueResponse) SetTokenURLNil(b bool)` + + SetTokenURLNil sets the value for TokenURL to be an explicit nil + +### UnsetTokenURL +`func (o *RabbitMQJobQueueResponse) UnsetTokenURL()` + +UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +### GetClientID + +`func (o *RabbitMQJobQueueResponse) GetClientID() string` + +GetClientID returns the ClientID field if non-nil, zero value otherwise. + +### GetClientIDOk + +`func (o *RabbitMQJobQueueResponse) GetClientIDOk() (*string, bool)` + +GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientID + +`func (o *RabbitMQJobQueueResponse) SetClientID(v string)` + +SetClientID sets ClientID field to given value. + +### HasClientID + +`func (o *RabbitMQJobQueueResponse) HasClientID() bool` + +HasClientID returns a boolean if a field has been set. + +### SetClientIDNil + +`func (o *RabbitMQJobQueueResponse) SetClientIDNil(b bool)` + + SetClientIDNil sets the value for ClientID to be an explicit nil + +### UnsetClientID +`func (o *RabbitMQJobQueueResponse) UnsetClientID()` + +UnsetClientID ensures that no value is present for ClientID, not even an explicit nil +### GetClientSecret + +`func (o *RabbitMQJobQueueResponse) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *RabbitMQJobQueueResponse) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *RabbitMQJobQueueResponse) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *RabbitMQJobQueueResponse) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetScope + +`func (o *RabbitMQJobQueueResponse) GetScope() string` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *RabbitMQJobQueueResponse) GetScopeOk() (*string, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *RabbitMQJobQueueResponse) SetScope(v string)` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *RabbitMQJobQueueResponse) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *RabbitMQJobQueueResponse) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *RabbitMQJobQueueResponse) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetUsername + +`func (o *RabbitMQJobQueueResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RabbitMQJobQueueResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *RabbitMQJobQueueResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RabbitMQJobQueueResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *RabbitMQJobQueueResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *RabbitMQJobQueueResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetAudience + +`func (o *RabbitMQJobQueueResponse) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *RabbitMQJobQueueResponse) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *RabbitMQJobQueueResponse) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *RabbitMQJobQueueResponse) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### SetAudienceNil + +`func (o *RabbitMQJobQueueResponse) SetAudienceNil(b bool)` + + SetAudienceNil sets the value for Audience to be an explicit nil + +### UnsetAudience +`func (o *RabbitMQJobQueueResponse) UnsetAudience()` + +UnsetAudience ensures that no value is present for Audience, not even an explicit nil +### GetPassword + +`func (o *RabbitMQJobQueueResponse) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *RabbitMQJobQueueResponse) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *RabbitMQJobQueueResponse) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *RabbitMQJobQueueResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetAuthType + +`func (o *RabbitMQJobQueueResponse) GetAuthType() string` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *RabbitMQJobQueueResponse) GetAuthTypeOk() (*string, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *RabbitMQJobQueueResponse) SetAuthType(v string)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *RabbitMQJobQueueResponse) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### SetAuthTypeNil + +`func (o *RabbitMQJobQueueResponse) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *RabbitMQJobQueueResponse) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsApi.md b/v24/api/keyfactor/v1/docs/ReportsApi.md new file mode 100644 index 0000000..27da9d4 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsApi.md @@ -0,0 +1,1111 @@ +# \ReportsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateReportsByIdSchedules**](ReportsApi.md#CreateReportsByIdSchedules) | **POST** /Reports/{id}/Schedules | Create a built-in report's schedule that matches the id of the report. +[**CreateReportsCustom**](ReportsApi.md#CreateReportsCustom) | **POST** /Reports/Custom | Creates a custom report +[**DeleteReportsCustomById**](ReportsApi.md#DeleteReportsCustomById) | **DELETE** /Reports/Custom/{id} | Delete custom report that matches the id +[**DeleteReportsSchedulesById**](ReportsApi.md#DeleteReportsSchedulesById) | **DELETE** /Reports/Schedules/{id} | Delete a built-in report's schedule that matches the id of the schedule. +[**GetReports**](ReportsApi.md#GetReports) | **GET** /Reports | Returns all built-in reports according to the provided filter and output parameters +[**GetReportsById**](ReportsApi.md#GetReportsById) | **GET** /Reports/{id} | Returns a single built-in report that matches the id +[**GetReportsByIdParameters**](ReportsApi.md#GetReportsByIdParameters) | **GET** /Reports/{id}/Parameters | Get a built-in report's parameters that matches the id of the report. +[**GetReportsByIdSchedules**](ReportsApi.md#GetReportsByIdSchedules) | **GET** /Reports/{id}/Schedules | Get a built-in report's schedules that matches the id of the report. +[**GetReportsCustom**](ReportsApi.md#GetReportsCustom) | **GET** /Reports/Custom | Returns all custom reports according to the provided filter and output parameters +[**GetReportsCustomById**](ReportsApi.md#GetReportsCustomById) | **GET** /Reports/Custom/{id} | Returns a single custom report that matches the id +[**GetReportsSchedulesById**](ReportsApi.md#GetReportsSchedulesById) | **GET** /Reports/Schedules/{id} | Get a built-in report's schedule that matches the id of the schedule. +[**UpdateReports**](ReportsApi.md#UpdateReports) | **PUT** /Reports | Updates a single built-in report that matches the id. Only some fields can be updated. +[**UpdateReportsByIdParameters**](ReportsApi.md#UpdateReportsByIdParameters) | **PUT** /Reports/{id}/Parameters | Update a built-in report's parameters that matches the id of the report. +[**UpdateReportsByIdSchedules**](ReportsApi.md#UpdateReportsByIdSchedules) | **PUT** /Reports/{id}/Schedules | Update a built-in report's schedule that matches the id of the report. +[**UpdateReportsCustom**](ReportsApi.md#UpdateReportsCustom) | **PUT** /Reports/Custom | Updates a custom report that matches the id + + + +## CreateReportsByIdSchedules + +> ReportsReportSchedulesReportScheduleResponse NewCreateReportsByIdSchedulesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsReportSchedulesReportScheduleCreationRequest(reportsReportSchedulesReportScheduleCreationRequest).Execute() + +Create a built-in report's schedule that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + reportsReportSchedulesReportScheduleCreationRequest := *openapiclient.NewReportsReportSchedulesReportScheduleCreationRequest("ReportFormat_example", map[string]string{"key": "Inner_example"}) // ReportsReportSchedulesReportScheduleCreationRequest | Report Schedule (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewCreateReportsByIdSchedulesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsReportSchedulesReportScheduleCreationRequest(reportsReportSchedulesReportScheduleCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.CreateReportsByIdSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateReportsByIdSchedules`: ReportsReportSchedulesReportScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.CreateReportsByIdSchedules`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateReportsByIdSchedulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **reportsReportSchedulesReportScheduleCreationRequest** | [**ReportsReportSchedulesReportScheduleCreationRequest**](ReportsReportSchedulesReportScheduleCreationRequest.md) | Report Schedule | + +### Return type + +[**ReportsReportSchedulesReportScheduleResponse**](ReportsReportSchedulesReportScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateReportsCustom + +> ReportsCustomReportsCustomReportResponse NewCreateReportsCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsCustomReportsCustomReportCreationRequest(reportsCustomReportsCustomReportCreationRequest).Execute() + +Creates a custom report + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + reportsCustomReportsCustomReportCreationRequest := *openapiclient.NewReportsCustomReportsCustomReportCreationRequest("CustomURL_example", "DisplayName_example", "Description_example") // ReportsCustomReportsCustomReportCreationRequest | Report Information (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewCreateReportsCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsCustomReportsCustomReportCreationRequest(reportsCustomReportsCustomReportCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.CreateReportsCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateReportsCustom`: ReportsCustomReportsCustomReportResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.CreateReportsCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateReportsCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **reportsCustomReportsCustomReportCreationRequest** | [**ReportsCustomReportsCustomReportCreationRequest**](ReportsCustomReportsCustomReportCreationRequest.md) | Report Information | + +### Return type + +[**ReportsCustomReportsCustomReportResponse**](ReportsCustomReportsCustomReportResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteReportsCustomById + +> NewDeleteReportsCustomByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewDeleteReportsCustomByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.DeleteReportsCustomById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteReportsCustomByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteReportsSchedulesById + +> NewDeleteReportsSchedulesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a built-in report's schedule that matches the id of the schedule. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report Schedule identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewDeleteReportsSchedulesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.DeleteReportsSchedulesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report Schedule identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteReportsSchedulesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReports + +> []CSSCMSDataModelModelsReport NewGetReportsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all built-in reports according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReports`: []CSSCMSDataModelModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReports`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsReport**](CSSCMSDataModelModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsById + +> CSSCMSDataModelModelsReport NewGetReportsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single built-in report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsById`: CSSCMSDataModelModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsReport**](CSSCMSDataModelModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsByIdParameters + +> []CSSCMSDataModelModelsReportParameters NewGetReportsByIdParametersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a built-in report's parameters that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsByIdParametersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsByIdParameters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsByIdParameters`: []CSSCMSDataModelModelsReportParameters + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsByIdParameters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsByIdParametersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsReportParameters**](CSSCMSDataModelModelsReportParameters.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsByIdSchedules + +> []ReportsReportSchedulesReportScheduleResponse NewGetReportsByIdSchedulesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a built-in report's schedules that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsByIdSchedulesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsByIdSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsByIdSchedules`: []ReportsReportSchedulesReportScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsByIdSchedules`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsByIdSchedulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]ReportsReportSchedulesReportScheduleResponse**](ReportsReportSchedulesReportScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsCustom + +> []ReportsCustomReportsCustomReportResponse NewGetReportsCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all custom reports according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsCustom`: []ReportsCustomReportsCustomReportResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]ReportsCustomReportsCustomReportResponse**](ReportsCustomReportsCustomReportResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsCustomById + +> ReportsCustomReportsCustomReportResponse NewGetReportsCustomByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsCustomByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsCustomById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsCustomById`: ReportsCustomReportsCustomReportResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsCustomById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsCustomByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**ReportsCustomReportsCustomReportResponse**](ReportsCustomReportsCustomReportResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetReportsSchedulesById + +> ReportsReportSchedulesReportScheduleResponse NewGetReportsSchedulesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a built-in report's schedule that matches the id of the schedule. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report Schedule identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewGetReportsSchedulesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.GetReportsSchedulesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportsSchedulesById`: ReportsReportSchedulesReportScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.GetReportsSchedulesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report Schedule identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetReportsSchedulesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**ReportsReportSchedulesReportScheduleResponse**](ReportsReportSchedulesReportScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateReports + +> CSSCMSDataModelModelsReport NewUpdateReportsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsReportRequestModel(cSSCMSDataModelModelsReportRequestModel).Execute() + +Updates a single built-in report that matches the id. Only some fields can be updated. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsReportRequestModel := *openapiclient.NewCSSCMSDataModelModelsReportRequestModel() // CSSCMSDataModelModelsReportRequestModel | This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewUpdateReportsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsReportRequestModel(cSSCMSDataModelModelsReportRequestModel).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.UpdateReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateReports`: CSSCMSDataModelModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.UpdateReports`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateReportsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsReportRequestModel** | [**CSSCMSDataModelModelsReportRequestModel**](CSSCMSDataModelModelsReportRequestModel.md) | This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. | + +### Return type + +[**CSSCMSDataModelModelsReport**](CSSCMSDataModelModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateReportsByIdParameters + +> []CSSCMSDataModelModelsReportParameters NewUpdateReportsByIdParametersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsReportParametersRequest(cSSCMSDataModelModelsReportParametersRequest).Execute() + +Update a built-in report's parameters that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsReportParametersRequest := []openapiclient.CSSCMSDataModelModelsReportParametersRequest{*openapiclient.NewCSSCMSDataModelModelsReportParametersRequest()} // []CSSCMSDataModelModelsReportParametersRequest | A List of the parameters to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewUpdateReportsByIdParametersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsReportParametersRequest(cSSCMSDataModelModelsReportParametersRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.UpdateReportsByIdParameters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateReportsByIdParameters`: []CSSCMSDataModelModelsReportParameters + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.UpdateReportsByIdParameters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateReportsByIdParametersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsReportParametersRequest** | [**[]CSSCMSDataModelModelsReportParametersRequest**](CSSCMSDataModelModelsReportParametersRequest.md) | A List of the parameters to be updated | + +### Return type + +[**[]CSSCMSDataModelModelsReportParameters**](CSSCMSDataModelModelsReportParameters.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateReportsByIdSchedules + +> ReportsReportSchedulesReportScheduleResponse NewUpdateReportsByIdSchedulesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsReportSchedulesReportScheduleUpdateRequest(reportsReportSchedulesReportScheduleUpdateRequest).Execute() + +Update a built-in report's schedule that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + reportsReportSchedulesReportScheduleUpdateRequest := *openapiclient.NewReportsReportSchedulesReportScheduleUpdateRequest(int32(123), "ReportFormat_example", map[string]string{"key": "Inner_example"}) // ReportsReportSchedulesReportScheduleUpdateRequest | Report Schedule (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewUpdateReportsByIdSchedulesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsReportSchedulesReportScheduleUpdateRequest(reportsReportSchedulesReportScheduleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.UpdateReportsByIdSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateReportsByIdSchedules`: ReportsReportSchedulesReportScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.UpdateReportsByIdSchedules`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateReportsByIdSchedulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **reportsReportSchedulesReportScheduleUpdateRequest** | [**ReportsReportSchedulesReportScheduleUpdateRequest**](ReportsReportSchedulesReportScheduleUpdateRequest.md) | Report Schedule | + +### Return type + +[**ReportsReportSchedulesReportScheduleResponse**](ReportsReportSchedulesReportScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateReportsCustom + +> ReportsCustomReportsCustomReportResponse NewUpdateReportsCustomRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsCustomReportsCustomReportUpdateRequest(reportsCustomReportsCustomReportUpdateRequest).Execute() + +Updates a custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + reportsCustomReportsCustomReportUpdateRequest := *openapiclient.NewReportsCustomReportsCustomReportUpdateRequest(int32(123), "CustomURL_example", "DisplayName_example", "Description_example", false, false) // ReportsCustomReportsCustomReportUpdateRequest | Report Information (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.NewUpdateReportsCustomRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ReportsCustomReportsCustomReportUpdateRequest(reportsCustomReportsCustomReportUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.UpdateReportsCustom``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateReportsCustom`: ReportsCustomReportsCustomReportResponse + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.UpdateReportsCustom`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateReportsCustomRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **reportsCustomReportsCustomReportUpdateRequest** | [**ReportsCustomReportsCustomReportUpdateRequest**](ReportsCustomReportsCustomReportUpdateRequest.md) | Report Information | + +### Return type + +[**ReportsCustomReportsCustomReportResponse**](ReportsCustomReportsCustomReportResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportCreationRequest.md b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportCreationRequest.md new file mode 100644 index 0000000..e2c9278 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportCreationRequest.md @@ -0,0 +1,145 @@ +# ReportsCustomReportsCustomReportCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomURL** | **string** | | +**DisplayName** | **string** | | +**Description** | **string** | | +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewReportsCustomReportsCustomReportCreationRequest + +`func NewReportsCustomReportsCustomReportCreationRequest(customURL string, displayName string, description string, ) *ReportsCustomReportsCustomReportCreationRequest` + +NewReportsCustomReportsCustomReportCreationRequest instantiates a new ReportsCustomReportsCustomReportCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsCustomReportsCustomReportCreationRequestWithDefaults + +`func NewReportsCustomReportsCustomReportCreationRequestWithDefaults() *ReportsCustomReportsCustomReportCreationRequest` + +NewReportsCustomReportsCustomReportCreationRequestWithDefaults instantiates a new ReportsCustomReportsCustomReportCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomURL + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ReportsCustomReportsCustomReportCreationRequest) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + + +### GetDisplayName + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ReportsCustomReportsCustomReportCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetDescription + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ReportsCustomReportsCustomReportCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetInNavigator + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ReportsCustomReportsCustomReportCreationRequest) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ReportsCustomReportsCustomReportCreationRequest) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ReportsCustomReportsCustomReportCreationRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ReportsCustomReportsCustomReportCreationRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ReportsCustomReportsCustomReportCreationRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportResponse.md b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportResponse.md new file mode 100644 index 0000000..807b653 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportResponse.md @@ -0,0 +1,216 @@ +# ReportsCustomReportsCustomReportResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomURL** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewReportsCustomReportsCustomReportResponse + +`func NewReportsCustomReportsCustomReportResponse() *ReportsCustomReportsCustomReportResponse` + +NewReportsCustomReportsCustomReportResponse instantiates a new ReportsCustomReportsCustomReportResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsCustomReportsCustomReportResponseWithDefaults + +`func NewReportsCustomReportsCustomReportResponseWithDefaults() *ReportsCustomReportsCustomReportResponse` + +NewReportsCustomReportsCustomReportResponseWithDefaults instantiates a new ReportsCustomReportsCustomReportResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomURL + +`func (o *ReportsCustomReportsCustomReportResponse) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ReportsCustomReportsCustomReportResponse) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + +### HasCustomURL + +`func (o *ReportsCustomReportsCustomReportResponse) HasCustomURL() bool` + +HasCustomURL returns a boolean if a field has been set. + +### SetCustomURLNil + +`func (o *ReportsCustomReportsCustomReportResponse) SetCustomURLNil(b bool)` + + SetCustomURLNil sets the value for CustomURL to be an explicit nil + +### UnsetCustomURL +`func (o *ReportsCustomReportsCustomReportResponse) UnsetCustomURL()` + +UnsetCustomURL ensures that no value is present for CustomURL, not even an explicit nil +### GetId + +`func (o *ReportsCustomReportsCustomReportResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ReportsCustomReportsCustomReportResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ReportsCustomReportsCustomReportResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ReportsCustomReportsCustomReportResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ReportsCustomReportsCustomReportResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ReportsCustomReportsCustomReportResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *ReportsCustomReportsCustomReportResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *ReportsCustomReportsCustomReportResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *ReportsCustomReportsCustomReportResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ReportsCustomReportsCustomReportResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ReportsCustomReportsCustomReportResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *ReportsCustomReportsCustomReportResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *ReportsCustomReportsCustomReportResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetInNavigator + +`func (o *ReportsCustomReportsCustomReportResponse) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ReportsCustomReportsCustomReportResponse) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ReportsCustomReportsCustomReportResponse) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ReportsCustomReportsCustomReportResponse) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ReportsCustomReportsCustomReportResponse) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ReportsCustomReportsCustomReportResponse) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ReportsCustomReportsCustomReportResponse) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportUpdateRequest.md b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportUpdateRequest.md new file mode 100644 index 0000000..1b8829f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsCustomReportsCustomReportUpdateRequest.md @@ -0,0 +1,156 @@ +# ReportsCustomReportsCustomReportUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**CustomURL** | **string** | | +**DisplayName** | **string** | | +**Description** | **string** | | +**InNavigator** | **bool** | | +**Favorite** | **bool** | | + +## Methods + +### NewReportsCustomReportsCustomReportUpdateRequest + +`func NewReportsCustomReportsCustomReportUpdateRequest(id int32, customURL string, displayName string, description string, inNavigator bool, favorite bool, ) *ReportsCustomReportsCustomReportUpdateRequest` + +NewReportsCustomReportsCustomReportUpdateRequest instantiates a new ReportsCustomReportsCustomReportUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsCustomReportsCustomReportUpdateRequestWithDefaults + +`func NewReportsCustomReportsCustomReportUpdateRequestWithDefaults() *ReportsCustomReportsCustomReportUpdateRequest` + +NewReportsCustomReportsCustomReportUpdateRequestWithDefaults instantiates a new ReportsCustomReportsCustomReportUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetCustomURL + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + + +### GetDisplayName + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetDescription + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetInNavigator + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + + +### GetFavorite + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ReportsCustomReportsCustomReportUpdateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleCreationRequest.md b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleCreationRequest.md new file mode 100644 index 0000000..af56edf --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleCreationRequest.md @@ -0,0 +1,258 @@ +# ReportsReportSchedulesReportScheduleCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SendReport** | Pointer to **bool** | | [optional] +**SaveReport** | Pointer to **bool** | | [optional] +**SaveReportPath** | Pointer to **NullableString** | | [optional] +**ReportFormat** | **string** | | +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertificateCollectionId** | Pointer to **NullableInt32** | | [optional] +**EmailRecipients** | Pointer to **[]string** | | [optional] +**RuntimeParameters** | **map[string]string** | | + +## Methods + +### NewReportsReportSchedulesReportScheduleCreationRequest + +`func NewReportsReportSchedulesReportScheduleCreationRequest(reportFormat string, runtimeParameters map[string]string, ) *ReportsReportSchedulesReportScheduleCreationRequest` + +NewReportsReportSchedulesReportScheduleCreationRequest instantiates a new ReportsReportSchedulesReportScheduleCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsReportSchedulesReportScheduleCreationRequestWithDefaults + +`func NewReportsReportSchedulesReportScheduleCreationRequestWithDefaults() *ReportsReportSchedulesReportScheduleCreationRequest` + +NewReportsReportSchedulesReportScheduleCreationRequestWithDefaults instantiates a new ReportsReportSchedulesReportScheduleCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSendReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSendReport() bool` + +GetSendReport returns the SendReport field if non-nil, zero value otherwise. + +### GetSendReportOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSendReportOk() (*bool, bool)` + +GetSendReportOk returns a tuple with the SendReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSendReport(v bool)` + +SetSendReport sets SendReport field to given value. + +### HasSendReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSendReport() bool` + +HasSendReport returns a boolean if a field has been set. + +### GetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReport() bool` + +GetSaveReport returns the SaveReport field if non-nil, zero value otherwise. + +### GetSaveReportOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportOk() (*bool, bool)` + +GetSaveReportOk returns a tuple with the SaveReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReport(v bool)` + +SetSaveReport sets SaveReport field to given value. + +### HasSaveReport + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSaveReport() bool` + +HasSaveReport returns a boolean if a field has been set. + +### GetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportPath() string` + +GetSaveReportPath returns the SaveReportPath field if non-nil, zero value otherwise. + +### GetSaveReportPathOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportPathOk() (*string, bool)` + +GetSaveReportPathOk returns a tuple with the SaveReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReportPath(v string)` + +SetSaveReportPath sets SaveReportPath field to given value. + +### HasSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSaveReportPath() bool` + +HasSaveReportPath returns a boolean if a field has been set. + +### SetSaveReportPathNil + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReportPathNil(b bool)` + + SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil + +### UnsetSaveReportPath +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) UnsetSaveReportPath()` + +UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +### GetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetReportFormat() string` + +GetReportFormat returns the ReportFormat field if non-nil, zero value otherwise. + +### GetReportFormatOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetReportFormatOk() (*string, bool)` + +GetReportFormatOk returns a tuple with the ReportFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetReportFormat(v string)` + +SetReportFormat sets ReportFormat field to given value. + + +### GetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetCertificateCollectionId() int32` + +GetCertificateCollectionId returns the CertificateCollectionId field if non-nil, zero value otherwise. + +### GetCertificateCollectionIdOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetCertificateCollectionIdOk() (*int32, bool)` + +GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetCertificateCollectionId(v int32)` + +SetCertificateCollectionId sets CertificateCollectionId field to given value. + +### HasCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasCertificateCollectionId() bool` + +HasCertificateCollectionId returns a boolean if a field has been set. + +### SetCertificateCollectionIdNil + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetCertificateCollectionIdNil(b bool)` + + SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil + +### UnsetCertificateCollectionId +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) UnsetCertificateCollectionId()` + +UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +### GetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetEmailRecipients() []string` + +GetEmailRecipients returns the EmailRecipients field if non-nil, zero value otherwise. + +### GetEmailRecipientsOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetEmailRecipientsOk() (*[]string, bool)` + +GetEmailRecipientsOk returns a tuple with the EmailRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetEmailRecipients(v []string)` + +SetEmailRecipients sets EmailRecipients field to given value. + +### HasEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasEmailRecipients() bool` + +HasEmailRecipients returns a boolean if a field has been set. + +### SetEmailRecipientsNil + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetEmailRecipientsNil(b bool)` + + SetEmailRecipientsNil sets the value for EmailRecipients to be an explicit nil + +### UnsetEmailRecipients +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) UnsetEmailRecipients()` + +UnsetEmailRecipients ensures that no value is present for EmailRecipients, not even an explicit nil +### GetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetRuntimeParameters() map[string]string` + +GetRuntimeParameters returns the RuntimeParameters field if non-nil, zero value otherwise. + +### GetRuntimeParametersOk + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetRuntimeParametersOk() (*map[string]string, bool)` + +GetRuntimeParametersOk returns a tuple with the RuntimeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetRuntimeParameters(v map[string]string)` + +SetRuntimeParameters sets RuntimeParameters field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleResponse.md b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleResponse.md new file mode 100644 index 0000000..0137a01 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleResponse.md @@ -0,0 +1,304 @@ +# ReportsReportSchedulesReportScheduleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**SendReport** | Pointer to **bool** | | [optional] +**SaveReport** | Pointer to **bool** | | [optional] +**SaveReportPath** | Pointer to **NullableString** | | [optional] +**ReportFormat** | Pointer to **NullableString** | | [optional] +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertificateCollectionId** | Pointer to **int32** | | [optional] +**EmailRecipients** | Pointer to **[]string** | | [optional] +**RuntimeParameters** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewReportsReportSchedulesReportScheduleResponse + +`func NewReportsReportSchedulesReportScheduleResponse() *ReportsReportSchedulesReportScheduleResponse` + +NewReportsReportSchedulesReportScheduleResponse instantiates a new ReportsReportSchedulesReportScheduleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsReportSchedulesReportScheduleResponseWithDefaults + +`func NewReportsReportSchedulesReportScheduleResponseWithDefaults() *ReportsReportSchedulesReportScheduleResponse` + +NewReportsReportSchedulesReportScheduleResponseWithDefaults instantiates a new ReportsReportSchedulesReportScheduleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSendReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSendReport() bool` + +GetSendReport returns the SendReport field if non-nil, zero value otherwise. + +### GetSendReportOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSendReportOk() (*bool, bool)` + +GetSendReportOk returns a tuple with the SendReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetSendReport(v bool)` + +SetSendReport sets SendReport field to given value. + +### HasSendReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasSendReport() bool` + +HasSendReport returns a boolean if a field has been set. + +### GetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReport() bool` + +GetSaveReport returns the SaveReport field if non-nil, zero value otherwise. + +### GetSaveReportOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportOk() (*bool, bool)` + +GetSaveReportOk returns a tuple with the SaveReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReport(v bool)` + +SetSaveReport sets SaveReport field to given value. + +### HasSaveReport + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasSaveReport() bool` + +HasSaveReport returns a boolean if a field has been set. + +### GetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportPath() string` + +GetSaveReportPath returns the SaveReportPath field if non-nil, zero value otherwise. + +### GetSaveReportPathOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportPathOk() (*string, bool)` + +GetSaveReportPathOk returns a tuple with the SaveReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReportPath(v string)` + +SetSaveReportPath sets SaveReportPath field to given value. + +### HasSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasSaveReportPath() bool` + +HasSaveReportPath returns a boolean if a field has been set. + +### SetSaveReportPathNil + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReportPathNil(b bool)` + + SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil + +### UnsetSaveReportPath +`func (o *ReportsReportSchedulesReportScheduleResponse) UnsetSaveReportPath()` + +UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +### GetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetReportFormat() string` + +GetReportFormat returns the ReportFormat field if non-nil, zero value otherwise. + +### GetReportFormatOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetReportFormatOk() (*string, bool)` + +GetReportFormatOk returns a tuple with the ReportFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetReportFormat(v string)` + +SetReportFormat sets ReportFormat field to given value. + +### HasReportFormat + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasReportFormat() bool` + +HasReportFormat returns a boolean if a field has been set. + +### SetReportFormatNil + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetReportFormatNil(b bool)` + + SetReportFormatNil sets the value for ReportFormat to be an explicit nil + +### UnsetReportFormat +`func (o *ReportsReportSchedulesReportScheduleResponse) UnsetReportFormat()` + +UnsetReportFormat ensures that no value is present for ReportFormat, not even an explicit nil +### GetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetCertificateCollectionId() int32` + +GetCertificateCollectionId returns the CertificateCollectionId field if non-nil, zero value otherwise. + +### GetCertificateCollectionIdOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetCertificateCollectionIdOk() (*int32, bool)` + +GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetCertificateCollectionId(v int32)` + +SetCertificateCollectionId sets CertificateCollectionId field to given value. + +### HasCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasCertificateCollectionId() bool` + +HasCertificateCollectionId returns a boolean if a field has been set. + +### GetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetEmailRecipients() []string` + +GetEmailRecipients returns the EmailRecipients field if non-nil, zero value otherwise. + +### GetEmailRecipientsOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetEmailRecipientsOk() (*[]string, bool)` + +GetEmailRecipientsOk returns a tuple with the EmailRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetEmailRecipients(v []string)` + +SetEmailRecipients sets EmailRecipients field to given value. + +### HasEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasEmailRecipients() bool` + +HasEmailRecipients returns a boolean if a field has been set. + +### SetEmailRecipientsNil + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetEmailRecipientsNil(b bool)` + + SetEmailRecipientsNil sets the value for EmailRecipients to be an explicit nil + +### UnsetEmailRecipients +`func (o *ReportsReportSchedulesReportScheduleResponse) UnsetEmailRecipients()` + +UnsetEmailRecipients ensures that no value is present for EmailRecipients, not even an explicit nil +### GetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetRuntimeParameters() map[string]string` + +GetRuntimeParameters returns the RuntimeParameters field if non-nil, zero value otherwise. + +### GetRuntimeParametersOk + +`func (o *ReportsReportSchedulesReportScheduleResponse) GetRuntimeParametersOk() (*map[string]string, bool)` + +GetRuntimeParametersOk returns a tuple with the RuntimeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetRuntimeParameters(v map[string]string)` + +SetRuntimeParameters sets RuntimeParameters field to given value. + +### HasRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleResponse) HasRuntimeParameters() bool` + +HasRuntimeParameters returns a boolean if a field has been set. + +### SetRuntimeParametersNil + +`func (o *ReportsReportSchedulesReportScheduleResponse) SetRuntimeParametersNil(b bool)` + + SetRuntimeParametersNil sets the value for RuntimeParameters to be an explicit nil + +### UnsetRuntimeParameters +`func (o *ReportsReportSchedulesReportScheduleResponse) UnsetRuntimeParameters()` + +UnsetRuntimeParameters ensures that no value is present for RuntimeParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleUpdateRequest.md b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleUpdateRequest.md new file mode 100644 index 0000000..c544225 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ReportsReportSchedulesReportScheduleUpdateRequest.md @@ -0,0 +1,279 @@ +# ReportsReportSchedulesReportScheduleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**SendReport** | Pointer to **bool** | | [optional] +**SaveReport** | Pointer to **bool** | | [optional] +**SaveReportPath** | Pointer to **NullableString** | | [optional] +**ReportFormat** | **string** | | +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertificateCollectionId** | Pointer to **NullableInt32** | | [optional] +**EmailRecipients** | Pointer to **[]string** | | [optional] +**RuntimeParameters** | **map[string]string** | | + +## Methods + +### NewReportsReportSchedulesReportScheduleUpdateRequest + +`func NewReportsReportSchedulesReportScheduleUpdateRequest(id int32, reportFormat string, runtimeParameters map[string]string, ) *ReportsReportSchedulesReportScheduleUpdateRequest` + +NewReportsReportSchedulesReportScheduleUpdateRequest instantiates a new ReportsReportSchedulesReportScheduleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReportsReportSchedulesReportScheduleUpdateRequestWithDefaults + +`func NewReportsReportSchedulesReportScheduleUpdateRequestWithDefaults() *ReportsReportSchedulesReportScheduleUpdateRequest` + +NewReportsReportSchedulesReportScheduleUpdateRequestWithDefaults instantiates a new ReportsReportSchedulesReportScheduleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetSendReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSendReport() bool` + +GetSendReport returns the SendReport field if non-nil, zero value otherwise. + +### GetSendReportOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSendReportOk() (*bool, bool)` + +GetSendReportOk returns a tuple with the SendReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSendReport(v bool)` + +SetSendReport sets SendReport field to given value. + +### HasSendReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSendReport() bool` + +HasSendReport returns a boolean if a field has been set. + +### GetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReport() bool` + +GetSaveReport returns the SaveReport field if non-nil, zero value otherwise. + +### GetSaveReportOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportOk() (*bool, bool)` + +GetSaveReportOk returns a tuple with the SaveReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReport(v bool)` + +SetSaveReport sets SaveReport field to given value. + +### HasSaveReport + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSaveReport() bool` + +HasSaveReport returns a boolean if a field has been set. + +### GetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportPath() string` + +GetSaveReportPath returns the SaveReportPath field if non-nil, zero value otherwise. + +### GetSaveReportPathOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportPathOk() (*string, bool)` + +GetSaveReportPathOk returns a tuple with the SaveReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReportPath(v string)` + +SetSaveReportPath sets SaveReportPath field to given value. + +### HasSaveReportPath + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSaveReportPath() bool` + +HasSaveReportPath returns a boolean if a field has been set. + +### SetSaveReportPathNil + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReportPathNil(b bool)` + + SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil + +### UnsetSaveReportPath +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) UnsetSaveReportPath()` + +UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +### GetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetReportFormat() string` + +GetReportFormat returns the ReportFormat field if non-nil, zero value otherwise. + +### GetReportFormatOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetReportFormatOk() (*string, bool)` + +GetReportFormatOk returns a tuple with the ReportFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportFormat + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetReportFormat(v string)` + +SetReportFormat sets ReportFormat field to given value. + + +### GetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetCertificateCollectionId() int32` + +GetCertificateCollectionId returns the CertificateCollectionId field if non-nil, zero value otherwise. + +### GetCertificateCollectionIdOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetCertificateCollectionIdOk() (*int32, bool)` + +GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetCertificateCollectionId(v int32)` + +SetCertificateCollectionId sets CertificateCollectionId field to given value. + +### HasCertificateCollectionId + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasCertificateCollectionId() bool` + +HasCertificateCollectionId returns a boolean if a field has been set. + +### SetCertificateCollectionIdNil + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetCertificateCollectionIdNil(b bool)` + + SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil + +### UnsetCertificateCollectionId +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) UnsetCertificateCollectionId()` + +UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +### GetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetEmailRecipients() []string` + +GetEmailRecipients returns the EmailRecipients field if non-nil, zero value otherwise. + +### GetEmailRecipientsOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetEmailRecipientsOk() (*[]string, bool)` + +GetEmailRecipientsOk returns a tuple with the EmailRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetEmailRecipients(v []string)` + +SetEmailRecipients sets EmailRecipients field to given value. + +### HasEmailRecipients + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasEmailRecipients() bool` + +HasEmailRecipients returns a boolean if a field has been set. + +### SetEmailRecipientsNil + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetEmailRecipientsNil(b bool)` + + SetEmailRecipientsNil sets the value for EmailRecipients to be an explicit nil + +### UnsetEmailRecipients +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) UnsetEmailRecipients()` + +UnsetEmailRecipients ensures that no value is present for EmailRecipients, not even an explicit nil +### GetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetRuntimeParameters() map[string]string` + +GetRuntimeParameters returns the RuntimeParameters field if non-nil, zero value otherwise. + +### GetRuntimeParametersOk + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetRuntimeParametersOk() (*map[string]string, bool)` + +GetRuntimeParametersOk returns a tuple with the RuntimeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuntimeParameters + +`func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetRuntimeParameters(v map[string]string)` + +SetRuntimeParameters sets RuntimeParameters field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SMTPApi.md b/v24/api/keyfactor/v1/docs/SMTPApi.md new file mode 100644 index 0000000..6d70585 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SMTPApi.md @@ -0,0 +1,219 @@ +# \SMTPApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSMTPTest**](SMTPApi.md#CreateSMTPTest) | **POST** /SMTP/Test | Tests SMTP profile data +[**GetSMTP**](SMTPApi.md#GetSMTP) | **GET** /SMTP | Gets SMTP profile data +[**UpdateSMTP**](SMTPApi.md#UpdateSMTP) | **PUT** /SMTP | Updates SMTP profile data + + + +## CreateSMTPTest + +> SMTPSMTPTestResponse NewCreateSMTPTestRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SMTPSMTPTestRequest(sMTPSMTPTestRequest).Execute() + +Tests SMTP profile data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + sMTPSMTPTestRequest := *openapiclient.NewSMTPSMTPTestRequest() // SMTPSMTPTestRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.NewCreateSMTPTestRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SMTPSMTPTestRequest(sMTPSMTPTestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.CreateSMTPTest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSMTPTest`: SMTPSMTPTestResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.CreateSMTPTest`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSMTPTestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **sMTPSMTPTestRequest** | [**SMTPSMTPTestRequest**](SMTPSMTPTestRequest.md) | | + +### Return type + +[**SMTPSMTPTestResponse**](SMTPSMTPTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSMTP + +> SMTPSMTPResponse NewGetSMTPRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets SMTP profile data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.NewGetSMTPRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.GetSMTP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSMTP`: SMTPSMTPResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.GetSMTP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSMTPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SMTPSMTPResponse**](SMTPSMTPResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSMTP + +> SMTPSMTPResponse NewUpdateSMTPRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SMTPSMTPRequest(sMTPSMTPRequest).Execute() + +Updates SMTP profile data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + sMTPSMTPRequest := *openapiclient.NewSMTPSMTPRequest() // SMTPSMTPRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.NewUpdateSMTPRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SMTPSMTPRequest(sMTPSMTPRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.UpdateSMTP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSMTP`: SMTPSMTPResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.UpdateSMTP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSMTPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **sMTPSMTPRequest** | [**SMTPSMTPRequest**](SMTPSMTPRequest.md) | | + +### Return type + +[**SMTPSMTPResponse**](SMTPSMTPResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SMTPSMTPRequest.md b/v24/api/keyfactor/v1/docs/SMTPSMTPRequest.md new file mode 100644 index 0000000..f903785 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SMTPSMTPRequest.md @@ -0,0 +1,314 @@ +# SMTPSMTPRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayPassword** | Pointer to **NullableString** | | [optional] +**RelayUsername** | Pointer to **NullableString** | | [optional] +**SenderAccount** | Pointer to **NullableString** | | [optional] +**SenderName** | Pointer to **NullableString** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewSMTPSMTPRequest + +`func NewSMTPSMTPRequest() *SMTPSMTPRequest` + +NewSMTPSMTPRequest instantiates a new SMTPSMTPRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSMTPSMTPRequestWithDefaults + +`func NewSMTPSMTPRequestWithDefaults() *SMTPSMTPRequest` + +NewSMTPSMTPRequestWithDefaults instantiates a new SMTPSMTPRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *SMTPSMTPRequest) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *SMTPSMTPRequest) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *SMTPSMTPRequest) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *SMTPSMTPRequest) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### SetHostNil + +`func (o *SMTPSMTPRequest) SetHostNil(b bool)` + + SetHostNil sets the value for Host to be an explicit nil + +### UnsetHost +`func (o *SMTPSMTPRequest) UnsetHost()` + +UnsetHost ensures that no value is present for Host, not even an explicit nil +### GetId + +`func (o *SMTPSMTPRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SMTPSMTPRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SMTPSMTPRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SMTPSMTPRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *SMTPSMTPRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *SMTPSMTPRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *SMTPSMTPRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *SMTPSMTPRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *SMTPSMTPRequest) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *SMTPSMTPRequest) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *SMTPSMTPRequest) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *SMTPSMTPRequest) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayPassword + +`func (o *SMTPSMTPRequest) GetRelayPassword() string` + +GetRelayPassword returns the RelayPassword field if non-nil, zero value otherwise. + +### GetRelayPasswordOk + +`func (o *SMTPSMTPRequest) GetRelayPasswordOk() (*string, bool)` + +GetRelayPasswordOk returns a tuple with the RelayPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayPassword + +`func (o *SMTPSMTPRequest) SetRelayPassword(v string)` + +SetRelayPassword sets RelayPassword field to given value. + +### HasRelayPassword + +`func (o *SMTPSMTPRequest) HasRelayPassword() bool` + +HasRelayPassword returns a boolean if a field has been set. + +### SetRelayPasswordNil + +`func (o *SMTPSMTPRequest) SetRelayPasswordNil(b bool)` + + SetRelayPasswordNil sets the value for RelayPassword to be an explicit nil + +### UnsetRelayPassword +`func (o *SMTPSMTPRequest) UnsetRelayPassword()` + +UnsetRelayPassword ensures that no value is present for RelayPassword, not even an explicit nil +### GetRelayUsername + +`func (o *SMTPSMTPRequest) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *SMTPSMTPRequest) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *SMTPSMTPRequest) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *SMTPSMTPRequest) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### SetRelayUsernameNil + +`func (o *SMTPSMTPRequest) SetRelayUsernameNil(b bool)` + + SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil + +### UnsetRelayUsername +`func (o *SMTPSMTPRequest) UnsetRelayUsername()` + +UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +### GetSenderAccount + +`func (o *SMTPSMTPRequest) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *SMTPSMTPRequest) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *SMTPSMTPRequest) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *SMTPSMTPRequest) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### SetSenderAccountNil + +`func (o *SMTPSMTPRequest) SetSenderAccountNil(b bool)` + + SetSenderAccountNil sets the value for SenderAccount to be an explicit nil + +### UnsetSenderAccount +`func (o *SMTPSMTPRequest) UnsetSenderAccount()` + +UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +### GetSenderName + +`func (o *SMTPSMTPRequest) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *SMTPSMTPRequest) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *SMTPSMTPRequest) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *SMTPSMTPRequest) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### SetSenderNameNil + +`func (o *SMTPSMTPRequest) SetSenderNameNil(b bool)` + + SetSenderNameNil sets the value for SenderName to be an explicit nil + +### UnsetSenderName +`func (o *SMTPSMTPRequest) UnsetSenderName()` + +UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +### GetUseSSL + +`func (o *SMTPSMTPRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *SMTPSMTPRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *SMTPSMTPRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *SMTPSMTPRequest) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SMTPSMTPResponse.md b/v24/api/keyfactor/v1/docs/SMTPSMTPResponse.md new file mode 100644 index 0000000..e1d8d30 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SMTPSMTPResponse.md @@ -0,0 +1,278 @@ +# SMTPSMTPResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayUsername** | Pointer to **NullableString** | | [optional] +**SenderAccount** | Pointer to **NullableString** | | [optional] +**SenderName** | Pointer to **NullableString** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewSMTPSMTPResponse + +`func NewSMTPSMTPResponse() *SMTPSMTPResponse` + +NewSMTPSMTPResponse instantiates a new SMTPSMTPResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSMTPSMTPResponseWithDefaults + +`func NewSMTPSMTPResponseWithDefaults() *SMTPSMTPResponse` + +NewSMTPSMTPResponseWithDefaults instantiates a new SMTPSMTPResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *SMTPSMTPResponse) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *SMTPSMTPResponse) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *SMTPSMTPResponse) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *SMTPSMTPResponse) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### SetHostNil + +`func (o *SMTPSMTPResponse) SetHostNil(b bool)` + + SetHostNil sets the value for Host to be an explicit nil + +### UnsetHost +`func (o *SMTPSMTPResponse) UnsetHost()` + +UnsetHost ensures that no value is present for Host, not even an explicit nil +### GetId + +`func (o *SMTPSMTPResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SMTPSMTPResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SMTPSMTPResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SMTPSMTPResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *SMTPSMTPResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *SMTPSMTPResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *SMTPSMTPResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *SMTPSMTPResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *SMTPSMTPResponse) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *SMTPSMTPResponse) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *SMTPSMTPResponse) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *SMTPSMTPResponse) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *SMTPSMTPResponse) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *SMTPSMTPResponse) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *SMTPSMTPResponse) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *SMTPSMTPResponse) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### SetRelayUsernameNil + +`func (o *SMTPSMTPResponse) SetRelayUsernameNil(b bool)` + + SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil + +### UnsetRelayUsername +`func (o *SMTPSMTPResponse) UnsetRelayUsername()` + +UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +### GetSenderAccount + +`func (o *SMTPSMTPResponse) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *SMTPSMTPResponse) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *SMTPSMTPResponse) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *SMTPSMTPResponse) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### SetSenderAccountNil + +`func (o *SMTPSMTPResponse) SetSenderAccountNil(b bool)` + + SetSenderAccountNil sets the value for SenderAccount to be an explicit nil + +### UnsetSenderAccount +`func (o *SMTPSMTPResponse) UnsetSenderAccount()` + +UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +### GetSenderName + +`func (o *SMTPSMTPResponse) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *SMTPSMTPResponse) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *SMTPSMTPResponse) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *SMTPSMTPResponse) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### SetSenderNameNil + +`func (o *SMTPSMTPResponse) SetSenderNameNil(b bool)` + + SetSenderNameNil sets the value for SenderName to be an explicit nil + +### UnsetSenderName +`func (o *SMTPSMTPResponse) UnsetSenderName()` + +UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +### GetUseSSL + +`func (o *SMTPSMTPResponse) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *SMTPSMTPResponse) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *SMTPSMTPResponse) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *SMTPSMTPResponse) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SMTPSMTPTestRequest.md b/v24/api/keyfactor/v1/docs/SMTPSMTPTestRequest.md new file mode 100644 index 0000000..a50a695 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SMTPSMTPTestRequest.md @@ -0,0 +1,350 @@ +# SMTPSMTPTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayPassword** | Pointer to **NullableString** | | [optional] +**RelayUsername** | Pointer to **NullableString** | | [optional] +**SenderAccount** | Pointer to **NullableString** | | [optional] +**SenderName** | Pointer to **NullableString** | | [optional] +**TestRecipient** | Pointer to **NullableString** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewSMTPSMTPTestRequest + +`func NewSMTPSMTPTestRequest() *SMTPSMTPTestRequest` + +NewSMTPSMTPTestRequest instantiates a new SMTPSMTPTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSMTPSMTPTestRequestWithDefaults + +`func NewSMTPSMTPTestRequestWithDefaults() *SMTPSMTPTestRequest` + +NewSMTPSMTPTestRequestWithDefaults instantiates a new SMTPSMTPTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *SMTPSMTPTestRequest) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *SMTPSMTPTestRequest) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *SMTPSMTPTestRequest) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *SMTPSMTPTestRequest) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### SetHostNil + +`func (o *SMTPSMTPTestRequest) SetHostNil(b bool)` + + SetHostNil sets the value for Host to be an explicit nil + +### UnsetHost +`func (o *SMTPSMTPTestRequest) UnsetHost()` + +UnsetHost ensures that no value is present for Host, not even an explicit nil +### GetId + +`func (o *SMTPSMTPTestRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SMTPSMTPTestRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SMTPSMTPTestRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SMTPSMTPTestRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *SMTPSMTPTestRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *SMTPSMTPTestRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *SMTPSMTPTestRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *SMTPSMTPTestRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *SMTPSMTPTestRequest) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *SMTPSMTPTestRequest) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *SMTPSMTPTestRequest) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *SMTPSMTPTestRequest) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayPassword + +`func (o *SMTPSMTPTestRequest) GetRelayPassword() string` + +GetRelayPassword returns the RelayPassword field if non-nil, zero value otherwise. + +### GetRelayPasswordOk + +`func (o *SMTPSMTPTestRequest) GetRelayPasswordOk() (*string, bool)` + +GetRelayPasswordOk returns a tuple with the RelayPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayPassword + +`func (o *SMTPSMTPTestRequest) SetRelayPassword(v string)` + +SetRelayPassword sets RelayPassword field to given value. + +### HasRelayPassword + +`func (o *SMTPSMTPTestRequest) HasRelayPassword() bool` + +HasRelayPassword returns a boolean if a field has been set. + +### SetRelayPasswordNil + +`func (o *SMTPSMTPTestRequest) SetRelayPasswordNil(b bool)` + + SetRelayPasswordNil sets the value for RelayPassword to be an explicit nil + +### UnsetRelayPassword +`func (o *SMTPSMTPTestRequest) UnsetRelayPassword()` + +UnsetRelayPassword ensures that no value is present for RelayPassword, not even an explicit nil +### GetRelayUsername + +`func (o *SMTPSMTPTestRequest) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *SMTPSMTPTestRequest) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *SMTPSMTPTestRequest) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *SMTPSMTPTestRequest) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### SetRelayUsernameNil + +`func (o *SMTPSMTPTestRequest) SetRelayUsernameNil(b bool)` + + SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil + +### UnsetRelayUsername +`func (o *SMTPSMTPTestRequest) UnsetRelayUsername()` + +UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +### GetSenderAccount + +`func (o *SMTPSMTPTestRequest) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *SMTPSMTPTestRequest) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *SMTPSMTPTestRequest) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *SMTPSMTPTestRequest) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### SetSenderAccountNil + +`func (o *SMTPSMTPTestRequest) SetSenderAccountNil(b bool)` + + SetSenderAccountNil sets the value for SenderAccount to be an explicit nil + +### UnsetSenderAccount +`func (o *SMTPSMTPTestRequest) UnsetSenderAccount()` + +UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +### GetSenderName + +`func (o *SMTPSMTPTestRequest) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *SMTPSMTPTestRequest) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *SMTPSMTPTestRequest) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *SMTPSMTPTestRequest) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### SetSenderNameNil + +`func (o *SMTPSMTPTestRequest) SetSenderNameNil(b bool)` + + SetSenderNameNil sets the value for SenderName to be an explicit nil + +### UnsetSenderName +`func (o *SMTPSMTPTestRequest) UnsetSenderName()` + +UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +### GetTestRecipient + +`func (o *SMTPSMTPTestRequest) GetTestRecipient() string` + +GetTestRecipient returns the TestRecipient field if non-nil, zero value otherwise. + +### GetTestRecipientOk + +`func (o *SMTPSMTPTestRequest) GetTestRecipientOk() (*string, bool)` + +GetTestRecipientOk returns a tuple with the TestRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestRecipient + +`func (o *SMTPSMTPTestRequest) SetTestRecipient(v string)` + +SetTestRecipient sets TestRecipient field to given value. + +### HasTestRecipient + +`func (o *SMTPSMTPTestRequest) HasTestRecipient() bool` + +HasTestRecipient returns a boolean if a field has been set. + +### SetTestRecipientNil + +`func (o *SMTPSMTPTestRequest) SetTestRecipientNil(b bool)` + + SetTestRecipientNil sets the value for TestRecipient to be an explicit nil + +### UnsetTestRecipient +`func (o *SMTPSMTPTestRequest) UnsetTestRecipient()` + +UnsetTestRecipient ensures that no value is present for TestRecipient, not even an explicit nil +### GetUseSSL + +`func (o *SMTPSMTPTestRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *SMTPSMTPTestRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *SMTPSMTPTestRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *SMTPSMTPTestRequest) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SMTPSMTPTestResponse.md b/v24/api/keyfactor/v1/docs/SMTPSMTPTestResponse.md new file mode 100644 index 0000000..237e481 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SMTPSMTPTestResponse.md @@ -0,0 +1,314 @@ +# SMTPSMTPTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayUsername** | Pointer to **NullableString** | | [optional] +**SenderAccount** | Pointer to **NullableString** | | [optional] +**SenderName** | Pointer to **NullableString** | | [optional] +**TestRecipient** | Pointer to **NullableString** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewSMTPSMTPTestResponse + +`func NewSMTPSMTPTestResponse() *SMTPSMTPTestResponse` + +NewSMTPSMTPTestResponse instantiates a new SMTPSMTPTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSMTPSMTPTestResponseWithDefaults + +`func NewSMTPSMTPTestResponseWithDefaults() *SMTPSMTPTestResponse` + +NewSMTPSMTPTestResponseWithDefaults instantiates a new SMTPSMTPTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *SMTPSMTPTestResponse) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *SMTPSMTPTestResponse) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *SMTPSMTPTestResponse) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *SMTPSMTPTestResponse) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### SetHostNil + +`func (o *SMTPSMTPTestResponse) SetHostNil(b bool)` + + SetHostNil sets the value for Host to be an explicit nil + +### UnsetHost +`func (o *SMTPSMTPTestResponse) UnsetHost()` + +UnsetHost ensures that no value is present for Host, not even an explicit nil +### GetId + +`func (o *SMTPSMTPTestResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SMTPSMTPTestResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SMTPSMTPTestResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SMTPSMTPTestResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *SMTPSMTPTestResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *SMTPSMTPTestResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *SMTPSMTPTestResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *SMTPSMTPTestResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *SMTPSMTPTestResponse) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *SMTPSMTPTestResponse) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *SMTPSMTPTestResponse) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *SMTPSMTPTestResponse) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *SMTPSMTPTestResponse) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *SMTPSMTPTestResponse) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *SMTPSMTPTestResponse) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *SMTPSMTPTestResponse) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### SetRelayUsernameNil + +`func (o *SMTPSMTPTestResponse) SetRelayUsernameNil(b bool)` + + SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil + +### UnsetRelayUsername +`func (o *SMTPSMTPTestResponse) UnsetRelayUsername()` + +UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +### GetSenderAccount + +`func (o *SMTPSMTPTestResponse) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *SMTPSMTPTestResponse) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *SMTPSMTPTestResponse) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *SMTPSMTPTestResponse) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### SetSenderAccountNil + +`func (o *SMTPSMTPTestResponse) SetSenderAccountNil(b bool)` + + SetSenderAccountNil sets the value for SenderAccount to be an explicit nil + +### UnsetSenderAccount +`func (o *SMTPSMTPTestResponse) UnsetSenderAccount()` + +UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +### GetSenderName + +`func (o *SMTPSMTPTestResponse) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *SMTPSMTPTestResponse) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *SMTPSMTPTestResponse) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *SMTPSMTPTestResponse) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### SetSenderNameNil + +`func (o *SMTPSMTPTestResponse) SetSenderNameNil(b bool)` + + SetSenderNameNil sets the value for SenderName to be an explicit nil + +### UnsetSenderName +`func (o *SMTPSMTPTestResponse) UnsetSenderName()` + +UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +### GetTestRecipient + +`func (o *SMTPSMTPTestResponse) GetTestRecipient() string` + +GetTestRecipient returns the TestRecipient field if non-nil, zero value otherwise. + +### GetTestRecipientOk + +`func (o *SMTPSMTPTestResponse) GetTestRecipientOk() (*string, bool)` + +GetTestRecipientOk returns a tuple with the TestRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestRecipient + +`func (o *SMTPSMTPTestResponse) SetTestRecipient(v string)` + +SetTestRecipient sets TestRecipient field to given value. + +### HasTestRecipient + +`func (o *SMTPSMTPTestResponse) HasTestRecipient() bool` + +HasTestRecipient returns a boolean if a field has been set. + +### SetTestRecipientNil + +`func (o *SMTPSMTPTestResponse) SetTestRecipientNil(b bool)` + + SetTestRecipientNil sets the value for TestRecipient to be an explicit nil + +### UnsetTestRecipient +`func (o *SMTPSMTPTestResponse) UnsetTestRecipient()` + +UnsetTestRecipient ensures that no value is present for TestRecipient, not even an explicit nil +### GetUseSSL + +`func (o *SMTPSMTPTestResponse) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *SMTPSMTPTestResponse) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *SMTPSMTPTestResponse) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *SMTPSMTPTestResponse) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SchedulingApi.md b/v24/api/keyfactor/v1/docs/SchedulingApi.md new file mode 100644 index 0000000..08bbc1a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SchedulingApi.md @@ -0,0 +1,77 @@ +# \SchedulingApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateScheduling**](SchedulingApi.md#CreateScheduling) | **POST** /Scheduling | + + + +## CreateScheduling + +> SchedulingScheduledTaskResponse NewCreateSchedulingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SchedulingScheduledTaskRequest(schedulingScheduledTaskRequest).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + schedulingScheduledTaskRequest := *openapiclient.NewSchedulingScheduledTaskRequest(openapiclient.CSS.CMS.Core.Enums.ScheduledTaskType(0)) // SchedulingScheduledTaskRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SchedulingApi.NewCreateSchedulingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SchedulingScheduledTaskRequest(schedulingScheduledTaskRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SchedulingApi.CreateScheduling``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduling`: SchedulingScheduledTaskResponse + fmt.Fprintf(os.Stdout, "Response from `SchedulingApi.CreateScheduling`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSchedulingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **schedulingScheduledTaskRequest** | [**SchedulingScheduledTaskRequest**](SchedulingScheduledTaskRequest.md) | | + +### Return type + +[**SchedulingScheduledTaskResponse**](SchedulingScheduledTaskResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskRequest.md b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskRequest.md new file mode 100644 index 0000000..f7d656c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskRequest.md @@ -0,0 +1,175 @@ +# SchedulingScheduledTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**ScheduleType** | [**CSSCMSCoreEnumsScheduledTaskType**](CSSCMSCoreEnumsScheduledTaskType.md) | | +**Enabled** | Pointer to **bool** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] +**TimeOfDay** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewSchedulingScheduledTaskRequest + +`func NewSchedulingScheduledTaskRequest(scheduleType CSSCMSCoreEnumsScheduledTaskType, ) *SchedulingScheduledTaskRequest` + +NewSchedulingScheduledTaskRequest instantiates a new SchedulingScheduledTaskRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchedulingScheduledTaskRequestWithDefaults + +`func NewSchedulingScheduledTaskRequestWithDefaults() *SchedulingScheduledTaskRequest` + +NewSchedulingScheduledTaskRequestWithDefaults instantiates a new SchedulingScheduledTaskRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SchedulingScheduledTaskRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchedulingScheduledTaskRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SchedulingScheduledTaskRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchedulingScheduledTaskRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetScheduleType + +`func (o *SchedulingScheduledTaskRequest) GetScheduleType() CSSCMSCoreEnumsScheduledTaskType` + +GetScheduleType returns the ScheduleType field if non-nil, zero value otherwise. + +### GetScheduleTypeOk + +`func (o *SchedulingScheduledTaskRequest) GetScheduleTypeOk() (*CSSCMSCoreEnumsScheduledTaskType, bool)` + +GetScheduleTypeOk returns a tuple with the ScheduleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleType + +`func (o *SchedulingScheduledTaskRequest) SetScheduleType(v CSSCMSCoreEnumsScheduledTaskType)` + +SetScheduleType sets ScheduleType field to given value. + + +### GetEnabled + +`func (o *SchedulingScheduledTaskRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SchedulingScheduledTaskRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SchedulingScheduledTaskRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SchedulingScheduledTaskRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetInterval + +`func (o *SchedulingScheduledTaskRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *SchedulingScheduledTaskRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *SchedulingScheduledTaskRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *SchedulingScheduledTaskRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *SchedulingScheduledTaskRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *SchedulingScheduledTaskRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil +### GetTimeOfDay + +`func (o *SchedulingScheduledTaskRequest) GetTimeOfDay() time.Time` + +GetTimeOfDay returns the TimeOfDay field if non-nil, zero value otherwise. + +### GetTimeOfDayOk + +`func (o *SchedulingScheduledTaskRequest) GetTimeOfDayOk() (*time.Time, bool)` + +GetTimeOfDayOk returns a tuple with the TimeOfDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeOfDay + +`func (o *SchedulingScheduledTaskRequest) SetTimeOfDay(v time.Time)` + +SetTimeOfDay sets TimeOfDay field to given value. + +### HasTimeOfDay + +`func (o *SchedulingScheduledTaskRequest) HasTimeOfDay() bool` + +HasTimeOfDay returns a boolean if a field has been set. + +### SetTimeOfDayNil + +`func (o *SchedulingScheduledTaskRequest) SetTimeOfDayNil(b bool)` + + SetTimeOfDayNil sets the value for TimeOfDay to be an explicit nil + +### UnsetTimeOfDay +`func (o *SchedulingScheduledTaskRequest) UnsetTimeOfDay()` + +UnsetTimeOfDay ensures that no value is present for TimeOfDay, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskResponse.md b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskResponse.md new file mode 100644 index 0000000..dbf7d12 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskResponse.md @@ -0,0 +1,252 @@ +# SchedulingScheduledTaskResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Schedule** | Pointer to **NullableString** | | [optional] +**ScheduleType** | Pointer to [**CSSCMSCoreEnumsScheduledTaskType**](CSSCMSCoreEnumsScheduledTaskType.md) | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**EntityId** | Pointer to **NullableInt64** | | [optional] +**LastRun** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewSchedulingScheduledTaskResponse + +`func NewSchedulingScheduledTaskResponse() *SchedulingScheduledTaskResponse` + +NewSchedulingScheduledTaskResponse instantiates a new SchedulingScheduledTaskResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchedulingScheduledTaskResponseWithDefaults + +`func NewSchedulingScheduledTaskResponseWithDefaults() *SchedulingScheduledTaskResponse` + +NewSchedulingScheduledTaskResponseWithDefaults instantiates a new SchedulingScheduledTaskResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SchedulingScheduledTaskResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchedulingScheduledTaskResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SchedulingScheduledTaskResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchedulingScheduledTaskResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSchedule + +`func (o *SchedulingScheduledTaskResponse) GetSchedule() string` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *SchedulingScheduledTaskResponse) GetScheduleOk() (*string, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *SchedulingScheduledTaskResponse) SetSchedule(v string)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *SchedulingScheduledTaskResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### SetScheduleNil + +`func (o *SchedulingScheduledTaskResponse) SetScheduleNil(b bool)` + + SetScheduleNil sets the value for Schedule to be an explicit nil + +### UnsetSchedule +`func (o *SchedulingScheduledTaskResponse) UnsetSchedule()` + +UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +### GetScheduleType + +`func (o *SchedulingScheduledTaskResponse) GetScheduleType() CSSCMSCoreEnumsScheduledTaskType` + +GetScheduleType returns the ScheduleType field if non-nil, zero value otherwise. + +### GetScheduleTypeOk + +`func (o *SchedulingScheduledTaskResponse) GetScheduleTypeOk() (*CSSCMSCoreEnumsScheduledTaskType, bool)` + +GetScheduleTypeOk returns a tuple with the ScheduleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleType + +`func (o *SchedulingScheduledTaskResponse) SetScheduleType(v CSSCMSCoreEnumsScheduledTaskType)` + +SetScheduleType sets ScheduleType field to given value. + +### HasScheduleType + +`func (o *SchedulingScheduledTaskResponse) HasScheduleType() bool` + +HasScheduleType returns a boolean if a field has been set. + +### GetEnabled + +`func (o *SchedulingScheduledTaskResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SchedulingScheduledTaskResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SchedulingScheduledTaskResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SchedulingScheduledTaskResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetName + +`func (o *SchedulingScheduledTaskResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchedulingScheduledTaskResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SchedulingScheduledTaskResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchedulingScheduledTaskResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SchedulingScheduledTaskResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SchedulingScheduledTaskResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEntityId + +`func (o *SchedulingScheduledTaskResponse) GetEntityId() int64` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *SchedulingScheduledTaskResponse) GetEntityIdOk() (*int64, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *SchedulingScheduledTaskResponse) SetEntityId(v int64)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *SchedulingScheduledTaskResponse) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### SetEntityIdNil + +`func (o *SchedulingScheduledTaskResponse) SetEntityIdNil(b bool)` + + SetEntityIdNil sets the value for EntityId to be an explicit nil + +### UnsetEntityId +`func (o *SchedulingScheduledTaskResponse) UnsetEntityId()` + +UnsetEntityId ensures that no value is present for EntityId, not even an explicit nil +### GetLastRun + +`func (o *SchedulingScheduledTaskResponse) GetLastRun() time.Time` + +GetLastRun returns the LastRun field if non-nil, zero value otherwise. + +### GetLastRunOk + +`func (o *SchedulingScheduledTaskResponse) GetLastRunOk() (*time.Time, bool)` + +GetLastRunOk returns a tuple with the LastRun field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastRun + +`func (o *SchedulingScheduledTaskResponse) SetLastRun(v time.Time)` + +SetLastRun sets LastRun field to given value. + +### HasLastRun + +`func (o *SchedulingScheduledTaskResponse) HasLastRun() bool` + +HasLastRun returns a boolean if a field has been set. + +### SetLastRunNil + +`func (o *SchedulingScheduledTaskResponse) SetLastRunNil(b bool)` + + SetLastRunNil sets the value for LastRun to be an explicit nil + +### UnsetLastRun +`func (o *SchedulingScheduledTaskResponse) UnsetLastRun()` + +UnsetLastRun ensures that no value is present for LastRun, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskScheduleResponse.md b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskScheduleResponse.md new file mode 100644 index 0000000..15a7865 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SchedulingScheduledTaskScheduleResponse.md @@ -0,0 +1,92 @@ +# SchedulingScheduledTaskScheduleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**LastEstimated** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewSchedulingScheduledTaskScheduleResponse + +`func NewSchedulingScheduledTaskScheduleResponse() *SchedulingScheduledTaskScheduleResponse` + +NewSchedulingScheduledTaskScheduleResponse instantiates a new SchedulingScheduledTaskScheduleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchedulingScheduledTaskScheduleResponseWithDefaults + +`func NewSchedulingScheduledTaskScheduleResponseWithDefaults() *SchedulingScheduledTaskScheduleResponse` + +NewSchedulingScheduledTaskScheduleResponseWithDefaults instantiates a new SchedulingScheduledTaskScheduleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchedule + +`func (o *SchedulingScheduledTaskScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *SchedulingScheduledTaskScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *SchedulingScheduledTaskScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *SchedulingScheduledTaskScheduleResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetLastEstimated + +`func (o *SchedulingScheduledTaskScheduleResponse) GetLastEstimated() time.Time` + +GetLastEstimated returns the LastEstimated field if non-nil, zero value otherwise. + +### GetLastEstimatedOk + +`func (o *SchedulingScheduledTaskScheduleResponse) GetLastEstimatedOk() (*time.Time, bool)` + +GetLastEstimatedOk returns a tuple with the LastEstimated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastEstimated + +`func (o *SchedulingScheduledTaskScheduleResponse) SetLastEstimated(v time.Time)` + +SetLastEstimated sets LastEstimated field to given value. + +### HasLastEstimated + +`func (o *SchedulingScheduledTaskScheduleResponse) HasLastEstimated() bool` + +HasLastEstimated returns a boolean if a field has been set. + +### SetLastEstimatedNil + +`func (o *SchedulingScheduledTaskScheduleResponse) SetLastEstimatedNil(b bool)` + + SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil + +### UnsetLastEstimated +`func (o *SchedulingScheduledTaskScheduleResponse) UnsetLastEstimated()` + +UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ScriptsScriptCreateRequest.md b/v24/api/keyfactor/v1/docs/ScriptsScriptCreateRequest.md new file mode 100644 index 0000000..2863d1e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ScriptsScriptCreateRequest.md @@ -0,0 +1,108 @@ +# ScriptsScriptCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Contents** | **string** | | +**Categories** | Pointer to [**[]CSSCMSDataModelEnumsScriptCategories**](CSSCMSDataModelEnumsScriptCategories.md) | | [optional] + +## Methods + +### NewScriptsScriptCreateRequest + +`func NewScriptsScriptCreateRequest(name string, contents string, ) *ScriptsScriptCreateRequest` + +NewScriptsScriptCreateRequest instantiates a new ScriptsScriptCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptsScriptCreateRequestWithDefaults + +`func NewScriptsScriptCreateRequestWithDefaults() *ScriptsScriptCreateRequest` + +NewScriptsScriptCreateRequestWithDefaults instantiates a new ScriptsScriptCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ScriptsScriptCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ScriptsScriptCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ScriptsScriptCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetContents + +`func (o *ScriptsScriptCreateRequest) GetContents() string` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *ScriptsScriptCreateRequest) GetContentsOk() (*string, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *ScriptsScriptCreateRequest) SetContents(v string)` + +SetContents sets Contents field to given value. + + +### GetCategories + +`func (o *ScriptsScriptCreateRequest) GetCategories() []CSSCMSDataModelEnumsScriptCategories` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ScriptsScriptCreateRequest) GetCategoriesOk() (*[]CSSCMSDataModelEnumsScriptCategories, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ScriptsScriptCreateRequest) SetCategories(v []CSSCMSDataModelEnumsScriptCategories)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ScriptsScriptCreateRequest) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### SetCategoriesNil + +`func (o *ScriptsScriptCreateRequest) SetCategoriesNil(b bool)` + + SetCategoriesNil sets the value for Categories to be an explicit nil + +### UnsetCategories +`func (o *ScriptsScriptCreateRequest) UnsetCategories()` + +UnsetCategories ensures that no value is present for Categories, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ScriptsScriptQueryResponse.md b/v24/api/keyfactor/v1/docs/ScriptsScriptQueryResponse.md new file mode 100644 index 0000000..a8fc32d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ScriptsScriptQueryResponse.md @@ -0,0 +1,128 @@ +# ScriptsScriptQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Categories** | Pointer to [**[]CSSCMSDataModelEnumsScriptCategories**](CSSCMSDataModelEnumsScriptCategories.md) | | [optional] + +## Methods + +### NewScriptsScriptQueryResponse + +`func NewScriptsScriptQueryResponse() *ScriptsScriptQueryResponse` + +NewScriptsScriptQueryResponse instantiates a new ScriptsScriptQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptsScriptQueryResponseWithDefaults + +`func NewScriptsScriptQueryResponseWithDefaults() *ScriptsScriptQueryResponse` + +NewScriptsScriptQueryResponseWithDefaults instantiates a new ScriptsScriptQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ScriptsScriptQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ScriptsScriptQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ScriptsScriptQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ScriptsScriptQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ScriptsScriptQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ScriptsScriptQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ScriptsScriptQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ScriptsScriptQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *ScriptsScriptQueryResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ScriptsScriptQueryResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCategories + +`func (o *ScriptsScriptQueryResponse) GetCategories() []CSSCMSDataModelEnumsScriptCategories` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ScriptsScriptQueryResponse) GetCategoriesOk() (*[]CSSCMSDataModelEnumsScriptCategories, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ScriptsScriptQueryResponse) SetCategories(v []CSSCMSDataModelEnumsScriptCategories)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ScriptsScriptQueryResponse) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### SetCategoriesNil + +`func (o *ScriptsScriptQueryResponse) SetCategoriesNil(b bool)` + + SetCategoriesNil sets the value for Categories to be an explicit nil + +### UnsetCategories +`func (o *ScriptsScriptQueryResponse) UnsetCategories()` + +UnsetCategories ensures that no value is present for Categories, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ScriptsScriptResponse.md b/v24/api/keyfactor/v1/docs/ScriptsScriptResponse.md new file mode 100644 index 0000000..7b74dbc --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ScriptsScriptResponse.md @@ -0,0 +1,164 @@ +# ScriptsScriptResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Contents** | Pointer to **NullableString** | | [optional] +**Categories** | Pointer to [**[]CSSCMSDataModelEnumsScriptCategories**](CSSCMSDataModelEnumsScriptCategories.md) | | [optional] + +## Methods + +### NewScriptsScriptResponse + +`func NewScriptsScriptResponse() *ScriptsScriptResponse` + +NewScriptsScriptResponse instantiates a new ScriptsScriptResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptsScriptResponseWithDefaults + +`func NewScriptsScriptResponseWithDefaults() *ScriptsScriptResponse` + +NewScriptsScriptResponseWithDefaults instantiates a new ScriptsScriptResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ScriptsScriptResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ScriptsScriptResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ScriptsScriptResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ScriptsScriptResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ScriptsScriptResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ScriptsScriptResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ScriptsScriptResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ScriptsScriptResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *ScriptsScriptResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *ScriptsScriptResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetContents + +`func (o *ScriptsScriptResponse) GetContents() string` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *ScriptsScriptResponse) GetContentsOk() (*string, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *ScriptsScriptResponse) SetContents(v string)` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *ScriptsScriptResponse) HasContents() bool` + +HasContents returns a boolean if a field has been set. + +### SetContentsNil + +`func (o *ScriptsScriptResponse) SetContentsNil(b bool)` + + SetContentsNil sets the value for Contents to be an explicit nil + +### UnsetContents +`func (o *ScriptsScriptResponse) UnsetContents()` + +UnsetContents ensures that no value is present for Contents, not even an explicit nil +### GetCategories + +`func (o *ScriptsScriptResponse) GetCategories() []CSSCMSDataModelEnumsScriptCategories` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ScriptsScriptResponse) GetCategoriesOk() (*[]CSSCMSDataModelEnumsScriptCategories, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ScriptsScriptResponse) SetCategories(v []CSSCMSDataModelEnumsScriptCategories)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ScriptsScriptResponse) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### SetCategoriesNil + +`func (o *ScriptsScriptResponse) SetCategoriesNil(b bool)` + + SetCategoriesNil sets the value for Categories to be an explicit nil + +### UnsetCategories +`func (o *ScriptsScriptResponse) UnsetCategories()` + +UnsetCategories ensures that no value is present for Categories, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ScriptsScriptsUpdateRequest.md b/v24/api/keyfactor/v1/docs/ScriptsScriptsUpdateRequest.md new file mode 100644 index 0000000..b6dc878 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ScriptsScriptsUpdateRequest.md @@ -0,0 +1,128 @@ +# ScriptsScriptsUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Contents** | Pointer to **NullableString** | | [optional] +**Categories** | Pointer to [**[]CSSCMSDataModelEnumsScriptCategories**](CSSCMSDataModelEnumsScriptCategories.md) | | [optional] + +## Methods + +### NewScriptsScriptsUpdateRequest + +`func NewScriptsScriptsUpdateRequest() *ScriptsScriptsUpdateRequest` + +NewScriptsScriptsUpdateRequest instantiates a new ScriptsScriptsUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptsScriptsUpdateRequestWithDefaults + +`func NewScriptsScriptsUpdateRequestWithDefaults() *ScriptsScriptsUpdateRequest` + +NewScriptsScriptsUpdateRequestWithDefaults instantiates a new ScriptsScriptsUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ScriptsScriptsUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ScriptsScriptsUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ScriptsScriptsUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ScriptsScriptsUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContents + +`func (o *ScriptsScriptsUpdateRequest) GetContents() string` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *ScriptsScriptsUpdateRequest) GetContentsOk() (*string, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *ScriptsScriptsUpdateRequest) SetContents(v string)` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *ScriptsScriptsUpdateRequest) HasContents() bool` + +HasContents returns a boolean if a field has been set. + +### SetContentsNil + +`func (o *ScriptsScriptsUpdateRequest) SetContentsNil(b bool)` + + SetContentsNil sets the value for Contents to be an explicit nil + +### UnsetContents +`func (o *ScriptsScriptsUpdateRequest) UnsetContents()` + +UnsetContents ensures that no value is present for Contents, not even an explicit nil +### GetCategories + +`func (o *ScriptsScriptsUpdateRequest) GetCategories() []CSSCMSDataModelEnumsScriptCategories` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ScriptsScriptsUpdateRequest) GetCategoriesOk() (*[]CSSCMSDataModelEnumsScriptCategories, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ScriptsScriptsUpdateRequest) SetCategories(v []CSSCMSDataModelEnumsScriptCategories)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ScriptsScriptsUpdateRequest) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### SetCategoriesNil + +`func (o *ScriptsScriptsUpdateRequest) SetCategoriesNil(b bool)` + + SetCategoriesNil sets the value for Categories to be an explicit nil + +### UnsetCategories +`func (o *ScriptsScriptsUpdateRequest) UnsetCategories()` + +UnsetCategories ensures that no value is present for Categories, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityApi.md b/v24/api/keyfactor/v1/docs/SecurityApi.md new file mode 100644 index 0000000..f863b74 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityApi.md @@ -0,0 +1,655 @@ +# \SecurityApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecurityContainersByIdRoles**](SecurityApi.md#CreateSecurityContainersByIdRoles) | **POST** /Security/Containers/{id}/Roles | Edit a certificate store container's permissions. Reminder: Name field should be left blank. +[**CreateSecurityIdentities**](SecurityApi.md#CreateSecurityIdentities) | **POST** /Security/Identities | Adds a new security identity to the system. +[**DeleteSecurityIdentitiesById**](SecurityApi.md#DeleteSecurityIdentitiesById) | **DELETE** /Security/Identities/{id} | Deletes the security identity whose ID is provided. +[**GetSecurityAuditCollectionsById**](SecurityApi.md#GetSecurityAuditCollectionsById) | **GET** /Security/Audit/Collections/{id} | Gets a list of applicable security permissions for certificate collection +[**GetSecurityContainersByIdRoles**](SecurityApi.md#GetSecurityContainersByIdRoles) | **GET** /Security/Containers/{id}/Roles | Returns all the permissions of a certificate store container through the id +[**GetSecurityIdentities**](SecurityApi.md#GetSecurityIdentities) | **GET** /Security/Identities | Returns all security identities according to the provided filter and output parameters. +[**GetSecurityIdentitiesById**](SecurityApi.md#GetSecurityIdentitiesById) | **GET** /Security/Identities/{id} | Gets an object representing the permissions of the identity associated with the provided identifier. +[**GetSecurityIdentitiesLookup**](SecurityApi.md#GetSecurityIdentitiesLookup) | **GET** /Security/Identities/Lookup | Validates that the identity with the name given exists. +[**GetSecurityMy**](SecurityApi.md#GetSecurityMy) | **GET** /Security/My | Looks at all the roles and global permissions for the user and returns them. + + + +## CreateSecurityContainersByIdRoles + +> []CSSCMSDataModelModelsCertificateStoreContainerPermissions NewCreateSecurityContainersByIdRolesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoreContainerPermissions(cSSCMSDataModelModelsCertificateStoreContainerPermissions).Execute() + +Edit a certificate store container's permissions. Reminder: Name field should be left blank. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Information for the securitycontainer + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsCertificateStoreContainerPermissions := []openapiclient.CSSCMSDataModelModelsCertificateStoreContainerPermissions{*openapiclient.NewCSSCMSDataModelModelsCertificateStoreContainerPermissions()} // []CSSCMSDataModelModelsCertificateStoreContainerPermissions | Information for the updated security role (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewCreateSecurityContainersByIdRolesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsCertificateStoreContainerPermissions(cSSCMSDataModelModelsCertificateStoreContainerPermissions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.CreateSecurityContainersByIdRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityContainersByIdRoles`: []CSSCMSDataModelModelsCertificateStoreContainerPermissions + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.CreateSecurityContainersByIdRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Information for the securitycontainer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityContainersByIdRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsCertificateStoreContainerPermissions** | [**[]CSSCMSDataModelModelsCertificateStoreContainerPermissions**](CSSCMSDataModelModelsCertificateStoreContainerPermissions.md) | Information for the updated security role | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateStoreContainerPermissions**](CSSCMSDataModelModelsCertificateStoreContainerPermissions.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSecurityIdentities + +> SecuritySecurityIdentitiesSecurityIdentityResponse NewCreateSecurityIdentitiesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityIdentitiesSecurityIdentityRequest(securitySecurityIdentitiesSecurityIdentityRequest).Execute() + +Adds a new security identity to the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityIdentitiesSecurityIdentityRequest := *openapiclient.NewSecuritySecurityIdentitiesSecurityIdentityRequest("AccountName_example") // SecuritySecurityIdentitiesSecurityIdentityRequest | Security Identity Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewCreateSecurityIdentitiesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityIdentitiesSecurityIdentityRequest(securitySecurityIdentitiesSecurityIdentityRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.CreateSecurityIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityIdentities`: SecuritySecurityIdentitiesSecurityIdentityResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.CreateSecurityIdentities`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityIdentitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityIdentitiesSecurityIdentityRequest** | [**SecuritySecurityIdentitiesSecurityIdentityRequest**](SecuritySecurityIdentitiesSecurityIdentityRequest.md) | Security Identity Request | + +### Return type + +[**SecuritySecurityIdentitiesSecurityIdentityResponse**](SecuritySecurityIdentitiesSecurityIdentityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSecurityIdentitiesById + +> NewDeleteSecurityIdentitiesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the security identity whose ID is provided. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the security identity to be deleted. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewDeleteSecurityIdentitiesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.DeleteSecurityIdentitiesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the security identity to be deleted. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSecurityIdentitiesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityAuditCollectionsById + +> CertificateCollectionsCertificateCollectionPermissionsResponse NewGetSecurityAuditCollectionsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a list of applicable security permissions for certificate collection + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The certificate collection + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityAuditCollectionsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityAuditCollectionsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityAuditCollectionsById`: CertificateCollectionsCertificateCollectionPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityAuditCollectionsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The certificate collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityAuditCollectionsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificateCollectionsCertificateCollectionPermissionsResponse**](CertificateCollectionsCertificateCollectionPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityContainersByIdRoles + +> []CSSCMSDataModelModelsCertificateStoreContainerPermissions NewGetSecurityContainersByIdRolesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all the permissions of a certificate store container through the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Information for the updated container + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityContainersByIdRolesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityContainersByIdRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityContainersByIdRoles`: []CSSCMSDataModelModelsCertificateStoreContainerPermissions + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityContainersByIdRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Information for the updated container | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityContainersByIdRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsCertificateStoreContainerPermissions**](CSSCMSDataModelModelsCertificateStoreContainerPermissions.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityIdentities + +> []SecuritySecurityIdentitiesSecurityIdentityResponse NewGetSecurityIdentitiesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).Validate(validate).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all security identities according to the provided filter and output parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + validate := true // bool | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityIdentitiesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).Validate(validate).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityIdentities`: []SecuritySecurityIdentitiesSecurityIdentityResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityIdentities`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityIdentitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **validate** | **bool** | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityIdentitiesSecurityIdentityResponse**](SecuritySecurityIdentitiesSecurityIdentityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityIdentitiesById + +> SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse NewGetSecurityIdentitiesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets an object representing the permissions of the identity associated with the provided identifier. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The identifier of the security identity + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityIdentitiesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityIdentitiesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityIdentitiesById`: SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityIdentitiesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The identifier of the security identity | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityIdentitiesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse**](SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityIdentitiesLookup + +> SecuritySecurityIdentitiesSecurityIdentityLookupResponse NewGetSecurityIdentitiesLookupRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccountName(accountName).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates that the identity with the name given exists. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + accountName := "accountName_example" // string | The name of an identity we wish to check. (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityIdentitiesLookupRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccountName(accountName).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityIdentitiesLookup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityIdentitiesLookup`: SecuritySecurityIdentitiesSecurityIdentityLookupResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityIdentitiesLookup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityIdentitiesLookupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **accountName** | **string** | The name of an identity we wish to check. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecuritySecurityIdentitiesSecurityIdentityLookupResponse**](SecuritySecurityIdentitiesSecurityIdentityLookupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityMy + +> SecurityLegacySecurityRolesSecurityMyResponse NewGetSecurityMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Looks at all the roles and global permissions for the user and returns them. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.NewGetSecurityMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSecurityMy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityMy`: SecurityLegacySecurityRolesSecurityMyResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSecurityMy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityMyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecurityLegacySecurityRolesSecurityMyResponse**](SecurityLegacySecurityRolesSecurityMyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SecurityClaimsApi.md b/v24/api/keyfactor/v1/docs/SecurityClaimsApi.md new file mode 100644 index 0000000..9dd4a41 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityClaimsApi.md @@ -0,0 +1,440 @@ +# \SecurityClaimsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecurityClaims**](SecurityClaimsApi.md#CreateSecurityClaims) | **POST** /Security/Claims | Adds a new claim definition to the system. +[**DeleteSecurityClaimsById**](SecurityClaimsApi.md#DeleteSecurityClaimsById) | **DELETE** /Security/Claims/{id} | Removes a claim definition from the system. +[**GetSecurityClaims**](SecurityClaimsApi.md#GetSecurityClaims) | **GET** /Security/Claims | Returns all claim definitions according to the provided filter and output parameters. +[**GetSecurityClaimsById**](SecurityClaimsApi.md#GetSecurityClaimsById) | **GET** /Security/Claims/{id} | Returns a single claim definition that matches the id. +[**GetSecurityClaimsRoles**](SecurityClaimsApi.md#GetSecurityClaimsRoles) | **GET** /Security/Claims/Roles | Returns a list of roles granted by the claim with the provided id. +[**UpdateSecurityClaims**](SecurityClaimsApi.md#UpdateSecurityClaims) | **PUT** /Security/Claims | Updates an existing claim definition. + + + +## CreateSecurityClaims + +> SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse NewCreateSecurityClaimsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest).Execute() + +Adds a new claim definition to the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest := *openapiclient.NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(openapiclient.CSS.CMS.Core.Enums.ClaimType(0), "ClaimValue_example", "ProviderAuthenticationScheme_example", "Description_example") // SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest | Claim Definition Creation Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewCreateSecurityClaimsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.CreateSecurityClaims``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityClaims`: SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityClaimsApi.CreateSecurityClaims`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityClaimsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest** | [**SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest**](SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest.md) | Claim Definition Creation Request | + +### Return type + +[**SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSecurityClaimsById + +> NewDeleteSecurityClaimsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes a claim definition from the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | the Keyfactor identifier of the claim definition to delete + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewDeleteSecurityClaimsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.DeleteSecurityClaimsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | the Keyfactor identifier of the claim definition to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSecurityClaimsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityClaims + +> []SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse NewGetSecurityClaimsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all claim definitions according to the provided filter and output parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewGetSecurityClaimsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.GetSecurityClaims``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityClaims`: []SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityClaimsApi.GetSecurityClaims`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityClaimsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityClaimsById + +> SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse NewGetSecurityClaimsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single claim definition that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | claim definition identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewGetSecurityClaimsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.GetSecurityClaimsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityClaimsById`: SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityClaimsApi.GetSecurityClaimsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | claim definition identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityClaimsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityClaimsRoles + +> []SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse NewGetSecurityClaimsRolesRequest(ctx).ClaimType(claimType).ClaimValue(claimValue).ProviderAuthenticationScheme(providerAuthenticationScheme).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of roles granted by the claim with the provided id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + claimType := openapiclient.CSS.CMS.Core.Enums.ClaimType(0) // CSSCMSCoreEnumsClaimType | + claimValue := "claimValue_example" // string | + providerAuthenticationScheme := "providerAuthenticationScheme_example" // string | + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewGetSecurityClaimsRolesRequest(context.Background()).ClaimType(claimType).ClaimValue(claimValue).ProviderAuthenticationScheme(providerAuthenticationScheme).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.GetSecurityClaimsRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityClaimsRoles`: []SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityClaimsApi.GetSecurityClaimsRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityClaimsRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **claimType** | [**CSSCMSCoreEnumsClaimType**](CSSCMSCoreEnumsClaimType.md) | | + **claimValue** | **string** | | + **providerAuthenticationScheme** | **string** | | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse**](SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityClaims + +> SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse NewUpdateSecurityClaimsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest).Execute() + +Updates an existing claim definition. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest := *openapiclient.NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(int32(123), "Description_example") // SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest | Claim Definition Update Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityClaimsApi.NewUpdateSecurityClaimsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityClaimsApi.UpdateSecurityClaims``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityClaims`: SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityClaimsApi.UpdateSecurityClaims`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityClaimsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest** | [**SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest**](SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest.md) | Claim Definition Update Request | + +### Return type + +[**SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesRequest.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesRequest.md new file mode 100644 index 0000000..d8a3c9c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesRequest.md @@ -0,0 +1,66 @@ +# SecurityLegacySecurityRolesRoleIdentitiesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesRoleIdentitiesRequest + +`func NewSecurityLegacySecurityRolesRoleIdentitiesRequest() *SecurityLegacySecurityRolesRoleIdentitiesRequest` + +NewSecurityLegacySecurityRolesRoleIdentitiesRequest instantiates a new SecurityLegacySecurityRolesRoleIdentitiesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesRoleIdentitiesRequestWithDefaults + +`func NewSecurityLegacySecurityRolesRoleIdentitiesRequestWithDefaults() *SecurityLegacySecurityRolesRoleIdentitiesRequest` + +NewSecurityLegacySecurityRolesRoleIdentitiesRequestWithDefaults instantiates a new SecurityLegacySecurityRolesRoleIdentitiesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) GetIds() []int32` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) GetIdsOk() (*[]int32, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) SetIds(v []int32)` + +SetIds sets Ids field to given value. + +### HasIds + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) HasIds() bool` + +HasIds returns a boolean if a field has been set. + +### SetIdsNil + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) SetIdsNil(b bool)` + + SetIdsNil sets the value for Ids to be an explicit nil + +### UnsetIds +`func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) UnsetIds()` + +UnsetIds ensures that no value is present for Ids, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesResponse.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesResponse.md new file mode 100644 index 0000000..5c55f7c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesRoleIdentitiesResponse.md @@ -0,0 +1,92 @@ +# SecurityLegacySecurityRolesRoleIdentitiesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesRoleIdentitiesResponse + +`func NewSecurityLegacySecurityRolesRoleIdentitiesResponse() *SecurityLegacySecurityRolesRoleIdentitiesResponse` + +NewSecurityLegacySecurityRolesRoleIdentitiesResponse instantiates a new SecurityLegacySecurityRolesRoleIdentitiesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesRoleIdentitiesResponseWithDefaults + +`func NewSecurityLegacySecurityRolesRoleIdentitiesResponseWithDefaults() *SecurityLegacySecurityRolesRoleIdentitiesResponse` + +NewSecurityLegacySecurityRolesRoleIdentitiesResponseWithDefaults instantiates a new SecurityLegacySecurityRolesRoleIdentitiesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityIdentityResponse.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityIdentityResponse.md new file mode 100644 index 0000000..9b1e292 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityIdentityResponse.md @@ -0,0 +1,236 @@ +# SecurityLegacySecurityRolesSecurityIdentityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | The ID of the security identity. | [optional] +**AccountName** | Pointer to **NullableString** | The username associated with the account. | [optional] +**IdentityType** | Pointer to **NullableString** | The type of the identity. | [optional] +**Roles** | Pointer to [**[]SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) | The roles this identity belongs to. | [optional] +**Valid** | Pointer to **NullableBool** | Whether or not the identity's role XML is valid. | [optional] +**SID** | Pointer to **NullableString** | The security identifier for the identity. | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityIdentityResponse + +`func NewSecurityLegacySecurityRolesSecurityIdentityResponse() *SecurityLegacySecurityRolesSecurityIdentityResponse` + +NewSecurityLegacySecurityRolesSecurityIdentityResponse instantiates a new SecurityLegacySecurityRolesSecurityIdentityResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityIdentityResponseWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityIdentityResponseWithDefaults() *SecurityLegacySecurityRolesSecurityIdentityResponse` + +NewSecurityLegacySecurityRolesSecurityIdentityResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityIdentityResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAccountName + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### SetAccountNameNil + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetAccountNameNil(b bool)` + + SetAccountNameNil sets the value for AccountName to be an explicit nil + +### UnsetAccountName +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetAccountName()` + +UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +### GetIdentityType + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdentityType() string` + +GetIdentityType returns the IdentityType field if non-nil, zero value otherwise. + +### GetIdentityTypeOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdentityTypeOk() (*string, bool)` + +GetIdentityTypeOk returns a tuple with the IdentityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityType + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetIdentityType(v string)` + +SetIdentityType sets IdentityType field to given value. + +### HasIdentityType + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasIdentityType() bool` + +HasIdentityType returns a boolean if a field has been set. + +### SetIdentityTypeNil + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetIdentityTypeNil(b bool)` + + SetIdentityTypeNil sets the value for IdentityType to be an explicit nil + +### UnsetIdentityType +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetIdentityType()` + +UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +### GetRoles + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetRoles() []SecurityLegacySecurityRolesSecurityRoleResponse` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetRolesOk() (*[]SecurityLegacySecurityRolesSecurityRoleResponse, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetRoles(v []SecurityLegacySecurityRolesSecurityRoleResponse)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### SetRolesNil + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetRolesNil(b bool)` + + SetRolesNil sets the value for Roles to be an explicit nil + +### UnsetRoles +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetRoles()` + +UnsetRoles ensures that no value is present for Roles, not even an explicit nil +### GetValid + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + +### SetValidNil + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetValidNil(b bool)` + + SetValidNil sets the value for Valid to be an explicit nil + +### UnsetValid +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetValid()` + +UnsetValid ensures that no value is present for Valid, not even an explicit nil +### GetSID + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasSID() bool` + +HasSID returns a boolean if a field has been set. + +### SetSIDNil + +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetSIDNil(b bool)` + + SetSIDNil sets the value for SID to be an explicit nil + +### UnsetSID +`func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetSID()` + +UnsetSID ensures that no value is present for SID, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityMyResponse.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityMyResponse.md new file mode 100644 index 0000000..ee58486 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityMyResponse.md @@ -0,0 +1,102 @@ +# SecurityLegacySecurityRolesSecurityMyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | Pointer to **[]string** | | [optional] +**GlobalPermissions** | Pointer to [**[]GlobalPermissionsGlobalPermissionResponse**](GlobalPermissionsGlobalPermissionResponse.md) | | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityMyResponse + +`func NewSecurityLegacySecurityRolesSecurityMyResponse() *SecurityLegacySecurityRolesSecurityMyResponse` + +NewSecurityLegacySecurityRolesSecurityMyResponse instantiates a new SecurityLegacySecurityRolesSecurityMyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityMyResponseWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityMyResponseWithDefaults() *SecurityLegacySecurityRolesSecurityMyResponse` + +NewSecurityLegacySecurityRolesSecurityMyResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityMyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoles + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetRoles() []string` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetRolesOk() (*[]string, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetRoles(v []string)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### SetRolesNil + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetRolesNil(b bool)` + + SetRolesNil sets the value for Roles to be an explicit nil + +### UnsetRoles +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) UnsetRoles()` + +UnsetRoles ensures that no value is present for Roles, not even an explicit nil +### GetGlobalPermissions + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetGlobalPermissions() []GlobalPermissionsGlobalPermissionResponse` + +GetGlobalPermissions returns the GlobalPermissions field if non-nil, zero value otherwise. + +### GetGlobalPermissionsOk + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetGlobalPermissionsOk() (*[]GlobalPermissionsGlobalPermissionResponse, bool)` + +GetGlobalPermissionsOk returns a tuple with the GlobalPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalPermissions + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetGlobalPermissions(v []GlobalPermissionsGlobalPermissionResponse)` + +SetGlobalPermissions sets GlobalPermissions field to given value. + +### HasGlobalPermissions + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) HasGlobalPermissions() bool` + +HasGlobalPermissions returns a boolean if a field has been set. + +### SetGlobalPermissionsNil + +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetGlobalPermissionsNil(b bool)` + + SetGlobalPermissionsNil sets the value for GlobalPermissions to be an explicit nil + +### UnsetGlobalPermissions +`func (o *SecurityLegacySecurityRolesSecurityMyResponse) UnsetGlobalPermissions()` + +UnsetGlobalPermissions ensures that no value is present for GlobalPermissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCopyRequest.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCopyRequest.md new file mode 100644 index 0000000..5038c34 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCopyRequest.md @@ -0,0 +1,138 @@ +# SecurityLegacySecurityRolesSecurityRoleCopyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**EmailAddress** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityRoleCopyRequest + +`func NewSecurityLegacySecurityRolesSecurityRoleCopyRequest() *SecurityLegacySecurityRolesSecurityRoleCopyRequest` + +NewSecurityLegacySecurityRolesSecurityRoleCopyRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleCopyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityRoleCopyRequestWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityRoleCopyRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleCopyRequest` + +NewSecurityLegacySecurityRolesSecurityRoleCopyRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleCopyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCreationRequest.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCreationRequest.md new file mode 100644 index 0000000..552cda6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleCreationRequest.md @@ -0,0 +1,258 @@ +# SecurityLegacySecurityRolesSecurityRoleCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the security role to create | +**Description** | **string** | The description to be used on the created security role | +**EmailAddress** | Pointer to **NullableString** | The email address to be used on the created security role | [optional] +**Enabled** | Pointer to **bool** | Whether or not the security role should be enabled | [optional] +**Private** | Pointer to **bool** | Whether or not the security role should be private | [optional] +**Permissions** | Pointer to **[]string** | The permissions to include in the role. These must be supplied in the format \"Area:Permission\" | [optional] +**PermissionSetId** | Pointer to **string** | The Id of the permission set the role belongs to. | [optional] +**Identities** | Pointer to [**[]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier**](CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md) | The Keyfactor identities to assign to the created role | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityRoleCreationRequest + +`func NewSecurityLegacySecurityRolesSecurityRoleCreationRequest(name string, description string, ) *SecurityLegacySecurityRolesSecurityRoleCreationRequest` + +NewSecurityLegacySecurityRolesSecurityRoleCreationRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityRoleCreationRequestWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityRoleCreationRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleCreationRequest` + +NewSecurityLegacySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil +### GetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetIdentities() []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetIdentitiesOk() (*[]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetIdentities(v []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + +### SetIdentitiesNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetIdentitiesNil(b bool)` + + SetIdentitiesNil sets the value for Identities to be an explicit nil + +### UnsetIdentities +`func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) UnsetIdentities()` + +UnsetIdentities ensures that no value is present for Identities, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleResponse.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleResponse.md new file mode 100644 index 0000000..db199fa --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleResponse.md @@ -0,0 +1,416 @@ +# SecurityLegacySecurityRolesSecurityRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableInt32** | The Id of the created role | [optional] +**Description** | Pointer to **NullableString** | The description of the created role | [optional] +**EmailAddress** | Pointer to **NullableString** | The email address to be used on the created security role | [optional] +**Enabled** | Pointer to **NullableBool** | A boolean indicating whether or not the created role is enabled | [optional] +**Immutable** | Pointer to **NullableBool** | A boolean indicating whther or not the security role will be read-only | [optional] +**Valid** | Pointer to **NullableBool** | A boolean that indicates whether or not the Audit XML was able to be verified | [optional] +**Private** | Pointer to **NullableBool** | A boolean that indicates whether or not the created security role is private | [optional] +**PermissionSetId** | Pointer to **string** | The Id of the permission set the role belongs to. | [optional] +**Identities** | Pointer to [**[]SecurityLegacySecurityRolesSecurityIdentityResponse**](SecurityLegacySecurityRolesSecurityIdentityResponse.md) | The identities assigned to the created security role | [optional] +**Name** | Pointer to **NullableString** | The name of the created role | [optional] +**Permissions** | Pointer to **[]string** | The permissions included in the created security role | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityRoleResponse + +`func NewSecurityLegacySecurityRolesSecurityRoleResponse() *SecurityLegacySecurityRolesSecurityRoleResponse` + +NewSecurityLegacySecurityRolesSecurityRoleResponse instantiates a new SecurityLegacySecurityRolesSecurityRoleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityRoleResponseWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityRoleResponseWithDefaults() *SecurityLegacySecurityRolesSecurityRoleResponse` + +NewSecurityLegacySecurityRolesSecurityRoleResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### SetEnabledNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEnabledNil(b bool)` + + SetEnabledNil sets the value for Enabled to be an explicit nil + +### UnsetEnabled +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetEnabled()` + +UnsetEnabled ensures that no value is present for Enabled, not even an explicit nil +### GetImmutable + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetImmutable() bool` + +GetImmutable returns the Immutable field if non-nil, zero value otherwise. + +### GetImmutableOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetImmutableOk() (*bool, bool)` + +GetImmutableOk returns a tuple with the Immutable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmutable + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetImmutable(v bool)` + +SetImmutable sets Immutable field to given value. + +### HasImmutable + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasImmutable() bool` + +HasImmutable returns a boolean if a field has been set. + +### SetImmutableNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetImmutableNil(b bool)` + + SetImmutableNil sets the value for Immutable to be an explicit nil + +### UnsetImmutable +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetImmutable()` + +UnsetImmutable ensures that no value is present for Immutable, not even an explicit nil +### GetValid + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + +### SetValidNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetValidNil(b bool)` + + SetValidNil sets the value for Valid to be an explicit nil + +### UnsetValid +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetValid()` + +UnsetValid ensures that no value is present for Valid, not even an explicit nil +### GetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### SetPrivateNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPrivateNil(b bool)` + + SetPrivateNil sets the value for Private to be an explicit nil + +### UnsetPrivate +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetPrivate()` + +UnsetPrivate ensures that no value is present for Private, not even an explicit nil +### GetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdentities() []SecurityLegacySecurityRolesSecurityIdentityResponse` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdentitiesOk() (*[]SecurityLegacySecurityRolesSecurityIdentityResponse, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetIdentities(v []SecurityLegacySecurityRolesSecurityIdentityResponse)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + +### SetIdentitiesNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetIdentitiesNil(b bool)` + + SetIdentitiesNil sets the value for Identities to be an explicit nil + +### UnsetIdentities +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetIdentities()` + +UnsetIdentities ensures that no value is present for Identities, not even an explicit nil +### GetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleUpdateRequest.md b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleUpdateRequest.md new file mode 100644 index 0000000..8c62d10 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityLegacySecurityRolesSecurityRoleUpdateRequest.md @@ -0,0 +1,279 @@ +# SecurityLegacySecurityRolesSecurityRoleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | The Id of the security role to update | +**Name** | **string** | The name of the security role to update | +**Description** | **string** | The description to be used on the updated security role | +**EmailAddress** | Pointer to **NullableString** | The email address to be used on the updated security role | [optional] +**Enabled** | Pointer to **bool** | Whether or not the security role should be enabled | [optional] +**Private** | Pointer to **bool** | Whether or not the security role should be private | [optional] +**Permissions** | Pointer to **[]string** | The permissions to include in the role. These must be supplied in the format \"Area:Permission\" | [optional] +**PermissionSetId** | Pointer to **string** | The Id of the permission set the role belongs to. | [optional] +**Identities** | Pointer to [**[]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier**](CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier.md) | The Keyfactor identities to assign to the updated role | [optional] + +## Methods + +### NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest + +`func NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string, ) *SecurityLegacySecurityRolesSecurityRoleUpdateRequest` + +NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityLegacySecurityRolesSecurityRoleUpdateRequestWithDefaults + +`func NewSecurityLegacySecurityRolesSecurityRoleUpdateRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleUpdateRequest` + +NewSecurityLegacySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil +### GetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdentities() []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdentitiesOk() (*[]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetIdentities(v []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + +### SetIdentitiesNil + +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetIdentitiesNil(b bool)` + + SetIdentitiesNil sets the value for Identities to be an explicit nil + +### UnsetIdentities +`func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) UnsetIdentities()` + +UnsetIdentities ensures that no value is present for Identities, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest.md new file mode 100644 index 0000000..f0d1ff1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest.md @@ -0,0 +1,114 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClaimType** | [**CSSCMSCoreEnumsClaimType**](CSSCMSCoreEnumsClaimType.md) | | +**ClaimValue** | **string** | | +**ProviderAuthenticationScheme** | **string** | | +**Description** | **string** | | + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(claimType CSSCMSCoreEnumsClaimType, claimValue string, providerAuthenticationScheme string, description string, ) *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequestWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimType() CSSCMSCoreEnumsClaimType` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetClaimType(v CSSCMSCoreEnumsClaimType)` + +SetClaimType sets ClaimType field to given value. + + +### GetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + + +### GetProviderAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetProviderAuthenticationScheme() string` + +GetProviderAuthenticationScheme returns the ProviderAuthenticationScheme field if non-nil, zero value otherwise. + +### GetProviderAuthenticationSchemeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetProviderAuthenticationSchemeOk() (*string, bool)` + +GetProviderAuthenticationSchemeOk returns a tuple with the ProviderAuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetProviderAuthenticationScheme(v string)` + +SetProviderAuthenticationScheme sets ProviderAuthenticationScheme field to given value. + + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md new file mode 100644 index 0000000..9934363 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md @@ -0,0 +1,128 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**AuthenticationScheme** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + +### HasAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasAuthenticationScheme() bool` + +HasAuthenticationScheme returns a boolean if a field has been set. + +### SetAuthenticationSchemeNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationSchemeNil(b bool)` + + SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil + +### UnsetAuthenticationScheme +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetAuthenticationScheme()` + +UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +### GetDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse.md new file mode 100644 index 0000000..f777ea2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse.md @@ -0,0 +1,190 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**ClaimType** | Pointer to **NullableString** | | [optional] +**ClaimValue** | Pointer to **NullableString** | | [optional] +**Provider** | Pointer to [**SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md) | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimType() string` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimTypeOk() (*string, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimType(v string)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### SetClaimTypeNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimTypeNil(b bool)` + + SetClaimTypeNil sets the value for ClaimType to be an explicit nil + +### UnsetClaimType +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetClaimType()` + +UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +### GetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md new file mode 100644 index 0000000..11f1068 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md @@ -0,0 +1,190 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**ClaimType** | Pointer to **NullableString** | | [optional] +**ClaimValue** | Pointer to **NullableString** | | [optional] +**Provider** | Pointer to [**SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md) | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimType() string` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimTypeOk() (*string, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimType(v string)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### SetClaimTypeNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimTypeNil(b bool)` + + SetClaimTypeNil sets the value for ClaimType to be an explicit nil + +### UnsetClaimType +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimType()` + +UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +### GetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest.md new file mode 100644 index 0000000..06bbc12 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest.md @@ -0,0 +1,72 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Description** | **string** | | + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(id int32, description string, ) *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequestWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse.md b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse.md new file mode 100644 index 0000000..5e32a3e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse.md @@ -0,0 +1,154 @@ +# SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse + +`func NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse() *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse` + +NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse instantiates a new SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponseWithDefaults() *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse` + +NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetPermissionSetId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecurityRolePermissionsApi.md b/v24/api/keyfactor/v1/docs/SecurityRolePermissionsApi.md new file mode 100644 index 0000000..05abd83 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRolePermissionsApi.md @@ -0,0 +1,912 @@ +# \SecurityRolePermissionsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecurityRolesByIdPermissionsCollections**](SecurityRolePermissionsApi.md#CreateSecurityRolesByIdPermissionsCollections) | **POST** /Security/Roles/{id}/Permissions/Collections | Adds collection permissions to the security role that matches the id. +[**CreateSecurityRolesByIdPermissionsContainers**](SecurityRolePermissionsApi.md#CreateSecurityRolesByIdPermissionsContainers) | **POST** /Security/Roles/{id}/Permissions/Containers | Adds container permissions to the security role that matches the id. +[**CreateSecurityRolesByIdPermissionsGlobal**](SecurityRolePermissionsApi.md#CreateSecurityRolesByIdPermissionsGlobal) | **POST** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +[**GetSecurityRolesByIdPermissions**](SecurityRolePermissionsApi.md#GetSecurityRolesByIdPermissions) | **GET** /Security/Roles/{id}/Permissions | Returns all permissions associated with the security role that matches the id. +[**GetSecurityRolesByIdPermissionsCollections**](SecurityRolePermissionsApi.md#GetSecurityRolesByIdPermissionsCollections) | **GET** /Security/Roles/{id}/Permissions/Collections | Returns all collection permissions associated with the security role that matches the id. +[**GetSecurityRolesByIdPermissionsContainers**](SecurityRolePermissionsApi.md#GetSecurityRolesByIdPermissionsContainers) | **GET** /Security/Roles/{id}/Permissions/Containers | Returns all container permissions associated with the security role that matches the id. +[**GetSecurityRolesByIdPermissionsGlobal**](SecurityRolePermissionsApi.md#GetSecurityRolesByIdPermissionsGlobal) | **GET** /Security/Roles/{id}/Permissions/Global | Returns all global permissions associated with the security role that matches the id. +[**GetSecurityRolesByIdPermissionsPamProviders**](SecurityRolePermissionsApi.md#GetSecurityRolesByIdPermissionsPamProviders) | **GET** /Security/Roles/{id}/Permissions/PamProviders | Returns all PAM provider permissions associated with the security role that matches the id. +[**UpdateSecurityRolesByIdPermissionsCollections**](SecurityRolePermissionsApi.md#UpdateSecurityRolesByIdPermissionsCollections) | **PUT** /Security/Roles/{id}/Permissions/Collections | Sets collection permissions to the security role that matches the id. +[**UpdateSecurityRolesByIdPermissionsContainers**](SecurityRolePermissionsApi.md#UpdateSecurityRolesByIdPermissionsContainers) | **PUT** /Security/Roles/{id}/Permissions/Containers | Sets container permissions to the security role that matches the id. +[**UpdateSecurityRolesByIdPermissionsGlobal**](SecurityRolePermissionsApi.md#UpdateSecurityRolesByIdPermissionsGlobal) | **PUT** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +[**UpdateSecurityRolesByIdPermissionsPamProviders**](SecurityRolePermissionsApi.md#UpdateSecurityRolesByIdPermissionsPamProviders) | **PUT** /Security/Roles/{id}/Permissions/PamProviders | Sets PAM provider permissions to the security role that matches the id. + + + +## CreateSecurityRolesByIdPermissionsCollections + +> []SecuritySecurityRolePermissionsCollectionPermissionResponse NewCreateSecurityRolesByIdPermissionsCollectionsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest).Execute() + +Adds collection permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsCollectionPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsCollectionPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsCollectionPermissionRequest()} // []SecuritySecurityRolePermissionsCollectionPermissionRequest | Collections permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewCreateSecurityRolesByIdPermissionsCollectionsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRolesByIdPermissionsCollections`: []SecuritySecurityRolePermissionsCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsCollections`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesByIdPermissionsCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsCollectionPermissionRequest** | [**[]SecuritySecurityRolePermissionsCollectionPermissionRequest**](SecuritySecurityRolePermissionsCollectionPermissionRequest.md) | Collections permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsCollectionPermissionResponse**](SecuritySecurityRolePermissionsCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSecurityRolesByIdPermissionsContainers + +> []SecuritySecurityRolePermissionsContainerPermissionResponse NewCreateSecurityRolesByIdPermissionsContainersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest).Execute() + +Adds container permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsContainerPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsContainerPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsContainerPermissionRequest()} // []SecuritySecurityRolePermissionsContainerPermissionRequest | Container permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewCreateSecurityRolesByIdPermissionsContainersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRolesByIdPermissionsContainers`: []SecuritySecurityRolePermissionsContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsContainers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesByIdPermissionsContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsContainerPermissionRequest** | [**[]SecuritySecurityRolePermissionsContainerPermissionRequest**](SecuritySecurityRolePermissionsContainerPermissionRequest.md) | Container permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsContainerPermissionResponse**](SecuritySecurityRolePermissionsContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSecurityRolesByIdPermissionsGlobal + +> []SecuritySecurityRolePermissionsGlobalPermissionResponse NewCreateSecurityRolesByIdPermissionsGlobalRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest).Execute() + +Adds global permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsGlobalPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsGlobalPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsGlobalPermissionRequest()} // []SecuritySecurityRolePermissionsGlobalPermissionRequest | Global permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewCreateSecurityRolesByIdPermissionsGlobalRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsGlobal``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRolesByIdPermissionsGlobal`: []SecuritySecurityRolePermissionsGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.CreateSecurityRolesByIdPermissionsGlobal`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesByIdPermissionsGlobalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsGlobalPermissionRequest** | [**[]SecuritySecurityRolePermissionsGlobalPermissionRequest**](SecuritySecurityRolePermissionsGlobalPermissionRequest.md) | Global permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsGlobalPermissionResponse**](SecuritySecurityRolePermissionsGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdPermissions + +> []SecuritySecurityRolePermissionsAreaPermissionResponse NewGetSecurityRolesByIdPermissionsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewGetSecurityRolesByIdPermissionsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdPermissions`: []SecuritySecurityRolePermissionsAreaPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolePermissionsAreaPermissionResponse**](SecuritySecurityRolePermissionsAreaPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdPermissionsCollections + +> []SecuritySecurityRolePermissionsCollectionPermissionResponse NewGetSecurityRolesByIdPermissionsCollectionsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all collection permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewGetSecurityRolesByIdPermissionsCollectionsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdPermissionsCollections`: []SecuritySecurityRolePermissionsCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsCollections`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdPermissionsCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolePermissionsCollectionPermissionResponse**](SecuritySecurityRolePermissionsCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdPermissionsContainers + +> []SecuritySecurityRolePermissionsContainerPermissionResponse NewGetSecurityRolesByIdPermissionsContainersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all container permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewGetSecurityRolesByIdPermissionsContainersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdPermissionsContainers`: []SecuritySecurityRolePermissionsContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsContainers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdPermissionsContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolePermissionsContainerPermissionResponse**](SecuritySecurityRolePermissionsContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdPermissionsGlobal + +> []SecuritySecurityRolePermissionsGlobalPermissionResponse NewGetSecurityRolesByIdPermissionsGlobalRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all global permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewGetSecurityRolesByIdPermissionsGlobalRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsGlobal``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdPermissionsGlobal`: []SecuritySecurityRolePermissionsGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsGlobal`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdPermissionsGlobalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolePermissionsGlobalPermissionResponse**](SecuritySecurityRolePermissionsGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdPermissionsPamProviders + +> []SecuritySecurityRolePermissionsPamProviderPermissionResponse NewGetSecurityRolesByIdPermissionsPamProvidersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM provider permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewGetSecurityRolesByIdPermissionsPamProvidersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsPamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdPermissionsPamProviders`: []SecuritySecurityRolePermissionsPamProviderPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.GetSecurityRolesByIdPermissionsPamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdPermissionsPamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolePermissionsPamProviderPermissionResponse**](SecuritySecurityRolePermissionsPamProviderPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRolesByIdPermissionsCollections + +> []SecuritySecurityRolePermissionsCollectionPermissionResponse NewUpdateSecurityRolesByIdPermissionsCollectionsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest).Execute() + +Sets collection permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsCollectionPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsCollectionPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsCollectionPermissionRequest()} // []SecuritySecurityRolePermissionsCollectionPermissionRequest | Collections permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewUpdateSecurityRolesByIdPermissionsCollectionsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsCollectionPermissionRequest(securitySecurityRolePermissionsCollectionPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRolesByIdPermissionsCollections`: []SecuritySecurityRolePermissionsCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsCollections`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesByIdPermissionsCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsCollectionPermissionRequest** | [**[]SecuritySecurityRolePermissionsCollectionPermissionRequest**](SecuritySecurityRolePermissionsCollectionPermissionRequest.md) | Collections permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsCollectionPermissionResponse**](SecuritySecurityRolePermissionsCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRolesByIdPermissionsContainers + +> []SecuritySecurityRolePermissionsContainerPermissionResponse NewUpdateSecurityRolesByIdPermissionsContainersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest).Execute() + +Sets container permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsContainerPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsContainerPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsContainerPermissionRequest()} // []SecuritySecurityRolePermissionsContainerPermissionRequest | Container permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewUpdateSecurityRolesByIdPermissionsContainersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsContainerPermissionRequest(securitySecurityRolePermissionsContainerPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRolesByIdPermissionsContainers`: []SecuritySecurityRolePermissionsContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsContainers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesByIdPermissionsContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsContainerPermissionRequest** | [**[]SecuritySecurityRolePermissionsContainerPermissionRequest**](SecuritySecurityRolePermissionsContainerPermissionRequest.md) | Container permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsContainerPermissionResponse**](SecuritySecurityRolePermissionsContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRolesByIdPermissionsGlobal + +> []SecuritySecurityRolePermissionsGlobalPermissionResponse NewUpdateSecurityRolesByIdPermissionsGlobalRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest).Execute() + +Adds global permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsGlobalPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsGlobalPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsGlobalPermissionRequest()} // []SecuritySecurityRolePermissionsGlobalPermissionRequest | Global permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewUpdateSecurityRolesByIdPermissionsGlobalRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsGlobalPermissionRequest(securitySecurityRolePermissionsGlobalPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsGlobal``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRolesByIdPermissionsGlobal`: []SecuritySecurityRolePermissionsGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsGlobal`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesByIdPermissionsGlobalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsGlobalPermissionRequest** | [**[]SecuritySecurityRolePermissionsGlobalPermissionRequest**](SecuritySecurityRolePermissionsGlobalPermissionRequest.md) | Global permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsGlobalPermissionResponse**](SecuritySecurityRolePermissionsGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRolesByIdPermissionsPamProviders + +> []SecuritySecurityRolePermissionsPamProviderPermissionResponse NewUpdateSecurityRolesByIdPermissionsPamProvidersRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsPamProviderPermissionRequest(securitySecurityRolePermissionsPamProviderPermissionRequest).Execute() + +Sets PAM provider permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolePermissionsPamProviderPermissionRequest := []openapiclient.SecuritySecurityRolePermissionsPamProviderPermissionRequest{*openapiclient.NewSecuritySecurityRolePermissionsPamProviderPermissionRequest()} // []SecuritySecurityRolePermissionsPamProviderPermissionRequest | PAM Provider permissions (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.NewUpdateSecurityRolesByIdPermissionsPamProvidersRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolePermissionsPamProviderPermissionRequest(securitySecurityRolePermissionsPamProviderPermissionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsPamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRolesByIdPermissionsPamProviders`: []SecuritySecurityRolePermissionsPamProviderPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.UpdateSecurityRolesByIdPermissionsPamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesByIdPermissionsPamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolePermissionsPamProviderPermissionRequest** | [**[]SecuritySecurityRolePermissionsPamProviderPermissionRequest**](SecuritySecurityRolePermissionsPamProviderPermissionRequest.md) | PAM Provider permissions | + +### Return type + +[**[]SecuritySecurityRolePermissionsPamProviderPermissionResponse**](SecuritySecurityRolePermissionsPamProviderPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SecurityRolesApi.md b/v24/api/keyfactor/v1/docs/SecurityRolesApi.md new file mode 100644 index 0000000..d290e1c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecurityRolesApi.md @@ -0,0 +1,592 @@ +# \SecurityRolesApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecurityRoles**](SecurityRolesApi.md#CreateSecurityRoles) | **POST** /Security/Roles | Adds a new security role to the system. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**CreateSecurityRolesByIdCopy**](SecurityRolesApi.md#CreateSecurityRolesByIdCopy) | **POST** /Security/Roles/{id}/Copy | Makes a copy of an existing security role. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**DeleteSecurityRolesById**](SecurityRolesApi.md#DeleteSecurityRolesById) | **DELETE** /Security/Roles/{id} | Deletes the security role whose ID is provided. +[**GetSecurityRoles**](SecurityRolesApi.md#GetSecurityRoles) | **GET** /Security/Roles | Returns all security roles according to the provided filter and output parameters. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**GetSecurityRolesById**](SecurityRolesApi.md#GetSecurityRolesById) | **GET** /Security/Roles/{id} | Returns a single security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**GetSecurityRolesByIdIdentities**](SecurityRolesApi.md#GetSecurityRolesByIdIdentities) | **GET** /Security/Roles/{id}/Identities | Returns all identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**UpdateSecurityRoles**](SecurityRolesApi.md#UpdateSecurityRoles) | **PUT** /Security/Roles | Updates a security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. +[**UpdateSecurityRolesByIdIdentities**](SecurityRolesApi.md#UpdateSecurityRolesByIdIdentities) | **PUT** /Security/Roles/{id}/Identities | Updates the identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + + + +## CreateSecurityRoles + +> SecurityLegacySecurityRolesSecurityRoleResponse NewCreateSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleCreationRequest(securityLegacySecurityRolesSecurityRoleCreationRequest).Execute() + +Adds a new security role to the system. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityLegacySecurityRolesSecurityRoleCreationRequest := *openapiclient.NewSecurityLegacySecurityRolesSecurityRoleCreationRequest("Name_example", "Description_example") // SecurityLegacySecurityRolesSecurityRoleCreationRequest | Security Role Creation Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewCreateSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleCreationRequest(securityLegacySecurityRolesSecurityRoleCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.CreateSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRoles`: SecurityLegacySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.CreateSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityLegacySecurityRolesSecurityRoleCreationRequest** | [**SecurityLegacySecurityRolesSecurityRoleCreationRequest**](SecurityLegacySecurityRolesSecurityRoleCreationRequest.md) | Security Role Creation Request | + +### Return type + +[**SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSecurityRolesByIdCopy + +> SecurityLegacySecurityRolesSecurityRoleResponse NewCreateSecurityRolesByIdCopyRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleCopyRequest(securityLegacySecurityRolesSecurityRoleCopyRequest).Execute() + +Makes a copy of an existing security role. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier for target role to copy + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityLegacySecurityRolesSecurityRoleCopyRequest := *openapiclient.NewSecurityLegacySecurityRolesSecurityRoleCopyRequest() // SecurityLegacySecurityRolesSecurityRoleCopyRequest | New security role's name and description (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewCreateSecurityRolesByIdCopyRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleCopyRequest(securityLegacySecurityRolesSecurityRoleCopyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.CreateSecurityRolesByIdCopy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRolesByIdCopy`: SecurityLegacySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.CreateSecurityRolesByIdCopy`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier for target role to copy | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesByIdCopyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityLegacySecurityRolesSecurityRoleCopyRequest** | [**SecurityLegacySecurityRolesSecurityRoleCopyRequest**](SecurityLegacySecurityRolesSecurityRoleCopyRequest.md) | New security role's name and description | + +### Return type + +[**SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSecurityRolesById + +> NewDeleteSecurityRolesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the security role whose ID is provided. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewDeleteSecurityRolesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.DeleteSecurityRolesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSecurityRolesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRoles + +> []SecurityLegacySecurityRolesSecurityRoleResponse NewGetSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Validate(validate).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all security roles according to the provided filter and output parameters. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + validate := true // bool | (optional) + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewGetSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Validate(validate).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.GetSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRoles`: []SecurityLegacySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.GetSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **validate** | **bool** | | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesById + +> SecurityLegacySecurityRolesSecurityRoleResponse NewGetSecurityRolesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewGetSecurityRolesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.GetSecurityRolesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesById`: SecurityLegacySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.GetSecurityRolesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesByIdIdentities + +> []SecurityLegacySecurityRolesRoleIdentitiesResponse NewGetSecurityRolesByIdIdentitiesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewGetSecurityRolesByIdIdentitiesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.GetSecurityRolesByIdIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesByIdIdentities`: []SecurityLegacySecurityRolesRoleIdentitiesResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.GetSecurityRolesByIdIdentities`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdIdentitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecurityLegacySecurityRolesRoleIdentitiesResponse**](SecurityLegacySecurityRolesRoleIdentitiesResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRoles + +> SecurityLegacySecurityRolesSecurityRoleResponse NewUpdateSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleUpdateRequest(securityLegacySecurityRolesSecurityRoleUpdateRequest).Execute() + +Updates a security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityLegacySecurityRolesSecurityRoleUpdateRequest := *openapiclient.NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest(int32(123), "Name_example", "Description_example") // SecurityLegacySecurityRolesSecurityRoleUpdateRequest | Security Update Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewUpdateSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesSecurityRoleUpdateRequest(securityLegacySecurityRolesSecurityRoleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.UpdateSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRoles`: SecurityLegacySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.UpdateSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityLegacySecurityRolesSecurityRoleUpdateRequest** | [**SecurityLegacySecurityRolesSecurityRoleUpdateRequest**](SecurityLegacySecurityRolesSecurityRoleUpdateRequest.md) | Security Update Request | + +### Return type + +[**SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRolesByIdIdentities + +> []SecurityLegacySecurityRolesRoleIdentitiesResponse NewUpdateSecurityRolesByIdIdentitiesRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesRoleIdentitiesRequest(securityLegacySecurityRolesRoleIdentitiesRequest).Execute() + +Updates the identities which have the security role that matches the id. The v1 endpoints for Security Roles will only work against AD Identities. Please use the v2 endpoints instead. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + securityLegacySecurityRolesRoleIdentitiesRequest := *openapiclient.NewSecurityLegacySecurityRolesRoleIdentitiesRequest() // SecurityLegacySecurityRolesRoleIdentitiesRequest | Role identities request object which contains a list of Identity IDs to remove or add to the role (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewUpdateSecurityRolesByIdIdentitiesRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecurityLegacySecurityRolesRoleIdentitiesRequest(securityLegacySecurityRolesRoleIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.UpdateSecurityRolesByIdIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRolesByIdIdentities`: []SecurityLegacySecurityRolesRoleIdentitiesResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.UpdateSecurityRolesByIdIdentities`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesByIdIdentitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securityLegacySecurityRolesRoleIdentitiesRequest** | [**SecurityLegacySecurityRolesRoleIdentitiesRequest**](SecurityLegacySecurityRolesRoleIdentitiesRequest.md) | Role identities request object which contains a list of Identity IDs to remove or add to the role | + +### Return type + +[**[]SecurityLegacySecurityRolesRoleIdentitiesResponse**](SecurityLegacySecurityRolesRoleIdentitiesResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityLookupResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityLookupResponse.md new file mode 100644 index 0000000..da59bb0 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityLookupResponse.md @@ -0,0 +1,56 @@ +# SecuritySecurityIdentitiesSecurityIdentityLookupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | Pointer to **bool** | Whether or not the identity is valid. | [optional] + +## Methods + +### NewSecuritySecurityIdentitiesSecurityIdentityLookupResponse + +`func NewSecuritySecurityIdentitiesSecurityIdentityLookupResponse() *SecuritySecurityIdentitiesSecurityIdentityLookupResponse` + +NewSecuritySecurityIdentitiesSecurityIdentityLookupResponse instantiates a new SecuritySecurityIdentitiesSecurityIdentityLookupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityIdentitiesSecurityIdentityLookupResponseWithDefaults + +`func NewSecuritySecurityIdentitiesSecurityIdentityLookupResponseWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityLookupResponse` + +NewSecuritySecurityIdentitiesSecurityIdentityLookupResponseWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityLookupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityRequest.md b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityRequest.md new file mode 100644 index 0000000..81d7433 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityRequest.md @@ -0,0 +1,51 @@ +# SecuritySecurityIdentitiesSecurityIdentityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | **string** | The username of the security identity. | + +## Methods + +### NewSecuritySecurityIdentitiesSecurityIdentityRequest + +`func NewSecuritySecurityIdentitiesSecurityIdentityRequest(accountName string, ) *SecuritySecurityIdentitiesSecurityIdentityRequest` + +NewSecuritySecurityIdentitiesSecurityIdentityRequest instantiates a new SecuritySecurityIdentitiesSecurityIdentityRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityIdentitiesSecurityIdentityRequestWithDefaults + +`func NewSecuritySecurityIdentitiesSecurityIdentityRequestWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityRequest` + +NewSecuritySecurityIdentitiesSecurityIdentityRequestWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityResponse.md new file mode 100644 index 0000000..68bf830 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentitiesSecurityIdentityResponse.md @@ -0,0 +1,236 @@ +# SecuritySecurityIdentitiesSecurityIdentityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | The ID of the security identity. | [optional] +**AccountName** | Pointer to **NullableString** | The username associated with the account. | [optional] +**IdentityType** | Pointer to **NullableString** | The type of the identity. | [optional] +**Roles** | Pointer to [**[]SecurityLegacySecurityRolesSecurityRoleResponse**](SecurityLegacySecurityRolesSecurityRoleResponse.md) | The roles this identity belongs to. | [optional] +**Valid** | Pointer to **NullableBool** | Whether or not the identity's role XML is valid. | [optional] +**SID** | Pointer to **NullableString** | The security identifier for the identity. | [optional] + +## Methods + +### NewSecuritySecurityIdentitiesSecurityIdentityResponse + +`func NewSecuritySecurityIdentitiesSecurityIdentityResponse() *SecuritySecurityIdentitiesSecurityIdentityResponse` + +NewSecuritySecurityIdentitiesSecurityIdentityResponse instantiates a new SecuritySecurityIdentitiesSecurityIdentityResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityIdentitiesSecurityIdentityResponseWithDefaults + +`func NewSecuritySecurityIdentitiesSecurityIdentityResponseWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityResponse` + +NewSecuritySecurityIdentitiesSecurityIdentityResponseWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAccountName + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### SetAccountNameNil + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetAccountNameNil(b bool)` + + SetAccountNameNil sets the value for AccountName to be an explicit nil + +### UnsetAccountName +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetAccountName()` + +UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +### GetIdentityType + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdentityType() string` + +GetIdentityType returns the IdentityType field if non-nil, zero value otherwise. + +### GetIdentityTypeOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdentityTypeOk() (*string, bool)` + +GetIdentityTypeOk returns a tuple with the IdentityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityType + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetIdentityType(v string)` + +SetIdentityType sets IdentityType field to given value. + +### HasIdentityType + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasIdentityType() bool` + +HasIdentityType returns a boolean if a field has been set. + +### SetIdentityTypeNil + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetIdentityTypeNil(b bool)` + + SetIdentityTypeNil sets the value for IdentityType to be an explicit nil + +### UnsetIdentityType +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetIdentityType()` + +UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +### GetRoles + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetRoles() []SecurityLegacySecurityRolesSecurityRoleResponse` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetRolesOk() (*[]SecurityLegacySecurityRolesSecurityRoleResponse, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetRoles(v []SecurityLegacySecurityRolesSecurityRoleResponse)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + +### SetRolesNil + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetRolesNil(b bool)` + + SetRolesNil sets the value for Roles to be an explicit nil + +### UnsetRoles +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetRoles()` + +UnsetRoles ensures that no value is present for Roles, not even an explicit nil +### GetValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + +### SetValidNil + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetValidNil(b bool)` + + SetValidNil sets the value for Valid to be an explicit nil + +### UnsetValid +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetValid()` + +UnsetValid ensures that no value is present for Valid, not even an explicit nil +### GetSID + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasSID() bool` + +HasSID returns a boolean if a field has been set. + +### SetSIDNil + +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetSIDNil(b bool)` + + SetSIDNil sets the value for SID to be an explicit nil + +### UnsetSID +`func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetSID()` + +UnsetSID ensures that no value is present for SID, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md new file mode 100644 index 0000000..bbe051f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md @@ -0,0 +1,102 @@ +# SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | Pointer to **NullableString** | | [optional] +**GrantedByRoles** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponse + +`func NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponse() *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponse instantiates a new SecuritySecurityIdentityPermissionsPermissionRolesPairResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponseWithDefaults + +`func NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponseWithDefaults() *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponseWithDefaults instantiates a new SecuritySecurityIdentityPermissionsPermissionRolesPairResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermission + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil +### GetGrantedByRoles + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetGrantedByRoles() []string` + +GetGrantedByRoles returns the GrantedByRoles field if non-nil, zero value otherwise. + +### GetGrantedByRolesOk + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetGrantedByRolesOk() (*[]string, bool)` + +GetGrantedByRolesOk returns a tuple with the GrantedByRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedByRoles + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetGrantedByRoles(v []string)` + +SetGrantedByRoles sets GrantedByRoles field to given value. + +### HasGrantedByRoles + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) HasGrantedByRoles() bool` + +HasGrantedByRoles returns a boolean if a field has been set. + +### SetGrantedByRolesNil + +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetGrantedByRolesNil(b bool)` + + SetGrantedByRolesNil sets the value for GrantedByRoles to be an explicit nil + +### UnsetGrantedByRoles +`func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) UnsetGrantedByRoles()` + +UnsetGrantedByRoles ensures that no value is present for GrantedByRoles, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse.md new file mode 100644 index 0000000..e550a90 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse.md @@ -0,0 +1,308 @@ +# SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Claim** | Pointer to [**SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) | | [optional] +**Identity** | Pointer to **NullableString** | | [optional] +**SecuredAreaPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] +**CollectionPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] +**ContainerPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] +**PamProviderPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] +**IdentityProviderPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] +**PamPermissions** | Pointer to [**[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse**](SecuritySecurityIdentityPermissionsPermissionRolesPairResponse.md) | | [optional] + +## Methods + +### NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse + +`func NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse() *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse` + +NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse instantiates a new SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponseWithDefaults + +`func NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponseWithDefaults() *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse` + +NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponseWithDefaults instantiates a new SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClaim + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetClaim() SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +GetClaim returns the Claim field if non-nil, zero value otherwise. + +### GetClaimOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetClaimOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, bool)` + +GetClaimOk returns a tuple with the Claim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaim + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetClaim(v SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse)` + +SetClaim sets Claim field to given value. + +### HasClaim + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasClaim() bool` + +HasClaim returns a boolean if a field has been set. + +### GetIdentity + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentity() string` + +GetIdentity returns the Identity field if non-nil, zero value otherwise. + +### GetIdentityOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityOk() (*string, bool)` + +GetIdentityOk returns a tuple with the Identity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentity + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentity(v string)` + +SetIdentity sets Identity field to given value. + +### HasIdentity + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasIdentity() bool` + +HasIdentity returns a boolean if a field has been set. + +### SetIdentityNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentityNil(b bool)` + + SetIdentityNil sets the value for Identity to be an explicit nil + +### UnsetIdentity +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetIdentity()` + +UnsetIdentity ensures that no value is present for Identity, not even an explicit nil +### GetSecuredAreaPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetSecuredAreaPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetSecuredAreaPermissions returns the SecuredAreaPermissions field if non-nil, zero value otherwise. + +### GetSecuredAreaPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetSecuredAreaPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetSecuredAreaPermissionsOk returns a tuple with the SecuredAreaPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetSecuredAreaPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetSecuredAreaPermissions sets SecuredAreaPermissions field to given value. + +### HasSecuredAreaPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasSecuredAreaPermissions() bool` + +HasSecuredAreaPermissions returns a boolean if a field has been set. + +### SetSecuredAreaPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetSecuredAreaPermissionsNil(b bool)` + + SetSecuredAreaPermissionsNil sets the value for SecuredAreaPermissions to be an explicit nil + +### UnsetSecuredAreaPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetSecuredAreaPermissions()` + +UnsetSecuredAreaPermissions ensures that no value is present for SecuredAreaPermissions, not even an explicit nil +### GetCollectionPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetCollectionPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetCollectionPermissions returns the CollectionPermissions field if non-nil, zero value otherwise. + +### GetCollectionPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetCollectionPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetCollectionPermissionsOk returns a tuple with the CollectionPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetCollectionPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetCollectionPermissions sets CollectionPermissions field to given value. + +### HasCollectionPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasCollectionPermissions() bool` + +HasCollectionPermissions returns a boolean if a field has been set. + +### SetCollectionPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetCollectionPermissionsNil(b bool)` + + SetCollectionPermissionsNil sets the value for CollectionPermissions to be an explicit nil + +### UnsetCollectionPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetCollectionPermissions()` + +UnsetCollectionPermissions ensures that no value is present for CollectionPermissions, not even an explicit nil +### GetContainerPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetContainerPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetContainerPermissions returns the ContainerPermissions field if non-nil, zero value otherwise. + +### GetContainerPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetContainerPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetContainerPermissionsOk returns a tuple with the ContainerPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetContainerPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetContainerPermissions sets ContainerPermissions field to given value. + +### HasContainerPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasContainerPermissions() bool` + +HasContainerPermissions returns a boolean if a field has been set. + +### SetContainerPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetContainerPermissionsNil(b bool)` + + SetContainerPermissionsNil sets the value for ContainerPermissions to be an explicit nil + +### UnsetContainerPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetContainerPermissions()` + +UnsetContainerPermissions ensures that no value is present for ContainerPermissions, not even an explicit nil +### GetPamProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamProviderPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetPamProviderPermissions returns the PamProviderPermissions field if non-nil, zero value otherwise. + +### GetPamProviderPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamProviderPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetPamProviderPermissionsOk returns a tuple with the PamProviderPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPamProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamProviderPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetPamProviderPermissions sets PamProviderPermissions field to given value. + +### HasPamProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasPamProviderPermissions() bool` + +HasPamProviderPermissions returns a boolean if a field has been set. + +### SetPamProviderPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamProviderPermissionsNil(b bool)` + + SetPamProviderPermissionsNil sets the value for PamProviderPermissions to be an explicit nil + +### UnsetPamProviderPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetPamProviderPermissions()` + +UnsetPamProviderPermissions ensures that no value is present for PamProviderPermissions, not even an explicit nil +### GetIdentityProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityProviderPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetIdentityProviderPermissions returns the IdentityProviderPermissions field if non-nil, zero value otherwise. + +### GetIdentityProviderPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityProviderPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetIdentityProviderPermissionsOk returns a tuple with the IdentityProviderPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentityProviderPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetIdentityProviderPermissions sets IdentityProviderPermissions field to given value. + +### HasIdentityProviderPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasIdentityProviderPermissions() bool` + +HasIdentityProviderPermissions returns a boolean if a field has been set. + +### SetIdentityProviderPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentityProviderPermissionsNil(b bool)` + + SetIdentityProviderPermissionsNil sets the value for IdentityProviderPermissions to be an explicit nil + +### UnsetIdentityProviderPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetIdentityProviderPermissions()` + +UnsetIdentityProviderPermissions ensures that no value is present for IdentityProviderPermissions, not even an explicit nil +### GetPamPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse` + +GetPamPermissions returns the PamPermissions field if non-nil, zero value otherwise. + +### GetPamPermissionsOk + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamPermissionsOk() (*[]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool)` + +GetPamPermissionsOk returns a tuple with the PamPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPamPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse)` + +SetPamPermissions sets PamPermissions field to given value. + +### HasPamPermissions + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasPamPermissions() bool` + +HasPamPermissions returns a boolean if a field has been set. + +### SetPamPermissionsNil + +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamPermissionsNil(b bool)` + + SetPamPermissionsNil sets the value for PamPermissions to be an explicit nil + +### UnsetPamPermissions +`func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetPamPermissions()` + +UnsetPamPermissions ensures that no value is present for PamPermissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsAreaPermissionResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsAreaPermissionResponse.md new file mode 100644 index 0000000..948220b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsAreaPermissionResponse.md @@ -0,0 +1,138 @@ +# SecuritySecurityRolePermissionsAreaPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **NullableString** | | [optional] +**Area** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsAreaPermissionResponse + +`func NewSecuritySecurityRolePermissionsAreaPermissionResponse() *SecuritySecurityRolePermissionsAreaPermissionResponse` + +NewSecuritySecurityRolePermissionsAreaPermissionResponse instantiates a new SecuritySecurityRolePermissionsAreaPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsAreaPermissionResponseWithDefaults + +`func NewSecuritySecurityRolePermissionsAreaPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsAreaPermissionResponse` + +NewSecuritySecurityRolePermissionsAreaPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsAreaPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetArea + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### SetAreaNil + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetAreaNil(b bool)` + + SetAreaNil sets the value for Area to be an explicit nil + +### UnsetArea +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetArea()` + +UnsetArea ensures that no value is present for Area, not even an explicit nil +### GetPermission + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionRequest.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionRequest.md new file mode 100644 index 0000000..a13d0d2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionRequest.md @@ -0,0 +1,92 @@ +# SecuritySecurityRolePermissionsCollectionPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionId** | Pointer to **int32** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsCollectionPermissionRequest + +`func NewSecuritySecurityRolePermissionsCollectionPermissionRequest() *SecuritySecurityRolePermissionsCollectionPermissionRequest` + +NewSecuritySecurityRolePermissionsCollectionPermissionRequest instantiates a new SecuritySecurityRolePermissionsCollectionPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsCollectionPermissionRequestWithDefaults + +`func NewSecuritySecurityRolePermissionsCollectionPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsCollectionPermissionRequest` + +NewSecuritySecurityRolePermissionsCollectionPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsCollectionPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionResponse.md new file mode 100644 index 0000000..ce65755 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsCollectionPermissionResponse.md @@ -0,0 +1,128 @@ +# SecuritySecurityRolePermissionsCollectionPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsCollectionPermissionResponse + +`func NewSecuritySecurityRolePermissionsCollectionPermissionResponse() *SecuritySecurityRolePermissionsCollectionPermissionResponse` + +NewSecuritySecurityRolePermissionsCollectionPermissionResponse instantiates a new SecuritySecurityRolePermissionsCollectionPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsCollectionPermissionResponseWithDefaults + +`func NewSecuritySecurityRolePermissionsCollectionPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsCollectionPermissionResponse` + +NewSecuritySecurityRolePermissionsCollectionPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsCollectionPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetName + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionRequest.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionRequest.md new file mode 100644 index 0000000..eaa1694 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionRequest.md @@ -0,0 +1,92 @@ +# SecuritySecurityRolePermissionsContainerPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **int32** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsContainerPermissionRequest + +`func NewSecuritySecurityRolePermissionsContainerPermissionRequest() *SecuritySecurityRolePermissionsContainerPermissionRequest` + +NewSecuritySecurityRolePermissionsContainerPermissionRequest instantiates a new SecuritySecurityRolePermissionsContainerPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsContainerPermissionRequestWithDefaults + +`func NewSecuritySecurityRolePermissionsContainerPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsContainerPermissionRequest` + +NewSecuritySecurityRolePermissionsContainerPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsContainerPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionResponse.md new file mode 100644 index 0000000..9c43faa --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsContainerPermissionResponse.md @@ -0,0 +1,128 @@ +# SecuritySecurityRolePermissionsContainerPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsContainerPermissionResponse + +`func NewSecuritySecurityRolePermissionsContainerPermissionResponse() *SecuritySecurityRolePermissionsContainerPermissionResponse` + +NewSecuritySecurityRolePermissionsContainerPermissionResponse instantiates a new SecuritySecurityRolePermissionsContainerPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsContainerPermissionResponseWithDefaults + +`func NewSecuritySecurityRolePermissionsContainerPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsContainerPermissionResponse` + +NewSecuritySecurityRolePermissionsContainerPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsContainerPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetName + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionRequest.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionRequest.md new file mode 100644 index 0000000..0a9eb55 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionRequest.md @@ -0,0 +1,102 @@ +# SecuritySecurityRolePermissionsGlobalPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Area** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsGlobalPermissionRequest + +`func NewSecuritySecurityRolePermissionsGlobalPermissionRequest() *SecuritySecurityRolePermissionsGlobalPermissionRequest` + +NewSecuritySecurityRolePermissionsGlobalPermissionRequest instantiates a new SecuritySecurityRolePermissionsGlobalPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsGlobalPermissionRequestWithDefaults + +`func NewSecuritySecurityRolePermissionsGlobalPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsGlobalPermissionRequest` + +NewSecuritySecurityRolePermissionsGlobalPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsGlobalPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### SetAreaNil + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetAreaNil(b bool)` + + SetAreaNil sets the value for Area to be an explicit nil + +### UnsetArea +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) UnsetArea()` + +UnsetArea ensures that no value is present for Area, not even an explicit nil +### GetPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionResponse.md new file mode 100644 index 0000000..4974277 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsGlobalPermissionResponse.md @@ -0,0 +1,102 @@ +# SecuritySecurityRolePermissionsGlobalPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Area** | Pointer to **NullableString** | | [optional] +**Permission** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsGlobalPermissionResponse + +`func NewSecuritySecurityRolePermissionsGlobalPermissionResponse() *SecuritySecurityRolePermissionsGlobalPermissionResponse` + +NewSecuritySecurityRolePermissionsGlobalPermissionResponse instantiates a new SecuritySecurityRolePermissionsGlobalPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsGlobalPermissionResponseWithDefaults + +`func NewSecuritySecurityRolePermissionsGlobalPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsGlobalPermissionResponse` + +NewSecuritySecurityRolePermissionsGlobalPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsGlobalPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### SetAreaNil + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetAreaNil(b bool)` + + SetAreaNil sets the value for Area to be an explicit nil + +### UnsetArea +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) UnsetArea()` + +UnsetArea ensures that no value is present for Area, not even an explicit nil +### GetPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### SetPermissionNil + +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetPermissionNil(b bool)` + + SetPermissionNil sets the value for Permission to be an explicit nil + +### UnsetPermission +`func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) UnsetPermission()` + +UnsetPermission ensures that no value is present for Permission, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionRequest.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionRequest.md new file mode 100644 index 0000000..96a3684 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionRequest.md @@ -0,0 +1,92 @@ +# SecuritySecurityRolePermissionsPamProviderPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PamProviderId** | Pointer to **int32** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsPamProviderPermissionRequest + +`func NewSecuritySecurityRolePermissionsPamProviderPermissionRequest() *SecuritySecurityRolePermissionsPamProviderPermissionRequest` + +NewSecuritySecurityRolePermissionsPamProviderPermissionRequest instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsPamProviderPermissionRequestWithDefaults + +`func NewSecuritySecurityRolePermissionsPamProviderPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsPamProviderPermissionRequest` + +NewSecuritySecurityRolePermissionsPamProviderPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPamProviderId() int32` + +GetPamProviderId returns the PamProviderId field if non-nil, zero value otherwise. + +### GetPamProviderIdOk + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPamProviderIdOk() (*int32, bool)` + +GetPamProviderIdOk returns a tuple with the PamProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) SetPamProviderId(v int32)` + +SetPamProviderId sets PamProviderId field to given value. + +### HasPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) HasPamProviderId() bool` + +HasPamProviderId returns a boolean if a field has been set. + +### GetPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionResponse.md b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionResponse.md new file mode 100644 index 0000000..0c78c70 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SecuritySecurityRolePermissionsPamProviderPermissionResponse.md @@ -0,0 +1,128 @@ +# SecuritySecurityRolePermissionsPamProviderPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PamProviderId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSecuritySecurityRolePermissionsPamProviderPermissionResponse + +`func NewSecuritySecurityRolePermissionsPamProviderPermissionResponse() *SecuritySecurityRolePermissionsPamProviderPermissionResponse` + +NewSecuritySecurityRolePermissionsPamProviderPermissionResponse instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolePermissionsPamProviderPermissionResponseWithDefaults + +`func NewSecuritySecurityRolePermissionsPamProviderPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsPamProviderPermissionResponse` + +NewSecuritySecurityRolePermissionsPamProviderPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPamProviderId() int32` + +GetPamProviderId returns the PamProviderId field if non-nil, zero value otherwise. + +### GetPamProviderIdOk + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPamProviderIdOk() (*int32, bool)` + +GetPamProviderIdOk returns a tuple with the PamProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetPamProviderId(v int32)` + +SetPamProviderId sets PamProviderId field to given value. + +### HasPamProviderId + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasPamProviderId() bool` + +HasPamProviderId returns a boolean if a field has been set. + +### GetName + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/ServerApi.md b/v24/api/keyfactor/v1/docs/ServerApi.md new file mode 100644 index 0000000..eb16936 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ServerApi.md @@ -0,0 +1,578 @@ +# \ServerApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHServers**](ServerApi.md#CreateSSHServers) | **POST** /SSH/Servers | Creates a server with the provided properties +[**CreateSSHServersAccess**](ServerApi.md#CreateSSHServersAccess) | **POST** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +[**DeleteSSHServersAccess**](ServerApi.md#DeleteSSHServersAccess) | **DELETE** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +[**DeleteSSHServersById**](ServerApi.md#DeleteSSHServersById) | **DELETE** /SSH/Servers/{id} | Deletes a Server associated with the provided identifier +[**GetSSHServers**](ServerApi.md#GetSSHServers) | **GET** /SSH/Servers | Returns all servers according to the provided filter parameters +[**GetSSHServersAccessById**](ServerApi.md#GetSSHServersAccessById) | **GET** /SSH/Servers/Access/{id} | Retrieves logons and users with access to those logons for an existing server +[**GetSSHServersById**](ServerApi.md#GetSSHServersById) | **GET** /SSH/Servers/{id} | Returns a Server associated with the provided identifier +[**UpdateSSHServers**](ServerApi.md#UpdateSSHServers) | **PUT** /SSH/Servers | Updates an existing server with the provided properties + + + +## CreateSSHServers + +> CSSCMSDataModelModelsSSHServersServerResponse NewCreateSSHServersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServersServerCreationRequest(cSSCMSDataModelModelsSSHServersServerCreationRequest).Execute() + +Creates a server with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServersServerCreationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServersServerCreationRequest("AgentId_example", "Hostname_example", "ServerGroupId_example") // CSSCMSDataModelModelsSSHServersServerCreationRequest | Server properties to be applied to the newserver (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewCreateSSHServersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServersServerCreationRequest(cSSCMSDataModelModelsSSHServersServerCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.CreateSSHServers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServers`: CSSCMSDataModelModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.CreateSSHServers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServersServerCreationRequest** | [**CSSCMSDataModelModelsSSHServersServerCreationRequest**](CSSCMSDataModelModelsSSHServersServerCreationRequest.md) | Server properties to be applied to the newserver | + +### Return type + +[**CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSHServersAccess + +> CSSCMSDataModelModelsSSHAccessServerAccessResponse NewCreateSSHServersAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest).Execute() + +Updates logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHAccessServerAccessRequest := *openapiclient.NewCSSCMSDataModelModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest()}) // CSSCMSDataModelModelsSSHAccessServerAccessRequest | Logons and users to be applied to the existing server (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewCreateSSHServersAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.CreateSSHServersAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServersAccess`: CSSCMSDataModelModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.CreateSSHServersAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServersAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHAccessServerAccessRequest** | [**CSSCMSDataModelModelsSSHAccessServerAccessRequest**](CSSCMSDataModelModelsSSHAccessServerAccessRequest.md) | Logons and users to be applied to the existing server | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerAccessResponse**](CSSCMSDataModelModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServersAccess + +> CSSCMSDataModelModelsSSHAccessServerAccessResponse NewDeleteSSHServersAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest).Execute() + +Updates logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHAccessServerAccessRequest := *openapiclient.NewCSSCMSDataModelModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest()}) // CSSCMSDataModelModelsSSHAccessServerAccessRequest | Logons and users to be removed from the existing server (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewDeleteSSHServersAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerAccessRequest(cSSCMSDataModelModelsSSHAccessServerAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.DeleteSSHServersAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSSHServersAccess`: CSSCMSDataModelModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.DeleteSSHServersAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServersAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHAccessServerAccessRequest** | [**CSSCMSDataModelModelsSSHAccessServerAccessRequest**](CSSCMSDataModelModelsSSHAccessServerAccessRequest.md) | Logons and users to be removed from the existing server | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerAccessResponse**](CSSCMSDataModelModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServersById + +> NewDeleteSSHServersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a Server associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Server to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewDeleteSSHServersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.DeleteSSHServersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Server to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServers + +> []CSSCMSDataModelModelsSSHServersServerResponse NewGetSSHServersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all servers according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewGetSSHServersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.GetSSHServers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServers`: []CSSCMSDataModelModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.GetSSHServers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServersAccessById + +> CSSCMSDataModelModelsSSHAccessServerAccessResponse NewGetSSHServersAccessByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the existing server + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewGetSSHServersAccessByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.GetSSHServersAccessById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServersAccessById`: CSSCMSDataModelModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.GetSSHServersAccessById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the existing server | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServersAccessByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerAccessResponse**](CSSCMSDataModelModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServersById + +> CSSCMSDataModelModelsSSHServersServerResponse NewGetSSHServersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a Server associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the Server + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewGetSSHServersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.GetSSHServersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServersById`: CSSCMSDataModelModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.GetSSHServersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the Server | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSHServers + +> CSSCMSDataModelModelsSSHServersServerResponse NewUpdateSSHServersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServersServerUpdateRequest(cSSCMSDataModelModelsSSHServersServerUpdateRequest).Execute() + +Updates an existing server with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServersServerUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServersServerUpdateRequest(int32(123)) // CSSCMSDataModelModelsSSHServersServerUpdateRequest | Server properties to be applied to the existing server (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.NewUpdateSSHServersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServersServerUpdateRequest(cSSCMSDataModelModelsSSHServersServerUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.UpdateSSHServers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSHServers`: CSSCMSDataModelModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.UpdateSSHServers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSHServersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServersServerUpdateRequest** | [**CSSCMSDataModelModelsSSHServersServerUpdateRequest**](CSSCMSDataModelModelsSSHServersServerUpdateRequest.md) | Server properties to be applied to the existing server | + +### Return type + +[**CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/ServerGroupApi.md b/v24/api/keyfactor/v1/docs/ServerGroupApi.md new file mode 100644 index 0000000..e4fcedf --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ServerGroupApi.md @@ -0,0 +1,651 @@ +# \ServerGroupApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHServerGroups**](ServerGroupApi.md#CreateSSHServerGroups) | **POST** /SSH/ServerGroups | Creates a server group with the provided properties +[**CreateSSHServerGroupsAccess**](ServerGroupApi.md#CreateSSHServerGroupsAccess) | **POST** /SSH/ServerGroups/Access | Add access rules to the server group +[**DeleteSSHServerGroupsAccess**](ServerGroupApi.md#DeleteSSHServerGroupsAccess) | **DELETE** /SSH/ServerGroups/Access | Removes access mappings for the specified server group +[**DeleteSSHServerGroupsById**](ServerGroupApi.md#DeleteSSHServerGroupsById) | **DELETE** /SSH/ServerGroups/{id} | Deletes a ServerGroup associated with the provided identifier +[**GetSSHServerGroups**](ServerGroupApi.md#GetSSHServerGroups) | **GET** /SSH/ServerGroups | Returns all server groups according to the provided filter parameters +[**GetSSHServerGroupsAccessById**](ServerGroupApi.md#GetSSHServerGroupsAccessById) | **GET** /SSH/ServerGroups/Access/{id} | Retrieves logons and users with access to those logons for an existing server group +[**GetSSHServerGroupsById**](ServerGroupApi.md#GetSSHServerGroupsById) | **GET** /SSH/ServerGroups/{id} | Returns a ServerGroup associated with the provided identifier +[**GetSSHServerGroupsName**](ServerGroupApi.md#GetSSHServerGroupsName) | **GET** /SSH/ServerGroups/{name} | Returns a ServerGroup associated with the provided identifier +[**UpdateSSHServerGroups**](ServerGroupApi.md#UpdateSSHServerGroups) | **PUT** /SSH/ServerGroups | Updates an existing server group with the provided properties + + + +## CreateSSHServerGroups + +> CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse NewCreateSSHServerGroupsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest).Execute() + +Creates a server group with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest("OwnerName_example", "GroupName_example") // CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest | Server group properties to be applied to the new group (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewCreateSSHServerGroupsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.CreateSSHServerGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServerGroups`: CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.CreateSSHServerGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServerGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest** | [**CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest**](CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest.md) | Server group properties to be applied to the new group | + +### Return type + +[**CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSHServerGroupsAccess + +> CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse NewCreateSSHServerGroupsAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest).Execute() + +Add access rules to the server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest := *openapiclient.NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest("ServerGroupId_example", []openapiclient.CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest()}) // CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewCreateSSHServerGroupsAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.CreateSSHServerGroupsAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServerGroupsAccess`: CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.CreateSSHServerGroupsAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServerGroupsAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest** | [**CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest**](CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md) | | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse**](CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServerGroupsAccess + +> CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse NewDeleteSSHServerGroupsAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest).Execute() + +Removes access mappings for the specified server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest := *openapiclient.NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest("ServerGroupId_example", []openapiclient.CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest()}) // CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewDeleteSSHServerGroupsAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.DeleteSSHServerGroupsAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSSHServerGroupsAccess`: CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.DeleteSSHServerGroupsAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServerGroupsAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHAccessServerGroupAccessRequest** | [**CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest**](CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest.md) | | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse**](CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServerGroupsById + +> NewDeleteSSHServerGroupsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifer of the ServerGroup to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewDeleteSSHServerGroupsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.DeleteSSHServerGroupsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifer of the ServerGroup to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServerGroupsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServerGroups + +> []CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse NewGetSSHServerGroupsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all server groups according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewGetSSHServerGroupsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.GetSSHServerGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServerGroups`: []CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.GetSSHServerGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServerGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServerGroupsAccessById + +> CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse NewGetSSHServerGroupsAccessByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves logons and users with access to those logons for an existing server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Id of the existing server group + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewGetSSHServerGroupsAccessByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.GetSSHServerGroupsAccessById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServerGroupsAccessById`: CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.GetSSHServerGroupsAccessById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Id of the existing server group | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServerGroupsAccessByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse**](CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServerGroupsById + +> CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse NewGetSSHServerGroupsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the ServerGroup + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewGetSSHServerGroupsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.GetSSHServerGroupsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServerGroupsById`: CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.GetSSHServerGroupsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the ServerGroup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServerGroupsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServerGroupsName + +> CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse NewGetSSHServerGroupsNameRequest(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServerGroup + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewGetSSHServerGroupsNameRequest(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.GetSSHServerGroupsName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServerGroupsName`: CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.GetSSHServerGroupsName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServerGroup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServerGroupsNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSHServerGroups + +> CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse NewUpdateSSHServerGroupsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest).Execute() + +Updates an existing server group with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest("Id_example", "OwnerName_example", "GroupName_example", false) // CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest | Server group properties to be applied to the existing group (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.NewUpdateSSHServerGroupsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.UpdateSSHServerGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSHServerGroups`: CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.UpdateSSHServerGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSHServerGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest** | [**CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest**](CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest.md) | Server group properties to be applied to the existing group | + +### Return type + +[**CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse**](CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/ServiceAccountApi.md b/v24/api/keyfactor/v1/docs/ServiceAccountApi.md new file mode 100644 index 0000000..787c974 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/ServiceAccountApi.md @@ -0,0 +1,584 @@ +# \ServiceAccountApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHServiceAccounts**](ServiceAccountApi.md#CreateSSHServiceAccounts) | **POST** /SSH/ServiceAccounts | Creates a ServiceAccount with the provided properties +[**CreateSSHServiceAccountsRotateById**](ServiceAccountApi.md#CreateSSHServiceAccountsRotateById) | **POST** /SSH/ServiceAccounts/Rotate/{id} | Rotate an SSH key for a specified service account. +[**DeleteSSHServiceAccounts**](ServiceAccountApi.md#DeleteSSHServiceAccounts) | **DELETE** /SSH/ServiceAccounts | Deletes Service Accounts associated with the provided identifiers +[**DeleteSSHServiceAccountsById**](ServiceAccountApi.md#DeleteSSHServiceAccountsById) | **DELETE** /SSH/ServiceAccounts/{id} | Deletes a ServiceAccount associated with the provided identifier +[**GetSSHServiceAccounts**](ServiceAccountApi.md#GetSSHServiceAccounts) | **GET** /SSH/ServiceAccounts | Returns all ServiceAccounts according to the provided filter parameters +[**GetSSHServiceAccountsById**](ServiceAccountApi.md#GetSSHServiceAccountsById) | **GET** /SSH/ServiceAccounts/{id} | Returns a ServiceAccount associated with the provided identifier +[**GetSSHServiceAccountsKeyById**](ServiceAccountApi.md#GetSSHServiceAccountsKeyById) | **GET** /SSH/ServiceAccounts/Key/{id} | Returns an SSH key with or without private key based on the provided parameters. +[**UpdateSSHServiceAccounts**](ServiceAccountApi.md#UpdateSSHServiceAccounts) | **PUT** /SSH/ServiceAccounts | Updates an SSH key for a specified service account. + + + +## CreateSSHServiceAccounts + +> CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse NewCreateSSHServiceAccountsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest).Execute() + +Creates a ServiceAccount with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(*openapiclient.NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example"), *openapiclient.NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest("Username_example"), "ClientHostname_example", "ServerGroupId_example") // CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest | ServiceAccount properties to be applied to the new ServiceAccount (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewCreateSSHServiceAccountsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.CreateSSHServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServiceAccounts`: CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.CreateSSHServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest** | [**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest.md) | ServiceAccount properties to be applied to the new ServiceAccount | + +### Return type + +[**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSHServiceAccountsRotateById + +> CSSCMSDataModelModelsSSHKeysKeyResponse NewCreateSSHServiceAccountsRotateByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest).Execute() + +Rotate an SSH key for a specified service account. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the service account and the updated state of the SSH key. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHKeysKeyGenerationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // CSSCMSDataModelModelsSSHKeysKeyGenerationRequest | (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewCreateSSHServiceAccountsRotateByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHKeysKeyGenerationRequest(cSSCMSDataModelModelsSSHKeysKeyGenerationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.CreateSSHServiceAccountsRotateById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHServiceAccountsRotateById`: CSSCMSDataModelModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.CreateSSHServiceAccountsRotateById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the service account and the updated state of the SSH key. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHServiceAccountsRotateByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHKeysKeyGenerationRequest** | [**CSSCMSDataModelModelsSSHKeysKeyGenerationRequest**](CSSCMSDataModelModelsSSHKeysKeyGenerationRequest.md) | | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServiceAccounts + +> NewDeleteSSHServiceAccountsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Deletes Service Accounts associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Keyfactor identifers of the ServiceAccounts to be deleted (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewDeleteSSHServiceAccountsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.DeleteSSHServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Keyfactor identifers of the ServiceAccounts to be deleted | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHServiceAccountsById + +> NewDeleteSSHServiceAccountsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a ServiceAccount associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the ServiceAccount to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewDeleteSSHServiceAccountsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.DeleteSSHServiceAccountsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the ServiceAccount to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHServiceAccountsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServiceAccounts + +> []CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse NewGetSSHServiceAccountsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all ServiceAccounts according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewGetSSHServiceAccountsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.GetSSHServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServiceAccounts`: []CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.GetSSHServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServiceAccountsById + +> CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse NewGetSSHServiceAccountsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServiceAccount associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the ServiceAccount + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewGetSSHServiceAccountsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.GetSSHServiceAccountsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServiceAccountsById`: CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.GetSSHServiceAccountsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the ServiceAccount | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServiceAccountsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHServiceAccountsKeyById + +> CSSCMSDataModelModelsSSHKeysKeyResponse NewGetSSHServiceAccountsKeyByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an SSH key with or without private key based on the provided parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the service account to obtain information on + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + includePrivateKey := true // bool | Whether or not to include the private key in the response (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewGetSSHServiceAccountsKeyByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.GetSSHServiceAccountsKeyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHServiceAccountsKeyById`: CSSCMSDataModelModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.GetSSHServiceAccountsKeyById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the service account to obtain information on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHServiceAccountsKeyByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **includePrivateKey** | **bool** | Whether or not to include the private key in the response | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSHServiceAccounts + +> CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse NewUpdateSSHServiceAccountsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest).Execute() + +Updates an SSH key for a specified service account. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(*openapiclient.NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example"), int32(123)) // CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest | The id of the service account and the updated state of the SSH key. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.NewUpdateSSHServiceAccountsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.UpdateSSHServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSHServiceAccounts`: CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.UpdateSSHServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSHServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest** | [**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest.md) | The id of the service account and the updated state of the SSH key. | + +### Return type + +[**CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse**](CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SslApi.md b/v24/api/keyfactor/v1/docs/SslApi.md new file mode 100644 index 0000000..6617e91 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslApi.md @@ -0,0 +1,1515 @@ +# \SslApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSLNetworkRanges**](SslApi.md#CreateSSLNetworkRanges) | **POST** /SSL/NetworkRanges | Adds the provided network range definitions to the associated network definition +[**CreateSSLNetworkRangesValidate**](SslApi.md#CreateSSLNetworkRangesValidate) | **POST** /SSL/NetworkRanges/Validate | Validates the format (using regular expressions) of the provided network range definitions +[**CreateSSLNetworks**](SslApi.md#CreateSSLNetworks) | **POST** /SSL/Networks | Creates a network definition according to the provided properties +[**CreateSSLNetworksByIdReset**](SslApi.md#CreateSSLNetworksByIdReset) | **POST** /SSL/Networks/{id}/Reset | Resets all SSL scans associated with a network +[**CreateSSLNetworksByIdScan**](SslApi.md#CreateSSLNetworksByIdScan) | **POST** /SSL/Networks/{id}/Scan | Starts an SSL Scan for the network according to the associated network definition +[**DeleteSSLNetworkRangesById**](SslApi.md#DeleteSSLNetworkRangesById) | **DELETE** /SSL/NetworkRanges/{id} | Removes all network range definitions from the associated network definition +[**DeleteSSLNetworksById**](SslApi.md#DeleteSSLNetworksById) | **DELETE** /SSL/Networks/{id} | Removes a network definition according to the provided identifier +[**GetSSL**](SslApi.md#GetSSL) | **GET** /SSL | Returns a list of the endpoint scan results according to the provided filter and output parameters +[**GetSSLEndpointsById**](SslApi.md#GetSSLEndpointsById) | **GET** /SSL/Endpoints/{id} | Returns the details of the associated scanning endpoint +[**GetSSLEndpointsByIdHistory**](SslApi.md#GetSSLEndpointsByIdHistory) | **GET** /SSL/Endpoints/{id}/History | Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters +[**GetSSLNetworkRangesById**](SslApi.md#GetSSLNetworkRangesById) | **GET** /SSL/NetworkRanges/{id} | Returns the network range definitions for the provided network definition +[**GetSSLNetworks**](SslApi.md#GetSSLNetworks) | **GET** /SSL/Networks | Returns all defined SSL networks according to the provided filter and output parameters +[**GetSSLNetworksByIdParts**](SslApi.md#GetSSLNetworksByIdParts) | **GET** /SSL/Networks/{id}/Parts | Returns the scan job components comprising the entire scan job to be executed +[**GetSSLNetworksIdentifier**](SslApi.md#GetSSLNetworksIdentifier) | **GET** /SSL/Networks/{identifier} | Returns a defined SSL network according to the provided name +[**GetSSLPartsById**](SslApi.md#GetSSLPartsById) | **GET** /SSL/Parts/{id} | Returns the execution details of the associated network scan job part +[**UpdateSSLEndpointsMonitorAll**](SslApi.md#UpdateSSLEndpointsMonitorAll) | **PUT** /SSL/Endpoints/MonitorAll | Sets all endpoints matching the provided query as 'monitored' +[**UpdateSSLEndpointsMonitorStatus**](SslApi.md#UpdateSSLEndpointsMonitorStatus) | **PUT** /SSL/Endpoints/MonitorStatus | Sets the monitored status according to the provided endpoint and boolean status +[**UpdateSSLEndpointsReviewAll**](SslApi.md#UpdateSSLEndpointsReviewAll) | **PUT** /SSL/Endpoints/ReviewAll | Sets all endpoints matching the provided query as 'reviewed' +[**UpdateSSLEndpointsReviewStatus**](SslApi.md#UpdateSSLEndpointsReviewStatus) | **PUT** /SSL/Endpoints/ReviewStatus | Sets the reviewed status according to the provided endpoint and boolean status +[**UpdateSSLNetworkRanges**](SslApi.md#UpdateSSLNetworkRanges) | **PUT** /SSL/NetworkRanges | Configures network range definitions for the provided network +[**UpdateSSLNetworks**](SslApi.md#UpdateSSLNetworks) | **PUT** /SSL/Networks | Updates an existing network definition according to the provided properties + + + +## CreateSSLNetworkRanges + +> NewCreateSSLNetworkRangesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest).Execute() + +Adds the provided network range definitions to the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSLNetworkRangesRequest := *openapiclient.NewCSSCMSDataModelModelsSSLNetworkRangesRequest("NetworkId_example", []string{"Ranges_example"}) // CSSCMSDataModelModelsSSLNetworkRangesRequest | Network definition identifier and the ranges to be added (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewCreateSSLNetworkRangesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.CreateSSLNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSLNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSLNetworkRangesRequest** | [**CSSCMSDataModelModelsSSLNetworkRangesRequest**](CSSCMSDataModelModelsSSLNetworkRangesRequest.md) | Network definition identifier and the ranges to be added | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSLNetworkRangesValidate + +> NewCreateSSLNetworkRangesValidateRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Validates the format (using regular expressions) of the provided network range definitions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []string{"Property_example"} // []string | List of the network range definitions to verify (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewCreateSSLNetworkRangesValidateRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.CreateSSLNetworkRangesValidate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSLNetworkRangesValidateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]string** | List of the network range definitions to verify | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSLNetworks + +> SslNetworkResponse NewCreateSSLNetworksRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SslCreateNetworkRequest(sslCreateNetworkRequest).Execute() + +Creates a network definition according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + sslCreateNetworkRequest := *openapiclient.NewSslCreateNetworkRequest("Name_example", "AgentPoolName_example", "Description_example") // SslCreateNetworkRequest | Properties of the network definition to be created (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewCreateSSLNetworksRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SslCreateNetworkRequest(sslCreateNetworkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.CreateSSLNetworks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSLNetworks`: SslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.CreateSSLNetworks`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSLNetworksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **sslCreateNetworkRequest** | [**SslCreateNetworkRequest**](SslCreateNetworkRequest.md) | Properties of the network definition to be created | + +### Return type + +[**SslNetworkResponse**](SslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSLNetworksByIdReset + +> NewCreateSSLNetworksByIdResetRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Resets all SSL scans associated with a network + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewCreateSSLNetworksByIdResetRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.CreateSSLNetworksByIdReset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSLNetworksByIdResetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSLNetworksByIdScan + +> NewCreateSSLNetworksByIdScanRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLImmediateSslScanRequest(cSSCMSDataModelModelsSSLImmediateSslScanRequest).Execute() + +Starts an SSL Scan for the network according to the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSLImmediateSslScanRequest := *openapiclient.NewCSSCMSDataModelModelsSSLImmediateSslScanRequest(false, false) // CSSCMSDataModelModelsSSLImmediateSslScanRequest | Request for an immediate SSL Scan (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewCreateSSLNetworksByIdScanRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLImmediateSslScanRequest(cSSCMSDataModelModelsSSLImmediateSslScanRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.CreateSSLNetworksByIdScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSLNetworksByIdScanRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSLImmediateSslScanRequest** | [**CSSCMSDataModelModelsSSLImmediateSslScanRequest**](CSSCMSDataModelModelsSSLImmediateSslScanRequest.md) | Request for an immediate SSL Scan | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSLNetworkRangesById + +> NewDeleteSSLNetworkRangesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes all network range definitions from the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network definition identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewDeleteSSLNetworkRangesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.DeleteSSLNetworkRangesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network definition identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSLNetworkRangesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSLNetworksById + +> NewDeleteSSLNetworksByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes a network definition according to the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewDeleteSSLNetworksByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.DeleteSSLNetworksById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSLNetworksByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSL + +> []CSSCMSDataModelModelsSSLSslScanResult NewGetSSLRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of the endpoint scan results according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSL``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSL`: []CSSCMSDataModelModelsSSLSslScanResult + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSL`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSLSslScanResult**](CSSCMSDataModelModelsSSLSslScanResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLEndpointsById + +> CSSCMSDataModelModelsSSLEndpoint NewGetSSLEndpointsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the details of the associated scanning endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the endpoint + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLEndpointsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLEndpointsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLEndpointsById`: CSSCMSDataModelModelsSSLEndpoint + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLEndpointsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLEndpointsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSLEndpoint**](CSSCMSDataModelModelsSSLEndpoint.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLEndpointsByIdHistory + +> []CSSCMSDataModelModelsSSLEndpointHistoryResponse NewGetSSLEndpointsByIdHistoryRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the endpoint + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLEndpointsByIdHistoryRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLEndpointsByIdHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLEndpointsByIdHistory`: []CSSCMSDataModelModelsSSLEndpointHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLEndpointsByIdHistory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLEndpointsByIdHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSLEndpointHistoryResponse**](CSSCMSDataModelModelsSSLEndpointHistoryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLNetworkRangesById + +> []CSSCMSDataModelModelsSSLNetworkDefinition NewGetSSLNetworkRangesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the network range definitions for the provided network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLNetworkRangesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLNetworkRangesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLNetworkRangesById`: []CSSCMSDataModelModelsSSLNetworkDefinition + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLNetworkRangesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLNetworkRangesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSLNetworkDefinition**](CSSCMSDataModelModelsSSLNetworkDefinition.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLNetworks + +> []SslNetworkQueryResponse NewGetSSLNetworksRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all defined SSL networks according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLNetworksRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLNetworks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLNetworks`: []SslNetworkQueryResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLNetworks`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLNetworksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SslNetworkQueryResponse**](SslNetworkQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLNetworksByIdParts + +> []CSSCMSDataModelModelsSSLDisplayScanJobPart NewGetSSLNetworksByIdPartsRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the scan job components comprising the entire scan job to be executed + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network definition identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + jobType := openapiclient.Keyfactor.Orchestrators.Common.Enums.SslJobType(0) // KeyfactorOrchestratorsCommonEnumsSslJobType | (optional) + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLNetworksByIdPartsRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLNetworksByIdParts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLNetworksByIdParts`: []CSSCMSDataModelModelsSSLDisplayScanJobPart + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLNetworksByIdParts`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network definition identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLNetworksByIdPartsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **jobType** | [**KeyfactorOrchestratorsCommonEnumsSslJobType**](KeyfactorOrchestratorsCommonEnumsSslJobType.md) | | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSLDisplayScanJobPart**](CSSCMSDataModelModelsSSLDisplayScanJobPart.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLNetworksIdentifier + +> SslNetworkResponse NewGetSSLNetworksIdentifierRequest(ctx, identifier).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a defined SSL network according to the provided name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + identifier := "identifier_example" // string | Identifier (Guid or Name) of the defined network + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLNetworksIdentifierRequest(context.Background(), identifier).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLNetworksIdentifier``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLNetworksIdentifier`: SslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLNetworksIdentifier`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**identifier** | **string** | Identifier (Guid or Name) of the defined network | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLNetworksIdentifierRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SslNetworkResponse**](SslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSLPartsById + +> CSSCMSDataModelModelsSSLScanJobPart NewGetSSLPartsByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the execution details of the associated network scan job part + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the scan job part + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewGetSSLPartsByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.GetSSLPartsById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSLPartsById`: CSSCMSDataModelModelsSSLScanJobPart + fmt.Fprintf(os.Stdout, "Response from `SslApi.GetSSLPartsById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the scan job part | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSLPartsByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSLScanJobPart**](CSSCMSDataModelModelsSSLScanJobPart.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLEndpointsMonitorAll + +> NewUpdateSSLEndpointsMonitorAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets all endpoints matching the provided query as 'monitored' + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) (default to "") + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLEndpointsMonitorAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLEndpointsMonitorAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLEndpointsMonitorAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **query** | **string** | Query to filter the endpoints for which the status should be set | [default to ""] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLEndpointsMonitorStatus + +> NewUpdateSSLEndpointsMonitorStatusRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest).Execute() + +Sets the monitored status according to the provided endpoint and boolean status + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSLEndpointStatusRequest := []openapiclient.CSSCMSDataModelModelsSSLEndpointStatusRequest{*openapiclient.NewCSSCMSDataModelModelsSSLEndpointStatusRequest("Id_example", false)} // []CSSCMSDataModelModelsSSLEndpointStatusRequest | Endpoints and statuses to be set for each (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLEndpointsMonitorStatusRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLEndpointsMonitorStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLEndpointsMonitorStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSLEndpointStatusRequest** | [**[]CSSCMSDataModelModelsSSLEndpointStatusRequest**](CSSCMSDataModelModelsSSLEndpointStatusRequest.md) | Endpoints and statuses to be set for each | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLEndpointsReviewAll + +> NewUpdateSSLEndpointsReviewAllRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets all endpoints matching the provided query as 'reviewed' + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) (default to "") + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLEndpointsReviewAllRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLEndpointsReviewAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLEndpointsReviewAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **query** | **string** | Query to filter the endpoints for which the status should be set | [default to ""] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLEndpointsReviewStatus + +> NewUpdateSSLEndpointsReviewStatusRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest).Execute() + +Sets the reviewed status according to the provided endpoint and boolean status + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSLEndpointStatusRequest := []openapiclient.CSSCMSDataModelModelsSSLEndpointStatusRequest{*openapiclient.NewCSSCMSDataModelModelsSSLEndpointStatusRequest("Id_example", false)} // []CSSCMSDataModelModelsSSLEndpointStatusRequest | Endpoints and statuses for each (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLEndpointsReviewStatusRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLEndpointStatusRequest(cSSCMSDataModelModelsSSLEndpointStatusRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLEndpointsReviewStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLEndpointsReviewStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSLEndpointStatusRequest** | [**[]CSSCMSDataModelModelsSSLEndpointStatusRequest**](CSSCMSDataModelModelsSSLEndpointStatusRequest.md) | Endpoints and statuses for each | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLNetworkRanges + +> NewUpdateSSLNetworkRangesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest).Execute() + +Configures network range definitions for the provided network + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSLNetworkRangesRequest := *openapiclient.NewCSSCMSDataModelModelsSSLNetworkRangesRequest("NetworkId_example", []string{"Ranges_example"}) // CSSCMSDataModelModelsSSLNetworkRangesRequest | Network range defitions and the network to which they should be set (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLNetworkRangesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSLNetworkRangesRequest(cSSCMSDataModelModelsSSLNetworkRangesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSLNetworkRangesRequest** | [**CSSCMSDataModelModelsSSLNetworkRangesRequest**](CSSCMSDataModelModelsSSLNetworkRangesRequest.md) | Network range defitions and the network to which they should be set | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSLNetworks + +> SslNetworkResponse NewUpdateSSLNetworksRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SslUpdateNetworkRequest(sslUpdateNetworkRequest).Execute() + +Updates an existing network definition according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + sslUpdateNetworkRequest := *openapiclient.NewSslUpdateNetworkRequest("NetworkId_example", "Name_example", "AgentPoolName_example", "Description_example") // SslUpdateNetworkRequest | Properties of the network definition to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.NewUpdateSSLNetworksRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SslUpdateNetworkRequest(sslUpdateNetworkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.UpdateSSLNetworks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSLNetworks`: SslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.UpdateSSLNetworks`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSLNetworksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **sslUpdateNetworkRequest** | [**SslUpdateNetworkRequest**](SslUpdateNetworkRequest.md) | Properties of the network definition to be updated | + +### Return type + +[**SslNetworkResponse**](SslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SslCreateNetworkRequest.md b/v24/api/keyfactor/v1/docs/SslCreateNetworkRequest.md new file mode 100644 index 0000000..205474a --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslCreateNetworkRequest.md @@ -0,0 +1,425 @@ +# SslCreateNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**AgentPoolName** | **string** | | +**Description** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**QuietHours** | Pointer to [**[]SslQuietHourRequest**](SslQuietHourRequest.md) | | [optional] +**BlackoutStart** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**BlackoutEnd** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] + +## Methods + +### NewSslCreateNetworkRequest + +`func NewSslCreateNetworkRequest(name string, agentPoolName string, description string, ) *SslCreateNetworkRequest` + +NewSslCreateNetworkRequest instantiates a new SslCreateNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslCreateNetworkRequestWithDefaults + +`func NewSslCreateNetworkRequestWithDefaults() *SslCreateNetworkRequest` + +NewSslCreateNetworkRequestWithDefaults instantiates a new SslCreateNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SslCreateNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SslCreateNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SslCreateNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgentPoolName + +`func (o *SslCreateNetworkRequest) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *SslCreateNetworkRequest) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *SslCreateNetworkRequest) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + + +### GetDescription + +`func (o *SslCreateNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SslCreateNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SslCreateNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *SslCreateNetworkRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SslCreateNetworkRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SslCreateNetworkRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SslCreateNetworkRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *SslCreateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *SslCreateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *SslCreateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *SslCreateNetworkRequest) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *SslCreateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *SslCreateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *SslCreateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *SslCreateNetworkRequest) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *SslCreateNetworkRequest) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *SslCreateNetworkRequest) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *SslCreateNetworkRequest) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *SslCreateNetworkRequest) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### SetSslAlertRecipientsNil + +`func (o *SslCreateNetworkRequest) SetSslAlertRecipientsNil(b bool)` + + SetSslAlertRecipientsNil sets the value for SslAlertRecipients to be an explicit nil + +### UnsetSslAlertRecipients +`func (o *SslCreateNetworkRequest) UnsetSslAlertRecipients()` + +UnsetSslAlertRecipients ensures that no value is present for SslAlertRecipients, not even an explicit nil +### GetAutoMonitor + +`func (o *SslCreateNetworkRequest) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *SslCreateNetworkRequest) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *SslCreateNetworkRequest) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *SslCreateNetworkRequest) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *SslCreateNetworkRequest) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *SslCreateNetworkRequest) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *SslCreateNetworkRequest) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *SslCreateNetworkRequest) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *SslCreateNetworkRequest) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *SslCreateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *SslCreateNetworkRequest) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *SslCreateNetworkRequest) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *SslCreateNetworkRequest) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *SslCreateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *SslCreateNetworkRequest) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *SslCreateNetworkRequest) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *SslCreateNetworkRequest) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *SslCreateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *SslCreateNetworkRequest) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *SslCreateNetworkRequest) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *SslCreateNetworkRequest) GetQuietHours() []SslQuietHourRequest` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *SslCreateNetworkRequest) GetQuietHoursOk() (*[]SslQuietHourRequest, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *SslCreateNetworkRequest) SetQuietHours(v []SslQuietHourRequest)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *SslCreateNetworkRequest) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + +### SetQuietHoursNil + +`func (o *SslCreateNetworkRequest) SetQuietHoursNil(b bool)` + + SetQuietHoursNil sets the value for QuietHours to be an explicit nil + +### UnsetQuietHours +`func (o *SslCreateNetworkRequest) UnsetQuietHours()` + +UnsetQuietHours ensures that no value is present for QuietHours, not even an explicit nil +### GetBlackoutStart + +`func (o *SslCreateNetworkRequest) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutStart returns the BlackoutStart field if non-nil, zero value otherwise. + +### GetBlackoutStartOk + +`func (o *SslCreateNetworkRequest) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutStartOk returns a tuple with the BlackoutStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutStart + +`func (o *SslCreateNetworkRequest) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutStart sets BlackoutStart field to given value. + +### HasBlackoutStart + +`func (o *SslCreateNetworkRequest) HasBlackoutStart() bool` + +HasBlackoutStart returns a boolean if a field has been set. + +### GetBlackoutEnd + +`func (o *SslCreateNetworkRequest) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutEnd returns the BlackoutEnd field if non-nil, zero value otherwise. + +### GetBlackoutEndOk + +`func (o *SslCreateNetworkRequest) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutEndOk returns a tuple with the BlackoutEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutEnd + +`func (o *SslCreateNetworkRequest) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutEnd sets BlackoutEnd field to given value. + +### HasBlackoutEnd + +`func (o *SslCreateNetworkRequest) HasBlackoutEnd() bool` + +HasBlackoutEnd returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SslNetworkQueryResponse.md b/v24/api/keyfactor/v1/docs/SslNetworkQueryResponse.md new file mode 100644 index 0000000..4d955f3 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslNetworkQueryResponse.md @@ -0,0 +1,734 @@ +# SslNetworkQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**AgentPoolName** | Pointer to **NullableString** | | [optional] +**AgentPoolId** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**DiscoverPercentComplete** | Pointer to **float64** | | [optional] +**MonitorPercentComplete** | Pointer to **float64** | | [optional] +**DiscoverStatus** | Pointer to [**CSSCMSCoreEnumsSslNetworkJobStatus**](CSSCMSCoreEnumsSslNetworkJobStatus.md) | | [optional] +**MonitorStatus** | Pointer to [**CSSCMSCoreEnumsSslNetworkJobStatus**](CSSCMSCoreEnumsSslNetworkJobStatus.md) | | [optional] +**DiscoverLastScanned** | Pointer to **NullableTime** | | [optional] +**MonitorLastScanned** | Pointer to **NullableTime** | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**DiscoverJobParts** | Pointer to **int32** | | [optional] +**MonitorJobParts** | Pointer to **int32** | | [optional] +**QuietHours** | Pointer to [**[]SslQuietHourResponse**](SslQuietHourResponse.md) | | [optional] +**BlackoutStart** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**BlackoutEnd** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] + +## Methods + +### NewSslNetworkQueryResponse + +`func NewSslNetworkQueryResponse() *SslNetworkQueryResponse` + +NewSslNetworkQueryResponse instantiates a new SslNetworkQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslNetworkQueryResponseWithDefaults + +`func NewSslNetworkQueryResponseWithDefaults() *SslNetworkQueryResponse` + +NewSslNetworkQueryResponseWithDefaults instantiates a new SslNetworkQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *SslNetworkQueryResponse) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *SslNetworkQueryResponse) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *SslNetworkQueryResponse) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *SslNetworkQueryResponse) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetName + +`func (o *SslNetworkQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SslNetworkQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SslNetworkQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SslNetworkQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SslNetworkQueryResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SslNetworkQueryResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetAgentPoolName + +`func (o *SslNetworkQueryResponse) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *SslNetworkQueryResponse) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *SslNetworkQueryResponse) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *SslNetworkQueryResponse) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### SetAgentPoolNameNil + +`func (o *SslNetworkQueryResponse) SetAgentPoolNameNil(b bool)` + + SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil + +### UnsetAgentPoolName +`func (o *SslNetworkQueryResponse) UnsetAgentPoolName()` + +UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +### GetAgentPoolId + +`func (o *SslNetworkQueryResponse) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *SslNetworkQueryResponse) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *SslNetworkQueryResponse) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *SslNetworkQueryResponse) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### SetAgentPoolIdNil + +`func (o *SslNetworkQueryResponse) SetAgentPoolIdNil(b bool)` + + SetAgentPoolIdNil sets the value for AgentPoolId to be an explicit nil + +### UnsetAgentPoolId +`func (o *SslNetworkQueryResponse) UnsetAgentPoolId()` + +UnsetAgentPoolId ensures that no value is present for AgentPoolId, not even an explicit nil +### GetDescription + +`func (o *SslNetworkQueryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SslNetworkQueryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SslNetworkQueryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SslNetworkQueryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SslNetworkQueryResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SslNetworkQueryResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEnabled + +`func (o *SslNetworkQueryResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SslNetworkQueryResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SslNetworkQueryResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SslNetworkQueryResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *SslNetworkQueryResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *SslNetworkQueryResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *SslNetworkQueryResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *SslNetworkQueryResponse) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *SslNetworkQueryResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *SslNetworkQueryResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *SslNetworkQueryResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *SslNetworkQueryResponse) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetDiscoverPercentComplete + +`func (o *SslNetworkQueryResponse) GetDiscoverPercentComplete() float64` + +GetDiscoverPercentComplete returns the DiscoverPercentComplete field if non-nil, zero value otherwise. + +### GetDiscoverPercentCompleteOk + +`func (o *SslNetworkQueryResponse) GetDiscoverPercentCompleteOk() (*float64, bool)` + +GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverPercentComplete + +`func (o *SslNetworkQueryResponse) SetDiscoverPercentComplete(v float64)` + +SetDiscoverPercentComplete sets DiscoverPercentComplete field to given value. + +### HasDiscoverPercentComplete + +`func (o *SslNetworkQueryResponse) HasDiscoverPercentComplete() bool` + +HasDiscoverPercentComplete returns a boolean if a field has been set. + +### GetMonitorPercentComplete + +`func (o *SslNetworkQueryResponse) GetMonitorPercentComplete() float64` + +GetMonitorPercentComplete returns the MonitorPercentComplete field if non-nil, zero value otherwise. + +### GetMonitorPercentCompleteOk + +`func (o *SslNetworkQueryResponse) GetMonitorPercentCompleteOk() (*float64, bool)` + +GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorPercentComplete + +`func (o *SslNetworkQueryResponse) SetMonitorPercentComplete(v float64)` + +SetMonitorPercentComplete sets MonitorPercentComplete field to given value. + +### HasMonitorPercentComplete + +`func (o *SslNetworkQueryResponse) HasMonitorPercentComplete() bool` + +HasMonitorPercentComplete returns a boolean if a field has been set. + +### GetDiscoverStatus + +`func (o *SslNetworkQueryResponse) GetDiscoverStatus() CSSCMSCoreEnumsSslNetworkJobStatus` + +GetDiscoverStatus returns the DiscoverStatus field if non-nil, zero value otherwise. + +### GetDiscoverStatusOk + +`func (o *SslNetworkQueryResponse) GetDiscoverStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool)` + +GetDiscoverStatusOk returns a tuple with the DiscoverStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverStatus + +`func (o *SslNetworkQueryResponse) SetDiscoverStatus(v CSSCMSCoreEnumsSslNetworkJobStatus)` + +SetDiscoverStatus sets DiscoverStatus field to given value. + +### HasDiscoverStatus + +`func (o *SslNetworkQueryResponse) HasDiscoverStatus() bool` + +HasDiscoverStatus returns a boolean if a field has been set. + +### GetMonitorStatus + +`func (o *SslNetworkQueryResponse) GetMonitorStatus() CSSCMSCoreEnumsSslNetworkJobStatus` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *SslNetworkQueryResponse) GetMonitorStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *SslNetworkQueryResponse) SetMonitorStatus(v CSSCMSCoreEnumsSslNetworkJobStatus)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *SslNetworkQueryResponse) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetDiscoverLastScanned + +`func (o *SslNetworkQueryResponse) GetDiscoverLastScanned() time.Time` + +GetDiscoverLastScanned returns the DiscoverLastScanned field if non-nil, zero value otherwise. + +### GetDiscoverLastScannedOk + +`func (o *SslNetworkQueryResponse) GetDiscoverLastScannedOk() (*time.Time, bool)` + +GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverLastScanned + +`func (o *SslNetworkQueryResponse) SetDiscoverLastScanned(v time.Time)` + +SetDiscoverLastScanned sets DiscoverLastScanned field to given value. + +### HasDiscoverLastScanned + +`func (o *SslNetworkQueryResponse) HasDiscoverLastScanned() bool` + +HasDiscoverLastScanned returns a boolean if a field has been set. + +### SetDiscoverLastScannedNil + +`func (o *SslNetworkQueryResponse) SetDiscoverLastScannedNil(b bool)` + + SetDiscoverLastScannedNil sets the value for DiscoverLastScanned to be an explicit nil + +### UnsetDiscoverLastScanned +`func (o *SslNetworkQueryResponse) UnsetDiscoverLastScanned()` + +UnsetDiscoverLastScanned ensures that no value is present for DiscoverLastScanned, not even an explicit nil +### GetMonitorLastScanned + +`func (o *SslNetworkQueryResponse) GetMonitorLastScanned() time.Time` + +GetMonitorLastScanned returns the MonitorLastScanned field if non-nil, zero value otherwise. + +### GetMonitorLastScannedOk + +`func (o *SslNetworkQueryResponse) GetMonitorLastScannedOk() (*time.Time, bool)` + +GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorLastScanned + +`func (o *SslNetworkQueryResponse) SetMonitorLastScanned(v time.Time)` + +SetMonitorLastScanned sets MonitorLastScanned field to given value. + +### HasMonitorLastScanned + +`func (o *SslNetworkQueryResponse) HasMonitorLastScanned() bool` + +HasMonitorLastScanned returns a boolean if a field has been set. + +### SetMonitorLastScannedNil + +`func (o *SslNetworkQueryResponse) SetMonitorLastScannedNil(b bool)` + + SetMonitorLastScannedNil sets the value for MonitorLastScanned to be an explicit nil + +### UnsetMonitorLastScanned +`func (o *SslNetworkQueryResponse) UnsetMonitorLastScanned()` + +UnsetMonitorLastScanned ensures that no value is present for MonitorLastScanned, not even an explicit nil +### GetSslAlertRecipients + +`func (o *SslNetworkQueryResponse) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *SslNetworkQueryResponse) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *SslNetworkQueryResponse) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *SslNetworkQueryResponse) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### SetSslAlertRecipientsNil + +`func (o *SslNetworkQueryResponse) SetSslAlertRecipientsNil(b bool)` + + SetSslAlertRecipientsNil sets the value for SslAlertRecipients to be an explicit nil + +### UnsetSslAlertRecipients +`func (o *SslNetworkQueryResponse) UnsetSslAlertRecipients()` + +UnsetSslAlertRecipients ensures that no value is present for SslAlertRecipients, not even an explicit nil +### GetGetRobots + +`func (o *SslNetworkQueryResponse) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *SslNetworkQueryResponse) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *SslNetworkQueryResponse) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *SslNetworkQueryResponse) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *SslNetworkQueryResponse) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *SslNetworkQueryResponse) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *SslNetworkQueryResponse) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *SslNetworkQueryResponse) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *SslNetworkQueryResponse) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *SslNetworkQueryResponse) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *SslNetworkQueryResponse) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *SslNetworkQueryResponse) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *SslNetworkQueryResponse) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *SslNetworkQueryResponse) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *SslNetworkQueryResponse) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *SslNetworkQueryResponse) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetDiscoverJobParts + +`func (o *SslNetworkQueryResponse) GetDiscoverJobParts() int32` + +GetDiscoverJobParts returns the DiscoverJobParts field if non-nil, zero value otherwise. + +### GetDiscoverJobPartsOk + +`func (o *SslNetworkQueryResponse) GetDiscoverJobPartsOk() (*int32, bool)` + +GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverJobParts + +`func (o *SslNetworkQueryResponse) SetDiscoverJobParts(v int32)` + +SetDiscoverJobParts sets DiscoverJobParts field to given value. + +### HasDiscoverJobParts + +`func (o *SslNetworkQueryResponse) HasDiscoverJobParts() bool` + +HasDiscoverJobParts returns a boolean if a field has been set. + +### GetMonitorJobParts + +`func (o *SslNetworkQueryResponse) GetMonitorJobParts() int32` + +GetMonitorJobParts returns the MonitorJobParts field if non-nil, zero value otherwise. + +### GetMonitorJobPartsOk + +`func (o *SslNetworkQueryResponse) GetMonitorJobPartsOk() (*int32, bool)` + +GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorJobParts + +`func (o *SslNetworkQueryResponse) SetMonitorJobParts(v int32)` + +SetMonitorJobParts sets MonitorJobParts field to given value. + +### HasMonitorJobParts + +`func (o *SslNetworkQueryResponse) HasMonitorJobParts() bool` + +HasMonitorJobParts returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *SslNetworkQueryResponse) GetQuietHours() []SslQuietHourResponse` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *SslNetworkQueryResponse) GetQuietHoursOk() (*[]SslQuietHourResponse, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *SslNetworkQueryResponse) SetQuietHours(v []SslQuietHourResponse)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *SslNetworkQueryResponse) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + +### SetQuietHoursNil + +`func (o *SslNetworkQueryResponse) SetQuietHoursNil(b bool)` + + SetQuietHoursNil sets the value for QuietHours to be an explicit nil + +### UnsetQuietHours +`func (o *SslNetworkQueryResponse) UnsetQuietHours()` + +UnsetQuietHours ensures that no value is present for QuietHours, not even an explicit nil +### GetBlackoutStart + +`func (o *SslNetworkQueryResponse) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutStart returns the BlackoutStart field if non-nil, zero value otherwise. + +### GetBlackoutStartOk + +`func (o *SslNetworkQueryResponse) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutStartOk returns a tuple with the BlackoutStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutStart + +`func (o *SslNetworkQueryResponse) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutStart sets BlackoutStart field to given value. + +### HasBlackoutStart + +`func (o *SslNetworkQueryResponse) HasBlackoutStart() bool` + +HasBlackoutStart returns a boolean if a field has been set. + +### GetBlackoutEnd + +`func (o *SslNetworkQueryResponse) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutEnd returns the BlackoutEnd field if non-nil, zero value otherwise. + +### GetBlackoutEndOk + +`func (o *SslNetworkQueryResponse) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutEndOk returns a tuple with the BlackoutEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutEnd + +`func (o *SslNetworkQueryResponse) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutEnd sets BlackoutEnd field to given value. + +### HasBlackoutEnd + +`func (o *SslNetworkQueryResponse) HasBlackoutEnd() bool` + +HasBlackoutEnd returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SslNetworkResponse.md b/v24/api/keyfactor/v1/docs/SslNetworkResponse.md new file mode 100644 index 0000000..8b6766d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslNetworkResponse.md @@ -0,0 +1,760 @@ +# SslNetworkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoMonitor** | Pointer to **bool** | | [optional] +**NetworkId** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**AgentPoolName** | Pointer to **NullableString** | | [optional] +**AgentPoolId** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**DiscoverPercentComplete** | Pointer to **float64** | | [optional] +**MonitorPercentComplete** | Pointer to **float64** | | [optional] +**DiscoverStatus** | Pointer to [**CSSCMSCoreEnumsSslNetworkJobStatus**](CSSCMSCoreEnumsSslNetworkJobStatus.md) | | [optional] +**MonitorStatus** | Pointer to [**CSSCMSCoreEnumsSslNetworkJobStatus**](CSSCMSCoreEnumsSslNetworkJobStatus.md) | | [optional] +**DiscoverLastScanned** | Pointer to **NullableTime** | | [optional] +**MonitorLastScanned** | Pointer to **NullableTime** | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**DiscoverJobParts** | Pointer to **int32** | | [optional] +**MonitorJobParts** | Pointer to **int32** | | [optional] +**QuietHours** | Pointer to [**[]SslQuietHourResponse**](SslQuietHourResponse.md) | | [optional] +**BlackoutStart** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**BlackoutEnd** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] + +## Methods + +### NewSslNetworkResponse + +`func NewSslNetworkResponse() *SslNetworkResponse` + +NewSslNetworkResponse instantiates a new SslNetworkResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslNetworkResponseWithDefaults + +`func NewSslNetworkResponseWithDefaults() *SslNetworkResponse` + +NewSslNetworkResponseWithDefaults instantiates a new SslNetworkResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutoMonitor + +`func (o *SslNetworkResponse) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *SslNetworkResponse) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *SslNetworkResponse) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *SslNetworkResponse) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetNetworkId + +`func (o *SslNetworkResponse) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *SslNetworkResponse) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *SslNetworkResponse) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *SslNetworkResponse) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetName + +`func (o *SslNetworkResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SslNetworkResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SslNetworkResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SslNetworkResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SslNetworkResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SslNetworkResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetAgentPoolName + +`func (o *SslNetworkResponse) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *SslNetworkResponse) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *SslNetworkResponse) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *SslNetworkResponse) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### SetAgentPoolNameNil + +`func (o *SslNetworkResponse) SetAgentPoolNameNil(b bool)` + + SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil + +### UnsetAgentPoolName +`func (o *SslNetworkResponse) UnsetAgentPoolName()` + +UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +### GetAgentPoolId + +`func (o *SslNetworkResponse) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *SslNetworkResponse) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *SslNetworkResponse) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *SslNetworkResponse) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### SetAgentPoolIdNil + +`func (o *SslNetworkResponse) SetAgentPoolIdNil(b bool)` + + SetAgentPoolIdNil sets the value for AgentPoolId to be an explicit nil + +### UnsetAgentPoolId +`func (o *SslNetworkResponse) UnsetAgentPoolId()` + +UnsetAgentPoolId ensures that no value is present for AgentPoolId, not even an explicit nil +### GetDescription + +`func (o *SslNetworkResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SslNetworkResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SslNetworkResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SslNetworkResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SslNetworkResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SslNetworkResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEnabled + +`func (o *SslNetworkResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SslNetworkResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SslNetworkResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SslNetworkResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *SslNetworkResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *SslNetworkResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *SslNetworkResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *SslNetworkResponse) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *SslNetworkResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *SslNetworkResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *SslNetworkResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *SslNetworkResponse) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetDiscoverPercentComplete + +`func (o *SslNetworkResponse) GetDiscoverPercentComplete() float64` + +GetDiscoverPercentComplete returns the DiscoverPercentComplete field if non-nil, zero value otherwise. + +### GetDiscoverPercentCompleteOk + +`func (o *SslNetworkResponse) GetDiscoverPercentCompleteOk() (*float64, bool)` + +GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverPercentComplete + +`func (o *SslNetworkResponse) SetDiscoverPercentComplete(v float64)` + +SetDiscoverPercentComplete sets DiscoverPercentComplete field to given value. + +### HasDiscoverPercentComplete + +`func (o *SslNetworkResponse) HasDiscoverPercentComplete() bool` + +HasDiscoverPercentComplete returns a boolean if a field has been set. + +### GetMonitorPercentComplete + +`func (o *SslNetworkResponse) GetMonitorPercentComplete() float64` + +GetMonitorPercentComplete returns the MonitorPercentComplete field if non-nil, zero value otherwise. + +### GetMonitorPercentCompleteOk + +`func (o *SslNetworkResponse) GetMonitorPercentCompleteOk() (*float64, bool)` + +GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorPercentComplete + +`func (o *SslNetworkResponse) SetMonitorPercentComplete(v float64)` + +SetMonitorPercentComplete sets MonitorPercentComplete field to given value. + +### HasMonitorPercentComplete + +`func (o *SslNetworkResponse) HasMonitorPercentComplete() bool` + +HasMonitorPercentComplete returns a boolean if a field has been set. + +### GetDiscoverStatus + +`func (o *SslNetworkResponse) GetDiscoverStatus() CSSCMSCoreEnumsSslNetworkJobStatus` + +GetDiscoverStatus returns the DiscoverStatus field if non-nil, zero value otherwise. + +### GetDiscoverStatusOk + +`func (o *SslNetworkResponse) GetDiscoverStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool)` + +GetDiscoverStatusOk returns a tuple with the DiscoverStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverStatus + +`func (o *SslNetworkResponse) SetDiscoverStatus(v CSSCMSCoreEnumsSslNetworkJobStatus)` + +SetDiscoverStatus sets DiscoverStatus field to given value. + +### HasDiscoverStatus + +`func (o *SslNetworkResponse) HasDiscoverStatus() bool` + +HasDiscoverStatus returns a boolean if a field has been set. + +### GetMonitorStatus + +`func (o *SslNetworkResponse) GetMonitorStatus() CSSCMSCoreEnumsSslNetworkJobStatus` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *SslNetworkResponse) GetMonitorStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *SslNetworkResponse) SetMonitorStatus(v CSSCMSCoreEnumsSslNetworkJobStatus)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *SslNetworkResponse) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetDiscoverLastScanned + +`func (o *SslNetworkResponse) GetDiscoverLastScanned() time.Time` + +GetDiscoverLastScanned returns the DiscoverLastScanned field if non-nil, zero value otherwise. + +### GetDiscoverLastScannedOk + +`func (o *SslNetworkResponse) GetDiscoverLastScannedOk() (*time.Time, bool)` + +GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverLastScanned + +`func (o *SslNetworkResponse) SetDiscoverLastScanned(v time.Time)` + +SetDiscoverLastScanned sets DiscoverLastScanned field to given value. + +### HasDiscoverLastScanned + +`func (o *SslNetworkResponse) HasDiscoverLastScanned() bool` + +HasDiscoverLastScanned returns a boolean if a field has been set. + +### SetDiscoverLastScannedNil + +`func (o *SslNetworkResponse) SetDiscoverLastScannedNil(b bool)` + + SetDiscoverLastScannedNil sets the value for DiscoverLastScanned to be an explicit nil + +### UnsetDiscoverLastScanned +`func (o *SslNetworkResponse) UnsetDiscoverLastScanned()` + +UnsetDiscoverLastScanned ensures that no value is present for DiscoverLastScanned, not even an explicit nil +### GetMonitorLastScanned + +`func (o *SslNetworkResponse) GetMonitorLastScanned() time.Time` + +GetMonitorLastScanned returns the MonitorLastScanned field if non-nil, zero value otherwise. + +### GetMonitorLastScannedOk + +`func (o *SslNetworkResponse) GetMonitorLastScannedOk() (*time.Time, bool)` + +GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorLastScanned + +`func (o *SslNetworkResponse) SetMonitorLastScanned(v time.Time)` + +SetMonitorLastScanned sets MonitorLastScanned field to given value. + +### HasMonitorLastScanned + +`func (o *SslNetworkResponse) HasMonitorLastScanned() bool` + +HasMonitorLastScanned returns a boolean if a field has been set. + +### SetMonitorLastScannedNil + +`func (o *SslNetworkResponse) SetMonitorLastScannedNil(b bool)` + + SetMonitorLastScannedNil sets the value for MonitorLastScanned to be an explicit nil + +### UnsetMonitorLastScanned +`func (o *SslNetworkResponse) UnsetMonitorLastScanned()` + +UnsetMonitorLastScanned ensures that no value is present for MonitorLastScanned, not even an explicit nil +### GetSslAlertRecipients + +`func (o *SslNetworkResponse) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *SslNetworkResponse) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *SslNetworkResponse) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *SslNetworkResponse) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### SetSslAlertRecipientsNil + +`func (o *SslNetworkResponse) SetSslAlertRecipientsNil(b bool)` + + SetSslAlertRecipientsNil sets the value for SslAlertRecipients to be an explicit nil + +### UnsetSslAlertRecipients +`func (o *SslNetworkResponse) UnsetSslAlertRecipients()` + +UnsetSslAlertRecipients ensures that no value is present for SslAlertRecipients, not even an explicit nil +### GetGetRobots + +`func (o *SslNetworkResponse) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *SslNetworkResponse) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *SslNetworkResponse) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *SslNetworkResponse) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *SslNetworkResponse) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *SslNetworkResponse) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *SslNetworkResponse) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *SslNetworkResponse) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *SslNetworkResponse) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *SslNetworkResponse) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *SslNetworkResponse) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *SslNetworkResponse) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *SslNetworkResponse) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *SslNetworkResponse) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *SslNetworkResponse) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *SslNetworkResponse) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetDiscoverJobParts + +`func (o *SslNetworkResponse) GetDiscoverJobParts() int32` + +GetDiscoverJobParts returns the DiscoverJobParts field if non-nil, zero value otherwise. + +### GetDiscoverJobPartsOk + +`func (o *SslNetworkResponse) GetDiscoverJobPartsOk() (*int32, bool)` + +GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverJobParts + +`func (o *SslNetworkResponse) SetDiscoverJobParts(v int32)` + +SetDiscoverJobParts sets DiscoverJobParts field to given value. + +### HasDiscoverJobParts + +`func (o *SslNetworkResponse) HasDiscoverJobParts() bool` + +HasDiscoverJobParts returns a boolean if a field has been set. + +### GetMonitorJobParts + +`func (o *SslNetworkResponse) GetMonitorJobParts() int32` + +GetMonitorJobParts returns the MonitorJobParts field if non-nil, zero value otherwise. + +### GetMonitorJobPartsOk + +`func (o *SslNetworkResponse) GetMonitorJobPartsOk() (*int32, bool)` + +GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorJobParts + +`func (o *SslNetworkResponse) SetMonitorJobParts(v int32)` + +SetMonitorJobParts sets MonitorJobParts field to given value. + +### HasMonitorJobParts + +`func (o *SslNetworkResponse) HasMonitorJobParts() bool` + +HasMonitorJobParts returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *SslNetworkResponse) GetQuietHours() []SslQuietHourResponse` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *SslNetworkResponse) GetQuietHoursOk() (*[]SslQuietHourResponse, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *SslNetworkResponse) SetQuietHours(v []SslQuietHourResponse)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *SslNetworkResponse) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + +### SetQuietHoursNil + +`func (o *SslNetworkResponse) SetQuietHoursNil(b bool)` + + SetQuietHoursNil sets the value for QuietHours to be an explicit nil + +### UnsetQuietHours +`func (o *SslNetworkResponse) UnsetQuietHours()` + +UnsetQuietHours ensures that no value is present for QuietHours, not even an explicit nil +### GetBlackoutStart + +`func (o *SslNetworkResponse) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutStart returns the BlackoutStart field if non-nil, zero value otherwise. + +### GetBlackoutStartOk + +`func (o *SslNetworkResponse) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutStartOk returns a tuple with the BlackoutStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutStart + +`func (o *SslNetworkResponse) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutStart sets BlackoutStart field to given value. + +### HasBlackoutStart + +`func (o *SslNetworkResponse) HasBlackoutStart() bool` + +HasBlackoutStart returns a boolean if a field has been set. + +### GetBlackoutEnd + +`func (o *SslNetworkResponse) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutEnd returns the BlackoutEnd field if non-nil, zero value otherwise. + +### GetBlackoutEndOk + +`func (o *SslNetworkResponse) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutEndOk returns a tuple with the BlackoutEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutEnd + +`func (o *SslNetworkResponse) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutEnd sets BlackoutEnd field to given value. + +### HasBlackoutEnd + +`func (o *SslNetworkResponse) HasBlackoutEnd() bool` + +HasBlackoutEnd returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SslQuietHourRequest.md b/v24/api/keyfactor/v1/docs/SslQuietHourRequest.md new file mode 100644 index 0000000..3125cc6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslQuietHourRequest.md @@ -0,0 +1,134 @@ +# SslQuietHourRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDay** | Pointer to [**SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndDay** | Pointer to [**SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSslQuietHourRequest + +`func NewSslQuietHourRequest() *SslQuietHourRequest` + +NewSslQuietHourRequest instantiates a new SslQuietHourRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslQuietHourRequestWithDefaults + +`func NewSslQuietHourRequestWithDefaults() *SslQuietHourRequest` + +NewSslQuietHourRequestWithDefaults instantiates a new SslQuietHourRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDay + +`func (o *SslQuietHourRequest) GetStartDay() SystemDayOfWeek` + +GetStartDay returns the StartDay field if non-nil, zero value otherwise. + +### GetStartDayOk + +`func (o *SslQuietHourRequest) GetStartDayOk() (*SystemDayOfWeek, bool)` + +GetStartDayOk returns a tuple with the StartDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDay + +`func (o *SslQuietHourRequest) SetStartDay(v SystemDayOfWeek)` + +SetStartDay sets StartDay field to given value. + +### HasStartDay + +`func (o *SslQuietHourRequest) HasStartDay() bool` + +HasStartDay returns a boolean if a field has been set. + +### GetStartTime + +`func (o *SslQuietHourRequest) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *SslQuietHourRequest) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *SslQuietHourRequest) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *SslQuietHourRequest) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndDay + +`func (o *SslQuietHourRequest) GetEndDay() SystemDayOfWeek` + +GetEndDay returns the EndDay field if non-nil, zero value otherwise. + +### GetEndDayOk + +`func (o *SslQuietHourRequest) GetEndDayOk() (*SystemDayOfWeek, bool)` + +GetEndDayOk returns a tuple with the EndDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDay + +`func (o *SslQuietHourRequest) SetEndDay(v SystemDayOfWeek)` + +SetEndDay sets EndDay field to given value. + +### HasEndDay + +`func (o *SslQuietHourRequest) HasEndDay() bool` + +HasEndDay returns a boolean if a field has been set. + +### GetEndTime + +`func (o *SslQuietHourRequest) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *SslQuietHourRequest) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *SslQuietHourRequest) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *SslQuietHourRequest) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SslQuietHourResponse.md b/v24/api/keyfactor/v1/docs/SslQuietHourResponse.md new file mode 100644 index 0000000..34ca758 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslQuietHourResponse.md @@ -0,0 +1,134 @@ +# SslQuietHourResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDay** | Pointer to [**SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndDay** | Pointer to [**SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSslQuietHourResponse + +`func NewSslQuietHourResponse() *SslQuietHourResponse` + +NewSslQuietHourResponse instantiates a new SslQuietHourResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslQuietHourResponseWithDefaults + +`func NewSslQuietHourResponseWithDefaults() *SslQuietHourResponse` + +NewSslQuietHourResponseWithDefaults instantiates a new SslQuietHourResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDay + +`func (o *SslQuietHourResponse) GetStartDay() SystemDayOfWeek` + +GetStartDay returns the StartDay field if non-nil, zero value otherwise. + +### GetStartDayOk + +`func (o *SslQuietHourResponse) GetStartDayOk() (*SystemDayOfWeek, bool)` + +GetStartDayOk returns a tuple with the StartDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDay + +`func (o *SslQuietHourResponse) SetStartDay(v SystemDayOfWeek)` + +SetStartDay sets StartDay field to given value. + +### HasStartDay + +`func (o *SslQuietHourResponse) HasStartDay() bool` + +HasStartDay returns a boolean if a field has been set. + +### GetStartTime + +`func (o *SslQuietHourResponse) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *SslQuietHourResponse) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *SslQuietHourResponse) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *SslQuietHourResponse) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndDay + +`func (o *SslQuietHourResponse) GetEndDay() SystemDayOfWeek` + +GetEndDay returns the EndDay field if non-nil, zero value otherwise. + +### GetEndDayOk + +`func (o *SslQuietHourResponse) GetEndDayOk() (*SystemDayOfWeek, bool)` + +GetEndDayOk returns a tuple with the EndDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDay + +`func (o *SslQuietHourResponse) SetEndDay(v SystemDayOfWeek)` + +SetEndDay sets EndDay field to given value. + +### HasEndDay + +`func (o *SslQuietHourResponse) HasEndDay() bool` + +HasEndDay returns a boolean if a field has been set. + +### GetEndTime + +`func (o *SslQuietHourResponse) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *SslQuietHourResponse) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *SslQuietHourResponse) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *SslQuietHourResponse) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/SslUpdateNetworkRequest.md b/v24/api/keyfactor/v1/docs/SslUpdateNetworkRequest.md new file mode 100644 index 0000000..2e3e8e5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SslUpdateNetworkRequest.md @@ -0,0 +1,446 @@ +# SslUpdateNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | **string** | | +**Name** | **string** | | +**AgentPoolName** | **string** | | +**Description** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**QuietHours** | Pointer to [**[]SslQuietHourRequest**](SslQuietHourRequest.md) | | [optional] +**BlackoutStart** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**BlackoutEnd** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] + +## Methods + +### NewSslUpdateNetworkRequest + +`func NewSslUpdateNetworkRequest(networkId string, name string, agentPoolName string, description string, ) *SslUpdateNetworkRequest` + +NewSslUpdateNetworkRequest instantiates a new SslUpdateNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslUpdateNetworkRequestWithDefaults + +`func NewSslUpdateNetworkRequestWithDefaults() *SslUpdateNetworkRequest` + +NewSslUpdateNetworkRequestWithDefaults instantiates a new SslUpdateNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *SslUpdateNetworkRequest) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *SslUpdateNetworkRequest) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *SslUpdateNetworkRequest) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + + +### GetName + +`func (o *SslUpdateNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SslUpdateNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SslUpdateNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgentPoolName + +`func (o *SslUpdateNetworkRequest) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *SslUpdateNetworkRequest) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *SslUpdateNetworkRequest) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + + +### GetDescription + +`func (o *SslUpdateNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SslUpdateNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SslUpdateNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *SslUpdateNetworkRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SslUpdateNetworkRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SslUpdateNetworkRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SslUpdateNetworkRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *SslUpdateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *SslUpdateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *SslUpdateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *SslUpdateNetworkRequest) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *SslUpdateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *SslUpdateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *SslUpdateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *SslUpdateNetworkRequest) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *SslUpdateNetworkRequest) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *SslUpdateNetworkRequest) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *SslUpdateNetworkRequest) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *SslUpdateNetworkRequest) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### SetSslAlertRecipientsNil + +`func (o *SslUpdateNetworkRequest) SetSslAlertRecipientsNil(b bool)` + + SetSslAlertRecipientsNil sets the value for SslAlertRecipients to be an explicit nil + +### UnsetSslAlertRecipients +`func (o *SslUpdateNetworkRequest) UnsetSslAlertRecipients()` + +UnsetSslAlertRecipients ensures that no value is present for SslAlertRecipients, not even an explicit nil +### GetAutoMonitor + +`func (o *SslUpdateNetworkRequest) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *SslUpdateNetworkRequest) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *SslUpdateNetworkRequest) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *SslUpdateNetworkRequest) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *SslUpdateNetworkRequest) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *SslUpdateNetworkRequest) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *SslUpdateNetworkRequest) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *SslUpdateNetworkRequest) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *SslUpdateNetworkRequest) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *SslUpdateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *SslUpdateNetworkRequest) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *SslUpdateNetworkRequest) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *SslUpdateNetworkRequest) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *SslUpdateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *SslUpdateNetworkRequest) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *SslUpdateNetworkRequest) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *SslUpdateNetworkRequest) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *SslUpdateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *SslUpdateNetworkRequest) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *SslUpdateNetworkRequest) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *SslUpdateNetworkRequest) GetQuietHours() []SslQuietHourRequest` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *SslUpdateNetworkRequest) GetQuietHoursOk() (*[]SslQuietHourRequest, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *SslUpdateNetworkRequest) SetQuietHours(v []SslQuietHourRequest)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *SslUpdateNetworkRequest) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + +### SetQuietHoursNil + +`func (o *SslUpdateNetworkRequest) SetQuietHoursNil(b bool)` + + SetQuietHoursNil sets the value for QuietHours to be an explicit nil + +### UnsetQuietHours +`func (o *SslUpdateNetworkRequest) UnsetQuietHours()` + +UnsetQuietHours ensures that no value is present for QuietHours, not even an explicit nil +### GetBlackoutStart + +`func (o *SslUpdateNetworkRequest) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutStart returns the BlackoutStart field if non-nil, zero value otherwise. + +### GetBlackoutStartOk + +`func (o *SslUpdateNetworkRequest) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutStartOk returns a tuple with the BlackoutStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutStart + +`func (o *SslUpdateNetworkRequest) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutStart sets BlackoutStart field to given value. + +### HasBlackoutStart + +`func (o *SslUpdateNetworkRequest) HasBlackoutStart() bool` + +HasBlackoutStart returns a boolean if a field has been set. + +### GetBlackoutEnd + +`func (o *SslUpdateNetworkRequest) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetBlackoutEnd returns the BlackoutEnd field if non-nil, zero value otherwise. + +### GetBlackoutEndOk + +`func (o *SslUpdateNetworkRequest) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetBlackoutEndOk returns a tuple with the BlackoutEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlackoutEnd + +`func (o *SslUpdateNetworkRequest) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetBlackoutEnd sets BlackoutEnd field to given value. + +### HasBlackoutEnd + +`func (o *SslUpdateNetworkRequest) HasBlackoutEnd() bool` + +HasBlackoutEnd returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/StatusApi.md b/v24/api/keyfactor/v1/docs/StatusApi.md new file mode 100644 index 0000000..aca9829 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/StatusApi.md @@ -0,0 +1,140 @@ +# \StatusApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetStatusEndpoints**](StatusApi.md#GetStatusEndpoints) | **GET** /Status/Endpoints | Returns all endpoints to which the requesting identity has access +[**GetStatusHealthCheck**](StatusApi.md#GetStatusHealthCheck) | **GET** /Status/HealthCheck | Returns the current status of the API's ability to connect to the database. + + + +## GetStatusEndpoints + +> []string NewGetStatusEndpointsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all endpoints to which the requesting identity has access + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StatusApi.NewGetStatusEndpointsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StatusApi.GetStatusEndpoints``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusEndpoints`: []string + fmt.Fprintf(os.Stdout, "Response from `StatusApi.GetStatusEndpoints`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStatusEndpointsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetStatusHealthCheck + +> NewGetStatusHealthCheckRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the current status of the API's ability to connect to the database. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StatusApi.NewGetStatusHealthCheckRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StatusApi.GetStatusHealthCheck``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetStatusHealthCheckRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/SystemDayOfWeek.md b/v24/api/keyfactor/v1/docs/SystemDayOfWeek.md new file mode 100644 index 0000000..f13e918 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/SystemDayOfWeek.md @@ -0,0 +1,23 @@ +# SystemDayOfWeek + +## Enum + + +* `Sunday` (value: `0`) + +* `Monday` (value: `1`) + +* `Tuesday` (value: `2`) + +* `Wednesday` (value: `3`) + +* `Thursday` (value: `4`) + +* `Friday` (value: `5`) + +* `Saturday` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplateApi.md b/v24/api/keyfactor/v1/docs/TemplateApi.md new file mode 100644 index 0000000..2f7676e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplateApi.md @@ -0,0 +1,497 @@ +# \TemplateApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateTemplatesImport**](TemplateApi.md#CreateTemplatesImport) | **POST** /Templates/Import | Imports templates from the provided configuration tenant +[**GetTemplates**](TemplateApi.md#GetTemplates) | **GET** /Templates | Returns all certificate templates according to the provided filter and output parameters +[**GetTemplatesById**](TemplateApi.md#GetTemplatesById) | **GET** /Templates/{id} | Returns the certificate template associated with the provided id +[**GetTemplatesSettings**](TemplateApi.md#GetTemplatesSettings) | **GET** /Templates/Settings | Gets the global template settings. +[**GetTemplatesSubjectParts**](TemplateApi.md#GetTemplatesSubjectParts) | **GET** /Templates/SubjectParts | Returns the valid subject parts possible for regular expressions. +[**UpdateTemplates**](TemplateApi.md#UpdateTemplates) | **PUT** /Templates | Updates a certificate template according to the provided properties +[**UpdateTemplatesSettings**](TemplateApi.md#UpdateTemplatesSettings) | **PUT** /Templates/Settings | Replaces the existing global template settings. + + + +## CreateTemplatesImport + +> NewCreateTemplatesImportRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ConfigurationTenantConfigurationTenantRequest(configurationTenantConfigurationTenantRequest).Execute() + +Imports templates from the provided configuration tenant + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + configurationTenantConfigurationTenantRequest := *openapiclient.NewConfigurationTenantConfigurationTenantRequest() // ConfigurationTenantConfigurationTenantRequest | Configuration tenant to import from (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewCreateTemplatesImportRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).ConfigurationTenantConfigurationTenantRequest(configurationTenantConfigurationTenantRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.CreateTemplatesImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateTemplatesImportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **configurationTenantConfigurationTenantRequest** | [**ConfigurationTenantConfigurationTenantRequest**](ConfigurationTenantConfigurationTenantRequest.md) | Configuration tenant to import from | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTemplates + +> []TemplatesTemplateCollectionRetrievalResponse NewGetTemplatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all certificate templates according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewGetTemplatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.GetTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTemplates`: []TemplatesTemplateCollectionRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.GetTemplates`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTemplatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]TemplatesTemplateCollectionRetrievalResponse**](TemplatesTemplateCollectionRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTemplatesById + +> TemplatesTemplateRetrievalResponse NewGetTemplatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate template associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate template + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewGetTemplatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.GetTemplatesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTemplatesById`: TemplatesTemplateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.GetTemplatesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate template | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTemplatesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**TemplatesTemplateRetrievalResponse**](TemplatesTemplateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTemplatesSettings + +> TemplatesGlobalGlobalTemplateSettingsResponse NewGetTemplatesSettingsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the global template settings. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewGetTemplatesSettingsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.GetTemplatesSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTemplatesSettings`: TemplatesGlobalGlobalTemplateSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.GetTemplatesSettings`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTemplatesSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**TemplatesGlobalGlobalTemplateSettingsResponse**](TemplatesGlobalGlobalTemplateSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTemplatesSubjectParts + +> []EnrollmentPatternsValidSubjectPartResponse NewGetTemplatesSubjectPartsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the valid subject parts possible for regular expressions. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewGetTemplatesSubjectPartsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.GetTemplatesSubjectParts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTemplatesSubjectParts`: []EnrollmentPatternsValidSubjectPartResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.GetTemplatesSubjectParts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTemplatesSubjectPartsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]EnrollmentPatternsValidSubjectPartResponse**](EnrollmentPatternsValidSubjectPartResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateTemplates + +> TemplatesTemplateRetrievalResponse NewUpdateTemplatesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).TemplatesTemplateUpdateRequest(templatesTemplateUpdateRequest).Execute() + +Updates a certificate template according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + templatesTemplateUpdateRequest := *openapiclient.NewTemplatesTemplateUpdateRequest() // TemplatesTemplateUpdateRequest | Properties of the certificate template to be updated (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewUpdateTemplatesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).TemplatesTemplateUpdateRequest(templatesTemplateUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.UpdateTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTemplates`: TemplatesTemplateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.UpdateTemplates`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateTemplatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **templatesTemplateUpdateRequest** | [**TemplatesTemplateUpdateRequest**](TemplatesTemplateUpdateRequest.md) | Properties of the certificate template to be updated | + +### Return type + +[**TemplatesTemplateRetrievalResponse**](TemplatesTemplateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateTemplatesSettings + +> TemplatesGlobalGlobalTemplateSettingsResponse NewUpdateTemplatesSettingsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).TemplatesGlobalGlobalTemplateSettingsRequest(templatesGlobalGlobalTemplateSettingsRequest).Execute() + +Replaces the existing global template settings. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + templatesGlobalGlobalTemplateSettingsRequest := *openapiclient.NewTemplatesGlobalGlobalTemplateSettingsRequest([]openapiclient.TemplatesGlobalGlobalTemplateRegexRequest{*openapiclient.NewTemplatesGlobalGlobalTemplateRegexRequest("SubjectPart_example")}, []openapiclient.TemplatesGlobalGlobalTemplateDefaultRequest{*openapiclient.NewTemplatesGlobalGlobalTemplateDefaultRequest("SubjectPart_example")}, *openapiclient.NewTemplatesGlobalGlobalTemplatePolicyRequest(false, false, false, openapiclient.CSS.CMS.Core.Enums.TemplateCertificateOwnerRole(0), *openapiclient.NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo())) // TemplatesGlobalGlobalTemplateSettingsRequest | The new global template settings. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.NewUpdateTemplatesSettingsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).TemplatesGlobalGlobalTemplateSettingsRequest(templatesGlobalGlobalTemplateSettingsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.UpdateTemplatesSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTemplatesSettings`: TemplatesGlobalGlobalTemplateSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.UpdateTemplatesSettings`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateTemplatesSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **templatesGlobalGlobalTemplateSettingsRequest** | [**TemplatesGlobalGlobalTemplateSettingsRequest**](TemplatesGlobalGlobalTemplateSettingsRequest.md) | The new global template settings. | + +### Return type + +[**TemplatesGlobalGlobalTemplateSettingsResponse**](TemplatesGlobalGlobalTemplateSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentDefaultResponse.md b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentDefaultResponse.md new file mode 100644 index 0000000..0cf3d6b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentDefaultResponse.md @@ -0,0 +1,102 @@ +# TemplatesEnrollmentTemplateEnrollmentDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | The subject part to apply the default to. | [optional] +**Value** | Pointer to **NullableString** | The value to apply by default. | [optional] + +## Methods + +### NewTemplatesEnrollmentTemplateEnrollmentDefaultResponse + +`func NewTemplatesEnrollmentTemplateEnrollmentDefaultResponse() *TemplatesEnrollmentTemplateEnrollmentDefaultResponse` + +NewTemplatesEnrollmentTemplateEnrollmentDefaultResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentDefaultResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesEnrollmentTemplateEnrollmentDefaultResponseWithDefaults + +`func NewTemplatesEnrollmentTemplateEnrollmentDefaultResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentDefaultResponse` + +NewTemplatesEnrollmentTemplateEnrollmentDefaultResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentDefaultResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetValue + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentPolicyResponse.md b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentPolicyResponse.md new file mode 100644 index 0000000..b970e27 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentPolicyResponse.md @@ -0,0 +1,232 @@ +# TemplatesEnrollmentTemplateEnrollmentPolicyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowKeyReuse** | Pointer to **bool** | Whether or not keys can be reused. | [optional] +**AllowWildcards** | Pointer to **bool** | Whether or not wildcards can be used. | [optional] +**RFCEnforcement** | Pointer to **bool** | Whether or not RFC 2818 compliance should be enforced. | [optional] +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] +**DefaultCertificateOwnerRoleId** | Pointer to **NullableInt32** | The id of the security role that should be set as the owner of the cert during import of new certificates | [optional] +**DefaultCertificateOwnerRoleName** | Pointer to **NullableString** | | [optional] +**CertificateOwnerRole** | Pointer to [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | [optional] + +## Methods + +### NewTemplatesEnrollmentTemplateEnrollmentPolicyResponse + +`func NewTemplatesEnrollmentTemplateEnrollmentPolicyResponse() *TemplatesEnrollmentTemplateEnrollmentPolicyResponse` + +NewTemplatesEnrollmentTemplateEnrollmentPolicyResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentPolicyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesEnrollmentTemplateEnrollmentPolicyResponseWithDefaults + +`func NewTemplatesEnrollmentTemplateEnrollmentPolicyResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentPolicyResponse` + +NewTemplatesEnrollmentTemplateEnrollmentPolicyResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentPolicyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowKeyReuse + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetKeyInfo + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + +### GetDefaultCertificateOwnerRoleId + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleId() int32` + +GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleIdOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool)` + +GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleId + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleId(v int32)` + +SetDefaultCertificateOwnerRoleId sets DefaultCertificateOwnerRoleId field to given value. + +### HasDefaultCertificateOwnerRoleId + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasDefaultCertificateOwnerRoleId() bool` + +HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleIdNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleIdNil(b bool)` + + SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleId +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) UnsetDefaultCertificateOwnerRoleId()` + +UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +### GetDefaultCertificateOwnerRoleName + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleName() string` + +GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleNameOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleNameOk() (*string, bool)` + +GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleName + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleName(v string)` + +SetDefaultCertificateOwnerRoleName sets DefaultCertificateOwnerRoleName field to given value. + +### HasDefaultCertificateOwnerRoleName + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasDefaultCertificateOwnerRoleName() bool` + +HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleNameNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleNameNil(b bool)` + + SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleName +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) UnsetDefaultCertificateOwnerRoleName()` + +UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +### GetCertificateOwnerRole + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + +### HasCertificateOwnerRole + +`func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasCertificateOwnerRole() bool` + +HasCertificateOwnerRole returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentRegexResponse.md b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentRegexResponse.md new file mode 100644 index 0000000..a6e3783 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentRegexResponse.md @@ -0,0 +1,164 @@ +# TemplatesEnrollmentTemplateEnrollmentRegexResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | The subject part to apply the regular expression to. | [optional] +**Regex** | Pointer to **NullableString** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **NullableString** | The error message to show when the regex validation fails. | [optional] +**CaseSensitive** | Pointer to **bool** | WHether or not the regex is case-sensitive. | [optional] + +## Methods + +### NewTemplatesEnrollmentTemplateEnrollmentRegexResponse + +`func NewTemplatesEnrollmentTemplateEnrollmentRegexResponse() *TemplatesEnrollmentTemplateEnrollmentRegexResponse` + +NewTemplatesEnrollmentTemplateEnrollmentRegexResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentRegexResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesEnrollmentTemplateEnrollmentRegexResponseWithDefaults + +`func NewTemplatesEnrollmentTemplateEnrollmentRegexResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentRegexResponse` + +NewTemplatesEnrollmentTemplateEnrollmentRegexResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentRegexResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetRegex + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### SetRegexNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetRegexNil(b bool)` + + SetRegexNil sets the value for Regex to be an explicit nil + +### UnsetRegex +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetRegex()` + +UnsetRegex ensures that no value is present for Regex, not even an explicit nil +### GetError + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetCaseSensitive + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentSettingsResponse.md b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentSettingsResponse.md new file mode 100644 index 0000000..6642cdb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesEnrollmentTemplateEnrollmentSettingsResponse.md @@ -0,0 +1,128 @@ +# TemplatesEnrollmentTemplateEnrollmentSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | Pointer to [**[]TemplatesEnrollmentTemplateEnrollmentRegexResponse**](TemplatesEnrollmentTemplateEnrollmentRegexResponse.md) | The regular expressions to use for validation during enrollment. | [optional] +**TemplateDefaults** | Pointer to [**[]TemplatesEnrollmentTemplateEnrollmentDefaultResponse**](TemplatesEnrollmentTemplateEnrollmentDefaultResponse.md) | The default values to use during enrollment. | [optional] +**TemplatePolicy** | Pointer to [**TemplatesEnrollmentTemplateEnrollmentPolicyResponse**](TemplatesEnrollmentTemplateEnrollmentPolicyResponse.md) | | [optional] + +## Methods + +### NewTemplatesEnrollmentTemplateEnrollmentSettingsResponse + +`func NewTemplatesEnrollmentTemplateEnrollmentSettingsResponse() *TemplatesEnrollmentTemplateEnrollmentSettingsResponse` + +NewTemplatesEnrollmentTemplateEnrollmentSettingsResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentSettingsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesEnrollmentTemplateEnrollmentSettingsResponseWithDefaults + +`func NewTemplatesEnrollmentTemplateEnrollmentSettingsResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentSettingsResponse` + +NewTemplatesEnrollmentTemplateEnrollmentSettingsResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentSettingsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateRegexes() []TemplatesEnrollmentTemplateEnrollmentRegexResponse` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateRegexesOk() (*[]TemplatesEnrollmentTemplateEnrollmentRegexResponse, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateRegexes(v []TemplatesEnrollmentTemplateEnrollmentRegexResponse)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### SetTemplateRegexesNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateRegexesNil(b bool)` + + SetTemplateRegexesNil sets the value for TemplateRegexes to be an explicit nil + +### UnsetTemplateRegexes +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) UnsetTemplateRegexes()` + +UnsetTemplateRegexes ensures that no value is present for TemplateRegexes, not even an explicit nil +### GetTemplateDefaults + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateDefaults() []TemplatesEnrollmentTemplateEnrollmentDefaultResponse` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateDefaultsOk() (*[]TemplatesEnrollmentTemplateEnrollmentDefaultResponse, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateDefaults(v []TemplatesEnrollmentTemplateEnrollmentDefaultResponse)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### SetTemplateDefaultsNil + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateDefaultsNil(b bool)` + + SetTemplateDefaultsNil sets the value for TemplateDefaults to be an explicit nil + +### UnsetTemplateDefaults +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) UnsetTemplateDefaults()` + +UnsetTemplateDefaults ensures that no value is present for TemplateDefaults, not even an explicit nil +### GetTemplatePolicy + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplatePolicy() TemplatesEnrollmentTemplateEnrollmentPolicyResponse` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplatePolicyOk() (*TemplatesEnrollmentTemplateEnrollmentPolicyResponse, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplatePolicy(v TemplatesEnrollmentTemplateEnrollmentPolicyResponse)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesExtendedKeyUsageResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesExtendedKeyUsageResponseModel.md new file mode 100644 index 0000000..555ecc1 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesExtendedKeyUsageResponseModel.md @@ -0,0 +1,128 @@ +# TemplatesExtendedKeyUsageResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTemplatesExtendedKeyUsageResponseModel + +`func NewTemplatesExtendedKeyUsageResponseModel() *TemplatesExtendedKeyUsageResponseModel` + +NewTemplatesExtendedKeyUsageResponseModel instantiates a new TemplatesExtendedKeyUsageResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesExtendedKeyUsageResponseModelWithDefaults + +`func NewTemplatesExtendedKeyUsageResponseModelWithDefaults() *TemplatesExtendedKeyUsageResponseModel` + +NewTemplatesExtendedKeyUsageResponseModelWithDefaults instantiates a new TemplatesExtendedKeyUsageResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesExtendedKeyUsageResponseModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesExtendedKeyUsageResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *TemplatesExtendedKeyUsageResponseModel) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *TemplatesExtendedKeyUsageResponseModel) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### SetOidNil + +`func (o *TemplatesExtendedKeyUsageResponseModel) SetOidNil(b bool)` + + SetOidNil sets the value for Oid to be an explicit nil + +### UnsetOid +`func (o *TemplatesExtendedKeyUsageResponseModel) UnsetOid()` + +UnsetOid ensures that no value is present for Oid, not even an explicit nil +### GetDisplayName + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *TemplatesExtendedKeyUsageResponseModel) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *TemplatesExtendedKeyUsageResponseModel) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *TemplatesExtendedKeyUsageResponseModel) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *TemplatesExtendedKeyUsageResponseModel) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *TemplatesExtendedKeyUsageResponseModel) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultRequest.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultRequest.md new file mode 100644 index 0000000..00ddef9 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultRequest.md @@ -0,0 +1,87 @@ +# TemplatesGlobalGlobalTemplateDefaultRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | **string** | The subject part to apply the default to. | +**Value** | Pointer to **NullableString** | The value to apply by default. | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplateDefaultRequest + +`func NewTemplatesGlobalGlobalTemplateDefaultRequest(subjectPart string, ) *TemplatesGlobalGlobalTemplateDefaultRequest` + +NewTemplatesGlobalGlobalTemplateDefaultRequest instantiates a new TemplatesGlobalGlobalTemplateDefaultRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateDefaultRequestWithDefaults + +`func NewTemplatesGlobalGlobalTemplateDefaultRequestWithDefaults() *TemplatesGlobalGlobalTemplateDefaultRequest` + +NewTemplatesGlobalGlobalTemplateDefaultRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateDefaultRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + + +### GetValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *TemplatesGlobalGlobalTemplateDefaultRequest) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultResponse.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultResponse.md new file mode 100644 index 0000000..7fade05 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateDefaultResponse.md @@ -0,0 +1,102 @@ +# TemplatesGlobalGlobalTemplateDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | The subject part to apply the default to. | [optional] +**Value** | Pointer to **NullableString** | The value to apply by default. | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplateDefaultResponse + +`func NewTemplatesGlobalGlobalTemplateDefaultResponse() *TemplatesGlobalGlobalTemplateDefaultResponse` + +NewTemplatesGlobalGlobalTemplateDefaultResponse instantiates a new TemplatesGlobalGlobalTemplateDefaultResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateDefaultResponseWithDefaults + +`func NewTemplatesGlobalGlobalTemplateDefaultResponseWithDefaults() *TemplatesGlobalGlobalTemplateDefaultResponse` + +NewTemplatesGlobalGlobalTemplateDefaultResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateDefaultResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *TemplatesGlobalGlobalTemplateDefaultResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyRequest.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyRequest.md new file mode 100644 index 0000000..98bc9c5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyRequest.md @@ -0,0 +1,233 @@ +# TemplatesGlobalGlobalTemplatePolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | The ID of the global template policy. | [optional] +**AllowKeyReuse** | **bool** | Whether or not keys can be reused. | +**AllowWildcards** | **bool** | Whether or not wildcards can be used. | +**RFCEnforcement** | **bool** | Whether or not RFC 2818 compliance should be enforced. | +**CertificateOwnerRole** | [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | +**DefaultCertificateOwnerRoleId** | Pointer to **NullableInt32** | The id of the security role that should be set as the owner of the cert during import of new certificates | [optional] +**DefaultCertificateOwnerRoleName** | Pointer to **NullableString** | | [optional] +**KeyInfo** | [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | + +## Methods + +### NewTemplatesGlobalGlobalTemplatePolicyRequest + +`func NewTemplatesGlobalGlobalTemplatePolicyRequest(allowKeyReuse bool, allowWildcards bool, rFCEnforcement bool, certificateOwnerRole CSSCMSCoreEnumsTemplateCertificateOwnerRole, keyInfo CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, ) *TemplatesGlobalGlobalTemplatePolicyRequest` + +NewTemplatesGlobalGlobalTemplatePolicyRequest instantiates a new TemplatesGlobalGlobalTemplatePolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplatePolicyRequestWithDefaults + +`func NewTemplatesGlobalGlobalTemplatePolicyRequestWithDefaults() *TemplatesGlobalGlobalTemplatePolicyRequest` + +NewTemplatesGlobalGlobalTemplatePolicyRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplatePolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + + +### GetAllowWildcards + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + + +### GetRFCEnforcement + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + + +### GetCertificateOwnerRole + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + + +### GetDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleId() int32` + +GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleIdOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool)` + +GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleId(v int32)` + +SetDefaultCertificateOwnerRoleId sets DefaultCertificateOwnerRoleId field to given value. + +### HasDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasDefaultCertificateOwnerRoleId() bool` + +HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleIdNil + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleIdNil(b bool)` + + SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleId +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) UnsetDefaultCertificateOwnerRoleId()` + +UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +### GetDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleName() string` + +GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleNameOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleNameOk() (*string, bool)` + +GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleName(v string)` + +SetDefaultCertificateOwnerRoleName sets DefaultCertificateOwnerRoleName field to given value. + +### HasDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasDefaultCertificateOwnerRoleName() bool` + +HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleNameNil + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleNameNil(b bool)` + + SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleName +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) UnsetDefaultCertificateOwnerRoleName()` + +UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +### GetKeyInfo + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyResponse.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyResponse.md new file mode 100644 index 0000000..74a7116 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplatePolicyResponse.md @@ -0,0 +1,232 @@ +# TemplatesGlobalGlobalTemplatePolicyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowKeyReuse** | Pointer to **bool** | Whether or not keys can be reused. | [optional] +**AllowWildcards** | Pointer to **bool** | Whether or not wildcards can be used. | [optional] +**RFCEnforcement** | Pointer to **bool** | Whether or not RFC 2818 compliance should be enforced. | [optional] +**CertificateOwnerRole** | Pointer to [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | [optional] +**DefaultCertificateOwnerRoleId** | Pointer to **NullableInt32** | The id of the security role that should be set as the owner of the cert during import of new certificates | [optional] +**DefaultCertificateOwnerRoleName** | Pointer to **NullableString** | | [optional] +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplatePolicyResponse + +`func NewTemplatesGlobalGlobalTemplatePolicyResponse() *TemplatesGlobalGlobalTemplatePolicyResponse` + +NewTemplatesGlobalGlobalTemplatePolicyResponse instantiates a new TemplatesGlobalGlobalTemplatePolicyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplatePolicyResponseWithDefaults + +`func NewTemplatesGlobalGlobalTemplatePolicyResponseWithDefaults() *TemplatesGlobalGlobalTemplatePolicyResponse` + +NewTemplatesGlobalGlobalTemplatePolicyResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplatePolicyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowKeyReuse + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetCertificateOwnerRole + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + +### HasCertificateOwnerRole + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasCertificateOwnerRole() bool` + +HasCertificateOwnerRole returns a boolean if a field has been set. + +### GetDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleId() int32` + +GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleIdOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool)` + +GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleId(v int32)` + +SetDefaultCertificateOwnerRoleId sets DefaultCertificateOwnerRoleId field to given value. + +### HasDefaultCertificateOwnerRoleId + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasDefaultCertificateOwnerRoleId() bool` + +HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleIdNil + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleIdNil(b bool)` + + SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleId +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) UnsetDefaultCertificateOwnerRoleId()` + +UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +### GetDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleName() string` + +GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleNameOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleNameOk() (*string, bool)` + +GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleName(v string)` + +SetDefaultCertificateOwnerRoleName sets DefaultCertificateOwnerRoleName field to given value. + +### HasDefaultCertificateOwnerRoleName + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasDefaultCertificateOwnerRoleName() bool` + +HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleNameNil + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleNameNil(b bool)` + + SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleName +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) UnsetDefaultCertificateOwnerRoleName()` + +UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +### GetKeyInfo + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexRequest.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexRequest.md new file mode 100644 index 0000000..e09f42e --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexRequest.md @@ -0,0 +1,149 @@ +# TemplatesGlobalGlobalTemplateRegexRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | **string** | The subject part to apply the regular expression to. | +**Regex** | Pointer to **NullableString** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **NullableString** | The error message to show when the regex validation fails. | [optional] +**CaseSensitive** | Pointer to **bool** | Whether or not the regex should be evaluated case-sensitively. | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplateRegexRequest + +`func NewTemplatesGlobalGlobalTemplateRegexRequest(subjectPart string, ) *TemplatesGlobalGlobalTemplateRegexRequest` + +NewTemplatesGlobalGlobalTemplateRegexRequest instantiates a new TemplatesGlobalGlobalTemplateRegexRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateRegexRequestWithDefaults + +`func NewTemplatesGlobalGlobalTemplateRegexRequestWithDefaults() *TemplatesGlobalGlobalTemplateRegexRequest` + +NewTemplatesGlobalGlobalTemplateRegexRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateRegexRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + + +### GetRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### SetRegexNil + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetRegexNil(b bool)` + + SetRegexNil sets the value for Regex to be an explicit nil + +### UnsetRegex +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) UnsetRegex()` + +UnsetRegex ensures that no value is present for Regex, not even an explicit nil +### GetError + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexResponse.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexResponse.md new file mode 100644 index 0000000..ae42744 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateRegexResponse.md @@ -0,0 +1,164 @@ +# TemplatesGlobalGlobalTemplateRegexResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | The subject part to apply the regular expression to. | [optional] +**Regex** | Pointer to **NullableString** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **NullableString** | The error message to show when the regex validation fails. | [optional] +**CaseSensitive** | Pointer to **bool** | Whether or not the regular expression should be evaluated case-sensitively. | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplateRegexResponse + +`func NewTemplatesGlobalGlobalTemplateRegexResponse() *TemplatesGlobalGlobalTemplateRegexResponse` + +NewTemplatesGlobalGlobalTemplateRegexResponse instantiates a new TemplatesGlobalGlobalTemplateRegexResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateRegexResponseWithDefaults + +`func NewTemplatesGlobalGlobalTemplateRegexResponseWithDefaults() *TemplatesGlobalGlobalTemplateRegexResponse` + +NewTemplatesGlobalGlobalTemplateRegexResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateRegexResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### SetRegexNil + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetRegexNil(b bool)` + + SetRegexNil sets the value for Regex to be an explicit nil + +### UnsetRegex +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetRegex()` + +UnsetRegex ensures that no value is present for Regex, not even an explicit nil +### GetError + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsRequest.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsRequest.md new file mode 100644 index 0000000..a89b13f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsRequest.md @@ -0,0 +1,93 @@ +# TemplatesGlobalGlobalTemplateSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | [**[]TemplatesGlobalGlobalTemplateRegexRequest**](TemplatesGlobalGlobalTemplateRegexRequest.md) | The regular expressions to use for validation during enrollment. | +**TemplateDefaults** | [**[]TemplatesGlobalGlobalTemplateDefaultRequest**](TemplatesGlobalGlobalTemplateDefaultRequest.md) | The default values to use during enrollment. | +**TemplatePolicy** | [**TemplatesGlobalGlobalTemplatePolicyRequest**](TemplatesGlobalGlobalTemplatePolicyRequest.md) | | + +## Methods + +### NewTemplatesGlobalGlobalTemplateSettingsRequest + +`func NewTemplatesGlobalGlobalTemplateSettingsRequest(templateRegexes []TemplatesGlobalGlobalTemplateRegexRequest, templateDefaults []TemplatesGlobalGlobalTemplateDefaultRequest, templatePolicy TemplatesGlobalGlobalTemplatePolicyRequest, ) *TemplatesGlobalGlobalTemplateSettingsRequest` + +NewTemplatesGlobalGlobalTemplateSettingsRequest instantiates a new TemplatesGlobalGlobalTemplateSettingsRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateSettingsRequestWithDefaults + +`func NewTemplatesGlobalGlobalTemplateSettingsRequestWithDefaults() *TemplatesGlobalGlobalTemplateSettingsRequest` + +NewTemplatesGlobalGlobalTemplateSettingsRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateSettingsRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateRegexes() []TemplatesGlobalGlobalTemplateRegexRequest` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateRegexesOk() (*[]TemplatesGlobalGlobalTemplateRegexRequest, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplateRegexes(v []TemplatesGlobalGlobalTemplateRegexRequest)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + + +### GetTemplateDefaults + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateDefaults() []TemplatesGlobalGlobalTemplateDefaultRequest` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateDefaultsOk() (*[]TemplatesGlobalGlobalTemplateDefaultRequest, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplateDefaults(v []TemplatesGlobalGlobalTemplateDefaultRequest)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + + +### GetTemplatePolicy + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplatePolicy() TemplatesGlobalGlobalTemplatePolicyRequest` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplatePolicyOk() (*TemplatesGlobalGlobalTemplatePolicyRequest, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplatePolicy(v TemplatesGlobalGlobalTemplatePolicyRequest)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsResponse.md b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsResponse.md new file mode 100644 index 0000000..d837a3d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesGlobalGlobalTemplateSettingsResponse.md @@ -0,0 +1,128 @@ +# TemplatesGlobalGlobalTemplateSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | Pointer to [**[]TemplatesGlobalGlobalTemplateRegexResponse**](TemplatesGlobalGlobalTemplateRegexResponse.md) | The regular expressions to use for validation during enrollment. | [optional] +**TemplateDefaults** | Pointer to [**[]TemplatesGlobalGlobalTemplateDefaultResponse**](TemplatesGlobalGlobalTemplateDefaultResponse.md) | The default values to use during enrollment. | [optional] +**TemplatePolicy** | Pointer to [**TemplatesGlobalGlobalTemplatePolicyResponse**](TemplatesGlobalGlobalTemplatePolicyResponse.md) | | [optional] + +## Methods + +### NewTemplatesGlobalGlobalTemplateSettingsResponse + +`func NewTemplatesGlobalGlobalTemplateSettingsResponse() *TemplatesGlobalGlobalTemplateSettingsResponse` + +NewTemplatesGlobalGlobalTemplateSettingsResponse instantiates a new TemplatesGlobalGlobalTemplateSettingsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesGlobalGlobalTemplateSettingsResponseWithDefaults + +`func NewTemplatesGlobalGlobalTemplateSettingsResponseWithDefaults() *TemplatesGlobalGlobalTemplateSettingsResponse` + +NewTemplatesGlobalGlobalTemplateSettingsResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateSettingsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateRegexes() []TemplatesGlobalGlobalTemplateRegexResponse` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateRegexesOk() (*[]TemplatesGlobalGlobalTemplateRegexResponse, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateRegexes(v []TemplatesGlobalGlobalTemplateRegexResponse)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### SetTemplateRegexesNil + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateRegexesNil(b bool)` + + SetTemplateRegexesNil sets the value for TemplateRegexes to be an explicit nil + +### UnsetTemplateRegexes +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) UnsetTemplateRegexes()` + +UnsetTemplateRegexes ensures that no value is present for TemplateRegexes, not even an explicit nil +### GetTemplateDefaults + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateDefaults() []TemplatesGlobalGlobalTemplateDefaultResponse` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateDefaultsOk() (*[]TemplatesGlobalGlobalTemplateDefaultResponse, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateDefaults(v []TemplatesGlobalGlobalTemplateDefaultResponse)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### SetTemplateDefaultsNil + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateDefaultsNil(b bool)` + + SetTemplateDefaultsNil sets the value for TemplateDefaults to be an explicit nil + +### UnsetTemplateDefaults +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) UnsetTemplateDefaults()` + +UnsetTemplateDefaults ensures that no value is present for TemplateDefaults, not even an explicit nil +### GetTemplatePolicy + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplatePolicy() TemplatesGlobalGlobalTemplatePolicyResponse` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplatePolicyOk() (*TemplatesGlobalGlobalTemplatePolicyResponse, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplatePolicy(v TemplatesGlobalGlobalTemplatePolicyResponse)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesKeyAlgorithmsResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesKeyAlgorithmsResponseModel.md new file mode 100644 index 0000000..44c805d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesKeyAlgorithmsResponseModel.md @@ -0,0 +1,82 @@ +# TemplatesKeyAlgorithmsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] + +## Methods + +### NewTemplatesKeyAlgorithmsResponseModel + +`func NewTemplatesKeyAlgorithmsResponseModel() *TemplatesKeyAlgorithmsResponseModel` + +NewTemplatesKeyAlgorithmsResponseModel instantiates a new TemplatesKeyAlgorithmsResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesKeyAlgorithmsResponseModelWithDefaults + +`func NewTemplatesKeyAlgorithmsResponseModelWithDefaults() *TemplatesKeyAlgorithmsResponseModel` + +NewTemplatesKeyAlgorithmsResponseModelWithDefaults instantiates a new TemplatesKeyAlgorithmsResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *TemplatesKeyAlgorithmsResponseModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TemplatesKeyAlgorithmsResponseModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TemplatesKeyAlgorithmsResponseModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TemplatesKeyAlgorithmsResponseModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetKeyInfo + +`func (o *TemplatesKeyAlgorithmsResponseModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesKeyAlgorithmsResponseModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesKeyAlgorithmsResponseModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *TemplatesKeyAlgorithmsResponseModel) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateCollectionRetrievalResponse.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateCollectionRetrievalResponse.md new file mode 100644 index 0000000..f155d53 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateCollectionRetrievalResponse.md @@ -0,0 +1,778 @@ +# TemplatesTemplateCollectionRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **NullableString** | | [optional] +**TemplateName** | Pointer to **NullableString** | | [optional] +**Oid** | Pointer to **NullableString** | | [optional] +**KeySize** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**KeyRetention** | Pointer to [**CSSCMSCoreEnumsKeyRetentionPolicy**](CSSCMSCoreEnumsKeyRetentionPolicy.md) | | [optional] +**KeyRetentionDays** | Pointer to **NullableInt32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]TemplatesTemplateEnrollmentFieldRequestResponseModel**](TemplatesTemplateEnrollmentFieldRequestResponseModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to [**CSSCMSCoreEnumsEnrollmentType**](CSSCMSCoreEnumsEnrollmentType.md) | | [optional] +**TemplateRegexes** | Pointer to [**[]TemplatesTemplateRegexRequestResponseModel**](TemplatesTemplateRegexRequestResponseModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]TemplatesExtendedKeyUsageResponseModel**](TemplatesExtendedKeyUsageResponseModel.md) | | [optional] +**AllowOneClickRenewals** | Pointer to **bool** | | [optional] +**KeyTypes** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTemplatesTemplateCollectionRetrievalResponse + +`func NewTemplatesTemplateCollectionRetrievalResponse() *TemplatesTemplateCollectionRetrievalResponse` + +NewTemplatesTemplateCollectionRetrievalResponse instantiates a new TemplatesTemplateCollectionRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateCollectionRetrievalResponseWithDefaults + +`func NewTemplatesTemplateCollectionRetrievalResponseWithDefaults() *TemplatesTemplateCollectionRetrievalResponse` + +NewTemplatesTemplateCollectionRetrievalResponseWithDefaults instantiates a new TemplatesTemplateCollectionRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### SetCommonNameNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetCommonNameNil(b bool)` + + SetCommonNameNil sets the value for CommonName to be an explicit nil + +### UnsetCommonName +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetCommonName()` + +UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +### GetTemplateName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### SetTemplateNameNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateNameNil(b bool)` + + SetTemplateNameNil sets the value for TemplateName to be an explicit nil + +### UnsetTemplateName +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetTemplateName()` + +UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +### GetOid + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### SetOidNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetOidNil(b bool)` + + SetOidNil sets the value for Oid to be an explicit nil + +### UnsetOid +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetOid()` + +UnsetOid ensures that no value is present for Oid, not even an explicit nil +### GetKeySize + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### SetKeySizeNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeySizeNil(b bool)` + + SetKeySizeNil sets the value for KeySize to be an explicit nil + +### UnsetKeySize +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeySize()` + +UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +### GetKeyType + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetForestRoot + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +### GetFriendlyName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetKeyRetention + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### SetKeyRetentionDaysNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetentionDaysNil(b bool)` + + SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil + +### UnsetKeyRetentionDays +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyRetentionDays()` + +UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +### GetKeyArchival + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetEnrollmentFieldsOk() (*[]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### SetEnrollmentFieldsNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetEnrollmentFieldsNil(b bool)` + + SetEnrollmentFieldsNil sets the value for EnrollmentFields to be an explicit nil + +### UnsetEnrollmentFields +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetEnrollmentFields()` + +UnsetEnrollmentFields ensures that no value is present for EnrollmentFields, not even an explicit nil +### GetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateRegexesOk() (*[]TemplatesTemplateRegexRequestResponseModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### SetTemplateRegexesNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateRegexesNil(b bool)` + + SetTemplateRegexesNil sets the value for TemplateRegexes to be an explicit nil + +### UnsetTemplateRegexes +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetTemplateRegexes()` + +UnsetTemplateRegexes ensures that no value is present for TemplateRegexes, not even an explicit nil +### GetUseAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### SetAllowedRequestersNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowedRequestersNil(b bool)` + + SetAllowedRequestersNil sets the value for AllowedRequesters to be an explicit nil + +### UnsetAllowedRequesters +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetAllowedRequesters()` + +UnsetAllowedRequesters ensures that no value is present for AllowedRequesters, not even an explicit nil +### GetDisplayName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetRequiresApproval + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetExtendedKeyUsages() []TemplatesExtendedKeyUsageResponseModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetExtendedKeyUsagesOk() (*[]TemplatesExtendedKeyUsageResponseModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetExtendedKeyUsages(v []TemplatesExtendedKeyUsageResponseModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### SetExtendedKeyUsagesNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetExtendedKeyUsagesNil(b bool)` + + SetExtendedKeyUsagesNil sets the value for ExtendedKeyUsages to be an explicit nil + +### UnsetExtendedKeyUsages +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetExtendedKeyUsages()` + +UnsetExtendedKeyUsages ensures that no value is present for ExtendedKeyUsages, not even an explicit nil +### GetAllowOneClickRenewals + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowOneClickRenewals() bool` + +GetAllowOneClickRenewals returns the AllowOneClickRenewals field if non-nil, zero value otherwise. + +### GetAllowOneClickRenewalsOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowOneClickRenewalsOk() (*bool, bool)` + +GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowOneClickRenewals + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowOneClickRenewals(v bool)` + +SetAllowOneClickRenewals sets AllowOneClickRenewals field to given value. + +### HasAllowOneClickRenewals + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowOneClickRenewals() bool` + +HasAllowOneClickRenewals returns a boolean if a field has been set. + +### GetKeyTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypes() string` + +GetKeyTypes returns the KeyTypes field if non-nil, zero value otherwise. + +### GetKeyTypesOk + +`func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypesOk() (*string, bool)` + +GetKeyTypesOk returns a tuple with the KeyTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypes(v string)` + +SetKeyTypes sets KeyTypes field to given value. + +### HasKeyTypes + +`func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyTypes() bool` + +HasKeyTypes returns a boolean if a field has been set. + +### SetKeyTypesNil + +`func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypesNil(b bool)` + + SetKeyTypesNil sets the value for KeyTypes to be an explicit nil + +### UnsetKeyTypes +`func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyTypes()` + +UnsetKeyTypes ensures that no value is present for KeyTypes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateDefaultRequestResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateDefaultRequestResponseModel.md new file mode 100644 index 0000000..08ebba5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateDefaultRequestResponseModel.md @@ -0,0 +1,102 @@ +# TemplatesTemplateDefaultRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **NullableString** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTemplatesTemplateDefaultRequestResponseModel + +`func NewTemplatesTemplateDefaultRequestResponseModel() *TemplatesTemplateDefaultRequestResponseModel` + +NewTemplatesTemplateDefaultRequestResponseModel instantiates a new TemplatesTemplateDefaultRequestResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateDefaultRequestResponseModelWithDefaults + +`func NewTemplatesTemplateDefaultRequestResponseModelWithDefaults() *TemplatesTemplateDefaultRequestResponseModel` + +NewTemplatesTemplateDefaultRequestResponseModelWithDefaults instantiates a new TemplatesTemplateDefaultRequestResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *TemplatesTemplateDefaultRequestResponseModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesTemplateDefaultRequestResponseModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesTemplateDefaultRequestResponseModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesTemplateDefaultRequestResponseModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesTemplateDefaultRequestResponseModel) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesTemplateDefaultRequestResponseModel) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetValue + +`func (o *TemplatesTemplateDefaultRequestResponseModel) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TemplatesTemplateDefaultRequestResponseModel) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TemplatesTemplateDefaultRequestResponseModel) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TemplatesTemplateDefaultRequestResponseModel) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *TemplatesTemplateDefaultRequestResponseModel) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *TemplatesTemplateDefaultRequestResponseModel) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateEnrollmentFieldRequestResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateEnrollmentFieldRequestResponseModel.md new file mode 100644 index 0000000..074ab36 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateEnrollmentFieldRequestResponseModel.md @@ -0,0 +1,154 @@ +# TemplatesTemplateEnrollmentFieldRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to [**CSSCMSCoreEnumsTemplateEnrollmentFieldType**](CSSCMSCoreEnumsTemplateEnrollmentFieldType.md) | | [optional] + +## Methods + +### NewTemplatesTemplateEnrollmentFieldRequestResponseModel + +`func NewTemplatesTemplateEnrollmentFieldRequestResponseModel() *TemplatesTemplateEnrollmentFieldRequestResponseModel` + +NewTemplatesTemplateEnrollmentFieldRequestResponseModel instantiates a new TemplatesTemplateEnrollmentFieldRequestResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateEnrollmentFieldRequestResponseModelWithDefaults + +`func NewTemplatesTemplateEnrollmentFieldRequestResponseModelWithDefaults() *TemplatesTemplateEnrollmentFieldRequestResponseModel` + +NewTemplatesTemplateEnrollmentFieldRequestResponseModelWithDefaults instantiates a new TemplatesTemplateEnrollmentFieldRequestResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetOptions + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### SetOptionsNil + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetOptionsNil(b bool)` + + SetOptionsNil sets the value for Options to be an explicit nil + +### UnsetOptions +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) UnsetOptions()` + +UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetDataType + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetDataType() CSSCMSCoreEnumsTemplateEnrollmentFieldType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetDataTypeOk() (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetDataType(v CSSCMSCoreEnumsTemplateEnrollmentFieldType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateMetadataFieldRequestResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateMetadataFieldRequestResponseModel.md new file mode 100644 index 0000000..ac77e4c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateMetadataFieldRequestResponseModel.md @@ -0,0 +1,268 @@ +# TemplatesTemplateMetadataFieldRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**MetadataId** | Pointer to **int32** | | [optional] +**Validation** | Pointer to **NullableString** | | [optional] +**Enrollment** | Pointer to [**CSSCMSCoreEnumsMetadataTypeEnrollment**](CSSCMSCoreEnumsMetadataTypeEnrollment.md) | | [optional] +**Message** | Pointer to **NullableString** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] +**TemplateId** | Pointer to **int32** | | [optional] + +## Methods + +### NewTemplatesTemplateMetadataFieldRequestResponseModel + +`func NewTemplatesTemplateMetadataFieldRequestResponseModel() *TemplatesTemplateMetadataFieldRequestResponseModel` + +NewTemplatesTemplateMetadataFieldRequestResponseModel instantiates a new TemplatesTemplateMetadataFieldRequestResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateMetadataFieldRequestResponseModelWithDefaults + +`func NewTemplatesTemplateMetadataFieldRequestResponseModelWithDefaults() *TemplatesTemplateMetadataFieldRequestResponseModel` + +NewTemplatesTemplateMetadataFieldRequestResponseModelWithDefaults instantiates a new TemplatesTemplateMetadataFieldRequestResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetMetadataId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMetadataId() int32` + +GetMetadataId returns the MetadataId field if non-nil, zero value otherwise. + +### GetMetadataIdOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMetadataIdOk() (*int32, bool)` + +GetMetadataIdOk returns a tuple with the MetadataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMetadataId(v int32)` + +SetMetadataId sets MetadataId field to given value. + +### HasMetadataId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasMetadataId() bool` + +HasMetadataId returns a boolean if a field has been set. + +### GetValidation + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### SetValidationNil + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetValidationNil(b bool)` + + SetValidationNil sets the value for Validation to be an explicit nil + +### UnsetValidation +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetValidation()` + +UnsetValidation ensures that no value is present for Validation, not even an explicit nil +### GetEnrollment + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetCaseSensitive + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + +### GetTemplateId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyRequestModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyRequestModel.md new file mode 100644 index 0000000..ce4330d --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyRequestModel.md @@ -0,0 +1,288 @@ +# TemplatesTemplatePolicyRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**AllowKeyReuse** | Pointer to **NullableBool** | | [optional] +**AllowWildcards** | Pointer to **NullableBool** | | [optional] +**RFCEnforcement** | Pointer to **NullableBool** | | [optional] +**CertificateOwnerRole** | Pointer to [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | [optional] +**DefaultCertificateOwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**DefaultCertificateOwnerRoleName** | Pointer to **NullableString** | | [optional] +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] + +## Methods + +### NewTemplatesTemplatePolicyRequestModel + +`func NewTemplatesTemplatePolicyRequestModel() *TemplatesTemplatePolicyRequestModel` + +NewTemplatesTemplatePolicyRequestModel instantiates a new TemplatesTemplatePolicyRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplatePolicyRequestModelWithDefaults + +`func NewTemplatesTemplatePolicyRequestModelWithDefaults() *TemplatesTemplatePolicyRequestModel` + +NewTemplatesTemplatePolicyRequestModelWithDefaults instantiates a new TemplatesTemplatePolicyRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *TemplatesTemplatePolicyRequestModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TemplatesTemplatePolicyRequestModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TemplatesTemplatePolicyRequestModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *TemplatesTemplatePolicyRequestModel) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *TemplatesTemplatePolicyRequestModel) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *TemplatesTemplatePolicyRequestModel) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### SetAllowKeyReuseNil + +`func (o *TemplatesTemplatePolicyRequestModel) SetAllowKeyReuseNil(b bool)` + + SetAllowKeyReuseNil sets the value for AllowKeyReuse to be an explicit nil + +### UnsetAllowKeyReuse +`func (o *TemplatesTemplatePolicyRequestModel) UnsetAllowKeyReuse()` + +UnsetAllowKeyReuse ensures that no value is present for AllowKeyReuse, not even an explicit nil +### GetAllowWildcards + +`func (o *TemplatesTemplatePolicyRequestModel) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *TemplatesTemplatePolicyRequestModel) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *TemplatesTemplatePolicyRequestModel) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### SetAllowWildcardsNil + +`func (o *TemplatesTemplatePolicyRequestModel) SetAllowWildcardsNil(b bool)` + + SetAllowWildcardsNil sets the value for AllowWildcards to be an explicit nil + +### UnsetAllowWildcards +`func (o *TemplatesTemplatePolicyRequestModel) UnsetAllowWildcards()` + +UnsetAllowWildcards ensures that no value is present for AllowWildcards, not even an explicit nil +### GetRFCEnforcement + +`func (o *TemplatesTemplatePolicyRequestModel) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesTemplatePolicyRequestModel) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *TemplatesTemplatePolicyRequestModel) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### SetRFCEnforcementNil + +`func (o *TemplatesTemplatePolicyRequestModel) SetRFCEnforcementNil(b bool)` + + SetRFCEnforcementNil sets the value for RFCEnforcement to be an explicit nil + +### UnsetRFCEnforcement +`func (o *TemplatesTemplatePolicyRequestModel) UnsetRFCEnforcement()` + +UnsetRFCEnforcement ensures that no value is present for RFCEnforcement, not even an explicit nil +### GetCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyRequestModel) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyRequestModel) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + +### HasCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyRequestModel) HasCertificateOwnerRole() bool` + +HasCertificateOwnerRole returns a boolean if a field has been set. + +### GetDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleId() int32` + +GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleIdOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool)` + +GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleId(v int32)` + +SetDefaultCertificateOwnerRoleId sets DefaultCertificateOwnerRoleId field to given value. + +### HasDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyRequestModel) HasDefaultCertificateOwnerRoleId() bool` + +HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleIdNil + +`func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleIdNil(b bool)` + + SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleId +`func (o *TemplatesTemplatePolicyRequestModel) UnsetDefaultCertificateOwnerRoleId()` + +UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +### GetDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleName() string` + +GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleNameOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleNameOk() (*string, bool)` + +GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleName(v string)` + +SetDefaultCertificateOwnerRoleName sets DefaultCertificateOwnerRoleName field to given value. + +### HasDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyRequestModel) HasDefaultCertificateOwnerRoleName() bool` + +HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleNameNil + +`func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleNameNil(b bool)` + + SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleName +`func (o *TemplatesTemplatePolicyRequestModel) UnsetDefaultCertificateOwnerRoleName()` + +UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +### GetKeyInfo + +`func (o *TemplatesTemplatePolicyRequestModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesTemplatePolicyRequestModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesTemplatePolicyRequestModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *TemplatesTemplatePolicyRequestModel) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyResponseModel.md new file mode 100644 index 0000000..491ade6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplatePolicyResponseModel.md @@ -0,0 +1,288 @@ +# TemplatesTemplatePolicyResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**AllowKeyReuse** | Pointer to **NullableBool** | | [optional] +**AllowWildcards** | Pointer to **NullableBool** | | [optional] +**RFCEnforcement** | Pointer to **NullableBool** | | [optional] +**CertificateOwnerRole** | Pointer to [**CSSCMSCoreEnumsTemplateCertificateOwnerRole**](CSSCMSCoreEnumsTemplateCertificateOwnerRole.md) | | [optional] +**DefaultCertificateOwnerRoleId** | Pointer to **NullableInt32** | | [optional] +**DefaultCertificateOwnerRoleName** | Pointer to **NullableString** | | [optional] +**KeyInfo** | Pointer to [**CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo**](CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo.md) | | [optional] + +## Methods + +### NewTemplatesTemplatePolicyResponseModel + +`func NewTemplatesTemplatePolicyResponseModel() *TemplatesTemplatePolicyResponseModel` + +NewTemplatesTemplatePolicyResponseModel instantiates a new TemplatesTemplatePolicyResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplatePolicyResponseModelWithDefaults + +`func NewTemplatesTemplatePolicyResponseModelWithDefaults() *TemplatesTemplatePolicyResponseModel` + +NewTemplatesTemplatePolicyResponseModelWithDefaults instantiates a new TemplatesTemplatePolicyResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *TemplatesTemplatePolicyResponseModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TemplatesTemplatePolicyResponseModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TemplatesTemplatePolicyResponseModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *TemplatesTemplatePolicyResponseModel) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *TemplatesTemplatePolicyResponseModel) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *TemplatesTemplatePolicyResponseModel) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### SetAllowKeyReuseNil + +`func (o *TemplatesTemplatePolicyResponseModel) SetAllowKeyReuseNil(b bool)` + + SetAllowKeyReuseNil sets the value for AllowKeyReuse to be an explicit nil + +### UnsetAllowKeyReuse +`func (o *TemplatesTemplatePolicyResponseModel) UnsetAllowKeyReuse()` + +UnsetAllowKeyReuse ensures that no value is present for AllowKeyReuse, not even an explicit nil +### GetAllowWildcards + +`func (o *TemplatesTemplatePolicyResponseModel) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *TemplatesTemplatePolicyResponseModel) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *TemplatesTemplatePolicyResponseModel) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### SetAllowWildcardsNil + +`func (o *TemplatesTemplatePolicyResponseModel) SetAllowWildcardsNil(b bool)` + + SetAllowWildcardsNil sets the value for AllowWildcards to be an explicit nil + +### UnsetAllowWildcards +`func (o *TemplatesTemplatePolicyResponseModel) UnsetAllowWildcards()` + +UnsetAllowWildcards ensures that no value is present for AllowWildcards, not even an explicit nil +### GetRFCEnforcement + +`func (o *TemplatesTemplatePolicyResponseModel) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesTemplatePolicyResponseModel) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *TemplatesTemplatePolicyResponseModel) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### SetRFCEnforcementNil + +`func (o *TemplatesTemplatePolicyResponseModel) SetRFCEnforcementNil(b bool)` + + SetRFCEnforcementNil sets the value for RFCEnforcement to be an explicit nil + +### UnsetRFCEnforcement +`func (o *TemplatesTemplatePolicyResponseModel) UnsetRFCEnforcement()` + +UnsetRFCEnforcement ensures that no value is present for RFCEnforcement, not even an explicit nil +### GetCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyResponseModel) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole` + +GetCertificateOwnerRole returns the CertificateOwnerRole field if non-nil, zero value otherwise. + +### GetCertificateOwnerRoleOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool)` + +GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyResponseModel) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole)` + +SetCertificateOwnerRole sets CertificateOwnerRole field to given value. + +### HasCertificateOwnerRole + +`func (o *TemplatesTemplatePolicyResponseModel) HasCertificateOwnerRole() bool` + +HasCertificateOwnerRole returns a boolean if a field has been set. + +### GetDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleId() int32` + +GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleIdOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool)` + +GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleId(v int32)` + +SetDefaultCertificateOwnerRoleId sets DefaultCertificateOwnerRoleId field to given value. + +### HasDefaultCertificateOwnerRoleId + +`func (o *TemplatesTemplatePolicyResponseModel) HasDefaultCertificateOwnerRoleId() bool` + +HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleIdNil + +`func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleIdNil(b bool)` + + SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleId +`func (o *TemplatesTemplatePolicyResponseModel) UnsetDefaultCertificateOwnerRoleId()` + +UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +### GetDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleName() string` + +GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field if non-nil, zero value otherwise. + +### GetDefaultCertificateOwnerRoleNameOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleNameOk() (*string, bool)` + +GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleName(v string)` + +SetDefaultCertificateOwnerRoleName sets DefaultCertificateOwnerRoleName field to given value. + +### HasDefaultCertificateOwnerRoleName + +`func (o *TemplatesTemplatePolicyResponseModel) HasDefaultCertificateOwnerRoleName() bool` + +HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. + +### SetDefaultCertificateOwnerRoleNameNil + +`func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleNameNil(b bool)` + + SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil + +### UnsetDefaultCertificateOwnerRoleName +`func (o *TemplatesTemplatePolicyResponseModel) UnsetDefaultCertificateOwnerRoleName()` + +UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +### GetKeyInfo + +`func (o *TemplatesTemplatePolicyResponseModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo` + +GetKeyInfo returns the KeyInfo field if non-nil, zero value otherwise. + +### GetKeyInfoOk + +`func (o *TemplatesTemplatePolicyResponseModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool)` + +GetKeyInfoOk returns a tuple with the KeyInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyInfo + +`func (o *TemplatesTemplatePolicyResponseModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo)` + +SetKeyInfo sets KeyInfo field to given value. + +### HasKeyInfo + +`func (o *TemplatesTemplatePolicyResponseModel) HasKeyInfo() bool` + +HasKeyInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateRegexRequestResponseModel.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateRegexRequestResponseModel.md new file mode 100644 index 0000000..e0dc05f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateRegexRequestResponseModel.md @@ -0,0 +1,190 @@ +# TemplatesTemplateRegexRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **NullableString** | | [optional] +**Regex** | Pointer to **NullableString** | | [optional] +**Error** | Pointer to **NullableString** | | [optional] +**CaseSensitive** | Pointer to **bool** | | [optional] + +## Methods + +### NewTemplatesTemplateRegexRequestResponseModel + +`func NewTemplatesTemplateRegexRequestResponseModel() *TemplatesTemplateRegexRequestResponseModel` + +NewTemplatesTemplateRegexRequestResponseModel instantiates a new TemplatesTemplateRegexRequestResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateRegexRequestResponseModelWithDefaults + +`func NewTemplatesTemplateRegexRequestResponseModelWithDefaults() *TemplatesTemplateRegexRequestResponseModel` + +NewTemplatesTemplateRegexRequestResponseModelWithDefaults instantiates a new TemplatesTemplateRegexRequestResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *TemplatesTemplateRegexRequestResponseModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *TemplatesTemplateRegexRequestResponseModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### SetSubjectPartNil + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetSubjectPartNil(b bool)` + + SetSubjectPartNil sets the value for SubjectPart to be an explicit nil + +### UnsetSubjectPart +`func (o *TemplatesTemplateRegexRequestResponseModel) UnsetSubjectPart()` + +UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +### GetRegex + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *TemplatesTemplateRegexRequestResponseModel) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### SetRegexNil + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetRegexNil(b bool)` + + SetRegexNil sets the value for Regex to be an explicit nil + +### UnsetRegex +`func (o *TemplatesTemplateRegexRequestResponseModel) UnsetRegex()` + +UnsetRegex ensures that no value is present for Regex, not even an explicit nil +### GetError + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *TemplatesTemplateRegexRequestResponseModel) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *TemplatesTemplateRegexRequestResponseModel) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetCaseSensitive + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetCaseSensitive() bool` + +GetCaseSensitive returns the CaseSensitive field if non-nil, zero value otherwise. + +### GetCaseSensitiveOk + +`func (o *TemplatesTemplateRegexRequestResponseModel) GetCaseSensitiveOk() (*bool, bool)` + +GetCaseSensitiveOk returns a tuple with the CaseSensitive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseSensitive + +`func (o *TemplatesTemplateRegexRequestResponseModel) SetCaseSensitive(v bool)` + +SetCaseSensitive sets CaseSensitive field to given value. + +### HasCaseSensitive + +`func (o *TemplatesTemplateRegexRequestResponseModel) HasCaseSensitive() bool` + +HasCaseSensitive returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateRetrievalResponse.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateRetrievalResponse.md new file mode 100644 index 0000000..8eec685 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateRetrievalResponse.md @@ -0,0 +1,964 @@ +# TemplatesTemplateRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **NullableString** | | [optional] +**TemplateName** | Pointer to **NullableString** | | [optional] +**Oid** | Pointer to **NullableString** | | [optional] +**KeySize** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**ForestRoot** | Pointer to **NullableString** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **NullableString** | | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**KeyRetention** | Pointer to [**CSSCMSCoreEnumsKeyRetentionPolicy**](CSSCMSCoreEnumsKeyRetentionPolicy.md) | | [optional] +**KeyRetentionDays** | Pointer to **NullableInt32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]TemplatesTemplateEnrollmentFieldRequestResponseModel**](TemplatesTemplateEnrollmentFieldRequestResponseModel.md) | | [optional] +**MetadataFields** | Pointer to [**[]TemplatesTemplateMetadataFieldRequestResponseModel**](TemplatesTemplateMetadataFieldRequestResponseModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to [**CSSCMSCoreEnumsEnrollmentType**](CSSCMSCoreEnumsEnrollmentType.md) | | [optional] +**TemplateRegexes** | Pointer to [**[]TemplatesTemplateRegexRequestResponseModel**](TemplatesTemplateRegexRequestResponseModel.md) | | [optional] +**TemplateDefaults** | Pointer to [**[]TemplatesTemplateDefaultRequestResponseModel**](TemplatesTemplateDefaultRequestResponseModel.md) | | [optional] +**TemplatePolicy** | Pointer to [**TemplatesTemplatePolicyResponseModel**](TemplatesTemplatePolicyResponseModel.md) | | [optional] +**KeyAlgorithms** | Pointer to [**TemplatesKeyAlgorithmsResponseModel**](TemplatesKeyAlgorithmsResponseModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]TemplatesExtendedKeyUsageResponseModel**](TemplatesExtendedKeyUsageResponseModel.md) | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] +**AllowOneClickRenewals** | Pointer to **bool** | | [optional] +**KeyTypes** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTemplatesTemplateRetrievalResponse + +`func NewTemplatesTemplateRetrievalResponse() *TemplatesTemplateRetrievalResponse` + +NewTemplatesTemplateRetrievalResponse instantiates a new TemplatesTemplateRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateRetrievalResponseWithDefaults + +`func NewTemplatesTemplateRetrievalResponseWithDefaults() *TemplatesTemplateRetrievalResponse` + +NewTemplatesTemplateRetrievalResponseWithDefaults instantiates a new TemplatesTemplateRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesTemplateRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesTemplateRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesTemplateRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesTemplateRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *TemplatesTemplateRetrievalResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *TemplatesTemplateRetrievalResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *TemplatesTemplateRetrievalResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *TemplatesTemplateRetrievalResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### SetCommonNameNil + +`func (o *TemplatesTemplateRetrievalResponse) SetCommonNameNil(b bool)` + + SetCommonNameNil sets the value for CommonName to be an explicit nil + +### UnsetCommonName +`func (o *TemplatesTemplateRetrievalResponse) UnsetCommonName()` + +UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +### GetTemplateName + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *TemplatesTemplateRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### SetTemplateNameNil + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateNameNil(b bool)` + + SetTemplateNameNil sets the value for TemplateName to be an explicit nil + +### UnsetTemplateName +`func (o *TemplatesTemplateRetrievalResponse) UnsetTemplateName()` + +UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +### GetOid + +`func (o *TemplatesTemplateRetrievalResponse) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *TemplatesTemplateRetrievalResponse) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *TemplatesTemplateRetrievalResponse) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *TemplatesTemplateRetrievalResponse) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### SetOidNil + +`func (o *TemplatesTemplateRetrievalResponse) SetOidNil(b bool)` + + SetOidNil sets the value for Oid to be an explicit nil + +### UnsetOid +`func (o *TemplatesTemplateRetrievalResponse) UnsetOid()` + +UnsetOid ensures that no value is present for Oid, not even an explicit nil +### GetKeySize + +`func (o *TemplatesTemplateRetrievalResponse) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *TemplatesTemplateRetrievalResponse) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *TemplatesTemplateRetrievalResponse) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### SetKeySizeNil + +`func (o *TemplatesTemplateRetrievalResponse) SetKeySizeNil(b bool)` + + SetKeySizeNil sets the value for KeySize to be an explicit nil + +### UnsetKeySize +`func (o *TemplatesTemplateRetrievalResponse) UnsetKeySize()` + +UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +### GetKeyType + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *TemplatesTemplateRetrievalResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetForestRoot + +`func (o *TemplatesTemplateRetrievalResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *TemplatesTemplateRetrievalResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *TemplatesTemplateRetrievalResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *TemplatesTemplateRetrievalResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### SetForestRootNil + +`func (o *TemplatesTemplateRetrievalResponse) SetForestRootNil(b bool)` + + SetForestRootNil sets the value for ForestRoot to be an explicit nil + +### UnsetForestRoot +`func (o *TemplatesTemplateRetrievalResponse) UnsetForestRoot()` + +UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +### GetConfigurationTenant + +`func (o *TemplatesTemplateRetrievalResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *TemplatesTemplateRetrievalResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *TemplatesTemplateRetrievalResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *TemplatesTemplateRetrievalResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### SetConfigurationTenantNil + +`func (o *TemplatesTemplateRetrievalResponse) SetConfigurationTenantNil(b bool)` + + SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil + +### UnsetConfigurationTenant +`func (o *TemplatesTemplateRetrievalResponse) UnsetConfigurationTenant()` + +UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +### GetFriendlyName + +`func (o *TemplatesTemplateRetrievalResponse) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *TemplatesTemplateRetrievalResponse) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *TemplatesTemplateRetrievalResponse) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *TemplatesTemplateRetrievalResponse) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *TemplatesTemplateRetrievalResponse) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *TemplatesTemplateRetrievalResponse) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetKeyRetention + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### SetKeyRetentionDaysNil + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyRetentionDaysNil(b bool)` + + SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil + +### UnsetKeyRetentionDays +`func (o *TemplatesTemplateRetrievalResponse) UnsetKeyRetentionDays()` + +UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +### GetKeyArchival + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *TemplatesTemplateRetrievalResponse) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *TemplatesTemplateRetrievalResponse) GetEnrollmentFieldsOk() (*[]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *TemplatesTemplateRetrievalResponse) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *TemplatesTemplateRetrievalResponse) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### SetEnrollmentFieldsNil + +`func (o *TemplatesTemplateRetrievalResponse) SetEnrollmentFieldsNil(b bool)` + + SetEnrollmentFieldsNil sets the value for EnrollmentFields to be an explicit nil + +### UnsetEnrollmentFields +`func (o *TemplatesTemplateRetrievalResponse) UnsetEnrollmentFields()` + +UnsetEnrollmentFields ensures that no value is present for EnrollmentFields, not even an explicit nil +### GetMetadataFields + +`func (o *TemplatesTemplateRetrievalResponse) GetMetadataFields() []TemplatesTemplateMetadataFieldRequestResponseModel` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *TemplatesTemplateRetrievalResponse) GetMetadataFieldsOk() (*[]TemplatesTemplateMetadataFieldRequestResponseModel, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *TemplatesTemplateRetrievalResponse) SetMetadataFields(v []TemplatesTemplateMetadataFieldRequestResponseModel)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *TemplatesTemplateRetrievalResponse) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### SetMetadataFieldsNil + +`func (o *TemplatesTemplateRetrievalResponse) SetMetadataFieldsNil(b bool)` + + SetMetadataFieldsNil sets the value for MetadataFields to be an explicit nil + +### UnsetMetadataFields +`func (o *TemplatesTemplateRetrievalResponse) UnsetMetadataFields()` + +UnsetMetadataFields ensures that no value is present for MetadataFields, not even an explicit nil +### GetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateRetrievalResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *TemplatesTemplateRetrievalResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateRegexesOk() (*[]TemplatesTemplateRegexRequestResponseModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *TemplatesTemplateRetrievalResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### SetTemplateRegexesNil + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateRegexesNil(b bool)` + + SetTemplateRegexesNil sets the value for TemplateRegexes to be an explicit nil + +### UnsetTemplateRegexes +`func (o *TemplatesTemplateRetrievalResponse) UnsetTemplateRegexes()` + +UnsetTemplateRegexes ensures that no value is present for TemplateRegexes, not even an explicit nil +### GetTemplateDefaults + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateDefaults() []TemplatesTemplateDefaultRequestResponseModel` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplateDefaultsOk() (*[]TemplatesTemplateDefaultRequestResponseModel, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateDefaults(v []TemplatesTemplateDefaultRequestResponseModel)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *TemplatesTemplateRetrievalResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### SetTemplateDefaultsNil + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplateDefaultsNil(b bool)` + + SetTemplateDefaultsNil sets the value for TemplateDefaults to be an explicit nil + +### UnsetTemplateDefaults +`func (o *TemplatesTemplateRetrievalResponse) UnsetTemplateDefaults()` + +UnsetTemplateDefaults ensures that no value is present for TemplateDefaults, not even an explicit nil +### GetTemplatePolicy + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplatePolicy() TemplatesTemplatePolicyResponseModel` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *TemplatesTemplateRetrievalResponse) GetTemplatePolicyOk() (*TemplatesTemplatePolicyResponseModel, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *TemplatesTemplateRetrievalResponse) SetTemplatePolicy(v TemplatesTemplatePolicyResponseModel)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *TemplatesTemplateRetrievalResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + +### GetKeyAlgorithms + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyAlgorithms() TemplatesKeyAlgorithmsResponseModel` + +GetKeyAlgorithms returns the KeyAlgorithms field if non-nil, zero value otherwise. + +### GetKeyAlgorithmsOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyAlgorithmsOk() (*TemplatesKeyAlgorithmsResponseModel, bool)` + +GetKeyAlgorithmsOk returns a tuple with the KeyAlgorithms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyAlgorithms + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyAlgorithms(v TemplatesKeyAlgorithmsResponseModel)` + +SetKeyAlgorithms sets KeyAlgorithms field to given value. + +### HasKeyAlgorithms + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyAlgorithms() bool` + +HasKeyAlgorithms returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *TemplatesTemplateRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *TemplatesTemplateRetrievalResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### SetAllowedRequestersNil + +`func (o *TemplatesTemplateRetrievalResponse) SetAllowedRequestersNil(b bool)` + + SetAllowedRequestersNil sets the value for AllowedRequesters to be an explicit nil + +### UnsetAllowedRequesters +`func (o *TemplatesTemplateRetrievalResponse) UnsetAllowedRequesters()` + +UnsetAllowedRequesters ensures that no value is present for AllowedRequesters, not even an explicit nil +### GetDisplayName + +`func (o *TemplatesTemplateRetrievalResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *TemplatesTemplateRetrievalResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *TemplatesTemplateRetrievalResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *TemplatesTemplateRetrievalResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *TemplatesTemplateRetrievalResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *TemplatesTemplateRetrievalResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetRFCEnforcement + +`func (o *TemplatesTemplateRetrievalResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *TemplatesTemplateRetrievalResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *TemplatesTemplateRetrievalResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *TemplatesTemplateRetrievalResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetRequiresApproval + +`func (o *TemplatesTemplateRetrievalResponse) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *TemplatesTemplateRetrievalResponse) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *TemplatesTemplateRetrievalResponse) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *TemplatesTemplateRetrievalResponse) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *TemplatesTemplateRetrievalResponse) GetExtendedKeyUsages() []TemplatesExtendedKeyUsageResponseModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *TemplatesTemplateRetrievalResponse) GetExtendedKeyUsagesOk() (*[]TemplatesExtendedKeyUsageResponseModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *TemplatesTemplateRetrievalResponse) SetExtendedKeyUsages(v []TemplatesExtendedKeyUsageResponseModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *TemplatesTemplateRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### SetExtendedKeyUsagesNil + +`func (o *TemplatesTemplateRetrievalResponse) SetExtendedKeyUsagesNil(b bool)` + + SetExtendedKeyUsagesNil sets the value for ExtendedKeyUsages to be an explicit nil + +### UnsetExtendedKeyUsages +`func (o *TemplatesTemplateRetrievalResponse) UnsetExtendedKeyUsages()` + +UnsetExtendedKeyUsages ensures that no value is present for ExtendedKeyUsages, not even an explicit nil +### GetCurve + +`func (o *TemplatesTemplateRetrievalResponse) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *TemplatesTemplateRetrievalResponse) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *TemplatesTemplateRetrievalResponse) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *TemplatesTemplateRetrievalResponse) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *TemplatesTemplateRetrievalResponse) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *TemplatesTemplateRetrievalResponse) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetAllowOneClickRenewals + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowOneClickRenewals() bool` + +GetAllowOneClickRenewals returns the AllowOneClickRenewals field if non-nil, zero value otherwise. + +### GetAllowOneClickRenewalsOk + +`func (o *TemplatesTemplateRetrievalResponse) GetAllowOneClickRenewalsOk() (*bool, bool)` + +GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowOneClickRenewals + +`func (o *TemplatesTemplateRetrievalResponse) SetAllowOneClickRenewals(v bool)` + +SetAllowOneClickRenewals sets AllowOneClickRenewals field to given value. + +### HasAllowOneClickRenewals + +`func (o *TemplatesTemplateRetrievalResponse) HasAllowOneClickRenewals() bool` + +HasAllowOneClickRenewals returns a boolean if a field has been set. + +### GetKeyTypes + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyTypes() string` + +GetKeyTypes returns the KeyTypes field if non-nil, zero value otherwise. + +### GetKeyTypesOk + +`func (o *TemplatesTemplateRetrievalResponse) GetKeyTypesOk() (*string, bool)` + +GetKeyTypesOk returns a tuple with the KeyTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyTypes + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyTypes(v string)` + +SetKeyTypes sets KeyTypes field to given value. + +### HasKeyTypes + +`func (o *TemplatesTemplateRetrievalResponse) HasKeyTypes() bool` + +HasKeyTypes returns a boolean if a field has been set. + +### SetKeyTypesNil + +`func (o *TemplatesTemplateRetrievalResponse) SetKeyTypesNil(b bool)` + + SetKeyTypesNil sets the value for KeyTypes to be an explicit nil + +### UnsetKeyTypes +`func (o *TemplatesTemplateRetrievalResponse) UnsetKeyTypes()` + +UnsetKeyTypes ensures that no value is present for KeyTypes, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/TemplatesTemplateUpdateRequest.md b/v24/api/keyfactor/v1/docs/TemplatesTemplateUpdateRequest.md new file mode 100644 index 0000000..3d0cd22 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/TemplatesTemplateUpdateRequest.md @@ -0,0 +1,516 @@ +# TemplatesTemplateUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**FriendlyName** | Pointer to **NullableString** | | [optional] +**KeyRetention** | Pointer to [**CSSCMSCoreEnumsKeyRetentionPolicy**](CSSCMSCoreEnumsKeyRetentionPolicy.md) | | [optional] +**KeyRetentionDays** | Pointer to **NullableInt32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]TemplatesTemplateEnrollmentFieldRequestResponseModel**](TemplatesTemplateEnrollmentFieldRequestResponseModel.md) | | [optional] +**MetadataFields** | Pointer to [**[]TemplatesTemplateMetadataFieldRequestResponseModel**](TemplatesTemplateMetadataFieldRequestResponseModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to [**CSSCMSCoreEnumsEnrollmentType**](CSSCMSCoreEnumsEnrollmentType.md) | | [optional] +**TemplateRegexes** | Pointer to [**[]TemplatesTemplateRegexRequestResponseModel**](TemplatesTemplateRegexRequestResponseModel.md) | | [optional] +**TemplateDefaults** | Pointer to [**[]TemplatesTemplateDefaultRequestResponseModel**](TemplatesTemplateDefaultRequestResponseModel.md) | | [optional] +**TemplatePolicy** | Pointer to [**TemplatesTemplatePolicyRequestModel**](TemplatesTemplatePolicyRequestModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**AllowOneClickRenewals** | Pointer to **bool** | | [optional] + +## Methods + +### NewTemplatesTemplateUpdateRequest + +`func NewTemplatesTemplateUpdateRequest() *TemplatesTemplateUpdateRequest` + +NewTemplatesTemplateUpdateRequest instantiates a new TemplatesTemplateUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTemplatesTemplateUpdateRequestWithDefaults + +`func NewTemplatesTemplateUpdateRequestWithDefaults() *TemplatesTemplateUpdateRequest` + +NewTemplatesTemplateUpdateRequestWithDefaults instantiates a new TemplatesTemplateUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TemplatesTemplateUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TemplatesTemplateUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TemplatesTemplateUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TemplatesTemplateUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *TemplatesTemplateUpdateRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *TemplatesTemplateUpdateRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *TemplatesTemplateUpdateRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *TemplatesTemplateUpdateRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### SetFriendlyNameNil + +`func (o *TemplatesTemplateUpdateRequest) SetFriendlyNameNil(b bool)` + + SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil + +### UnsetFriendlyName +`func (o *TemplatesTemplateUpdateRequest) UnsetFriendlyName()` + +UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +### GetKeyRetention + +`func (o *TemplatesTemplateUpdateRequest) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *TemplatesTemplateUpdateRequest) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *TemplatesTemplateUpdateRequest) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *TemplatesTemplateUpdateRequest) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *TemplatesTemplateUpdateRequest) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### SetKeyRetentionDaysNil + +`func (o *TemplatesTemplateUpdateRequest) SetKeyRetentionDaysNil(b bool)` + + SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil + +### UnsetKeyRetentionDays +`func (o *TemplatesTemplateUpdateRequest) UnsetKeyRetentionDays()` + +UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +### GetKeyArchival + +`func (o *TemplatesTemplateUpdateRequest) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *TemplatesTemplateUpdateRequest) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *TemplatesTemplateUpdateRequest) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *TemplatesTemplateUpdateRequest) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *TemplatesTemplateUpdateRequest) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *TemplatesTemplateUpdateRequest) GetEnrollmentFieldsOk() (*[]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *TemplatesTemplateUpdateRequest) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *TemplatesTemplateUpdateRequest) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### SetEnrollmentFieldsNil + +`func (o *TemplatesTemplateUpdateRequest) SetEnrollmentFieldsNil(b bool)` + + SetEnrollmentFieldsNil sets the value for EnrollmentFields to be an explicit nil + +### UnsetEnrollmentFields +`func (o *TemplatesTemplateUpdateRequest) UnsetEnrollmentFields()` + +UnsetEnrollmentFields ensures that no value is present for EnrollmentFields, not even an explicit nil +### GetMetadataFields + +`func (o *TemplatesTemplateUpdateRequest) GetMetadataFields() []TemplatesTemplateMetadataFieldRequestResponseModel` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *TemplatesTemplateUpdateRequest) GetMetadataFieldsOk() (*[]TemplatesTemplateMetadataFieldRequestResponseModel, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *TemplatesTemplateUpdateRequest) SetMetadataFields(v []TemplatesTemplateMetadataFieldRequestResponseModel)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *TemplatesTemplateUpdateRequest) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### SetMetadataFieldsNil + +`func (o *TemplatesTemplateUpdateRequest) SetMetadataFieldsNil(b bool)` + + SetMetadataFieldsNil sets the value for MetadataFields to be an explicit nil + +### UnsetMetadataFields +`func (o *TemplatesTemplateUpdateRequest) UnsetMetadataFields()` + +UnsetMetadataFields ensures that no value is present for MetadataFields, not even an explicit nil +### GetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateUpdateRequest) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *TemplatesTemplateUpdateRequest) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *TemplatesTemplateUpdateRequest) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *TemplatesTemplateUpdateRequest) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *TemplatesTemplateUpdateRequest) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *TemplatesTemplateUpdateRequest) GetTemplateRegexesOk() (*[]TemplatesTemplateRegexRequestResponseModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *TemplatesTemplateUpdateRequest) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *TemplatesTemplateUpdateRequest) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### SetTemplateRegexesNil + +`func (o *TemplatesTemplateUpdateRequest) SetTemplateRegexesNil(b bool)` + + SetTemplateRegexesNil sets the value for TemplateRegexes to be an explicit nil + +### UnsetTemplateRegexes +`func (o *TemplatesTemplateUpdateRequest) UnsetTemplateRegexes()` + +UnsetTemplateRegexes ensures that no value is present for TemplateRegexes, not even an explicit nil +### GetTemplateDefaults + +`func (o *TemplatesTemplateUpdateRequest) GetTemplateDefaults() []TemplatesTemplateDefaultRequestResponseModel` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *TemplatesTemplateUpdateRequest) GetTemplateDefaultsOk() (*[]TemplatesTemplateDefaultRequestResponseModel, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *TemplatesTemplateUpdateRequest) SetTemplateDefaults(v []TemplatesTemplateDefaultRequestResponseModel)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *TemplatesTemplateUpdateRequest) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### SetTemplateDefaultsNil + +`func (o *TemplatesTemplateUpdateRequest) SetTemplateDefaultsNil(b bool)` + + SetTemplateDefaultsNil sets the value for TemplateDefaults to be an explicit nil + +### UnsetTemplateDefaults +`func (o *TemplatesTemplateUpdateRequest) UnsetTemplateDefaults()` + +UnsetTemplateDefaults ensures that no value is present for TemplateDefaults, not even an explicit nil +### GetTemplatePolicy + +`func (o *TemplatesTemplateUpdateRequest) GetTemplatePolicy() TemplatesTemplatePolicyRequestModel` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *TemplatesTemplateUpdateRequest) GetTemplatePolicyOk() (*TemplatesTemplatePolicyRequestModel, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *TemplatesTemplateUpdateRequest) SetTemplatePolicy(v TemplatesTemplatePolicyRequestModel)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *TemplatesTemplateUpdateRequest) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *TemplatesTemplateUpdateRequest) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *TemplatesTemplateUpdateRequest) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *TemplatesTemplateUpdateRequest) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### SetAllowedRequestersNil + +`func (o *TemplatesTemplateUpdateRequest) SetAllowedRequestersNil(b bool)` + + SetAllowedRequestersNil sets the value for AllowedRequesters to be an explicit nil + +### UnsetAllowedRequesters +`func (o *TemplatesTemplateUpdateRequest) UnsetAllowedRequesters()` + +UnsetAllowedRequesters ensures that no value is present for AllowedRequesters, not even an explicit nil +### GetRequiresApproval + +`func (o *TemplatesTemplateUpdateRequest) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *TemplatesTemplateUpdateRequest) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *TemplatesTemplateUpdateRequest) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *TemplatesTemplateUpdateRequest) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *TemplatesTemplateUpdateRequest) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *TemplatesTemplateUpdateRequest) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *TemplatesTemplateUpdateRequest) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *TemplatesTemplateUpdateRequest) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetAllowOneClickRenewals + +`func (o *TemplatesTemplateUpdateRequest) GetAllowOneClickRenewals() bool` + +GetAllowOneClickRenewals returns the AllowOneClickRenewals field if non-nil, zero value otherwise. + +### GetAllowOneClickRenewalsOk + +`func (o *TemplatesTemplateUpdateRequest) GetAllowOneClickRenewalsOk() (*bool, bool)` + +GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowOneClickRenewals + +`func (o *TemplatesTemplateUpdateRequest) SetAllowOneClickRenewals(v bool)` + +SetAllowOneClickRenewals sets AllowOneClickRenewals field to given value. + +### HasAllowOneClickRenewals + +`func (o *TemplatesTemplateUpdateRequest) HasAllowOneClickRenewals() bool` + +HasAllowOneClickRenewals returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/UserApi.md b/v24/api/keyfactor/v1/docs/UserApi.md new file mode 100644 index 0000000..f4e1d3f --- /dev/null +++ b/v24/api/keyfactor/v1/docs/UserApi.md @@ -0,0 +1,438 @@ +# \UserApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSSHUsers**](UserApi.md#CreateSSHUsers) | **POST** /SSH/Users | Creates a new SSH User. +[**CreateSSHUsersAccess**](UserApi.md#CreateSSHUsersAccess) | **POST** /SSH/Users/Access | Updates logon access for a user +[**DeleteSSHUsersById**](UserApi.md#DeleteSSHUsersById) | **DELETE** /SSH/Users/{id} | Deletes an SSH user. +[**GetSSHUsers**](UserApi.md#GetSSHUsers) | **GET** /SSH/Users | Returns users matching the criteria from the provided query parameters +[**GetSSHUsersById**](UserApi.md#GetSSHUsersById) | **GET** /SSH/Users/{id} | Looks up information about an existing SSH user. +[**UpdateSSHUsers**](UserApi.md#UpdateSSHUsers) | **PUT** /SSH/Users | Updates information about a given user. + + + +## CreateSSHUsers + +> CSSCMSDataModelModelsSSHUsersSshUserResponse NewCreateSSHUsersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserCreationRequest(cSSCMSDataModelModelsSSHUsersSshUserCreationRequest).Execute() + +Creates a new SSH User. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHUsersSshUserCreationRequest := *openapiclient.NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest("Username_example") // CSSCMSDataModelModelsSSHUsersSshUserCreationRequest | SSH user to be created. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewCreateSSHUsersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserCreationRequest(cSSCMSDataModelModelsSSHUsersSshUserCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateSSHUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHUsers`: CSSCMSDataModelModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.CreateSSHUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHUsersSshUserCreationRequest** | [**CSSCMSDataModelModelsSSHUsersSshUserCreationRequest**](CSSCMSDataModelModelsSSHUsersSshUserCreationRequest.md) | SSH user to be created. | + +### Return type + +[**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateSSHUsersAccess + +> CSSCMSDataModelModelsSSHUsersSshUserAccessResponse NewCreateSSHUsersAccessRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest).Execute() + +Updates logon access for a user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(int32(123)) // CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest | Logons to add the existing user (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewCreateSSHUsersAccessRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.CreateSSHUsersAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSSHUsersAccess`: CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.CreateSSHUsersAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSSHUsersAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest** | [**CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest**](CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md) | Logons to add the existing user | + +### Return type + +[**CSSCMSDataModelModelsSSHUsersSshUserAccessResponse**](CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSSHUsersById + +> NewDeleteSSHUsersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes an SSH user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the user to delete. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewDeleteSSHUsersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.DeleteSSHUsersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the user to delete. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSSHUsersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHUsers + +> []CSSCMSDataModelModelsSSHUsersSshUserResponse NewGetSSHUsersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns users matching the criteria from the provided query parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + showOwnedAccess := true // bool | Whether or not to return only logons that have access to servers the requesting user owns (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewGetSSHUsersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.GetSSHUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHUsers`: []CSSCMSDataModelModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.GetSSHUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **showOwnedAccess** | **bool** | Whether or not to return only logons that have access to servers the requesting user owns | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHUsersById + +> CSSCMSDataModelModelsSSHUsersSshUserResponse NewGetSSHUsersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Looks up information about an existing SSH user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the SSH user to retrieve. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewGetSSHUsersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.GetSSHUsersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHUsersById`: CSSCMSDataModelModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.GetSSHUsersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the SSH user to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHUsersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSSHUsers + +> CSSCMSDataModelModelsSSHUsersSshUserResponse NewUpdateSSHUsersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest).Execute() + +Updates information about a given user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest := *openapiclient.NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(int32(123)) // CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest | The new state of the SSH user to update. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewUpdateSSHUsersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UpdateSSHUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSSHUsers`: CSSCMSDataModelModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UpdateSSHUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSSHUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsSSHUsersSshUserUpdateRequest** | [**CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest**](CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest.md) | The new state of the SSH user to update. | + +### Return type + +[**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/WorkflowApi.md b/v24/api/keyfactor/v1/docs/WorkflowApi.md new file mode 100644 index 0000000..1ef9db6 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowApi.md @@ -0,0 +1,450 @@ +# \WorkflowApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateWorkflowCertificatesApprove**](WorkflowApi.md#CreateWorkflowCertificatesApprove) | **POST** /Workflow/Certificates/Approve | Approves pending certificate requests associated with the provided ids +[**CreateWorkflowCertificatesDeny**](WorkflowApi.md#CreateWorkflowCertificatesDeny) | **POST** /Workflow/Certificates/Deny | Denies pending certificate requests associated with the provided ids +[**GetWorkflowCertificatesById**](WorkflowApi.md#GetWorkflowCertificatesById) | **GET** /Workflow/Certificates/{id} | Returns certificate request details based on the provided ID. +[**GetWorkflowCertificatesDenied**](WorkflowApi.md#GetWorkflowCertificatesDenied) | **GET** /Workflow/Certificates/Denied | Gets a collection of denied certificate requests based on the provided query. +[**GetWorkflowCertificatesExternalValidation**](WorkflowApi.md#GetWorkflowCertificatesExternalValidation) | **GET** /Workflow/Certificates/ExternalValidation | Gets a collection of external validation certificate requests based on the provided query. +[**GetWorkflowCertificatesPending**](WorkflowApi.md#GetWorkflowCertificatesPending) | **GET** /Workflow/Certificates/Pending | Gets a collection of pending certificate requests based on the provided query. + + + +## CreateWorkflowCertificatesApprove + +> CSSCMSDataModelModelsWorkflowApproveDenyResult NewCreateWorkflowCertificatesApproveRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + +Approves pending certificate requests associated with the provided ids + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + requestBody := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate requests (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewCreateWorkflowCertificatesApproveRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.CreateWorkflowCertificatesApprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowCertificatesApprove`: CSSCMSDataModelModelsWorkflowApproveDenyResult + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.CreateWorkflowCertificatesApprove`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowCertificatesApproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **requestBody** | **[]int32** | Array of Keyfactor identifiers of the certificate requests | + +### Return type + +[**CSSCMSDataModelModelsWorkflowApproveDenyResult**](CSSCMSDataModelModelsWorkflowApproveDenyResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateWorkflowCertificatesDeny + +> CSSCMSDataModelModelsWorkflowApproveDenyResult NewCreateWorkflowCertificatesDenyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsWorkflowDenialRequest(cSSCMSDataModelModelsWorkflowDenialRequest).Execute() + +Denies pending certificate requests associated with the provided ids + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + cSSCMSDataModelModelsWorkflowDenialRequest := *openapiclient.NewCSSCMSDataModelModelsWorkflowDenialRequest() // CSSCMSDataModelModelsWorkflowDenialRequest | Keyfactor identifiers of the certificate requests to be denied and any denial comments (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewCreateWorkflowCertificatesDenyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CSSCMSDataModelModelsWorkflowDenialRequest(cSSCMSDataModelModelsWorkflowDenialRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.CreateWorkflowCertificatesDeny``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowCertificatesDeny`: CSSCMSDataModelModelsWorkflowApproveDenyResult + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.CreateWorkflowCertificatesDeny`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowCertificatesDenyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **cSSCMSDataModelModelsWorkflowDenialRequest** | [**CSSCMSDataModelModelsWorkflowDenialRequest**](CSSCMSDataModelModelsWorkflowDenialRequest.md) | Keyfactor identifiers of the certificate requests to be denied and any denial comments | + +### Return type + +[**CSSCMSDataModelModelsWorkflowApproveDenyResult**](CSSCMSDataModelModelsWorkflowApproveDenyResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowCertificatesById + +> CertificatesCertRequestResponseModel NewGetWorkflowCertificatesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns certificate request details based on the provided ID. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the certificate request. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewGetWorkflowCertificatesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.GetWorkflowCertificatesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowCertificatesById`: CertificatesCertRequestResponseModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.GetWorkflowCertificatesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the certificate request. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowCertificatesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CertificatesCertRequestResponseModel**](CertificatesCertRequestResponseModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowCertificatesDenied + +> []CSSCMSDataModelModelsWorkflowCertificateRequestModel NewGetWorkflowCertificatesDeniedRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a collection of denied certificate requests based on the provided query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewGetWorkflowCertificatesDeniedRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.GetWorkflowCertificatesDenied``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowCertificatesDenied`: []CSSCMSDataModelModelsWorkflowCertificateRequestModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.GetWorkflowCertificatesDenied`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowCertificatesDeniedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsWorkflowCertificateRequestModel**](CSSCMSDataModelModelsWorkflowCertificateRequestModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowCertificatesExternalValidation + +> []CSSCMSDataModelModelsWorkflowCertificateRequestModel NewGetWorkflowCertificatesExternalValidationRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a collection of external validation certificate requests based on the provided query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewGetWorkflowCertificatesExternalValidationRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.GetWorkflowCertificatesExternalValidation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowCertificatesExternalValidation`: []CSSCMSDataModelModelsWorkflowCertificateRequestModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.GetWorkflowCertificatesExternalValidation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowCertificatesExternalValidationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsWorkflowCertificateRequestModel**](CSSCMSDataModelModelsWorkflowCertificateRequestModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowCertificatesPending + +> []CSSCMSDataModelModelsWorkflowCertificateRequestModel NewGetWorkflowCertificatesPendingRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a collection of pending certificate requests based on the provided query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.NewGetWorkflowCertificatesPendingRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.GetWorkflowCertificatesPending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowCertificatesPending`: []CSSCMSDataModelModelsWorkflowCertificateRequestModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.GetWorkflowCertificatesPending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowCertificatesPendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsWorkflowCertificateRequestModel**](CSSCMSDataModelModelsWorkflowCertificateRequestModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/WorkflowDefinitionApi.md b/v24/api/keyfactor/v1/docs/WorkflowDefinitionApi.md new file mode 100644 index 0000000..97fa4cb --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowDefinitionApi.md @@ -0,0 +1,909 @@ +# \WorkflowDefinitionApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateWorkflowDefinitions**](WorkflowDefinitionApi.md#CreateWorkflowDefinitions) | **POST** /Workflow/Definitions | Creates a new base definition without any steps. +[**CreateWorkflowDefinitionsDefinitionIdPublish**](WorkflowDefinitionApi.md#CreateWorkflowDefinitionsDefinitionIdPublish) | **POST** /Workflow/Definitions/{definitionId}/Publish | Makes the most recent version of a Workflow Definition the published version. +[**CreateWorkflowDefinitionsDefinitionIdPublishVersion**](WorkflowDefinitionApi.md#CreateWorkflowDefinitionsDefinitionIdPublishVersion) | **POST** /Workflow/Definitions/{definitionId}/Publish/{version} | Makes the specified version of a Workflow Definition the published version. +[**DeleteWorkflowDefinitionsDefinitionId**](WorkflowDefinitionApi.md#DeleteWorkflowDefinitionsDefinitionId) | **DELETE** /Workflow/Definitions/{definitionId} | Deletes the definition matching the given Id. +[**GetWorkflowDefinitions**](WorkflowDefinitionApi.md#GetWorkflowDefinitions) | **GET** /Workflow/Definitions | Gets the Definitions matching the query specifications. +[**GetWorkflowDefinitionsDefinitionId**](WorkflowDefinitionApi.md#GetWorkflowDefinitionsDefinitionId) | **GET** /Workflow/Definitions/{definitionId} | Gets a workflow definition. +[**GetWorkflowDefinitionsSteps**](WorkflowDefinitionApi.md#GetWorkflowDefinitionsSteps) | **GET** /Workflow/Definitions/Steps | Gets the result set of available steps for a given query. +[**GetWorkflowDefinitionsStepsExtensionName**](WorkflowDefinitionApi.md#GetWorkflowDefinitionsStepsExtensionName) | **GET** /Workflow/Definitions/Steps/{extensionName} | Gets the schema of a given step with the specified extension name. +[**GetWorkflowDefinitionsTypes**](WorkflowDefinitionApi.md#GetWorkflowDefinitionsTypes) | **GET** /Workflow/Definitions/Types | Performs a query against the workflow types in the system. +[**UpdateWorkflowDefinitionsDefinitionId**](WorkflowDefinitionApi.md#UpdateWorkflowDefinitionsDefinitionId) | **PUT** /Workflow/Definitions/{definitionId} | Updates the existing definition's DisplayName and Description. +[**UpdateWorkflowDefinitionsDefinitionIdStatus**](WorkflowDefinitionApi.md#UpdateWorkflowDefinitionsDefinitionIdStatus) | **PUT** /Workflow/Definitions/{definitionId}/Status | Updates the definition status matching the given Id. +[**UpdateWorkflowDefinitionsDefinitionIdSteps**](WorkflowDefinitionApi.md#UpdateWorkflowDefinitionsDefinitionIdSteps) | **PUT** /Workflow/Definitions/{definitionId}/Steps | Sets the provided steps on the latest version of the definition. + + + +## CreateWorkflowDefinitions + +> WorkflowsDefinitionResponse NewCreateWorkflowDefinitionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionCreateRequest(workflowsDefinitionCreateRequest).Execute() + +Creates a new base definition without any steps. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Whether to force the creation of this definition in the case that it would run workflows immediately. (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + workflowsDefinitionCreateRequest := *openapiclient.NewWorkflowsDefinitionCreateRequest() // WorkflowsDefinitionCreateRequest | A Workflows.DefinitionCreateRequest with the display name, description, key and type of the definition. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewCreateWorkflowDefinitionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionCreateRequest(workflowsDefinitionCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.CreateWorkflowDefinitions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowDefinitions`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.CreateWorkflowDefinitions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowDefinitionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Whether to force the creation of this definition in the case that it would run workflows immediately. | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **workflowsDefinitionCreateRequest** | [**WorkflowsDefinitionCreateRequest**](WorkflowsDefinitionCreateRequest.md) | A Workflows.DefinitionCreateRequest with the display name, description, key and type of the definition. | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateWorkflowDefinitionsDefinitionIdPublish + +> WorkflowsDefinitionResponse NewCreateWorkflowDefinitionsDefinitionIdPublishRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Makes the most recent version of a Workflow Definition the published version. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewCreateWorkflowDefinitionsDefinitionIdPublishRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.CreateWorkflowDefinitionsDefinitionIdPublish``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowDefinitionsDefinitionIdPublish`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.CreateWorkflowDefinitionsDefinitionIdPublish`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowDefinitionsDefinitionIdPublishRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateWorkflowDefinitionsDefinitionIdPublishVersion + +> WorkflowsDefinitionResponse NewCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest(ctx, definitionId, version).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Makes the specified version of a Workflow Definition the published version. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + version := int32(56) // int32 | The Workflow Version Id. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest(context.Background(), definitionId, version).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.CreateWorkflowDefinitionsDefinitionIdPublishVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowDefinitionsDefinitionIdPublishVersion`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.CreateWorkflowDefinitionsDefinitionIdPublishVersion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | +**version** | **int32** | The Workflow Version Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowDefinitionsDefinitionIdPublishVersionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteWorkflowDefinitionsDefinitionId + +> NewDeleteWorkflowDefinitionsDefinitionIdRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the definition matching the given Id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewDeleteWorkflowDefinitionsDefinitionIdRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.DeleteWorkflowDefinitionsDefinitionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteWorkflowDefinitionsDefinitionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowDefinitions + +> []WorkflowsDefinitionQueryResponse NewGetWorkflowDefinitionsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the Definitions matching the query specifications. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewGetWorkflowDefinitionsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.GetWorkflowDefinitions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowDefinitions`: []WorkflowsDefinitionQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.GetWorkflowDefinitions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowDefinitionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsDefinitionQueryResponse**](WorkflowsDefinitionQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowDefinitionsDefinitionId + +> WorkflowsDefinitionResponse NewGetWorkflowDefinitionsDefinitionIdRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a workflow definition. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to retrieve. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + definitionVersion := int32(56) // int32 | The version to retrieve. If this value is not specified, the latest version will be returned. (optional) + exportable := true // bool | Indicates if the response should be cleansed of role ids for export. (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewGetWorkflowDefinitionsDefinitionIdRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.GetWorkflowDefinitionsDefinitionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowDefinitionsDefinitionId`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.GetWorkflowDefinitionsDefinitionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowDefinitionsDefinitionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **definitionVersion** | **int32** | The version to retrieve. If this value is not specified, the latest version will be returned. | + **exportable** | **bool** | Indicates if the response should be cleansed of role ids for export. | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowDefinitionsSteps + +> []WorkflowsAvailableStepQueryResponse NewGetWorkflowDefinitionsStepsRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the result set of available steps for a given query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewGetWorkflowDefinitionsStepsRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.GetWorkflowDefinitionsSteps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowDefinitionsSteps`: []WorkflowsAvailableStepQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.GetWorkflowDefinitionsSteps`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowDefinitionsStepsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsAvailableStepQueryResponse**](WorkflowsAvailableStepQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowDefinitionsStepsExtensionName + +> WorkflowsAvailableStepResponse NewGetWorkflowDefinitionsStepsExtensionNameRequest(ctx, extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the schema of a given step with the specified extension name. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + extensionName := "extensionName_example" // string | The extension name of a specific step in the step schema. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewGetWorkflowDefinitionsStepsExtensionNameRequest(context.Background(), extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.GetWorkflowDefinitionsStepsExtensionName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowDefinitionsStepsExtensionName`: WorkflowsAvailableStepResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.GetWorkflowDefinitionsStepsExtensionName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**extensionName** | **string** | The extension name of a specific step in the step schema. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowDefinitionsStepsExtensionNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**WorkflowsAvailableStepResponse**](WorkflowsAvailableStepResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowDefinitionsTypes + +> []WorkflowsWorkflowTypeQueryResponse NewGetWorkflowDefinitionsTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Performs a query against the workflow types in the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewGetWorkflowDefinitionsTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.GetWorkflowDefinitionsTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowDefinitionsTypes`: []WorkflowsWorkflowTypeQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.GetWorkflowDefinitionsTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowDefinitionsTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsWorkflowTypeQueryResponse**](WorkflowsWorkflowTypeQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateWorkflowDefinitionsDefinitionId + +> WorkflowsDefinitionResponse NewUpdateWorkflowDefinitionsDefinitionIdRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionUpdateRequest(workflowsDefinitionUpdateRequest).Execute() + +Updates the existing definition's DisplayName and Description. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to update. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Whether to force the update of this definition in the case that it would run workflows immediately. (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + workflowsDefinitionUpdateRequest := *openapiclient.NewWorkflowsDefinitionUpdateRequest() // WorkflowsDefinitionUpdateRequest | The Workflows.DefinitionUpdateRequest holding the updated DisplayName and Description. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewUpdateWorkflowDefinitionsDefinitionIdRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionUpdateRequest(workflowsDefinitionUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.UpdateWorkflowDefinitionsDefinitionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWorkflowDefinitionsDefinitionId`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.UpdateWorkflowDefinitionsDefinitionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition to update. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWorkflowDefinitionsDefinitionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Whether to force the update of this definition in the case that it would run workflows immediately. | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **workflowsDefinitionUpdateRequest** | [**WorkflowsDefinitionUpdateRequest**](WorkflowsDefinitionUpdateRequest.md) | The Workflows.DefinitionUpdateRequest holding the updated DisplayName and Description. | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateWorkflowDefinitionsDefinitionIdStatus + +> NewUpdateWorkflowDefinitionsDefinitionIdStatusRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute() + +Updates the definition status matching the given Id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + force := true // bool | Whether to force the status to update. (optional) (default to false) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + body := true // bool | The status to be updated. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewUpdateWorkflowDefinitionsDefinitionIdStatusRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.UpdateWorkflowDefinitionsDefinitionIdStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWorkflowDefinitionsDefinitionIdStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **force** | **bool** | Whether to force the status to update. | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **body** | **bool** | The status to be updated. | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateWorkflowDefinitionsDefinitionIdSteps + +> WorkflowsDefinitionResponse NewUpdateWorkflowDefinitionsDefinitionIdStepsRequest(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionStepRequest(workflowsDefinitionStepRequest).Execute() + +Sets the provided steps on the latest version of the definition. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + workflowsDefinitionStepRequest := []openapiclient.WorkflowsDefinitionStepRequest{*openapiclient.NewWorkflowsDefinitionStepRequest()} // []WorkflowsDefinitionStepRequest | A collection of Workflows.DefinitionStepRequest defining the steps to set on the definition. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.NewUpdateWorkflowDefinitionsDefinitionIdStepsRequest(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsDefinitionStepRequest(workflowsDefinitionStepRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.UpdateWorkflowDefinitionsDefinitionIdSteps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWorkflowDefinitionsDefinitionIdSteps`: WorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.UpdateWorkflowDefinitionsDefinitionIdSteps`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWorkflowDefinitionsDefinitionIdStepsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **workflowsDefinitionStepRequest** | [**[]WorkflowsDefinitionStepRequest**](WorkflowsDefinitionStepRequest.md) | A collection of Workflows.DefinitionStepRequest defining the steps to set on the definition. | + +### Return type + +[**WorkflowsDefinitionResponse**](WorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/WorkflowInstanceApi.md b/v24/api/keyfactor/v1/docs/WorkflowInstanceApi.md new file mode 100644 index 0000000..4418392 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowInstanceApi.md @@ -0,0 +1,600 @@ +# \WorkflowInstanceApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateWorkflowInstancesInstanceIdRestart**](WorkflowInstanceApi.md#CreateWorkflowInstancesInstanceIdRestart) | **POST** /Workflow/Instances/{instanceId}/Restart | Restarts a failed instance against the specified definition version or the published version if no version is specified. +[**CreateWorkflowInstancesInstanceIdSignals**](WorkflowInstanceApi.md#CreateWorkflowInstancesInstanceIdSignals) | **POST** /Workflow/Instances/{instanceId}/Signals | Receives the given signal for the given instance. +[**CreateWorkflowInstancesInstanceIdStop**](WorkflowInstanceApi.md#CreateWorkflowInstancesInstanceIdStop) | **POST** /Workflow/Instances/{instanceId}/Stop | Rejects an instance, preventing it from continuing. +[**DeleteWorkflowInstancesInstanceId**](WorkflowInstanceApi.md#DeleteWorkflowInstancesInstanceId) | **DELETE** /Workflow/Instances/{instanceId} | Deletes the specified instance. +[**GetWorkflowInstances**](WorkflowInstanceApi.md#GetWorkflowInstances) | **GET** /Workflow/Instances | Gets the workflow instances matching the query specifications. +[**GetWorkflowInstancesAssignedToMe**](WorkflowInstanceApi.md#GetWorkflowInstancesAssignedToMe) | **GET** /Workflow/Instances/AssignedToMe | Gets the workflow instances waiting on the user. +[**GetWorkflowInstancesInstanceId**](WorkflowInstanceApi.md#GetWorkflowInstancesInstanceId) | **GET** /Workflow/Instances/{instanceId} | Get information relevant for knowing where an instance is in its workflow. +[**GetWorkflowInstancesMy**](WorkflowInstanceApi.md#GetWorkflowInstancesMy) | **GET** /Workflow/Instances/My | Gets the workflow instances started by the user. + + + +## CreateWorkflowInstancesInstanceIdRestart + +> NewCreateWorkflowInstancesInstanceIdRestartRequest(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Version(version).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Restarts a failed instance against the specified definition version or the published version if no version is specified. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The instance Id to restart. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + version := int32(56) // int32 | The version of the definition to restart the instance against. Defaults to the published version. (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewCreateWorkflowInstancesInstanceIdRestartRequest(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Version(version).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.CreateWorkflowInstancesInstanceIdRestart``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The instance Id to restart. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowInstancesInstanceIdRestartRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **version** | **int32** | The version of the definition to restart the instance against. Defaults to the published version. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateWorkflowInstancesInstanceIdSignals + +> NewCreateWorkflowInstancesInstanceIdSignalsRequest(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsSignalRequest(workflowsSignalRequest).Execute() + +Receives the given signal for the given instance. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The instance that is receiving the signal. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + workflowsSignalRequest := *openapiclient.NewWorkflowsSignalRequest() // WorkflowsSignalRequest | The signal to receive. (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewCreateWorkflowInstancesInstanceIdSignalsRequest(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).WorkflowsSignalRequest(workflowsSignalRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.CreateWorkflowInstancesInstanceIdSignals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The instance that is receiving the signal. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowInstancesInstanceIdSignalsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **workflowsSignalRequest** | [**WorkflowsSignalRequest**](WorkflowsSignalRequest.md) | The signal to receive. | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateWorkflowInstancesInstanceIdStop + +> NewCreateWorkflowInstancesInstanceIdStopRequest(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Rejects an instance, preventing it from continuing. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the instance to reject. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewCreateWorkflowInstancesInstanceIdStopRequest(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.CreateWorkflowInstancesInstanceIdStop``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The Id of the instance to reject. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateWorkflowInstancesInstanceIdStopRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteWorkflowInstancesInstanceId + +> NewDeleteWorkflowInstancesInstanceIdRequest(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the specified instance. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the instance to be deleted. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewDeleteWorkflowInstancesInstanceIdRequest(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.DeleteWorkflowInstancesInstanceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The Id of the instance to be deleted. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteWorkflowInstancesInstanceIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowInstances + +> []WorkflowsInstanceQueryResponse NewGetWorkflowInstancesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the workflow instances matching the query specifications. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewGetWorkflowInstancesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.GetWorkflowInstances``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowInstances`: []WorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.GetWorkflowInstances`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowInstancesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsInstanceQueryResponse**](WorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowInstancesAssignedToMe + +> []WorkflowsInstanceQueryResponse NewGetWorkflowInstancesAssignedToMeRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the workflow instances waiting on the user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewGetWorkflowInstancesAssignedToMeRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.GetWorkflowInstancesAssignedToMe``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowInstancesAssignedToMe`: []WorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.GetWorkflowInstancesAssignedToMe`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowInstancesAssignedToMeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsInstanceQueryResponse**](WorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowInstancesInstanceId + +> WorkflowsInstanceResponse NewGetWorkflowInstancesInstanceIdRequest(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get information relevant for knowing where an instance is in its workflow. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The System.Guid identifying the instance. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewGetWorkflowInstancesInstanceIdRequest(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.GetWorkflowInstancesInstanceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowInstancesInstanceId`: WorkflowsInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.GetWorkflowInstancesInstanceId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The System.Guid identifying the instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowInstancesInstanceIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**WorkflowsInstanceResponse**](WorkflowsInstanceResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetWorkflowInstancesMy + +> []WorkflowsInstanceQueryResponse NewGetWorkflowInstancesMyRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the workflow instances started by the user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "1.0" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.NewGetWorkflowInstancesMyRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.GetWorkflowInstancesMy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowInstancesMy`: []WorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.GetWorkflowInstancesMy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWorkflowInstancesMyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]WorkflowsInstanceQueryResponse**](WorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsAvailableSignalResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsAvailableSignalResponse.md new file mode 100644 index 0000000..beeccf7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsAvailableSignalResponse.md @@ -0,0 +1,118 @@ +# WorkflowsAvailableSignalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalName** | Pointer to **NullableString** | The name of the signal. | [optional] +**StepSignalId** | Pointer to **string** | The signal Id. | [optional] +**SignalReceived** | Pointer to **bool** | Whether or not the signal has been received. | [optional] + +## Methods + +### NewWorkflowsAvailableSignalResponse + +`func NewWorkflowsAvailableSignalResponse() *WorkflowsAvailableSignalResponse` + +NewWorkflowsAvailableSignalResponse instantiates a new WorkflowsAvailableSignalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsAvailableSignalResponseWithDefaults + +`func NewWorkflowsAvailableSignalResponseWithDefaults() *WorkflowsAvailableSignalResponse` + +NewWorkflowsAvailableSignalResponseWithDefaults instantiates a new WorkflowsAvailableSignalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalName + +`func (o *WorkflowsAvailableSignalResponse) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *WorkflowsAvailableSignalResponse) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *WorkflowsAvailableSignalResponse) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *WorkflowsAvailableSignalResponse) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + +### SetSignalNameNil + +`func (o *WorkflowsAvailableSignalResponse) SetSignalNameNil(b bool)` + + SetSignalNameNil sets the value for SignalName to be an explicit nil + +### UnsetSignalName +`func (o *WorkflowsAvailableSignalResponse) UnsetSignalName()` + +UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil +### GetStepSignalId + +`func (o *WorkflowsAvailableSignalResponse) GetStepSignalId() string` + +GetStepSignalId returns the StepSignalId field if non-nil, zero value otherwise. + +### GetStepSignalIdOk + +`func (o *WorkflowsAvailableSignalResponse) GetStepSignalIdOk() (*string, bool)` + +GetStepSignalIdOk returns a tuple with the StepSignalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStepSignalId + +`func (o *WorkflowsAvailableSignalResponse) SetStepSignalId(v string)` + +SetStepSignalId sets StepSignalId field to given value. + +### HasStepSignalId + +`func (o *WorkflowsAvailableSignalResponse) HasStepSignalId() bool` + +HasStepSignalId returns a boolean if a field has been set. + +### GetSignalReceived + +`func (o *WorkflowsAvailableSignalResponse) GetSignalReceived() bool` + +GetSignalReceived returns the SignalReceived field if non-nil, zero value otherwise. + +### GetSignalReceivedOk + +`func (o *WorkflowsAvailableSignalResponse) GetSignalReceivedOk() (*bool, bool)` + +GetSignalReceivedOk returns a tuple with the SignalReceived field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalReceived + +`func (o *WorkflowsAvailableSignalResponse) SetSignalReceived(v bool)` + +SetSignalReceived sets SignalReceived field to given value. + +### HasSignalReceived + +`func (o *WorkflowsAvailableSignalResponse) HasSignalReceived() bool` + +HasSignalReceived returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepQueryResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepQueryResponse.md new file mode 100644 index 0000000..7956412 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepQueryResponse.md @@ -0,0 +1,210 @@ +# WorkflowsAvailableStepQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | The display name of the step. | [optional] +**ExtensionName** | Pointer to **NullableString** | The extension name of the step. | [optional] +**SupportedWorkflowTypes** | Pointer to **[]string** | The workflow types which this step can be a part of. | [optional] +**ConfigurationParametersDefinition** | Pointer to [**map[string]WorkflowsParameterDefinitionResponse**](WorkflowsParameterDefinitionResponse.md) | | [optional] +**SignalsDefinition** | Pointer to [**map[string]WorkflowsSignalDefinitionResponse**](WorkflowsSignalDefinitionResponse.md) | | [optional] + +## Methods + +### NewWorkflowsAvailableStepQueryResponse + +`func NewWorkflowsAvailableStepQueryResponse() *WorkflowsAvailableStepQueryResponse` + +NewWorkflowsAvailableStepQueryResponse instantiates a new WorkflowsAvailableStepQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsAvailableStepQueryResponseWithDefaults + +`func NewWorkflowsAvailableStepQueryResponseWithDefaults() *WorkflowsAvailableStepQueryResponse` + +NewWorkflowsAvailableStepQueryResponseWithDefaults instantiates a new WorkflowsAvailableStepQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *WorkflowsAvailableStepQueryResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsAvailableStepQueryResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsAvailableStepQueryResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsAvailableStepQueryResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsAvailableStepQueryResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsAvailableStepQueryResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetExtensionName + +`func (o *WorkflowsAvailableStepQueryResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *WorkflowsAvailableStepQueryResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *WorkflowsAvailableStepQueryResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *WorkflowsAvailableStepQueryResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### SetExtensionNameNil + +`func (o *WorkflowsAvailableStepQueryResponse) SetExtensionNameNil(b bool)` + + SetExtensionNameNil sets the value for ExtensionName to be an explicit nil + +### UnsetExtensionName +`func (o *WorkflowsAvailableStepQueryResponse) UnsetExtensionName()` + +UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +### GetSupportedWorkflowTypes + +`func (o *WorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypes() []string` + +GetSupportedWorkflowTypes returns the SupportedWorkflowTypes field if non-nil, zero value otherwise. + +### GetSupportedWorkflowTypesOk + +`func (o *WorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypesOk() (*[]string, bool)` + +GetSupportedWorkflowTypesOk returns a tuple with the SupportedWorkflowTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedWorkflowTypes + +`func (o *WorkflowsAvailableStepQueryResponse) SetSupportedWorkflowTypes(v []string)` + +SetSupportedWorkflowTypes sets SupportedWorkflowTypes field to given value. + +### HasSupportedWorkflowTypes + +`func (o *WorkflowsAvailableStepQueryResponse) HasSupportedWorkflowTypes() bool` + +HasSupportedWorkflowTypes returns a boolean if a field has been set. + +### SetSupportedWorkflowTypesNil + +`func (o *WorkflowsAvailableStepQueryResponse) SetSupportedWorkflowTypesNil(b bool)` + + SetSupportedWorkflowTypesNil sets the value for SupportedWorkflowTypes to be an explicit nil + +### UnsetSupportedWorkflowTypes +`func (o *WorkflowsAvailableStepQueryResponse) UnsetSupportedWorkflowTypes()` + +UnsetSupportedWorkflowTypes ensures that no value is present for SupportedWorkflowTypes, not even an explicit nil +### GetConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinition() map[string]WorkflowsParameterDefinitionResponse` + +GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field if non-nil, zero value otherwise. + +### GetConfigurationParametersDefinitionOk + +`func (o *WorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinitionOk() (*map[string]WorkflowsParameterDefinitionResponse, bool)` + +GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) SetConfigurationParametersDefinition(v map[string]WorkflowsParameterDefinitionResponse)` + +SetConfigurationParametersDefinition sets ConfigurationParametersDefinition field to given value. + +### HasConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) HasConfigurationParametersDefinition() bool` + +HasConfigurationParametersDefinition returns a boolean if a field has been set. + +### SetConfigurationParametersDefinitionNil + +`func (o *WorkflowsAvailableStepQueryResponse) SetConfigurationParametersDefinitionNil(b bool)` + + SetConfigurationParametersDefinitionNil sets the value for ConfigurationParametersDefinition to be an explicit nil + +### UnsetConfigurationParametersDefinition +`func (o *WorkflowsAvailableStepQueryResponse) UnsetConfigurationParametersDefinition()` + +UnsetConfigurationParametersDefinition ensures that no value is present for ConfigurationParametersDefinition, not even an explicit nil +### GetSignalsDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) GetSignalsDefinition() map[string]WorkflowsSignalDefinitionResponse` + +GetSignalsDefinition returns the SignalsDefinition field if non-nil, zero value otherwise. + +### GetSignalsDefinitionOk + +`func (o *WorkflowsAvailableStepQueryResponse) GetSignalsDefinitionOk() (*map[string]WorkflowsSignalDefinitionResponse, bool)` + +GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalsDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) SetSignalsDefinition(v map[string]WorkflowsSignalDefinitionResponse)` + +SetSignalsDefinition sets SignalsDefinition field to given value. + +### HasSignalsDefinition + +`func (o *WorkflowsAvailableStepQueryResponse) HasSignalsDefinition() bool` + +HasSignalsDefinition returns a boolean if a field has been set. + +### SetSignalsDefinitionNil + +`func (o *WorkflowsAvailableStepQueryResponse) SetSignalsDefinitionNil(b bool)` + + SetSignalsDefinitionNil sets the value for SignalsDefinition to be an explicit nil + +### UnsetSignalsDefinition +`func (o *WorkflowsAvailableStepQueryResponse) UnsetSignalsDefinition()` + +UnsetSignalsDefinition ensures that no value is present for SignalsDefinition, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepResponse.md new file mode 100644 index 0000000..f88a1d4 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsAvailableStepResponse.md @@ -0,0 +1,210 @@ +# WorkflowsAvailableStepResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | The display name of the step. | [optional] +**ExtensionName** | Pointer to **NullableString** | The name of the extension. | [optional] +**Outputs** | Pointer to **[]string** | The possible outputs of the step. | [optional] +**ConfigurationParametersDefinition** | Pointer to [**map[string]WorkflowsParameterDefinitionResponse**](WorkflowsParameterDefinitionResponse.md) | | [optional] +**SignalsDefinition** | Pointer to [**map[string]WorkflowsSignalDefinitionResponse**](WorkflowsSignalDefinitionResponse.md) | | [optional] + +## Methods + +### NewWorkflowsAvailableStepResponse + +`func NewWorkflowsAvailableStepResponse() *WorkflowsAvailableStepResponse` + +NewWorkflowsAvailableStepResponse instantiates a new WorkflowsAvailableStepResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsAvailableStepResponseWithDefaults + +`func NewWorkflowsAvailableStepResponseWithDefaults() *WorkflowsAvailableStepResponse` + +NewWorkflowsAvailableStepResponseWithDefaults instantiates a new WorkflowsAvailableStepResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *WorkflowsAvailableStepResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsAvailableStepResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsAvailableStepResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsAvailableStepResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsAvailableStepResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsAvailableStepResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetExtensionName + +`func (o *WorkflowsAvailableStepResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *WorkflowsAvailableStepResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *WorkflowsAvailableStepResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *WorkflowsAvailableStepResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### SetExtensionNameNil + +`func (o *WorkflowsAvailableStepResponse) SetExtensionNameNil(b bool)` + + SetExtensionNameNil sets the value for ExtensionName to be an explicit nil + +### UnsetExtensionName +`func (o *WorkflowsAvailableStepResponse) UnsetExtensionName()` + +UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +### GetOutputs + +`func (o *WorkflowsAvailableStepResponse) GetOutputs() []string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *WorkflowsAvailableStepResponse) GetOutputsOk() (*[]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *WorkflowsAvailableStepResponse) SetOutputs(v []string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *WorkflowsAvailableStepResponse) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + +### SetOutputsNil + +`func (o *WorkflowsAvailableStepResponse) SetOutputsNil(b bool)` + + SetOutputsNil sets the value for Outputs to be an explicit nil + +### UnsetOutputs +`func (o *WorkflowsAvailableStepResponse) UnsetOutputs()` + +UnsetOutputs ensures that no value is present for Outputs, not even an explicit nil +### GetConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepResponse) GetConfigurationParametersDefinition() map[string]WorkflowsParameterDefinitionResponse` + +GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field if non-nil, zero value otherwise. + +### GetConfigurationParametersDefinitionOk + +`func (o *WorkflowsAvailableStepResponse) GetConfigurationParametersDefinitionOk() (*map[string]WorkflowsParameterDefinitionResponse, bool)` + +GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepResponse) SetConfigurationParametersDefinition(v map[string]WorkflowsParameterDefinitionResponse)` + +SetConfigurationParametersDefinition sets ConfigurationParametersDefinition field to given value. + +### HasConfigurationParametersDefinition + +`func (o *WorkflowsAvailableStepResponse) HasConfigurationParametersDefinition() bool` + +HasConfigurationParametersDefinition returns a boolean if a field has been set. + +### SetConfigurationParametersDefinitionNil + +`func (o *WorkflowsAvailableStepResponse) SetConfigurationParametersDefinitionNil(b bool)` + + SetConfigurationParametersDefinitionNil sets the value for ConfigurationParametersDefinition to be an explicit nil + +### UnsetConfigurationParametersDefinition +`func (o *WorkflowsAvailableStepResponse) UnsetConfigurationParametersDefinition()` + +UnsetConfigurationParametersDefinition ensures that no value is present for ConfigurationParametersDefinition, not even an explicit nil +### GetSignalsDefinition + +`func (o *WorkflowsAvailableStepResponse) GetSignalsDefinition() map[string]WorkflowsSignalDefinitionResponse` + +GetSignalsDefinition returns the SignalsDefinition field if non-nil, zero value otherwise. + +### GetSignalsDefinitionOk + +`func (o *WorkflowsAvailableStepResponse) GetSignalsDefinitionOk() (*map[string]WorkflowsSignalDefinitionResponse, bool)` + +GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalsDefinition + +`func (o *WorkflowsAvailableStepResponse) SetSignalsDefinition(v map[string]WorkflowsSignalDefinitionResponse)` + +SetSignalsDefinition sets SignalsDefinition field to given value. + +### HasSignalsDefinition + +`func (o *WorkflowsAvailableStepResponse) HasSignalsDefinition() bool` + +HasSignalsDefinition returns a boolean if a field has been set. + +### SetSignalsDefinitionNil + +`func (o *WorkflowsAvailableStepResponse) SetSignalsDefinitionNil(b bool)` + + SetSignalsDefinitionNil sets the value for SignalsDefinition to be an explicit nil + +### UnsetSignalsDefinition +`func (o *WorkflowsAvailableStepResponse) UnsetSignalsDefinition()` + +UnsetSignalsDefinition ensures that no value is present for SignalsDefinition, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationRequest.md new file mode 100644 index 0000000..d4b1cb8 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationRequest.md @@ -0,0 +1,66 @@ +# WorkflowsConditionConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **NullableString** | The value to compare to true when evaluating conditions. | [optional] + +## Methods + +### NewWorkflowsConditionConfigurationRequest + +`func NewWorkflowsConditionConfigurationRequest() *WorkflowsConditionConfigurationRequest` + +NewWorkflowsConditionConfigurationRequest instantiates a new WorkflowsConditionConfigurationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsConditionConfigurationRequestWithDefaults + +`func NewWorkflowsConditionConfigurationRequestWithDefaults() *WorkflowsConditionConfigurationRequest` + +NewWorkflowsConditionConfigurationRequestWithDefaults instantiates a new WorkflowsConditionConfigurationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *WorkflowsConditionConfigurationRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WorkflowsConditionConfigurationRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *WorkflowsConditionConfigurationRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *WorkflowsConditionConfigurationRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *WorkflowsConditionConfigurationRequest) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *WorkflowsConditionConfigurationRequest) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationResponse.md new file mode 100644 index 0000000..76d8723 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsConditionConfigurationResponse.md @@ -0,0 +1,92 @@ +# WorkflowsConditionConfigurationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The Id of the condition. | [optional] +**Value** | Pointer to **NullableString** | The value to compare to. This value will be compared to a true value. | [optional] + +## Methods + +### NewWorkflowsConditionConfigurationResponse + +`func NewWorkflowsConditionConfigurationResponse() *WorkflowsConditionConfigurationResponse` + +NewWorkflowsConditionConfigurationResponse instantiates a new WorkflowsConditionConfigurationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsConditionConfigurationResponseWithDefaults + +`func NewWorkflowsConditionConfigurationResponseWithDefaults() *WorkflowsConditionConfigurationResponse` + +NewWorkflowsConditionConfigurationResponseWithDefaults instantiates a new WorkflowsConditionConfigurationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsConditionConfigurationResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsConditionConfigurationResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsConditionConfigurationResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsConditionConfigurationResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *WorkflowsConditionConfigurationResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WorkflowsConditionConfigurationResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *WorkflowsConditionConfigurationResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *WorkflowsConditionConfigurationResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *WorkflowsConditionConfigurationResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *WorkflowsConditionConfigurationResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionCreateRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionCreateRequest.md new file mode 100644 index 0000000..006cc3b --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionCreateRequest.md @@ -0,0 +1,200 @@ +# WorkflowsDefinitionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | Display name of the Definition | [optional] +**Description** | Pointer to **NullableString** | Description of the Definition | [optional] +**Key** | Pointer to **NullableString** | Key to be used to look up definition when starting a new workflow. For enrollment workflowTypes, this should be a template | [optional] +**WorkflowType** | Pointer to **NullableString** | The Type of Workflow | [optional] +**Enabled** | Pointer to **bool** | If the Definition is enabled | [optional] + +## Methods + +### NewWorkflowsDefinitionCreateRequest + +`func NewWorkflowsDefinitionCreateRequest() *WorkflowsDefinitionCreateRequest` + +NewWorkflowsDefinitionCreateRequest instantiates a new WorkflowsDefinitionCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionCreateRequestWithDefaults + +`func NewWorkflowsDefinitionCreateRequestWithDefaults() *WorkflowsDefinitionCreateRequest` + +NewWorkflowsDefinitionCreateRequestWithDefaults instantiates a new WorkflowsDefinitionCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *WorkflowsDefinitionCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionCreateRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionCreateRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *WorkflowsDefinitionCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WorkflowsDefinitionCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WorkflowsDefinitionCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WorkflowsDefinitionCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *WorkflowsDefinitionCreateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *WorkflowsDefinitionCreateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetKey + +`func (o *WorkflowsDefinitionCreateRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *WorkflowsDefinitionCreateRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *WorkflowsDefinitionCreateRequest) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *WorkflowsDefinitionCreateRequest) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### SetKeyNil + +`func (o *WorkflowsDefinitionCreateRequest) SetKeyNil(b bool)` + + SetKeyNil sets the value for Key to be an explicit nil + +### UnsetKey +`func (o *WorkflowsDefinitionCreateRequest) UnsetKey()` + +UnsetKey ensures that no value is present for Key, not even an explicit nil +### GetWorkflowType + +`func (o *WorkflowsDefinitionCreateRequest) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *WorkflowsDefinitionCreateRequest) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *WorkflowsDefinitionCreateRequest) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *WorkflowsDefinitionCreateRequest) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### SetWorkflowTypeNil + +`func (o *WorkflowsDefinitionCreateRequest) SetWorkflowTypeNil(b bool)` + + SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil + +### UnsetWorkflowType +`func (o *WorkflowsDefinitionCreateRequest) UnsetWorkflowType()` + +UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionCreateRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionCreateRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionCreateRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionCreateRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionQueryResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionQueryResponse.md new file mode 100644 index 0000000..a0f57f7 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionQueryResponse.md @@ -0,0 +1,288 @@ +# WorkflowsDefinitionQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Key** | Pointer to **NullableString** | | [optional] +**KeyDisplayName** | Pointer to **NullableString** | | [optional] +**WorkflowType** | Pointer to **NullableString** | | [optional] +**DraftVersion** | Pointer to **int32** | | [optional] +**PublishedVersion** | Pointer to **NullableInt32** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewWorkflowsDefinitionQueryResponse + +`func NewWorkflowsDefinitionQueryResponse() *WorkflowsDefinitionQueryResponse` + +NewWorkflowsDefinitionQueryResponse instantiates a new WorkflowsDefinitionQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionQueryResponseWithDefaults + +`func NewWorkflowsDefinitionQueryResponseWithDefaults() *WorkflowsDefinitionQueryResponse` + +NewWorkflowsDefinitionQueryResponseWithDefaults instantiates a new WorkflowsDefinitionQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsDefinitionQueryResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsDefinitionQueryResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsDefinitionQueryResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsDefinitionQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionQueryResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionQueryResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionQueryResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetKey + +`func (o *WorkflowsDefinitionQueryResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *WorkflowsDefinitionQueryResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *WorkflowsDefinitionQueryResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *WorkflowsDefinitionQueryResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### SetKeyNil + +`func (o *WorkflowsDefinitionQueryResponse) SetKeyNil(b bool)` + + SetKeyNil sets the value for Key to be an explicit nil + +### UnsetKey +`func (o *WorkflowsDefinitionQueryResponse) UnsetKey()` + +UnsetKey ensures that no value is present for Key, not even an explicit nil +### GetKeyDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) GetKeyDisplayName() string` + +GetKeyDisplayName returns the KeyDisplayName field if non-nil, zero value otherwise. + +### GetKeyDisplayNameOk + +`func (o *WorkflowsDefinitionQueryResponse) GetKeyDisplayNameOk() (*string, bool)` + +GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) SetKeyDisplayName(v string)` + +SetKeyDisplayName sets KeyDisplayName field to given value. + +### HasKeyDisplayName + +`func (o *WorkflowsDefinitionQueryResponse) HasKeyDisplayName() bool` + +HasKeyDisplayName returns a boolean if a field has been set. + +### SetKeyDisplayNameNil + +`func (o *WorkflowsDefinitionQueryResponse) SetKeyDisplayNameNil(b bool)` + + SetKeyDisplayNameNil sets the value for KeyDisplayName to be an explicit nil + +### UnsetKeyDisplayName +`func (o *WorkflowsDefinitionQueryResponse) UnsetKeyDisplayName()` + +UnsetKeyDisplayName ensures that no value is present for KeyDisplayName, not even an explicit nil +### GetWorkflowType + +`func (o *WorkflowsDefinitionQueryResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *WorkflowsDefinitionQueryResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *WorkflowsDefinitionQueryResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *WorkflowsDefinitionQueryResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### SetWorkflowTypeNil + +`func (o *WorkflowsDefinitionQueryResponse) SetWorkflowTypeNil(b bool)` + + SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil + +### UnsetWorkflowType +`func (o *WorkflowsDefinitionQueryResponse) UnsetWorkflowType()` + +UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +### GetDraftVersion + +`func (o *WorkflowsDefinitionQueryResponse) GetDraftVersion() int32` + +GetDraftVersion returns the DraftVersion field if non-nil, zero value otherwise. + +### GetDraftVersionOk + +`func (o *WorkflowsDefinitionQueryResponse) GetDraftVersionOk() (*int32, bool)` + +GetDraftVersionOk returns a tuple with the DraftVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDraftVersion + +`func (o *WorkflowsDefinitionQueryResponse) SetDraftVersion(v int32)` + +SetDraftVersion sets DraftVersion field to given value. + +### HasDraftVersion + +`func (o *WorkflowsDefinitionQueryResponse) HasDraftVersion() bool` + +HasDraftVersion returns a boolean if a field has been set. + +### GetPublishedVersion + +`func (o *WorkflowsDefinitionQueryResponse) GetPublishedVersion() int32` + +GetPublishedVersion returns the PublishedVersion field if non-nil, zero value otherwise. + +### GetPublishedVersionOk + +`func (o *WorkflowsDefinitionQueryResponse) GetPublishedVersionOk() (*int32, bool)` + +GetPublishedVersionOk returns a tuple with the PublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedVersion + +`func (o *WorkflowsDefinitionQueryResponse) SetPublishedVersion(v int32)` + +SetPublishedVersion sets PublishedVersion field to given value. + +### HasPublishedVersion + +`func (o *WorkflowsDefinitionQueryResponse) HasPublishedVersion() bool` + +HasPublishedVersion returns a boolean if a field has been set. + +### SetPublishedVersionNil + +`func (o *WorkflowsDefinitionQueryResponse) SetPublishedVersionNil(b bool)` + + SetPublishedVersionNil sets the value for PublishedVersion to be an explicit nil + +### UnsetPublishedVersion +`func (o *WorkflowsDefinitionQueryResponse) UnsetPublishedVersion()` + +UnsetPublishedVersion ensures that no value is present for PublishedVersion, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionQueryResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionQueryResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionQueryResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionQueryResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionResponse.md new file mode 100644 index 0000000..bb93fe5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionResponse.md @@ -0,0 +1,386 @@ +# WorkflowsDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Key** | Pointer to **NullableString** | | [optional] +**KeyDisplayName** | Pointer to **NullableString** | | [optional] +**IsPublished** | Pointer to **bool** | | [optional] +**WorkflowType** | Pointer to **NullableString** | | [optional] +**Steps** | Pointer to [**[]WorkflowsDefinitionStepResponse**](WorkflowsDefinitionStepResponse.md) | | [optional] +**DraftVersion** | Pointer to **int32** | | [optional] +**PublishedVersion** | Pointer to **NullableInt32** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewWorkflowsDefinitionResponse + +`func NewWorkflowsDefinitionResponse() *WorkflowsDefinitionResponse` + +NewWorkflowsDefinitionResponse instantiates a new WorkflowsDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionResponseWithDefaults + +`func NewWorkflowsDefinitionResponseWithDefaults() *WorkflowsDefinitionResponse` + +NewWorkflowsDefinitionResponseWithDefaults instantiates a new WorkflowsDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsDefinitionResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsDefinitionResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsDefinitionResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *WorkflowsDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *WorkflowsDefinitionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WorkflowsDefinitionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WorkflowsDefinitionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WorkflowsDefinitionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *WorkflowsDefinitionResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *WorkflowsDefinitionResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetKey + +`func (o *WorkflowsDefinitionResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *WorkflowsDefinitionResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *WorkflowsDefinitionResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *WorkflowsDefinitionResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### SetKeyNil + +`func (o *WorkflowsDefinitionResponse) SetKeyNil(b bool)` + + SetKeyNil sets the value for Key to be an explicit nil + +### UnsetKey +`func (o *WorkflowsDefinitionResponse) UnsetKey()` + +UnsetKey ensures that no value is present for Key, not even an explicit nil +### GetKeyDisplayName + +`func (o *WorkflowsDefinitionResponse) GetKeyDisplayName() string` + +GetKeyDisplayName returns the KeyDisplayName field if non-nil, zero value otherwise. + +### GetKeyDisplayNameOk + +`func (o *WorkflowsDefinitionResponse) GetKeyDisplayNameOk() (*string, bool)` + +GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyDisplayName + +`func (o *WorkflowsDefinitionResponse) SetKeyDisplayName(v string)` + +SetKeyDisplayName sets KeyDisplayName field to given value. + +### HasKeyDisplayName + +`func (o *WorkflowsDefinitionResponse) HasKeyDisplayName() bool` + +HasKeyDisplayName returns a boolean if a field has been set. + +### SetKeyDisplayNameNil + +`func (o *WorkflowsDefinitionResponse) SetKeyDisplayNameNil(b bool)` + + SetKeyDisplayNameNil sets the value for KeyDisplayName to be an explicit nil + +### UnsetKeyDisplayName +`func (o *WorkflowsDefinitionResponse) UnsetKeyDisplayName()` + +UnsetKeyDisplayName ensures that no value is present for KeyDisplayName, not even an explicit nil +### GetIsPublished + +`func (o *WorkflowsDefinitionResponse) GetIsPublished() bool` + +GetIsPublished returns the IsPublished field if non-nil, zero value otherwise. + +### GetIsPublishedOk + +`func (o *WorkflowsDefinitionResponse) GetIsPublishedOk() (*bool, bool)` + +GetIsPublishedOk returns a tuple with the IsPublished field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublished + +`func (o *WorkflowsDefinitionResponse) SetIsPublished(v bool)` + +SetIsPublished sets IsPublished field to given value. + +### HasIsPublished + +`func (o *WorkflowsDefinitionResponse) HasIsPublished() bool` + +HasIsPublished returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *WorkflowsDefinitionResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *WorkflowsDefinitionResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *WorkflowsDefinitionResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *WorkflowsDefinitionResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### SetWorkflowTypeNil + +`func (o *WorkflowsDefinitionResponse) SetWorkflowTypeNil(b bool)` + + SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil + +### UnsetWorkflowType +`func (o *WorkflowsDefinitionResponse) UnsetWorkflowType()` + +UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +### GetSteps + +`func (o *WorkflowsDefinitionResponse) GetSteps() []WorkflowsDefinitionStepResponse` + +GetSteps returns the Steps field if non-nil, zero value otherwise. + +### GetStepsOk + +`func (o *WorkflowsDefinitionResponse) GetStepsOk() (*[]WorkflowsDefinitionStepResponse, bool)` + +GetStepsOk returns a tuple with the Steps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSteps + +`func (o *WorkflowsDefinitionResponse) SetSteps(v []WorkflowsDefinitionStepResponse)` + +SetSteps sets Steps field to given value. + +### HasSteps + +`func (o *WorkflowsDefinitionResponse) HasSteps() bool` + +HasSteps returns a boolean if a field has been set. + +### SetStepsNil + +`func (o *WorkflowsDefinitionResponse) SetStepsNil(b bool)` + + SetStepsNil sets the value for Steps to be an explicit nil + +### UnsetSteps +`func (o *WorkflowsDefinitionResponse) UnsetSteps()` + +UnsetSteps ensures that no value is present for Steps, not even an explicit nil +### GetDraftVersion + +`func (o *WorkflowsDefinitionResponse) GetDraftVersion() int32` + +GetDraftVersion returns the DraftVersion field if non-nil, zero value otherwise. + +### GetDraftVersionOk + +`func (o *WorkflowsDefinitionResponse) GetDraftVersionOk() (*int32, bool)` + +GetDraftVersionOk returns a tuple with the DraftVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDraftVersion + +`func (o *WorkflowsDefinitionResponse) SetDraftVersion(v int32)` + +SetDraftVersion sets DraftVersion field to given value. + +### HasDraftVersion + +`func (o *WorkflowsDefinitionResponse) HasDraftVersion() bool` + +HasDraftVersion returns a boolean if a field has been set. + +### GetPublishedVersion + +`func (o *WorkflowsDefinitionResponse) GetPublishedVersion() int32` + +GetPublishedVersion returns the PublishedVersion field if non-nil, zero value otherwise. + +### GetPublishedVersionOk + +`func (o *WorkflowsDefinitionResponse) GetPublishedVersionOk() (*int32, bool)` + +GetPublishedVersionOk returns a tuple with the PublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedVersion + +`func (o *WorkflowsDefinitionResponse) SetPublishedVersion(v int32)` + +SetPublishedVersion sets PublishedVersion field to given value. + +### HasPublishedVersion + +`func (o *WorkflowsDefinitionResponse) HasPublishedVersion() bool` + +HasPublishedVersion returns a boolean if a field has been set. + +### SetPublishedVersionNil + +`func (o *WorkflowsDefinitionResponse) SetPublishedVersionNil(b bool)` + + SetPublishedVersionNil sets the value for PublishedVersion to be an explicit nil + +### UnsetPublishedVersion +`func (o *WorkflowsDefinitionResponse) UnsetPublishedVersion()` + +UnsetPublishedVersion ensures that no value is present for PublishedVersion, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepRequest.md new file mode 100644 index 0000000..6923b52 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepRequest.md @@ -0,0 +1,308 @@ +# WorkflowsDefinitionStepRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExtensionName** | Pointer to **NullableString** | | [optional] +**UniqueName** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**ConfigurationParameters** | Pointer to **map[string]interface{}** | | [optional] +**Signals** | Pointer to [**[]WorkflowsSignalConfigurationRequest**](WorkflowsSignalConfigurationRequest.md) | | [optional] +**Conditions** | Pointer to [**[]WorkflowsConditionConfigurationRequest**](WorkflowsConditionConfigurationRequest.md) | | [optional] +**Outputs** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewWorkflowsDefinitionStepRequest + +`func NewWorkflowsDefinitionStepRequest() *WorkflowsDefinitionStepRequest` + +NewWorkflowsDefinitionStepRequest instantiates a new WorkflowsDefinitionStepRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionStepRequestWithDefaults + +`func NewWorkflowsDefinitionStepRequestWithDefaults() *WorkflowsDefinitionStepRequest` + +NewWorkflowsDefinitionStepRequestWithDefaults instantiates a new WorkflowsDefinitionStepRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExtensionName + +`func (o *WorkflowsDefinitionStepRequest) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *WorkflowsDefinitionStepRequest) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *WorkflowsDefinitionStepRequest) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *WorkflowsDefinitionStepRequest) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### SetExtensionNameNil + +`func (o *WorkflowsDefinitionStepRequest) SetExtensionNameNil(b bool)` + + SetExtensionNameNil sets the value for ExtensionName to be an explicit nil + +### UnsetExtensionName +`func (o *WorkflowsDefinitionStepRequest) UnsetExtensionName()` + +UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +### GetUniqueName + +`func (o *WorkflowsDefinitionStepRequest) GetUniqueName() string` + +GetUniqueName returns the UniqueName field if non-nil, zero value otherwise. + +### GetUniqueNameOk + +`func (o *WorkflowsDefinitionStepRequest) GetUniqueNameOk() (*string, bool)` + +GetUniqueNameOk returns a tuple with the UniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueName + +`func (o *WorkflowsDefinitionStepRequest) SetUniqueName(v string)` + +SetUniqueName sets UniqueName field to given value. + +### HasUniqueName + +`func (o *WorkflowsDefinitionStepRequest) HasUniqueName() bool` + +HasUniqueName returns a boolean if a field has been set. + +### SetUniqueNameNil + +`func (o *WorkflowsDefinitionStepRequest) SetUniqueNameNil(b bool)` + + SetUniqueNameNil sets the value for UniqueName to be an explicit nil + +### UnsetUniqueName +`func (o *WorkflowsDefinitionStepRequest) UnsetUniqueName()` + +UnsetUniqueName ensures that no value is present for UniqueName, not even an explicit nil +### GetDisplayName + +`func (o *WorkflowsDefinitionStepRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionStepRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionStepRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionStepRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionStepRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionStepRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionStepRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionStepRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionStepRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionStepRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConfigurationParameters + +`func (o *WorkflowsDefinitionStepRequest) GetConfigurationParameters() map[string]interface{}` + +GetConfigurationParameters returns the ConfigurationParameters field if non-nil, zero value otherwise. + +### GetConfigurationParametersOk + +`func (o *WorkflowsDefinitionStepRequest) GetConfigurationParametersOk() (*map[string]interface{}, bool)` + +GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParameters + +`func (o *WorkflowsDefinitionStepRequest) SetConfigurationParameters(v map[string]interface{})` + +SetConfigurationParameters sets ConfigurationParameters field to given value. + +### HasConfigurationParameters + +`func (o *WorkflowsDefinitionStepRequest) HasConfigurationParameters() bool` + +HasConfigurationParameters returns a boolean if a field has been set. + +### SetConfigurationParametersNil + +`func (o *WorkflowsDefinitionStepRequest) SetConfigurationParametersNil(b bool)` + + SetConfigurationParametersNil sets the value for ConfigurationParameters to be an explicit nil + +### UnsetConfigurationParameters +`func (o *WorkflowsDefinitionStepRequest) UnsetConfigurationParameters()` + +UnsetConfigurationParameters ensures that no value is present for ConfigurationParameters, not even an explicit nil +### GetSignals + +`func (o *WorkflowsDefinitionStepRequest) GetSignals() []WorkflowsSignalConfigurationRequest` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *WorkflowsDefinitionStepRequest) GetSignalsOk() (*[]WorkflowsSignalConfigurationRequest, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *WorkflowsDefinitionStepRequest) SetSignals(v []WorkflowsSignalConfigurationRequest)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *WorkflowsDefinitionStepRequest) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### SetSignalsNil + +`func (o *WorkflowsDefinitionStepRequest) SetSignalsNil(b bool)` + + SetSignalsNil sets the value for Signals to be an explicit nil + +### UnsetSignals +`func (o *WorkflowsDefinitionStepRequest) UnsetSignals()` + +UnsetSignals ensures that no value is present for Signals, not even an explicit nil +### GetConditions + +`func (o *WorkflowsDefinitionStepRequest) GetConditions() []WorkflowsConditionConfigurationRequest` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *WorkflowsDefinitionStepRequest) GetConditionsOk() (*[]WorkflowsConditionConfigurationRequest, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *WorkflowsDefinitionStepRequest) SetConditions(v []WorkflowsConditionConfigurationRequest)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *WorkflowsDefinitionStepRequest) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *WorkflowsDefinitionStepRequest) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *WorkflowsDefinitionStepRequest) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetOutputs + +`func (o *WorkflowsDefinitionStepRequest) GetOutputs() map[string]string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *WorkflowsDefinitionStepRequest) GetOutputsOk() (*map[string]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *WorkflowsDefinitionStepRequest) SetOutputs(v map[string]string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *WorkflowsDefinitionStepRequest) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + +### SetOutputsNil + +`func (o *WorkflowsDefinitionStepRequest) SetOutputsNil(b bool)` + + SetOutputsNil sets the value for Outputs to be an explicit nil + +### UnsetOutputs +`func (o *WorkflowsDefinitionStepRequest) UnsetOutputs()` + +UnsetOutputs ensures that no value is present for Outputs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepResponse.md new file mode 100644 index 0000000..cb56256 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepResponse.md @@ -0,0 +1,334 @@ +# WorkflowsDefinitionStepResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**UniqueName** | Pointer to **NullableString** | | [optional] +**ExtensionName** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**ConfigurationParameters** | Pointer to **map[string]interface{}** | | [optional] +**Signals** | Pointer to [**[]WorkflowsDefinitionStepSignalResponse**](WorkflowsDefinitionStepSignalResponse.md) | | [optional] +**Conditions** | Pointer to [**[]WorkflowsConditionConfigurationResponse**](WorkflowsConditionConfigurationResponse.md) | | [optional] +**Outputs** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewWorkflowsDefinitionStepResponse + +`func NewWorkflowsDefinitionStepResponse() *WorkflowsDefinitionStepResponse` + +NewWorkflowsDefinitionStepResponse instantiates a new WorkflowsDefinitionStepResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionStepResponseWithDefaults + +`func NewWorkflowsDefinitionStepResponseWithDefaults() *WorkflowsDefinitionStepResponse` + +NewWorkflowsDefinitionStepResponseWithDefaults instantiates a new WorkflowsDefinitionStepResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsDefinitionStepResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsDefinitionStepResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsDefinitionStepResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsDefinitionStepResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *WorkflowsDefinitionStepResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionStepResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionStepResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionStepResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionStepResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionStepResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetUniqueName + +`func (o *WorkflowsDefinitionStepResponse) GetUniqueName() string` + +GetUniqueName returns the UniqueName field if non-nil, zero value otherwise. + +### GetUniqueNameOk + +`func (o *WorkflowsDefinitionStepResponse) GetUniqueNameOk() (*string, bool)` + +GetUniqueNameOk returns a tuple with the UniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueName + +`func (o *WorkflowsDefinitionStepResponse) SetUniqueName(v string)` + +SetUniqueName sets UniqueName field to given value. + +### HasUniqueName + +`func (o *WorkflowsDefinitionStepResponse) HasUniqueName() bool` + +HasUniqueName returns a boolean if a field has been set. + +### SetUniqueNameNil + +`func (o *WorkflowsDefinitionStepResponse) SetUniqueNameNil(b bool)` + + SetUniqueNameNil sets the value for UniqueName to be an explicit nil + +### UnsetUniqueName +`func (o *WorkflowsDefinitionStepResponse) UnsetUniqueName()` + +UnsetUniqueName ensures that no value is present for UniqueName, not even an explicit nil +### GetExtensionName + +`func (o *WorkflowsDefinitionStepResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *WorkflowsDefinitionStepResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *WorkflowsDefinitionStepResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *WorkflowsDefinitionStepResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### SetExtensionNameNil + +`func (o *WorkflowsDefinitionStepResponse) SetExtensionNameNil(b bool)` + + SetExtensionNameNil sets the value for ExtensionName to be an explicit nil + +### UnsetExtensionName +`func (o *WorkflowsDefinitionStepResponse) UnsetExtensionName()` + +UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionStepResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionStepResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionStepResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionStepResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConfigurationParameters + +`func (o *WorkflowsDefinitionStepResponse) GetConfigurationParameters() map[string]interface{}` + +GetConfigurationParameters returns the ConfigurationParameters field if non-nil, zero value otherwise. + +### GetConfigurationParametersOk + +`func (o *WorkflowsDefinitionStepResponse) GetConfigurationParametersOk() (*map[string]interface{}, bool)` + +GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParameters + +`func (o *WorkflowsDefinitionStepResponse) SetConfigurationParameters(v map[string]interface{})` + +SetConfigurationParameters sets ConfigurationParameters field to given value. + +### HasConfigurationParameters + +`func (o *WorkflowsDefinitionStepResponse) HasConfigurationParameters() bool` + +HasConfigurationParameters returns a boolean if a field has been set. + +### SetConfigurationParametersNil + +`func (o *WorkflowsDefinitionStepResponse) SetConfigurationParametersNil(b bool)` + + SetConfigurationParametersNil sets the value for ConfigurationParameters to be an explicit nil + +### UnsetConfigurationParameters +`func (o *WorkflowsDefinitionStepResponse) UnsetConfigurationParameters()` + +UnsetConfigurationParameters ensures that no value is present for ConfigurationParameters, not even an explicit nil +### GetSignals + +`func (o *WorkflowsDefinitionStepResponse) GetSignals() []WorkflowsDefinitionStepSignalResponse` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *WorkflowsDefinitionStepResponse) GetSignalsOk() (*[]WorkflowsDefinitionStepSignalResponse, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *WorkflowsDefinitionStepResponse) SetSignals(v []WorkflowsDefinitionStepSignalResponse)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *WorkflowsDefinitionStepResponse) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### SetSignalsNil + +`func (o *WorkflowsDefinitionStepResponse) SetSignalsNil(b bool)` + + SetSignalsNil sets the value for Signals to be an explicit nil + +### UnsetSignals +`func (o *WorkflowsDefinitionStepResponse) UnsetSignals()` + +UnsetSignals ensures that no value is present for Signals, not even an explicit nil +### GetConditions + +`func (o *WorkflowsDefinitionStepResponse) GetConditions() []WorkflowsConditionConfigurationResponse` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *WorkflowsDefinitionStepResponse) GetConditionsOk() (*[]WorkflowsConditionConfigurationResponse, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *WorkflowsDefinitionStepResponse) SetConditions(v []WorkflowsConditionConfigurationResponse)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *WorkflowsDefinitionStepResponse) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *WorkflowsDefinitionStepResponse) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *WorkflowsDefinitionStepResponse) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetOutputs + +`func (o *WorkflowsDefinitionStepResponse) GetOutputs() map[string]string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *WorkflowsDefinitionStepResponse) GetOutputsOk() (*map[string]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *WorkflowsDefinitionStepResponse) SetOutputs(v map[string]string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *WorkflowsDefinitionStepResponse) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + +### SetOutputsNil + +`func (o *WorkflowsDefinitionStepResponse) SetOutputsNil(b bool)` + + SetOutputsNil sets the value for Outputs to be an explicit nil + +### UnsetOutputs +`func (o *WorkflowsDefinitionStepResponse) UnsetOutputs()` + +UnsetOutputs ensures that no value is present for Outputs, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepSignalResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepSignalResponse.md new file mode 100644 index 0000000..c072789 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionStepSignalResponse.md @@ -0,0 +1,102 @@ +# WorkflowsDefinitionStepSignalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleIds** | Pointer to **[]int32** | The roles that are allowed to send this signal. | [optional] +**SignalName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewWorkflowsDefinitionStepSignalResponse + +`func NewWorkflowsDefinitionStepSignalResponse() *WorkflowsDefinitionStepSignalResponse` + +NewWorkflowsDefinitionStepSignalResponse instantiates a new WorkflowsDefinitionStepSignalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionStepSignalResponseWithDefaults + +`func NewWorkflowsDefinitionStepSignalResponseWithDefaults() *WorkflowsDefinitionStepSignalResponse` + +NewWorkflowsDefinitionStepSignalResponseWithDefaults instantiates a new WorkflowsDefinitionStepSignalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleIds + +`func (o *WorkflowsDefinitionStepSignalResponse) GetRoleIds() []int32` + +GetRoleIds returns the RoleIds field if non-nil, zero value otherwise. + +### GetRoleIdsOk + +`func (o *WorkflowsDefinitionStepSignalResponse) GetRoleIdsOk() (*[]int32, bool)` + +GetRoleIdsOk returns a tuple with the RoleIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleIds + +`func (o *WorkflowsDefinitionStepSignalResponse) SetRoleIds(v []int32)` + +SetRoleIds sets RoleIds field to given value. + +### HasRoleIds + +`func (o *WorkflowsDefinitionStepSignalResponse) HasRoleIds() bool` + +HasRoleIds returns a boolean if a field has been set. + +### SetRoleIdsNil + +`func (o *WorkflowsDefinitionStepSignalResponse) SetRoleIdsNil(b bool)` + + SetRoleIdsNil sets the value for RoleIds to be an explicit nil + +### UnsetRoleIds +`func (o *WorkflowsDefinitionStepSignalResponse) UnsetRoleIds()` + +UnsetRoleIds ensures that no value is present for RoleIds, not even an explicit nil +### GetSignalName + +`func (o *WorkflowsDefinitionStepSignalResponse) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *WorkflowsDefinitionStepSignalResponse) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *WorkflowsDefinitionStepSignalResponse) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *WorkflowsDefinitionStepSignalResponse) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + +### SetSignalNameNil + +`func (o *WorkflowsDefinitionStepSignalResponse) SetSignalNameNil(b bool)` + + SetSignalNameNil sets the value for SignalName to be an explicit nil + +### UnsetSignalName +`func (o *WorkflowsDefinitionStepSignalResponse) UnsetSignalName()` + +UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsDefinitionUpdateRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionUpdateRequest.md new file mode 100644 index 0000000..ac850bd --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsDefinitionUpdateRequest.md @@ -0,0 +1,128 @@ +# WorkflowsDefinitionUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewWorkflowsDefinitionUpdateRequest + +`func NewWorkflowsDefinitionUpdateRequest() *WorkflowsDefinitionUpdateRequest` + +NewWorkflowsDefinitionUpdateRequest instantiates a new WorkflowsDefinitionUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsDefinitionUpdateRequestWithDefaults + +`func NewWorkflowsDefinitionUpdateRequestWithDefaults() *WorkflowsDefinitionUpdateRequest` + +NewWorkflowsDefinitionUpdateRequestWithDefaults instantiates a new WorkflowsDefinitionUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *WorkflowsDefinitionUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsDefinitionUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsDefinitionUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsDefinitionUpdateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsDefinitionUpdateRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsDefinitionUpdateRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDescription + +`func (o *WorkflowsDefinitionUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WorkflowsDefinitionUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WorkflowsDefinitionUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WorkflowsDefinitionUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *WorkflowsDefinitionUpdateRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *WorkflowsDefinitionUpdateRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEnabled + +`func (o *WorkflowsDefinitionUpdateRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WorkflowsDefinitionUpdateRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WorkflowsDefinitionUpdateRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WorkflowsDefinitionUpdateRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsInstanceDefinitionResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsInstanceDefinitionResponse.md new file mode 100644 index 0000000..9240964 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsInstanceDefinitionResponse.md @@ -0,0 +1,154 @@ +# WorkflowsInstanceDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**Version** | Pointer to **int32** | | [optional] +**WorkflowType** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewWorkflowsInstanceDefinitionResponse + +`func NewWorkflowsInstanceDefinitionResponse() *WorkflowsInstanceDefinitionResponse` + +NewWorkflowsInstanceDefinitionResponse instantiates a new WorkflowsInstanceDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsInstanceDefinitionResponseWithDefaults + +`func NewWorkflowsInstanceDefinitionResponseWithDefaults() *WorkflowsInstanceDefinitionResponse` + +NewWorkflowsInstanceDefinitionResponseWithDefaults instantiates a new WorkflowsInstanceDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsInstanceDefinitionResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsInstanceDefinitionResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsInstanceDefinitionResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsInstanceDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *WorkflowsInstanceDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsInstanceDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsInstanceDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsInstanceDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsInstanceDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsInstanceDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetVersion + +`func (o *WorkflowsInstanceDefinitionResponse) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *WorkflowsInstanceDefinitionResponse) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *WorkflowsInstanceDefinitionResponse) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *WorkflowsInstanceDefinitionResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *WorkflowsInstanceDefinitionResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *WorkflowsInstanceDefinitionResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *WorkflowsInstanceDefinitionResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *WorkflowsInstanceDefinitionResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### SetWorkflowTypeNil + +`func (o *WorkflowsInstanceDefinitionResponse) SetWorkflowTypeNil(b bool)` + + SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil + +### UnsetWorkflowType +`func (o *WorkflowsInstanceDefinitionResponse) UnsetWorkflowType()` + +UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsInstanceQueryResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsInstanceQueryResponse.md new file mode 100644 index 0000000..48a442c --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsInstanceQueryResponse.md @@ -0,0 +1,366 @@ +# WorkflowsInstanceQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Status** | Pointer to [**KeyfactorWorkflowsWorkflowInstanceStatus**](KeyfactorWorkflowsWorkflowInstanceStatus.md) | | [optional] +**CurrentStepId** | Pointer to **string** | | [optional] +**StatusMessage** | Pointer to **NullableString** | | [optional] +**Definition** | Pointer to [**WorkflowsInstanceDefinitionResponse**](WorkflowsInstanceDefinitionResponse.md) | | [optional] +**CurrentStepDisplayName** | Pointer to **NullableString** | | [optional] +**CurrentStepUniqueName** | Pointer to **NullableString** | | [optional] +**Title** | Pointer to **NullableString** | | [optional] +**LastModified** | Pointer to **NullableTime** | | [optional] +**StartDate** | Pointer to **time.Time** | | [optional] +**ReferenceId** | Pointer to **int64** | | [optional] + +## Methods + +### NewWorkflowsInstanceQueryResponse + +`func NewWorkflowsInstanceQueryResponse() *WorkflowsInstanceQueryResponse` + +NewWorkflowsInstanceQueryResponse instantiates a new WorkflowsInstanceQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsInstanceQueryResponseWithDefaults + +`func NewWorkflowsInstanceQueryResponseWithDefaults() *WorkflowsInstanceQueryResponse` + +NewWorkflowsInstanceQueryResponseWithDefaults instantiates a new WorkflowsInstanceQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsInstanceQueryResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsInstanceQueryResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsInstanceQueryResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsInstanceQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStatus + +`func (o *WorkflowsInstanceQueryResponse) GetStatus() KeyfactorWorkflowsWorkflowInstanceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WorkflowsInstanceQueryResponse) GetStatusOk() (*KeyfactorWorkflowsWorkflowInstanceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *WorkflowsInstanceQueryResponse) SetStatus(v KeyfactorWorkflowsWorkflowInstanceStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WorkflowsInstanceQueryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCurrentStepId + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepId() string` + +GetCurrentStepId returns the CurrentStepId field if non-nil, zero value otherwise. + +### GetCurrentStepIdOk + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepIdOk() (*string, bool)` + +GetCurrentStepIdOk returns a tuple with the CurrentStepId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepId + +`func (o *WorkflowsInstanceQueryResponse) SetCurrentStepId(v string)` + +SetCurrentStepId sets CurrentStepId field to given value. + +### HasCurrentStepId + +`func (o *WorkflowsInstanceQueryResponse) HasCurrentStepId() bool` + +HasCurrentStepId returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *WorkflowsInstanceQueryResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *WorkflowsInstanceQueryResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *WorkflowsInstanceQueryResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *WorkflowsInstanceQueryResponse) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### SetStatusMessageNil + +`func (o *WorkflowsInstanceQueryResponse) SetStatusMessageNil(b bool)` + + SetStatusMessageNil sets the value for StatusMessage to be an explicit nil + +### UnsetStatusMessage +`func (o *WorkflowsInstanceQueryResponse) UnsetStatusMessage()` + +UnsetStatusMessage ensures that no value is present for StatusMessage, not even an explicit nil +### GetDefinition + +`func (o *WorkflowsInstanceQueryResponse) GetDefinition() WorkflowsInstanceDefinitionResponse` + +GetDefinition returns the Definition field if non-nil, zero value otherwise. + +### GetDefinitionOk + +`func (o *WorkflowsInstanceQueryResponse) GetDefinitionOk() (*WorkflowsInstanceDefinitionResponse, bool)` + +GetDefinitionOk returns a tuple with the Definition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefinition + +`func (o *WorkflowsInstanceQueryResponse) SetDefinition(v WorkflowsInstanceDefinitionResponse)` + +SetDefinition sets Definition field to given value. + +### HasDefinition + +`func (o *WorkflowsInstanceQueryResponse) HasDefinition() bool` + +HasDefinition returns a boolean if a field has been set. + +### GetCurrentStepDisplayName + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepDisplayName() string` + +GetCurrentStepDisplayName returns the CurrentStepDisplayName field if non-nil, zero value otherwise. + +### GetCurrentStepDisplayNameOk + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepDisplayNameOk() (*string, bool)` + +GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepDisplayName + +`func (o *WorkflowsInstanceQueryResponse) SetCurrentStepDisplayName(v string)` + +SetCurrentStepDisplayName sets CurrentStepDisplayName field to given value. + +### HasCurrentStepDisplayName + +`func (o *WorkflowsInstanceQueryResponse) HasCurrentStepDisplayName() bool` + +HasCurrentStepDisplayName returns a boolean if a field has been set. + +### SetCurrentStepDisplayNameNil + +`func (o *WorkflowsInstanceQueryResponse) SetCurrentStepDisplayNameNil(b bool)` + + SetCurrentStepDisplayNameNil sets the value for CurrentStepDisplayName to be an explicit nil + +### UnsetCurrentStepDisplayName +`func (o *WorkflowsInstanceQueryResponse) UnsetCurrentStepDisplayName()` + +UnsetCurrentStepDisplayName ensures that no value is present for CurrentStepDisplayName, not even an explicit nil +### GetCurrentStepUniqueName + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepUniqueName() string` + +GetCurrentStepUniqueName returns the CurrentStepUniqueName field if non-nil, zero value otherwise. + +### GetCurrentStepUniqueNameOk + +`func (o *WorkflowsInstanceQueryResponse) GetCurrentStepUniqueNameOk() (*string, bool)` + +GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepUniqueName + +`func (o *WorkflowsInstanceQueryResponse) SetCurrentStepUniqueName(v string)` + +SetCurrentStepUniqueName sets CurrentStepUniqueName field to given value. + +### HasCurrentStepUniqueName + +`func (o *WorkflowsInstanceQueryResponse) HasCurrentStepUniqueName() bool` + +HasCurrentStepUniqueName returns a boolean if a field has been set. + +### SetCurrentStepUniqueNameNil + +`func (o *WorkflowsInstanceQueryResponse) SetCurrentStepUniqueNameNil(b bool)` + + SetCurrentStepUniqueNameNil sets the value for CurrentStepUniqueName to be an explicit nil + +### UnsetCurrentStepUniqueName +`func (o *WorkflowsInstanceQueryResponse) UnsetCurrentStepUniqueName()` + +UnsetCurrentStepUniqueName ensures that no value is present for CurrentStepUniqueName, not even an explicit nil +### GetTitle + +`func (o *WorkflowsInstanceQueryResponse) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *WorkflowsInstanceQueryResponse) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *WorkflowsInstanceQueryResponse) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *WorkflowsInstanceQueryResponse) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### SetTitleNil + +`func (o *WorkflowsInstanceQueryResponse) SetTitleNil(b bool)` + + SetTitleNil sets the value for Title to be an explicit nil + +### UnsetTitle +`func (o *WorkflowsInstanceQueryResponse) UnsetTitle()` + +UnsetTitle ensures that no value is present for Title, not even an explicit nil +### GetLastModified + +`func (o *WorkflowsInstanceQueryResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *WorkflowsInstanceQueryResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *WorkflowsInstanceQueryResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *WorkflowsInstanceQueryResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + +### SetLastModifiedNil + +`func (o *WorkflowsInstanceQueryResponse) SetLastModifiedNil(b bool)` + + SetLastModifiedNil sets the value for LastModified to be an explicit nil + +### UnsetLastModified +`func (o *WorkflowsInstanceQueryResponse) UnsetLastModified()` + +UnsetLastModified ensures that no value is present for LastModified, not even an explicit nil +### GetStartDate + +`func (o *WorkflowsInstanceQueryResponse) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *WorkflowsInstanceQueryResponse) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *WorkflowsInstanceQueryResponse) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *WorkflowsInstanceQueryResponse) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetReferenceId + +`func (o *WorkflowsInstanceQueryResponse) GetReferenceId() int64` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *WorkflowsInstanceQueryResponse) GetReferenceIdOk() (*int64, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *WorkflowsInstanceQueryResponse) SetReferenceId(v int64)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *WorkflowsInstanceQueryResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsInstanceResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsInstanceResponse.md new file mode 100644 index 0000000..bc6b0f5 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsInstanceResponse.md @@ -0,0 +1,474 @@ +# WorkflowsInstanceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Status** | Pointer to [**KeyfactorWorkflowsWorkflowInstanceStatus**](KeyfactorWorkflowsWorkflowInstanceStatus.md) | | [optional] +**CurrentStepId** | Pointer to **string** | | [optional] +**StatusMessage** | Pointer to **NullableString** | | [optional] +**Signals** | Pointer to [**[]WorkflowsAvailableSignalResponse**](WorkflowsAvailableSignalResponse.md) | | [optional] +**Definition** | Pointer to [**WorkflowsInstanceDefinitionResponse**](WorkflowsInstanceDefinitionResponse.md) | | [optional] +**CurrentStepDisplayName** | Pointer to **NullableString** | | [optional] +**CurrentStepUniqueName** | Pointer to **NullableString** | | [optional] +**Title** | Pointer to **NullableString** | | [optional] +**LastModified** | Pointer to **NullableTime** | | [optional] +**StartDate** | Pointer to **time.Time** | | [optional] +**InitialData** | Pointer to **map[string]interface{}** | | [optional] +**CurrentStateData** | Pointer to **map[string]interface{}** | | [optional] +**ReferenceId** | Pointer to **int64** | | [optional] + +## Methods + +### NewWorkflowsInstanceResponse + +`func NewWorkflowsInstanceResponse() *WorkflowsInstanceResponse` + +NewWorkflowsInstanceResponse instantiates a new WorkflowsInstanceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsInstanceResponseWithDefaults + +`func NewWorkflowsInstanceResponseWithDefaults() *WorkflowsInstanceResponse` + +NewWorkflowsInstanceResponseWithDefaults instantiates a new WorkflowsInstanceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *WorkflowsInstanceResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkflowsInstanceResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkflowsInstanceResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *WorkflowsInstanceResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStatus + +`func (o *WorkflowsInstanceResponse) GetStatus() KeyfactorWorkflowsWorkflowInstanceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WorkflowsInstanceResponse) GetStatusOk() (*KeyfactorWorkflowsWorkflowInstanceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *WorkflowsInstanceResponse) SetStatus(v KeyfactorWorkflowsWorkflowInstanceStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WorkflowsInstanceResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCurrentStepId + +`func (o *WorkflowsInstanceResponse) GetCurrentStepId() string` + +GetCurrentStepId returns the CurrentStepId field if non-nil, zero value otherwise. + +### GetCurrentStepIdOk + +`func (o *WorkflowsInstanceResponse) GetCurrentStepIdOk() (*string, bool)` + +GetCurrentStepIdOk returns a tuple with the CurrentStepId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepId + +`func (o *WorkflowsInstanceResponse) SetCurrentStepId(v string)` + +SetCurrentStepId sets CurrentStepId field to given value. + +### HasCurrentStepId + +`func (o *WorkflowsInstanceResponse) HasCurrentStepId() bool` + +HasCurrentStepId returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *WorkflowsInstanceResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *WorkflowsInstanceResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *WorkflowsInstanceResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *WorkflowsInstanceResponse) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### SetStatusMessageNil + +`func (o *WorkflowsInstanceResponse) SetStatusMessageNil(b bool)` + + SetStatusMessageNil sets the value for StatusMessage to be an explicit nil + +### UnsetStatusMessage +`func (o *WorkflowsInstanceResponse) UnsetStatusMessage()` + +UnsetStatusMessage ensures that no value is present for StatusMessage, not even an explicit nil +### GetSignals + +`func (o *WorkflowsInstanceResponse) GetSignals() []WorkflowsAvailableSignalResponse` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *WorkflowsInstanceResponse) GetSignalsOk() (*[]WorkflowsAvailableSignalResponse, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *WorkflowsInstanceResponse) SetSignals(v []WorkflowsAvailableSignalResponse)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *WorkflowsInstanceResponse) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### SetSignalsNil + +`func (o *WorkflowsInstanceResponse) SetSignalsNil(b bool)` + + SetSignalsNil sets the value for Signals to be an explicit nil + +### UnsetSignals +`func (o *WorkflowsInstanceResponse) UnsetSignals()` + +UnsetSignals ensures that no value is present for Signals, not even an explicit nil +### GetDefinition + +`func (o *WorkflowsInstanceResponse) GetDefinition() WorkflowsInstanceDefinitionResponse` + +GetDefinition returns the Definition field if non-nil, zero value otherwise. + +### GetDefinitionOk + +`func (o *WorkflowsInstanceResponse) GetDefinitionOk() (*WorkflowsInstanceDefinitionResponse, bool)` + +GetDefinitionOk returns a tuple with the Definition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefinition + +`func (o *WorkflowsInstanceResponse) SetDefinition(v WorkflowsInstanceDefinitionResponse)` + +SetDefinition sets Definition field to given value. + +### HasDefinition + +`func (o *WorkflowsInstanceResponse) HasDefinition() bool` + +HasDefinition returns a boolean if a field has been set. + +### GetCurrentStepDisplayName + +`func (o *WorkflowsInstanceResponse) GetCurrentStepDisplayName() string` + +GetCurrentStepDisplayName returns the CurrentStepDisplayName field if non-nil, zero value otherwise. + +### GetCurrentStepDisplayNameOk + +`func (o *WorkflowsInstanceResponse) GetCurrentStepDisplayNameOk() (*string, bool)` + +GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepDisplayName + +`func (o *WorkflowsInstanceResponse) SetCurrentStepDisplayName(v string)` + +SetCurrentStepDisplayName sets CurrentStepDisplayName field to given value. + +### HasCurrentStepDisplayName + +`func (o *WorkflowsInstanceResponse) HasCurrentStepDisplayName() bool` + +HasCurrentStepDisplayName returns a boolean if a field has been set. + +### SetCurrentStepDisplayNameNil + +`func (o *WorkflowsInstanceResponse) SetCurrentStepDisplayNameNil(b bool)` + + SetCurrentStepDisplayNameNil sets the value for CurrentStepDisplayName to be an explicit nil + +### UnsetCurrentStepDisplayName +`func (o *WorkflowsInstanceResponse) UnsetCurrentStepDisplayName()` + +UnsetCurrentStepDisplayName ensures that no value is present for CurrentStepDisplayName, not even an explicit nil +### GetCurrentStepUniqueName + +`func (o *WorkflowsInstanceResponse) GetCurrentStepUniqueName() string` + +GetCurrentStepUniqueName returns the CurrentStepUniqueName field if non-nil, zero value otherwise. + +### GetCurrentStepUniqueNameOk + +`func (o *WorkflowsInstanceResponse) GetCurrentStepUniqueNameOk() (*string, bool)` + +GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepUniqueName + +`func (o *WorkflowsInstanceResponse) SetCurrentStepUniqueName(v string)` + +SetCurrentStepUniqueName sets CurrentStepUniqueName field to given value. + +### HasCurrentStepUniqueName + +`func (o *WorkflowsInstanceResponse) HasCurrentStepUniqueName() bool` + +HasCurrentStepUniqueName returns a boolean if a field has been set. + +### SetCurrentStepUniqueNameNil + +`func (o *WorkflowsInstanceResponse) SetCurrentStepUniqueNameNil(b bool)` + + SetCurrentStepUniqueNameNil sets the value for CurrentStepUniqueName to be an explicit nil + +### UnsetCurrentStepUniqueName +`func (o *WorkflowsInstanceResponse) UnsetCurrentStepUniqueName()` + +UnsetCurrentStepUniqueName ensures that no value is present for CurrentStepUniqueName, not even an explicit nil +### GetTitle + +`func (o *WorkflowsInstanceResponse) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *WorkflowsInstanceResponse) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *WorkflowsInstanceResponse) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *WorkflowsInstanceResponse) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### SetTitleNil + +`func (o *WorkflowsInstanceResponse) SetTitleNil(b bool)` + + SetTitleNil sets the value for Title to be an explicit nil + +### UnsetTitle +`func (o *WorkflowsInstanceResponse) UnsetTitle()` + +UnsetTitle ensures that no value is present for Title, not even an explicit nil +### GetLastModified + +`func (o *WorkflowsInstanceResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *WorkflowsInstanceResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *WorkflowsInstanceResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *WorkflowsInstanceResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + +### SetLastModifiedNil + +`func (o *WorkflowsInstanceResponse) SetLastModifiedNil(b bool)` + + SetLastModifiedNil sets the value for LastModified to be an explicit nil + +### UnsetLastModified +`func (o *WorkflowsInstanceResponse) UnsetLastModified()` + +UnsetLastModified ensures that no value is present for LastModified, not even an explicit nil +### GetStartDate + +`func (o *WorkflowsInstanceResponse) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *WorkflowsInstanceResponse) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *WorkflowsInstanceResponse) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *WorkflowsInstanceResponse) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetInitialData + +`func (o *WorkflowsInstanceResponse) GetInitialData() map[string]interface{}` + +GetInitialData returns the InitialData field if non-nil, zero value otherwise. + +### GetInitialDataOk + +`func (o *WorkflowsInstanceResponse) GetInitialDataOk() (*map[string]interface{}, bool)` + +GetInitialDataOk returns a tuple with the InitialData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialData + +`func (o *WorkflowsInstanceResponse) SetInitialData(v map[string]interface{})` + +SetInitialData sets InitialData field to given value. + +### HasInitialData + +`func (o *WorkflowsInstanceResponse) HasInitialData() bool` + +HasInitialData returns a boolean if a field has been set. + +### SetInitialDataNil + +`func (o *WorkflowsInstanceResponse) SetInitialDataNil(b bool)` + + SetInitialDataNil sets the value for InitialData to be an explicit nil + +### UnsetInitialData +`func (o *WorkflowsInstanceResponse) UnsetInitialData()` + +UnsetInitialData ensures that no value is present for InitialData, not even an explicit nil +### GetCurrentStateData + +`func (o *WorkflowsInstanceResponse) GetCurrentStateData() map[string]interface{}` + +GetCurrentStateData returns the CurrentStateData field if non-nil, zero value otherwise. + +### GetCurrentStateDataOk + +`func (o *WorkflowsInstanceResponse) GetCurrentStateDataOk() (*map[string]interface{}, bool)` + +GetCurrentStateDataOk returns a tuple with the CurrentStateData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStateData + +`func (o *WorkflowsInstanceResponse) SetCurrentStateData(v map[string]interface{})` + +SetCurrentStateData sets CurrentStateData field to given value. + +### HasCurrentStateData + +`func (o *WorkflowsInstanceResponse) HasCurrentStateData() bool` + +HasCurrentStateData returns a boolean if a field has been set. + +### SetCurrentStateDataNil + +`func (o *WorkflowsInstanceResponse) SetCurrentStateDataNil(b bool)` + + SetCurrentStateDataNil sets the value for CurrentStateData to be an explicit nil + +### UnsetCurrentStateData +`func (o *WorkflowsInstanceResponse) UnsetCurrentStateData()` + +UnsetCurrentStateData ensures that no value is present for CurrentStateData, not even an explicit nil +### GetReferenceId + +`func (o *WorkflowsInstanceResponse) GetReferenceId() int64` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *WorkflowsInstanceResponse) GetReferenceIdOk() (*int64, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *WorkflowsInstanceResponse) SetReferenceId(v int64)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *WorkflowsInstanceResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsParameterDefinitionResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsParameterDefinitionResponse.md new file mode 100644 index 0000000..8c92b98 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsParameterDefinitionResponse.md @@ -0,0 +1,314 @@ +# WorkflowsParameterDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **NullableString** | | [optional] +**ParameterType** | Pointer to [**KeyfactorWorkflowsDataType**](KeyfactorWorkflowsDataType.md) | | [optional] +**Required** | Pointer to **bool** | | [optional] +**DefaultValue** | Pointer to **NullableString** | | [optional] +**ControlType** | Pointer to [**KeyfactorWorkflowsInputControlType**](KeyfactorWorkflowsInputControlType.md) | | [optional] +**PotentialValues** | Pointer to **map[string]string** | | [optional] +**SupportTokenReplacement** | Pointer to **bool** | | [optional] +**DependsOn** | Pointer to **map[string]string** | | [optional] +**ToolTipContents** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewWorkflowsParameterDefinitionResponse + +`func NewWorkflowsParameterDefinitionResponse() *WorkflowsParameterDefinitionResponse` + +NewWorkflowsParameterDefinitionResponse instantiates a new WorkflowsParameterDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsParameterDefinitionResponseWithDefaults + +`func NewWorkflowsParameterDefinitionResponseWithDefaults() *WorkflowsParameterDefinitionResponse` + +NewWorkflowsParameterDefinitionResponseWithDefaults instantiates a new WorkflowsParameterDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *WorkflowsParameterDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *WorkflowsParameterDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *WorkflowsParameterDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *WorkflowsParameterDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *WorkflowsParameterDefinitionResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *WorkflowsParameterDefinitionResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetParameterType + +`func (o *WorkflowsParameterDefinitionResponse) GetParameterType() KeyfactorWorkflowsDataType` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *WorkflowsParameterDefinitionResponse) GetParameterTypeOk() (*KeyfactorWorkflowsDataType, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *WorkflowsParameterDefinitionResponse) SetParameterType(v KeyfactorWorkflowsDataType)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *WorkflowsParameterDefinitionResponse) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + +### GetRequired + +`func (o *WorkflowsParameterDefinitionResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *WorkflowsParameterDefinitionResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *WorkflowsParameterDefinitionResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *WorkflowsParameterDefinitionResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *WorkflowsParameterDefinitionResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *WorkflowsParameterDefinitionResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *WorkflowsParameterDefinitionResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *WorkflowsParameterDefinitionResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### SetDefaultValueNil + +`func (o *WorkflowsParameterDefinitionResponse) SetDefaultValueNil(b bool)` + + SetDefaultValueNil sets the value for DefaultValue to be an explicit nil + +### UnsetDefaultValue +`func (o *WorkflowsParameterDefinitionResponse) UnsetDefaultValue()` + +UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +### GetControlType + +`func (o *WorkflowsParameterDefinitionResponse) GetControlType() KeyfactorWorkflowsInputControlType` + +GetControlType returns the ControlType field if non-nil, zero value otherwise. + +### GetControlTypeOk + +`func (o *WorkflowsParameterDefinitionResponse) GetControlTypeOk() (*KeyfactorWorkflowsInputControlType, bool)` + +GetControlTypeOk returns a tuple with the ControlType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetControlType + +`func (o *WorkflowsParameterDefinitionResponse) SetControlType(v KeyfactorWorkflowsInputControlType)` + +SetControlType sets ControlType field to given value. + +### HasControlType + +`func (o *WorkflowsParameterDefinitionResponse) HasControlType() bool` + +HasControlType returns a boolean if a field has been set. + +### GetPotentialValues + +`func (o *WorkflowsParameterDefinitionResponse) GetPotentialValues() map[string]string` + +GetPotentialValues returns the PotentialValues field if non-nil, zero value otherwise. + +### GetPotentialValuesOk + +`func (o *WorkflowsParameterDefinitionResponse) GetPotentialValuesOk() (*map[string]string, bool)` + +GetPotentialValuesOk returns a tuple with the PotentialValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPotentialValues + +`func (o *WorkflowsParameterDefinitionResponse) SetPotentialValues(v map[string]string)` + +SetPotentialValues sets PotentialValues field to given value. + +### HasPotentialValues + +`func (o *WorkflowsParameterDefinitionResponse) HasPotentialValues() bool` + +HasPotentialValues returns a boolean if a field has been set. + +### SetPotentialValuesNil + +`func (o *WorkflowsParameterDefinitionResponse) SetPotentialValuesNil(b bool)` + + SetPotentialValuesNil sets the value for PotentialValues to be an explicit nil + +### UnsetPotentialValues +`func (o *WorkflowsParameterDefinitionResponse) UnsetPotentialValues()` + +UnsetPotentialValues ensures that no value is present for PotentialValues, not even an explicit nil +### GetSupportTokenReplacement + +`func (o *WorkflowsParameterDefinitionResponse) GetSupportTokenReplacement() bool` + +GetSupportTokenReplacement returns the SupportTokenReplacement field if non-nil, zero value otherwise. + +### GetSupportTokenReplacementOk + +`func (o *WorkflowsParameterDefinitionResponse) GetSupportTokenReplacementOk() (*bool, bool)` + +GetSupportTokenReplacementOk returns a tuple with the SupportTokenReplacement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportTokenReplacement + +`func (o *WorkflowsParameterDefinitionResponse) SetSupportTokenReplacement(v bool)` + +SetSupportTokenReplacement sets SupportTokenReplacement field to given value. + +### HasSupportTokenReplacement + +`func (o *WorkflowsParameterDefinitionResponse) HasSupportTokenReplacement() bool` + +HasSupportTokenReplacement returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *WorkflowsParameterDefinitionResponse) GetDependsOn() map[string]string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *WorkflowsParameterDefinitionResponse) GetDependsOnOk() (*map[string]string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *WorkflowsParameterDefinitionResponse) SetDependsOn(v map[string]string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *WorkflowsParameterDefinitionResponse) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### SetDependsOnNil + +`func (o *WorkflowsParameterDefinitionResponse) SetDependsOnNil(b bool)` + + SetDependsOnNil sets the value for DependsOn to be an explicit nil + +### UnsetDependsOn +`func (o *WorkflowsParameterDefinitionResponse) UnsetDependsOn()` + +UnsetDependsOn ensures that no value is present for DependsOn, not even an explicit nil +### GetToolTipContents + +`func (o *WorkflowsParameterDefinitionResponse) GetToolTipContents() string` + +GetToolTipContents returns the ToolTipContents field if non-nil, zero value otherwise. + +### GetToolTipContentsOk + +`func (o *WorkflowsParameterDefinitionResponse) GetToolTipContentsOk() (*string, bool)` + +GetToolTipContentsOk returns a tuple with the ToolTipContents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolTipContents + +`func (o *WorkflowsParameterDefinitionResponse) SetToolTipContents(v string)` + +SetToolTipContents sets ToolTipContents field to given value. + +### HasToolTipContents + +`func (o *WorkflowsParameterDefinitionResponse) HasToolTipContents() bool` + +HasToolTipContents returns a boolean if a field has been set. + +### SetToolTipContentsNil + +`func (o *WorkflowsParameterDefinitionResponse) SetToolTipContentsNil(b bool)` + + SetToolTipContentsNil sets the value for ToolTipContents to be an explicit nil + +### UnsetToolTipContents +`func (o *WorkflowsParameterDefinitionResponse) UnsetToolTipContents()` + +UnsetToolTipContents ensures that no value is present for ToolTipContents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsSignalConfigurationRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsSignalConfigurationRequest.md new file mode 100644 index 0000000..26ce798 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsSignalConfigurationRequest.md @@ -0,0 +1,102 @@ +# WorkflowsSignalConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalName** | Pointer to **NullableString** | The name of the signal. | [optional] +**RoleIds** | Pointer to **[]int32** | The roles that are allowed to send the signal. | [optional] + +## Methods + +### NewWorkflowsSignalConfigurationRequest + +`func NewWorkflowsSignalConfigurationRequest() *WorkflowsSignalConfigurationRequest` + +NewWorkflowsSignalConfigurationRequest instantiates a new WorkflowsSignalConfigurationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsSignalConfigurationRequestWithDefaults + +`func NewWorkflowsSignalConfigurationRequestWithDefaults() *WorkflowsSignalConfigurationRequest` + +NewWorkflowsSignalConfigurationRequestWithDefaults instantiates a new WorkflowsSignalConfigurationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalName + +`func (o *WorkflowsSignalConfigurationRequest) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *WorkflowsSignalConfigurationRequest) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *WorkflowsSignalConfigurationRequest) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *WorkflowsSignalConfigurationRequest) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + +### SetSignalNameNil + +`func (o *WorkflowsSignalConfigurationRequest) SetSignalNameNil(b bool)` + + SetSignalNameNil sets the value for SignalName to be an explicit nil + +### UnsetSignalName +`func (o *WorkflowsSignalConfigurationRequest) UnsetSignalName()` + +UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil +### GetRoleIds + +`func (o *WorkflowsSignalConfigurationRequest) GetRoleIds() []int32` + +GetRoleIds returns the RoleIds field if non-nil, zero value otherwise. + +### GetRoleIdsOk + +`func (o *WorkflowsSignalConfigurationRequest) GetRoleIdsOk() (*[]int32, bool)` + +GetRoleIdsOk returns a tuple with the RoleIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleIds + +`func (o *WorkflowsSignalConfigurationRequest) SetRoleIds(v []int32)` + +SetRoleIds sets RoleIds field to given value. + +### HasRoleIds + +`func (o *WorkflowsSignalConfigurationRequest) HasRoleIds() bool` + +HasRoleIds returns a boolean if a field has been set. + +### SetRoleIdsNil + +`func (o *WorkflowsSignalConfigurationRequest) SetRoleIdsNil(b bool)` + + SetRoleIdsNil sets the value for RoleIds to be an explicit nil + +### UnsetRoleIds +`func (o *WorkflowsSignalConfigurationRequest) UnsetRoleIds()` + +UnsetRoleIds ensures that no value is present for RoleIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsSignalDefinitionResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsSignalDefinitionResponse.md new file mode 100644 index 0000000..d45de95 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsSignalDefinitionResponse.md @@ -0,0 +1,66 @@ +# WorkflowsSignalDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputParameters** | Pointer to [**map[string]WorkflowsParameterDefinitionResponse**](WorkflowsParameterDefinitionResponse.md) | | [optional] + +## Methods + +### NewWorkflowsSignalDefinitionResponse + +`func NewWorkflowsSignalDefinitionResponse() *WorkflowsSignalDefinitionResponse` + +NewWorkflowsSignalDefinitionResponse instantiates a new WorkflowsSignalDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsSignalDefinitionResponseWithDefaults + +`func NewWorkflowsSignalDefinitionResponseWithDefaults() *WorkflowsSignalDefinitionResponse` + +NewWorkflowsSignalDefinitionResponseWithDefaults instantiates a new WorkflowsSignalDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInputParameters + +`func (o *WorkflowsSignalDefinitionResponse) GetInputParameters() map[string]WorkflowsParameterDefinitionResponse` + +GetInputParameters returns the InputParameters field if non-nil, zero value otherwise. + +### GetInputParametersOk + +`func (o *WorkflowsSignalDefinitionResponse) GetInputParametersOk() (*map[string]WorkflowsParameterDefinitionResponse, bool)` + +GetInputParametersOk returns a tuple with the InputParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputParameters + +`func (o *WorkflowsSignalDefinitionResponse) SetInputParameters(v map[string]WorkflowsParameterDefinitionResponse)` + +SetInputParameters sets InputParameters field to given value. + +### HasInputParameters + +`func (o *WorkflowsSignalDefinitionResponse) HasInputParameters() bool` + +HasInputParameters returns a boolean if a field has been set. + +### SetInputParametersNil + +`func (o *WorkflowsSignalDefinitionResponse) SetInputParametersNil(b bool)` + + SetInputParametersNil sets the value for InputParameters to be an explicit nil + +### UnsetInputParameters +`func (o *WorkflowsSignalDefinitionResponse) UnsetInputParameters()` + +UnsetInputParameters ensures that no value is present for InputParameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsSignalRequest.md b/v24/api/keyfactor/v1/docs/WorkflowsSignalRequest.md new file mode 100644 index 0000000..2cfd301 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsSignalRequest.md @@ -0,0 +1,102 @@ +# WorkflowsSignalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalKey** | Pointer to **NullableString** | The signal key. This is expected to be in a format like \"STEP_NAME.SIGNAL_NAME\" | [optional] +**Data** | Pointer to **map[string]interface{}** | Arbitrary data to associate with the signal. | [optional] + +## Methods + +### NewWorkflowsSignalRequest + +`func NewWorkflowsSignalRequest() *WorkflowsSignalRequest` + +NewWorkflowsSignalRequest instantiates a new WorkflowsSignalRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsSignalRequestWithDefaults + +`func NewWorkflowsSignalRequestWithDefaults() *WorkflowsSignalRequest` + +NewWorkflowsSignalRequestWithDefaults instantiates a new WorkflowsSignalRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalKey + +`func (o *WorkflowsSignalRequest) GetSignalKey() string` + +GetSignalKey returns the SignalKey field if non-nil, zero value otherwise. + +### GetSignalKeyOk + +`func (o *WorkflowsSignalRequest) GetSignalKeyOk() (*string, bool)` + +GetSignalKeyOk returns a tuple with the SignalKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalKey + +`func (o *WorkflowsSignalRequest) SetSignalKey(v string)` + +SetSignalKey sets SignalKey field to given value. + +### HasSignalKey + +`func (o *WorkflowsSignalRequest) HasSignalKey() bool` + +HasSignalKey returns a boolean if a field has been set. + +### SetSignalKeyNil + +`func (o *WorkflowsSignalRequest) SetSignalKeyNil(b bool)` + + SetSignalKeyNil sets the value for SignalKey to be an explicit nil + +### UnsetSignalKey +`func (o *WorkflowsSignalRequest) UnsetSignalKey()` + +UnsetSignalKey ensures that no value is present for SignalKey, not even an explicit nil +### GetData + +`func (o *WorkflowsSignalRequest) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *WorkflowsSignalRequest) GetDataOk() (*map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *WorkflowsSignalRequest) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *WorkflowsSignalRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *WorkflowsSignalRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *WorkflowsSignalRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/docs/WorkflowsWorkflowTypeQueryResponse.md b/v24/api/keyfactor/v1/docs/WorkflowsWorkflowTypeQueryResponse.md new file mode 100644 index 0000000..568b3e2 --- /dev/null +++ b/v24/api/keyfactor/v1/docs/WorkflowsWorkflowTypeQueryResponse.md @@ -0,0 +1,174 @@ +# WorkflowsWorkflowTypeQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkflowType** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**ContextParameters** | Pointer to **[]string** | | [optional] +**BuiltInSteps** | Pointer to [**[]WorkflowsAvailableStepResponse**](WorkflowsAvailableStepResponse.md) | | [optional] + +## Methods + +### NewWorkflowsWorkflowTypeQueryResponse + +`func NewWorkflowsWorkflowTypeQueryResponse() *WorkflowsWorkflowTypeQueryResponse` + +NewWorkflowsWorkflowTypeQueryResponse instantiates a new WorkflowsWorkflowTypeQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkflowsWorkflowTypeQueryResponseWithDefaults + +`func NewWorkflowsWorkflowTypeQueryResponseWithDefaults() *WorkflowsWorkflowTypeQueryResponse` + +NewWorkflowsWorkflowTypeQueryResponseWithDefaults instantiates a new WorkflowsWorkflowTypeQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWorkflowType + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *WorkflowsWorkflowTypeQueryResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### SetWorkflowTypeNil + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetWorkflowTypeNil(b bool)` + + SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil + +### UnsetWorkflowType +`func (o *WorkflowsWorkflowTypeQueryResponse) UnsetWorkflowType()` + +UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +### GetKeyType + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *WorkflowsWorkflowTypeQueryResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *WorkflowsWorkflowTypeQueryResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetContextParameters + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetContextParameters() []string` + +GetContextParameters returns the ContextParameters field if non-nil, zero value otherwise. + +### GetContextParametersOk + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetContextParametersOk() (*[]string, bool)` + +GetContextParametersOk returns a tuple with the ContextParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContextParameters + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetContextParameters(v []string)` + +SetContextParameters sets ContextParameters field to given value. + +### HasContextParameters + +`func (o *WorkflowsWorkflowTypeQueryResponse) HasContextParameters() bool` + +HasContextParameters returns a boolean if a field has been set. + +### SetContextParametersNil + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetContextParametersNil(b bool)` + + SetContextParametersNil sets the value for ContextParameters to be an explicit nil + +### UnsetContextParameters +`func (o *WorkflowsWorkflowTypeQueryResponse) UnsetContextParameters()` + +UnsetContextParameters ensures that no value is present for ContextParameters, not even an explicit nil +### GetBuiltInSteps + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetBuiltInSteps() []WorkflowsAvailableStepResponse` + +GetBuiltInSteps returns the BuiltInSteps field if non-nil, zero value otherwise. + +### GetBuiltInStepsOk + +`func (o *WorkflowsWorkflowTypeQueryResponse) GetBuiltInStepsOk() (*[]WorkflowsAvailableStepResponse, bool)` + +GetBuiltInStepsOk returns a tuple with the BuiltInSteps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuiltInSteps + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetBuiltInSteps(v []WorkflowsAvailableStepResponse)` + +SetBuiltInSteps sets BuiltInSteps field to given value. + +### HasBuiltInSteps + +`func (o *WorkflowsWorkflowTypeQueryResponse) HasBuiltInSteps() bool` + +HasBuiltInSteps returns a boolean if a field has been set. + +### SetBuiltInStepsNil + +`func (o *WorkflowsWorkflowTypeQueryResponse) SetBuiltInStepsNil(b bool)` + + SetBuiltInStepsNil sets the value for BuiltInSteps to be an explicit nil + +### UnsetBuiltInSteps +`func (o *WorkflowsWorkflowTypeQueryResponse) UnsetBuiltInSteps()` + +UnsetBuiltInSteps ensures that no value is present for BuiltInSteps, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v1/git_push.sh b/v24/api/keyfactor/v1/git_push.sh new file mode 100644 index 0000000..729673e --- /dev/null +++ b/v24/api/keyfactor/v1/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="Keyfactor" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="keyfactor-go-client-sdk" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/v24/api/keyfactor/v1/model_alerts_alert_certificate_query_alert_certificate_query_response.go b/v24/api/keyfactor/v1/model_alerts_alert_certificate_query_alert_certificate_query_response.go new file mode 100644 index 0000000..a11d1d6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_alert_certificate_query_alert_certificate_query_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsAlertCertificateQueryAlertCertificateQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsAlertCertificateQueryAlertCertificateQueryResponse{} + +// AlertsAlertCertificateQueryAlertCertificateQueryResponse struct for AlertsAlertCertificateQueryAlertCertificateQueryResponse +type AlertsAlertCertificateQueryAlertCertificateQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` +} + +// NewAlertsAlertCertificateQueryAlertCertificateQueryResponse instantiates a new AlertsAlertCertificateQueryAlertCertificateQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsAlertCertificateQueryAlertCertificateQueryResponse() *AlertsAlertCertificateQueryAlertCertificateQueryResponse { + this := AlertsAlertCertificateQueryAlertCertificateQueryResponse{} + return &this +} + +// NewAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults instantiates a new AlertsAlertCertificateQueryAlertCertificateQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults() *AlertsAlertCertificateQueryAlertCertificateQueryResponse { + this := AlertsAlertCertificateQueryAlertCertificateQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *AlertsAlertCertificateQueryAlertCertificateQueryResponse) UnsetName() { + o.Name.Unset() +} + +func (o AlertsAlertCertificateQueryAlertCertificateQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsAlertCertificateQueryAlertCertificateQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse struct { + value *AlertsAlertCertificateQueryAlertCertificateQueryResponse + isSet bool +} + +func (v NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) Get() *AlertsAlertCertificateQueryAlertCertificateQueryResponse { + return v.value +} + +func (v *NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) Set(val *AlertsAlertCertificateQueryAlertCertificateQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsAlertCertificateQueryAlertCertificateQueryResponse(val *AlertsAlertCertificateQueryAlertCertificateQueryResponse) *NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse { + return &NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse{value: val, isSet: true} +} + +func (v NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsAlertCertificateQueryAlertCertificateQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_request.go b/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_request.go new file mode 100644 index 0000000..d1ff7f8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_request.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsAlertScheduleAlertScheduleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsAlertScheduleAlertScheduleRequest{} + +// AlertsAlertScheduleAlertScheduleRequest struct for AlertsAlertScheduleAlertScheduleRequest +type AlertsAlertScheduleAlertScheduleRequest struct { + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` +} + +// NewAlertsAlertScheduleAlertScheduleRequest instantiates a new AlertsAlertScheduleAlertScheduleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsAlertScheduleAlertScheduleRequest() *AlertsAlertScheduleAlertScheduleRequest { + this := AlertsAlertScheduleAlertScheduleRequest{} + return &this +} + +// NewAlertsAlertScheduleAlertScheduleRequestWithDefaults instantiates a new AlertsAlertScheduleAlertScheduleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsAlertScheduleAlertScheduleRequestWithDefaults() *AlertsAlertScheduleAlertScheduleRequest { + this := AlertsAlertScheduleAlertScheduleRequest{} + return &this +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *AlertsAlertScheduleAlertScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsAlertScheduleAlertScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *AlertsAlertScheduleAlertScheduleRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *AlertsAlertScheduleAlertScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o AlertsAlertScheduleAlertScheduleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsAlertScheduleAlertScheduleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + return toSerialize, nil +} + +type NullableAlertsAlertScheduleAlertScheduleRequest struct { + value *AlertsAlertScheduleAlertScheduleRequest + isSet bool +} + +func (v NullableAlertsAlertScheduleAlertScheduleRequest) Get() *AlertsAlertScheduleAlertScheduleRequest { + return v.value +} + +func (v *NullableAlertsAlertScheduleAlertScheduleRequest) Set(val *AlertsAlertScheduleAlertScheduleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsAlertScheduleAlertScheduleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsAlertScheduleAlertScheduleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsAlertScheduleAlertScheduleRequest(val *AlertsAlertScheduleAlertScheduleRequest) *NullableAlertsAlertScheduleAlertScheduleRequest { + return &NullableAlertsAlertScheduleAlertScheduleRequest{value: val, isSet: true} +} + +func (v NullableAlertsAlertScheduleAlertScheduleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsAlertScheduleAlertScheduleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_response.go b/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_response.go new file mode 100644 index 0000000..e6758ac --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_alert_schedule_alert_schedule_response.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsAlertScheduleAlertScheduleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsAlertScheduleAlertScheduleResponse{} + +// AlertsAlertScheduleAlertScheduleResponse struct for AlertsAlertScheduleAlertScheduleResponse +type AlertsAlertScheduleAlertScheduleResponse struct { + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` +} + +// NewAlertsAlertScheduleAlertScheduleResponse instantiates a new AlertsAlertScheduleAlertScheduleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsAlertScheduleAlertScheduleResponse() *AlertsAlertScheduleAlertScheduleResponse { + this := AlertsAlertScheduleAlertScheduleResponse{} + return &this +} + +// NewAlertsAlertScheduleAlertScheduleResponseWithDefaults instantiates a new AlertsAlertScheduleAlertScheduleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsAlertScheduleAlertScheduleResponseWithDefaults() *AlertsAlertScheduleAlertScheduleResponse { + this := AlertsAlertScheduleAlertScheduleResponse{} + return &this +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *AlertsAlertScheduleAlertScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsAlertScheduleAlertScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *AlertsAlertScheduleAlertScheduleResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *AlertsAlertScheduleAlertScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o AlertsAlertScheduleAlertScheduleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsAlertScheduleAlertScheduleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + return toSerialize, nil +} + +type NullableAlertsAlertScheduleAlertScheduleResponse struct { + value *AlertsAlertScheduleAlertScheduleResponse + isSet bool +} + +func (v NullableAlertsAlertScheduleAlertScheduleResponse) Get() *AlertsAlertScheduleAlertScheduleResponse { + return v.value +} + +func (v *NullableAlertsAlertScheduleAlertScheduleResponse) Set(val *AlertsAlertScheduleAlertScheduleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsAlertScheduleAlertScheduleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsAlertScheduleAlertScheduleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsAlertScheduleAlertScheduleResponse(val *AlertsAlertScheduleAlertScheduleResponse) *NullableAlertsAlertScheduleAlertScheduleResponse { + return &NullableAlertsAlertScheduleAlertScheduleResponse{value: val, isSet: true} +} + +func (v NullableAlertsAlertScheduleAlertScheduleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsAlertScheduleAlertScheduleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_alert_template_alert_template_response.go b/v24/api/keyfactor/v1/model_alerts_alert_template_alert_template_response.go new file mode 100644 index 0000000..7805337 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_alert_template_alert_template_response.go @@ -0,0 +1,275 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsAlertTemplateAlertTemplateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsAlertTemplateAlertTemplateResponse{} + +// AlertsAlertTemplateAlertTemplateResponse struct for AlertsAlertTemplateAlertTemplateResponse +type AlertsAlertTemplateAlertTemplateResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` +} + +// NewAlertsAlertTemplateAlertTemplateResponse instantiates a new AlertsAlertTemplateAlertTemplateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsAlertTemplateAlertTemplateResponse() *AlertsAlertTemplateAlertTemplateResponse { + this := AlertsAlertTemplateAlertTemplateResponse{} + return &this +} + +// NewAlertsAlertTemplateAlertTemplateResponseWithDefaults instantiates a new AlertsAlertTemplateAlertTemplateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsAlertTemplateAlertTemplateResponseWithDefaults() *AlertsAlertTemplateAlertTemplateResponse { + this := AlertsAlertTemplateAlertTemplateResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsAlertTemplateAlertTemplateResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsAlertTemplateAlertTemplateResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsAlertTemplateAlertTemplateResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsAlertTemplateAlertTemplateResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsAlertTemplateAlertTemplateResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsAlertTemplateAlertTemplateResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsAlertTemplateAlertTemplateResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsAlertTemplateAlertTemplateResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsAlertTemplateAlertTemplateResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsAlertTemplateAlertTemplateResponse) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *AlertsAlertTemplateAlertTemplateResponse) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *AlertsAlertTemplateAlertTemplateResponse) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *AlertsAlertTemplateAlertTemplateResponse) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *AlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *AlertsAlertTemplateAlertTemplateResponse) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +func (o AlertsAlertTemplateAlertTemplateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsAlertTemplateAlertTemplateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + return toSerialize, nil +} + +type NullableAlertsAlertTemplateAlertTemplateResponse struct { + value *AlertsAlertTemplateAlertTemplateResponse + isSet bool +} + +func (v NullableAlertsAlertTemplateAlertTemplateResponse) Get() *AlertsAlertTemplateAlertTemplateResponse { + return v.value +} + +func (v *NullableAlertsAlertTemplateAlertTemplateResponse) Set(val *AlertsAlertTemplateAlertTemplateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsAlertTemplateAlertTemplateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsAlertTemplateAlertTemplateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsAlertTemplateAlertTemplateResponse(val *AlertsAlertTemplateAlertTemplateResponse) *NullableAlertsAlertTemplateAlertTemplateResponse { + return &NullableAlertsAlertTemplateAlertTemplateResponse{value: val, isSet: true} +} + +func (v NullableAlertsAlertTemplateAlertTemplateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsAlertTemplateAlertTemplateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_creation_request.go b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_creation_request.go new file mode 100644 index 0000000..8170a01 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_creation_request.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsDeniedDeniedAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsDeniedDeniedAlertCreationRequest{} + +// AlertsDeniedDeniedAlertCreationRequest struct for AlertsDeniedDeniedAlertCreationRequest +type AlertsDeniedDeniedAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsDeniedDeniedAlertCreationRequest instantiates a new AlertsDeniedDeniedAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsDeniedDeniedAlertCreationRequest(displayName string, subject string, message string) *AlertsDeniedDeniedAlertCreationRequest { + this := AlertsDeniedDeniedAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsDeniedDeniedAlertCreationRequestWithDefaults instantiates a new AlertsDeniedDeniedAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsDeniedDeniedAlertCreationRequestWithDefaults() *AlertsDeniedDeniedAlertCreationRequest { + this := AlertsDeniedDeniedAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsDeniedDeniedAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsDeniedDeniedAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsDeniedDeniedAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsDeniedDeniedAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsDeniedDeniedAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsDeniedDeniedAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsDeniedDeniedAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsDeniedDeniedAlertCreationRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsDeniedDeniedAlertCreationRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsDeniedDeniedAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertCreationRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsDeniedDeniedAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsDeniedDeniedAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsDeniedDeniedAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsDeniedDeniedAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsDeniedDeniedAlertCreationRequest struct { + value *AlertsDeniedDeniedAlertCreationRequest + isSet bool +} + +func (v NullableAlertsDeniedDeniedAlertCreationRequest) Get() *AlertsDeniedDeniedAlertCreationRequest { + return v.value +} + +func (v *NullableAlertsDeniedDeniedAlertCreationRequest) Set(val *AlertsDeniedDeniedAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsDeniedDeniedAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsDeniedDeniedAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsDeniedDeniedAlertCreationRequest(val *AlertsDeniedDeniedAlertCreationRequest) *NullableAlertsDeniedDeniedAlertCreationRequest { + return &NullableAlertsDeniedDeniedAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableAlertsDeniedDeniedAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsDeniedDeniedAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_definition_response.go b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_definition_response.go new file mode 100644 index 0000000..89f5da2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_definition_response.go @@ -0,0 +1,421 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsDeniedDeniedAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsDeniedDeniedAlertDefinitionResponse{} + +// AlertsDeniedDeniedAlertDefinitionResponse struct for AlertsDeniedDeniedAlertDefinitionResponse +type AlertsDeniedDeniedAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *AlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsDeniedDeniedAlertDefinitionResponse instantiates a new AlertsDeniedDeniedAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsDeniedDeniedAlertDefinitionResponse() *AlertsDeniedDeniedAlertDefinitionResponse { + this := AlertsDeniedDeniedAlertDefinitionResponse{} + return &this +} + +// NewAlertsDeniedDeniedAlertDefinitionResponseWithDefaults instantiates a new AlertsDeniedDeniedAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsDeniedDeniedAlertDefinitionResponseWithDefaults() *AlertsDeniedDeniedAlertDefinitionResponse { + this := AlertsDeniedDeniedAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsDeniedDeniedAlertDefinitionResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret AlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given AlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse { + if o == nil { + var ret []EventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *AlertsDeniedDeniedAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o AlertsDeniedDeniedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsDeniedDeniedAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsDeniedDeniedAlertDefinitionResponse struct { + value *AlertsDeniedDeniedAlertDefinitionResponse + isSet bool +} + +func (v NullableAlertsDeniedDeniedAlertDefinitionResponse) Get() *AlertsDeniedDeniedAlertDefinitionResponse { + return v.value +} + +func (v *NullableAlertsDeniedDeniedAlertDefinitionResponse) Set(val *AlertsDeniedDeniedAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsDeniedDeniedAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsDeniedDeniedAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsDeniedDeniedAlertDefinitionResponse(val *AlertsDeniedDeniedAlertDefinitionResponse) *NullableAlertsDeniedDeniedAlertDefinitionResponse { + return &NullableAlertsDeniedDeniedAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableAlertsDeniedDeniedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsDeniedDeniedAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_update_request.go b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_update_request.go new file mode 100644 index 0000000..fbafed2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_denied_denied_alert_update_request.go @@ -0,0 +1,372 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsDeniedDeniedAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsDeniedDeniedAlertUpdateRequest{} + +// AlertsDeniedDeniedAlertUpdateRequest struct for AlertsDeniedDeniedAlertUpdateRequest +type AlertsDeniedDeniedAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsDeniedDeniedAlertUpdateRequest instantiates a new AlertsDeniedDeniedAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsDeniedDeniedAlertUpdateRequest(displayName string, subject string, message string) *AlertsDeniedDeniedAlertUpdateRequest { + this := AlertsDeniedDeniedAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsDeniedDeniedAlertUpdateRequestWithDefaults instantiates a new AlertsDeniedDeniedAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsDeniedDeniedAlertUpdateRequestWithDefaults() *AlertsDeniedDeniedAlertUpdateRequest { + this := AlertsDeniedDeniedAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsDeniedDeniedAlertUpdateRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsDeniedDeniedAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsDeniedDeniedAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsDeniedDeniedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsDeniedDeniedAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsDeniedDeniedAlertUpdateRequest struct { + value *AlertsDeniedDeniedAlertUpdateRequest + isSet bool +} + +func (v NullableAlertsDeniedDeniedAlertUpdateRequest) Get() *AlertsDeniedDeniedAlertUpdateRequest { + return v.value +} + +func (v *NullableAlertsDeniedDeniedAlertUpdateRequest) Set(val *AlertsDeniedDeniedAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsDeniedDeniedAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsDeniedDeniedAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsDeniedDeniedAlertUpdateRequest(val *AlertsDeniedDeniedAlertUpdateRequest) *NullableAlertsDeniedDeniedAlertUpdateRequest { + return &NullableAlertsDeniedDeniedAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableAlertsDeniedDeniedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsDeniedDeniedAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_creation_request.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_creation_request.go new file mode 100644 index 0000000..cef4fcf --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_creation_request.go @@ -0,0 +1,432 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsExpirationExpirationAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertCreationRequest{} + +// AlertsExpirationExpirationAlertCreationRequest struct for AlertsExpirationExpirationAlertCreationRequest +type AlertsExpirationExpirationAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + ExpirationWarningDays int32 `json:"ExpirationWarningDays"` + CertificateQueryId *int32 `json:"CertificateQueryId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewAlertsExpirationExpirationAlertCreationRequest instantiates a new AlertsExpirationExpirationAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertCreationRequest(displayName string, expirationWarningDays int32) *AlertsExpirationExpirationAlertCreationRequest { + this := AlertsExpirationExpirationAlertCreationRequest{} + this.DisplayName = displayName + this.ExpirationWarningDays = expirationWarningDays + var useWorkflows bool = false + this.UseWorkflows = &useWorkflows + return &this +} + +// NewAlertsExpirationExpirationAlertCreationRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertCreationRequestWithDefaults() *AlertsExpirationExpirationAlertCreationRequest { + this := AlertsExpirationExpirationAlertCreationRequest{} + var useWorkflows bool = false + this.UseWorkflows = &useWorkflows + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsExpirationExpirationAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsExpirationExpirationAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertCreationRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsExpirationExpirationAlertCreationRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertCreationRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsExpirationExpirationAlertCreationRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsExpirationExpirationAlertCreationRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value +func (o *AlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpirationWarningDays, true +} + +// SetExpirationWarningDays sets field value +func (o *AlertsExpirationExpirationAlertCreationRequest) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = v +} + +// GetCertificateQueryId returns the CertificateQueryId field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryId() int32 { + if o == nil || isNil(o.CertificateQueryId) { + var ret int32 + return ret + } + return *o.CertificateQueryId +} + +// GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateQueryId) { + return nil, false + } + return o.CertificateQueryId, true +} + +// HasCertificateQueryId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasCertificateQueryId() bool { + if o != nil && !isNil(o.CertificateQueryId) { + return true + } + + return false +} + +// SetCertificateQueryId gets a reference to the given int32 and assigns it to the CertificateQueryId field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetCertificateQueryId(v int32) { + o.CertificateQueryId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertCreationRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertCreationRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsExpirationExpirationAlertCreationRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o AlertsExpirationExpirationAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + if !isNil(o.CertificateQueryId) { + toSerialize["CertificateQueryId"] = o.CertificateQueryId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertCreationRequest struct { + value *AlertsExpirationExpirationAlertCreationRequest + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertCreationRequest) Get() *AlertsExpirationExpirationAlertCreationRequest { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertCreationRequest) Set(val *AlertsExpirationExpirationAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertCreationRequest(val *AlertsExpirationExpirationAlertCreationRequest) *NullableAlertsExpirationExpirationAlertCreationRequest { + return &NullableAlertsExpirationExpirationAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_definition_response.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_definition_response.go new file mode 100644 index 0000000..d96cd23 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_definition_response.go @@ -0,0 +1,681 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsExpirationExpirationAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertDefinitionResponse{} + +// AlertsExpirationExpirationAlertDefinitionResponse struct for AlertsExpirationExpirationAlertDefinitionResponse +type AlertsExpirationExpirationAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + ExpirationWarningDays *int32 `json:"ExpirationWarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + CertificateQuery *AlertsAlertCertificateQueryAlertCertificateQueryResponse `json:"CertificateQuery,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` + WorkflowId NullableString `json:"WorkflowId,omitempty"` + WorkflowName NullableString `json:"WorkflowName,omitempty"` + WorkflowPublishedVersion NullableInt32 `json:"WorkflowPublishedVersion,omitempty"` + WorkflowEnabled NullableBool `json:"WorkflowEnabled,omitempty"` +} + +// NewAlertsExpirationExpirationAlertDefinitionResponse instantiates a new AlertsExpirationExpirationAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertDefinitionResponse() *AlertsExpirationExpirationAlertDefinitionResponse { + this := AlertsExpirationExpirationAlertDefinitionResponse{} + return &this +} + +// NewAlertsExpirationExpirationAlertDefinitionResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertDefinitionResponseWithDefaults() *AlertsExpirationExpirationAlertDefinitionResponse { + this := AlertsExpirationExpirationAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDays() int32 { + if o == nil || isNil(o.ExpirationWarningDays) { + var ret int32 + return ret + } + return *o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.ExpirationWarningDays) { + return nil, false + } + return o.ExpirationWarningDays, true +} + +// HasExpirationWarningDays returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasExpirationWarningDays() bool { + if o != nil && !isNil(o.ExpirationWarningDays) { + return true + } + + return false +} + +// SetExpirationWarningDays gets a reference to the given int32 and assigns it to the ExpirationWarningDays field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetCertificateQuery returns the CertificateQuery field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQuery() AlertsAlertCertificateQueryAlertCertificateQueryResponse { + if o == nil || isNil(o.CertificateQuery) { + var ret AlertsAlertCertificateQueryAlertCertificateQueryResponse + return ret + } + return *o.CertificateQuery +} + +// GetCertificateQueryOk returns a tuple with the CertificateQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQueryOk() (*AlertsAlertCertificateQueryAlertCertificateQueryResponse, bool) { + if o == nil || isNil(o.CertificateQuery) { + return nil, false + } + return o.CertificateQuery, true +} + +// HasCertificateQuery returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasCertificateQuery() bool { + if o != nil && !isNil(o.CertificateQuery) { + return true + } + + return false +} + +// SetCertificateQuery gets a reference to the given AlertsAlertCertificateQueryAlertCertificateQueryResponse and assigns it to the CertificateQuery field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetCertificateQuery(v AlertsAlertCertificateQueryAlertCertificateQueryResponse) { + o.CertificateQuery = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse { + if o == nil { + var ret []EventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowId() string { + if o == nil || isNil(o.WorkflowId.Get()) { + var ret string + return ret + } + return *o.WorkflowId.Get() +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowId.Get(), o.WorkflowId.IsSet() +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowId() bool { + if o != nil && o.WorkflowId.IsSet() { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given NullableString and assigns it to the WorkflowId field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowId(v string) { + o.WorkflowId.Set(&v) +} + +// SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowIdNil() { + o.WorkflowId.Set(nil) +} + +// UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowId() { + o.WorkflowId.Unset() +} + +// GetWorkflowName returns the WorkflowName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowName() string { + if o == nil || isNil(o.WorkflowName.Get()) { + var ret string + return ret + } + return *o.WorkflowName.Get() +} + +// GetWorkflowNameOk returns a tuple with the WorkflowName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowName.Get(), o.WorkflowName.IsSet() +} + +// HasWorkflowName returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowName() bool { + if o != nil && o.WorkflowName.IsSet() { + return true + } + + return false +} + +// SetWorkflowName gets a reference to the given NullableString and assigns it to the WorkflowName field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowName(v string) { + o.WorkflowName.Set(&v) +} + +// SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowNameNil() { + o.WorkflowName.Set(nil) +} + +// UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowName() { + o.WorkflowName.Unset() +} + +// GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowPublishedVersion() int32 { + if o == nil || isNil(o.WorkflowPublishedVersion.Get()) { + var ret int32 + return ret + } + return *o.WorkflowPublishedVersion.Get() +} + +// GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.WorkflowPublishedVersion.Get(), o.WorkflowPublishedVersion.IsSet() +} + +// HasWorkflowPublishedVersion returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowPublishedVersion() bool { + if o != nil && o.WorkflowPublishedVersion.IsSet() { + return true + } + + return false +} + +// SetWorkflowPublishedVersion gets a reference to the given NullableInt32 and assigns it to the WorkflowPublishedVersion field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowPublishedVersion(v int32) { + o.WorkflowPublishedVersion.Set(&v) +} + +// SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowPublishedVersionNil() { + o.WorkflowPublishedVersion.Set(nil) +} + +// UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowPublishedVersion() { + o.WorkflowPublishedVersion.Unset() +} + +// GetWorkflowEnabled returns the WorkflowEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowEnabled() bool { + if o == nil || isNil(o.WorkflowEnabled.Get()) { + var ret bool + return ret + } + return *o.WorkflowEnabled.Get() +} + +// GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.WorkflowEnabled.Get(), o.WorkflowEnabled.IsSet() +} + +// HasWorkflowEnabled returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) HasWorkflowEnabled() bool { + if o != nil && o.WorkflowEnabled.IsSet() { + return true + } + + return false +} + +// SetWorkflowEnabled gets a reference to the given NullableBool and assigns it to the WorkflowEnabled field. +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowEnabled(v bool) { + o.WorkflowEnabled.Set(&v) +} + +// SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) SetWorkflowEnabledNil() { + o.WorkflowEnabled.Set(nil) +} + +// UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil +func (o *AlertsExpirationExpirationAlertDefinitionResponse) UnsetWorkflowEnabled() { + o.WorkflowEnabled.Unset() +} + +func (o AlertsExpirationExpirationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if !isNil(o.ExpirationWarningDays) { + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.CertificateQuery) { + toSerialize["CertificateQuery"] = o.CertificateQuery + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + if o.WorkflowId.IsSet() { + toSerialize["WorkflowId"] = o.WorkflowId.Get() + } + if o.WorkflowName.IsSet() { + toSerialize["WorkflowName"] = o.WorkflowName.Get() + } + if o.WorkflowPublishedVersion.IsSet() { + toSerialize["WorkflowPublishedVersion"] = o.WorkflowPublishedVersion.Get() + } + if o.WorkflowEnabled.IsSet() { + toSerialize["WorkflowEnabled"] = o.WorkflowEnabled.Get() + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertDefinitionResponse struct { + value *AlertsExpirationExpirationAlertDefinitionResponse + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertDefinitionResponse) Get() *AlertsExpirationExpirationAlertDefinitionResponse { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertDefinitionResponse) Set(val *AlertsExpirationExpirationAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertDefinitionResponse(val *AlertsExpirationExpirationAlertDefinitionResponse) *NullableAlertsExpirationExpirationAlertDefinitionResponse { + return &NullableAlertsExpirationExpirationAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_response.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_response.go new file mode 100644 index 0000000..3b6d500 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_response.go @@ -0,0 +1,453 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsExpirationExpirationAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertResponse{} + +// AlertsExpirationExpirationAlertResponse struct for AlertsExpirationExpirationAlertResponse +type AlertsExpirationExpirationAlertResponse struct { + CAName NullableString `json:"CAName,omitempty"` + CARow *int64 `json:"CARow,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + Expiry NullableString `json:"Expiry,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + SendDate NullableString `json:"SendDate,omitempty"` +} + +// NewAlertsExpirationExpirationAlertResponse instantiates a new AlertsExpirationExpirationAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertResponse() *AlertsExpirationExpirationAlertResponse { + this := AlertsExpirationExpirationAlertResponse{} + return &this +} + +// NewAlertsExpirationExpirationAlertResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertResponseWithDefaults() *AlertsExpirationExpirationAlertResponse { + this := AlertsExpirationExpirationAlertResponse{} + return &this +} + +// GetCAName returns the CAName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetCAName() string { + if o == nil || isNil(o.CAName.Get()) { + var ret string + return ret + } + return *o.CAName.Get() +} + +// GetCANameOk returns a tuple with the CAName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetCANameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CAName.Get(), o.CAName.IsSet() +} + +// HasCAName returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasCAName() bool { + if o != nil && o.CAName.IsSet() { + return true + } + + return false +} + +// SetCAName gets a reference to the given NullableString and assigns it to the CAName field. +func (o *AlertsExpirationExpirationAlertResponse) SetCAName(v string) { + o.CAName.Set(&v) +} + +// SetCANameNil sets the value for CAName to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetCANameNil() { + o.CAName.Set(nil) +} + +// UnsetCAName ensures that no value is present for CAName, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetCAName() { + o.CAName.Unset() +} + +// GetCARow returns the CARow field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertResponse) GetCARow() int64 { + if o == nil || isNil(o.CARow) { + var ret int64 + return ret + } + return *o.CARow +} + +// GetCARowOk returns a tuple with the CARow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertResponse) GetCARowOk() (*int64, bool) { + if o == nil || isNil(o.CARow) { + return nil, false + } + return o.CARow, true +} + +// HasCARow returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasCARow() bool { + if o != nil && !isNil(o.CARow) { + return true + } + + return false +} + +// SetCARow gets a reference to the given int64 and assigns it to the CARow field. +func (o *AlertsExpirationExpirationAlertResponse) SetCARow(v int64) { + o.CARow = &v +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *AlertsExpirationExpirationAlertResponse) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetExpiry() string { + if o == nil || isNil(o.Expiry.Get()) { + var ret string + return ret + } + return *o.Expiry.Get() +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetExpiryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Expiry.Get(), o.Expiry.IsSet() +} + +// HasExpiry returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasExpiry() bool { + if o != nil && o.Expiry.IsSet() { + return true + } + + return false +} + +// SetExpiry gets a reference to the given NullableString and assigns it to the Expiry field. +func (o *AlertsExpirationExpirationAlertResponse) SetExpiry(v string) { + o.Expiry.Set(&v) +} + +// SetExpiryNil sets the value for Expiry to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetExpiryNil() { + o.Expiry.Set(nil) +} + +// UnsetExpiry ensures that no value is present for Expiry, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetExpiry() { + o.Expiry.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsExpirationExpirationAlertResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsExpirationExpirationAlertResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsExpirationExpirationAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetSendDate returns the SendDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertResponse) GetSendDate() string { + if o == nil || isNil(o.SendDate.Get()) { + var ret string + return ret + } + return *o.SendDate.Get() +} + +// GetSendDateOk returns a tuple with the SendDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertResponse) GetSendDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SendDate.Get(), o.SendDate.IsSet() +} + +// HasSendDate returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertResponse) HasSendDate() bool { + if o != nil && o.SendDate.IsSet() { + return true + } + + return false +} + +// SetSendDate gets a reference to the given NullableString and assigns it to the SendDate field. +func (o *AlertsExpirationExpirationAlertResponse) SetSendDate(v string) { + o.SendDate.Set(&v) +} + +// SetSendDateNil sets the value for SendDate to be an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) SetSendDateNil() { + o.SendDate.Set(nil) +} + +// UnsetSendDate ensures that no value is present for SendDate, not even an explicit nil +func (o *AlertsExpirationExpirationAlertResponse) UnsetSendDate() { + o.SendDate.Unset() +} + +func (o AlertsExpirationExpirationAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CAName.IsSet() { + toSerialize["CAName"] = o.CAName.Get() + } + if !isNil(o.CARow) { + toSerialize["CARow"] = o.CARow + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if o.Expiry.IsSet() { + toSerialize["Expiry"] = o.Expiry.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.SendDate.IsSet() { + toSerialize["SendDate"] = o.SendDate.Get() + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertResponse struct { + value *AlertsExpirationExpirationAlertResponse + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertResponse) Get() *AlertsExpirationExpirationAlertResponse { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertResponse) Set(val *AlertsExpirationExpirationAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertResponse(val *AlertsExpirationExpirationAlertResponse) *NullableAlertsExpirationExpirationAlertResponse { + return &NullableAlertsExpirationExpirationAlertResponse{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_all_request.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_all_request.go new file mode 100644 index 0000000..a605d49 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_all_request.go @@ -0,0 +1,207 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the AlertsExpirationExpirationAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertTestAllRequest{} + +// AlertsExpirationExpirationAlertTestAllRequest struct for AlertsExpirationExpirationAlertTestAllRequest +type AlertsExpirationExpirationAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsExpirationExpirationAlertTestAllRequest instantiates a new AlertsExpirationExpirationAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertTestAllRequest() *AlertsExpirationExpirationAlertTestAllRequest { + this := AlertsExpirationExpirationAlertTestAllRequest{} + return &this +} + +// NewAlertsExpirationExpirationAlertTestAllRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertTestAllRequestWithDefaults() *AlertsExpirationExpirationAlertTestAllRequest { + this := AlertsExpirationExpirationAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *AlertsExpirationExpirationAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *AlertsExpirationExpirationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsExpirationExpirationAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsExpirationExpirationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertTestAllRequest struct { + value *AlertsExpirationExpirationAlertTestAllRequest + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertTestAllRequest) Get() *AlertsExpirationExpirationAlertTestAllRequest { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertTestAllRequest) Set(val *AlertsExpirationExpirationAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertTestAllRequest(val *AlertsExpirationExpirationAlertTestAllRequest) *NullableAlertsExpirationExpirationAlertTestAllRequest { + return &NullableAlertsExpirationExpirationAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_request.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_request.go new file mode 100644 index 0000000..e07143e --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_request.go @@ -0,0 +1,243 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the AlertsExpirationExpirationAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertTestRequest{} + +// AlertsExpirationExpirationAlertTestRequest struct for AlertsExpirationExpirationAlertTestRequest +type AlertsExpirationExpirationAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsExpirationExpirationAlertTestRequest instantiates a new AlertsExpirationExpirationAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertTestRequest() *AlertsExpirationExpirationAlertTestRequest { + this := AlertsExpirationExpirationAlertTestRequest{} + return &this +} + +// NewAlertsExpirationExpirationAlertTestRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertTestRequestWithDefaults() *AlertsExpirationExpirationAlertTestRequest { + this := AlertsExpirationExpirationAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *AlertsExpirationExpirationAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *AlertsExpirationExpirationAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *AlertsExpirationExpirationAlertTestRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsExpirationExpirationAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsExpirationExpirationAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertTestRequest struct { + value *AlertsExpirationExpirationAlertTestRequest + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertTestRequest) Get() *AlertsExpirationExpirationAlertTestRequest { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertTestRequest) Set(val *AlertsExpirationExpirationAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertTestRequest(val *AlertsExpirationExpirationAlertTestRequest) *NullableAlertsExpirationExpirationAlertTestRequest { + return &NullableAlertsExpirationExpirationAlertTestRequest{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_response.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_response.go new file mode 100644 index 0000000..5c10974 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_test_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsExpirationExpirationAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertTestResponse{} + +// AlertsExpirationExpirationAlertTestResponse struct for AlertsExpirationExpirationAlertTestResponse +type AlertsExpirationExpirationAlertTestResponse struct { + ExpirationAlerts []AlertsExpirationExpirationAlertResponse `json:"ExpirationAlerts,omitempty"` + AlertBuildResult *CSSCMSDataModelEnumsAlertBuildResult `json:"AlertBuildResult,omitempty"` +} + +// NewAlertsExpirationExpirationAlertTestResponse instantiates a new AlertsExpirationExpirationAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertTestResponse() *AlertsExpirationExpirationAlertTestResponse { + this := AlertsExpirationExpirationAlertTestResponse{} + return &this +} + +// NewAlertsExpirationExpirationAlertTestResponseWithDefaults instantiates a new AlertsExpirationExpirationAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertTestResponseWithDefaults() *AlertsExpirationExpirationAlertTestResponse { + this := AlertsExpirationExpirationAlertTestResponse{} + return &this +} + +// GetExpirationAlerts returns the ExpirationAlerts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertTestResponse) GetExpirationAlerts() []AlertsExpirationExpirationAlertResponse { + if o == nil { + var ret []AlertsExpirationExpirationAlertResponse + return ret + } + return o.ExpirationAlerts +} + +// GetExpirationAlertsOk returns a tuple with the ExpirationAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertTestResponse) GetExpirationAlertsOk() ([]AlertsExpirationExpirationAlertResponse, bool) { + if o == nil || isNil(o.ExpirationAlerts) { + return nil, false + } + return o.ExpirationAlerts, true +} + +// HasExpirationAlerts returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestResponse) HasExpirationAlerts() bool { + if o != nil && isNil(o.ExpirationAlerts) { + return true + } + + return false +} + +// SetExpirationAlerts gets a reference to the given []AlertsExpirationExpirationAlertResponse and assigns it to the ExpirationAlerts field. +func (o *AlertsExpirationExpirationAlertTestResponse) SetExpirationAlerts(v []AlertsExpirationExpirationAlertResponse) { + o.ExpirationAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult { + if o == nil || isNil(o.AlertBuildResult) { + var ret CSSCMSDataModelEnumsAlertBuildResult + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given CSSCMSDataModelEnumsAlertBuildResult and assigns it to the AlertBuildResult field. +func (o *AlertsExpirationExpirationAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult) { + o.AlertBuildResult = &v +} + +func (o AlertsExpirationExpirationAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ExpirationAlerts != nil { + toSerialize["ExpirationAlerts"] = o.ExpirationAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertTestResponse struct { + value *AlertsExpirationExpirationAlertTestResponse + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertTestResponse) Get() *AlertsExpirationExpirationAlertTestResponse { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertTestResponse) Set(val *AlertsExpirationExpirationAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertTestResponse(val *AlertsExpirationExpirationAlertTestResponse) *NullableAlertsExpirationExpirationAlertTestResponse { + return &NullableAlertsExpirationExpirationAlertTestResponse{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_update_request.go b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_update_request.go new file mode 100644 index 0000000..6c737eb --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_expiration_expiration_alert_update_request.go @@ -0,0 +1,468 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsExpirationExpirationAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsExpirationExpirationAlertUpdateRequest{} + +// AlertsExpirationExpirationAlertUpdateRequest struct for AlertsExpirationExpirationAlertUpdateRequest +type AlertsExpirationExpirationAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + ExpirationWarningDays int32 `json:"ExpirationWarningDays"` + CertificateQueryId *int32 `json:"CertificateQueryId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewAlertsExpirationExpirationAlertUpdateRequest instantiates a new AlertsExpirationExpirationAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsExpirationExpirationAlertUpdateRequest(displayName string, expirationWarningDays int32) *AlertsExpirationExpirationAlertUpdateRequest { + this := AlertsExpirationExpirationAlertUpdateRequest{} + this.DisplayName = displayName + this.ExpirationWarningDays = expirationWarningDays + var useWorkflows bool = false + this.UseWorkflows = &useWorkflows + return &this +} + +// NewAlertsExpirationExpirationAlertUpdateRequestWithDefaults instantiates a new AlertsExpirationExpirationAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsExpirationExpirationAlertUpdateRequestWithDefaults() *AlertsExpirationExpirationAlertUpdateRequest { + this := AlertsExpirationExpirationAlertUpdateRequest{} + var useWorkflows bool = false + this.UseWorkflows = &useWorkflows + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsExpirationExpirationAlertUpdateRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpirationWarningDays, true +} + +// SetExpirationWarningDays sets field value +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = v +} + +// GetCertificateQueryId returns the CertificateQueryId field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryId() int32 { + if o == nil || isNil(o.CertificateQueryId) { + var ret int32 + return ret + } + return *o.CertificateQueryId +} + +// GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateQueryId) { + return nil, false + } + return o.CertificateQueryId, true +} + +// HasCertificateQueryId returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasCertificateQueryId() bool { + if o != nil && !isNil(o.CertificateQueryId) { + return true + } + + return false +} + +// SetCertificateQueryId gets a reference to the given int32 and assigns it to the CertificateQueryId field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetCertificateQueryId(v int32) { + o.CertificateQueryId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsExpirationExpirationAlertUpdateRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsExpirationExpirationAlertUpdateRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o AlertsExpirationExpirationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsExpirationExpirationAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + if !isNil(o.CertificateQueryId) { + toSerialize["CertificateQueryId"] = o.CertificateQueryId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableAlertsExpirationExpirationAlertUpdateRequest struct { + value *AlertsExpirationExpirationAlertUpdateRequest + isSet bool +} + +func (v NullableAlertsExpirationExpirationAlertUpdateRequest) Get() *AlertsExpirationExpirationAlertUpdateRequest { + return v.value +} + +func (v *NullableAlertsExpirationExpirationAlertUpdateRequest) Set(val *AlertsExpirationExpirationAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsExpirationExpirationAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsExpirationExpirationAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsExpirationExpirationAlertUpdateRequest(val *AlertsExpirationExpirationAlertUpdateRequest) *NullableAlertsExpirationExpirationAlertUpdateRequest { + return &NullableAlertsExpirationExpirationAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableAlertsExpirationExpirationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsExpirationExpirationAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_creation_request.go b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_creation_request.go new file mode 100644 index 0000000..c6e0561 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_creation_request.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsIssuedIssuedAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsIssuedIssuedAlertCreationRequest{} + +// AlertsIssuedIssuedAlertCreationRequest struct for AlertsIssuedIssuedAlertCreationRequest +type AlertsIssuedIssuedAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsIssuedIssuedAlertCreationRequest instantiates a new AlertsIssuedIssuedAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsIssuedIssuedAlertCreationRequest(displayName string, subject string, message string) *AlertsIssuedIssuedAlertCreationRequest { + this := AlertsIssuedIssuedAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsIssuedIssuedAlertCreationRequestWithDefaults instantiates a new AlertsIssuedIssuedAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsIssuedIssuedAlertCreationRequestWithDefaults() *AlertsIssuedIssuedAlertCreationRequest { + this := AlertsIssuedIssuedAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsIssuedIssuedAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsIssuedIssuedAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsIssuedIssuedAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsIssuedIssuedAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsIssuedIssuedAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsIssuedIssuedAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsIssuedIssuedAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsIssuedIssuedAlertCreationRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsIssuedIssuedAlertCreationRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsIssuedIssuedAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertCreationRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsIssuedIssuedAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsIssuedIssuedAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsIssuedIssuedAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsIssuedIssuedAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsIssuedIssuedAlertCreationRequest struct { + value *AlertsIssuedIssuedAlertCreationRequest + isSet bool +} + +func (v NullableAlertsIssuedIssuedAlertCreationRequest) Get() *AlertsIssuedIssuedAlertCreationRequest { + return v.value +} + +func (v *NullableAlertsIssuedIssuedAlertCreationRequest) Set(val *AlertsIssuedIssuedAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsIssuedIssuedAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsIssuedIssuedAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsIssuedIssuedAlertCreationRequest(val *AlertsIssuedIssuedAlertCreationRequest) *NullableAlertsIssuedIssuedAlertCreationRequest { + return &NullableAlertsIssuedIssuedAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableAlertsIssuedIssuedAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsIssuedIssuedAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_definition_response.go b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_definition_response.go new file mode 100644 index 0000000..8c8a0dd --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_definition_response.go @@ -0,0 +1,421 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsIssuedIssuedAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsIssuedIssuedAlertDefinitionResponse{} + +// AlertsIssuedIssuedAlertDefinitionResponse struct for AlertsIssuedIssuedAlertDefinitionResponse +type AlertsIssuedIssuedAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *AlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsIssuedIssuedAlertDefinitionResponse instantiates a new AlertsIssuedIssuedAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsIssuedIssuedAlertDefinitionResponse() *AlertsIssuedIssuedAlertDefinitionResponse { + this := AlertsIssuedIssuedAlertDefinitionResponse{} + return &this +} + +// NewAlertsIssuedIssuedAlertDefinitionResponseWithDefaults instantiates a new AlertsIssuedIssuedAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsIssuedIssuedAlertDefinitionResponseWithDefaults() *AlertsIssuedIssuedAlertDefinitionResponse { + this := AlertsIssuedIssuedAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsIssuedIssuedAlertDefinitionResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret AlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given AlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse { + if o == nil { + var ret []EventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *AlertsIssuedIssuedAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o AlertsIssuedIssuedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsIssuedIssuedAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsIssuedIssuedAlertDefinitionResponse struct { + value *AlertsIssuedIssuedAlertDefinitionResponse + isSet bool +} + +func (v NullableAlertsIssuedIssuedAlertDefinitionResponse) Get() *AlertsIssuedIssuedAlertDefinitionResponse { + return v.value +} + +func (v *NullableAlertsIssuedIssuedAlertDefinitionResponse) Set(val *AlertsIssuedIssuedAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsIssuedIssuedAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsIssuedIssuedAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsIssuedIssuedAlertDefinitionResponse(val *AlertsIssuedIssuedAlertDefinitionResponse) *NullableAlertsIssuedIssuedAlertDefinitionResponse { + return &NullableAlertsIssuedIssuedAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableAlertsIssuedIssuedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsIssuedIssuedAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_update_request.go b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_update_request.go new file mode 100644 index 0000000..6a8dfe3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_issued_issued_alert_update_request.go @@ -0,0 +1,372 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsIssuedIssuedAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsIssuedIssuedAlertUpdateRequest{} + +// AlertsIssuedIssuedAlertUpdateRequest struct for AlertsIssuedIssuedAlertUpdateRequest +type AlertsIssuedIssuedAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsIssuedIssuedAlertUpdateRequest instantiates a new AlertsIssuedIssuedAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsIssuedIssuedAlertUpdateRequest(displayName string, subject string, message string) *AlertsIssuedIssuedAlertUpdateRequest { + this := AlertsIssuedIssuedAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsIssuedIssuedAlertUpdateRequestWithDefaults instantiates a new AlertsIssuedIssuedAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsIssuedIssuedAlertUpdateRequestWithDefaults() *AlertsIssuedIssuedAlertUpdateRequest { + this := AlertsIssuedIssuedAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsIssuedIssuedAlertUpdateRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsIssuedIssuedAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsIssuedIssuedAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsIssuedIssuedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsIssuedIssuedAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsIssuedIssuedAlertUpdateRequest struct { + value *AlertsIssuedIssuedAlertUpdateRequest + isSet bool +} + +func (v NullableAlertsIssuedIssuedAlertUpdateRequest) Get() *AlertsIssuedIssuedAlertUpdateRequest { + return v.value +} + +func (v *NullableAlertsIssuedIssuedAlertUpdateRequest) Set(val *AlertsIssuedIssuedAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsIssuedIssuedAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsIssuedIssuedAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsIssuedIssuedAlertUpdateRequest(val *AlertsIssuedIssuedAlertUpdateRequest) *NullableAlertsIssuedIssuedAlertUpdateRequest { + return &NullableAlertsIssuedIssuedAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableAlertsIssuedIssuedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsIssuedIssuedAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_creation_request.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_creation_request.go new file mode 100644 index 0000000..edc5308 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_creation_request.go @@ -0,0 +1,355 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsKeyRotationKeyRotationAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertCreationRequest{} + +// AlertsKeyRotationKeyRotationAlertCreationRequest struct for AlertsKeyRotationKeyRotationAlertCreationRequest +type AlertsKeyRotationKeyRotationAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + RotationWarningDays int32 `json:"RotationWarningDays"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertCreationRequest instantiates a new AlertsKeyRotationKeyRotationAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertCreationRequest(displayName string, rotationWarningDays int32) *AlertsKeyRotationKeyRotationAlertCreationRequest { + this := AlertsKeyRotationKeyRotationAlertCreationRequest{} + this.DisplayName = displayName + this.RotationWarningDays = rotationWarningDays + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertCreationRequest { + this := AlertsKeyRotationKeyRotationAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetRotationWarningDays returns the RotationWarningDays field value +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RotationWarningDays, true +} + +// SetRotationWarningDays sets field value +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetRotationWarningDays(v int32) { + o.RotationWarningDays = v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsKeyRotationKeyRotationAlertCreationRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o AlertsKeyRotationKeyRotationAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + toSerialize["RotationWarningDays"] = o.RotationWarningDays + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertCreationRequest struct { + value *AlertsKeyRotationKeyRotationAlertCreationRequest + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertCreationRequest) Get() *AlertsKeyRotationKeyRotationAlertCreationRequest { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertCreationRequest) Set(val *AlertsKeyRotationKeyRotationAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertCreationRequest(val *AlertsKeyRotationKeyRotationAlertCreationRequest) *NullableAlertsKeyRotationKeyRotationAlertCreationRequest { + return &NullableAlertsKeyRotationKeyRotationAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_definition_response.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_definition_response.go new file mode 100644 index 0000000..0b3ad23 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_definition_response.go @@ -0,0 +1,655 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsKeyRotationKeyRotationAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertDefinitionResponse{} + +// AlertsKeyRotationKeyRotationAlertDefinitionResponse struct for AlertsKeyRotationKeyRotationAlertDefinitionResponse +type AlertsKeyRotationKeyRotationAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipient NullableString `json:"Recipient,omitempty"` + RotationWarningDays *int32 `json:"RotationWarningDays,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` + WorkflowId NullableString `json:"WorkflowId,omitempty"` + WorkflowName NullableString `json:"WorkflowName,omitempty"` + WorkflowPublishedVersion NullableInt32 `json:"WorkflowPublishedVersion,omitempty"` + WorkflowEnabled NullableBool `json:"WorkflowEnabled,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertDefinitionResponse instantiates a new AlertsKeyRotationKeyRotationAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertDefinitionResponse() *AlertsKeyRotationKeyRotationAlertDefinitionResponse { + this := AlertsKeyRotationKeyRotationAlertDefinitionResponse{} + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertDefinitionResponse { + this := AlertsKeyRotationKeyRotationAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipient() string { + if o == nil || isNil(o.Recipient.Get()) { + var ret string + return ret + } + return *o.Recipient.Get() +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipientOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Recipient.Get(), o.Recipient.IsSet() +} + +// HasRecipient returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRecipient() bool { + if o != nil && o.Recipient.IsSet() { + return true + } + + return false +} + +// SetRecipient gets a reference to the given NullableString and assigns it to the Recipient field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipient(v string) { + o.Recipient.Set(&v) +} + +// SetRecipientNil sets the value for Recipient to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipientNil() { + o.Recipient.Set(nil) +} + +// UnsetRecipient ensures that no value is present for Recipient, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetRecipient() { + o.Recipient.Unset() +} + +// GetRotationWarningDays returns the RotationWarningDays field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDays() int32 { + if o == nil || isNil(o.RotationWarningDays) { + var ret int32 + return ret + } + return *o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.RotationWarningDays) { + return nil, false + } + return o.RotationWarningDays, true +} + +// HasRotationWarningDays returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRotationWarningDays() bool { + if o != nil && !isNil(o.RotationWarningDays) { + return true + } + + return false +} + +// SetRotationWarningDays gets a reference to the given int32 and assigns it to the RotationWarningDays field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRotationWarningDays(v int32) { + o.RotationWarningDays = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse { + if o == nil { + var ret []EventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowId() string { + if o == nil || isNil(o.WorkflowId.Get()) { + var ret string + return ret + } + return *o.WorkflowId.Get() +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowId.Get(), o.WorkflowId.IsSet() +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowId() bool { + if o != nil && o.WorkflowId.IsSet() { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given NullableString and assigns it to the WorkflowId field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowId(v string) { + o.WorkflowId.Set(&v) +} + +// SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowIdNil() { + o.WorkflowId.Set(nil) +} + +// UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowId() { + o.WorkflowId.Unset() +} + +// GetWorkflowName returns the WorkflowName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowName() string { + if o == nil || isNil(o.WorkflowName.Get()) { + var ret string + return ret + } + return *o.WorkflowName.Get() +} + +// GetWorkflowNameOk returns a tuple with the WorkflowName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowName.Get(), o.WorkflowName.IsSet() +} + +// HasWorkflowName returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowName() bool { + if o != nil && o.WorkflowName.IsSet() { + return true + } + + return false +} + +// SetWorkflowName gets a reference to the given NullableString and assigns it to the WorkflowName field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowName(v string) { + o.WorkflowName.Set(&v) +} + +// SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowNameNil() { + o.WorkflowName.Set(nil) +} + +// UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowName() { + o.WorkflowName.Unset() +} + +// GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowPublishedVersion() int32 { + if o == nil || isNil(o.WorkflowPublishedVersion.Get()) { + var ret int32 + return ret + } + return *o.WorkflowPublishedVersion.Get() +} + +// GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.WorkflowPublishedVersion.Get(), o.WorkflowPublishedVersion.IsSet() +} + +// HasWorkflowPublishedVersion returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowPublishedVersion() bool { + if o != nil && o.WorkflowPublishedVersion.IsSet() { + return true + } + + return false +} + +// SetWorkflowPublishedVersion gets a reference to the given NullableInt32 and assigns it to the WorkflowPublishedVersion field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowPublishedVersion(v int32) { + o.WorkflowPublishedVersion.Set(&v) +} + +// SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowPublishedVersionNil() { + o.WorkflowPublishedVersion.Set(nil) +} + +// UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowPublishedVersion() { + o.WorkflowPublishedVersion.Unset() +} + +// GetWorkflowEnabled returns the WorkflowEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowEnabled() bool { + if o == nil || isNil(o.WorkflowEnabled.Get()) { + var ret bool + return ret + } + return *o.WorkflowEnabled.Get() +} + +// GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.WorkflowEnabled.Get(), o.WorkflowEnabled.IsSet() +} + +// HasWorkflowEnabled returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) HasWorkflowEnabled() bool { + if o != nil && o.WorkflowEnabled.IsSet() { + return true + } + + return false +} + +// SetWorkflowEnabled gets a reference to the given NullableBool and assigns it to the WorkflowEnabled field. +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowEnabled(v bool) { + o.WorkflowEnabled.Set(&v) +} + +// SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) SetWorkflowEnabledNil() { + o.WorkflowEnabled.Set(nil) +} + +// UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertDefinitionResponse) UnsetWorkflowEnabled() { + o.WorkflowEnabled.Unset() +} + +func (o AlertsKeyRotationKeyRotationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipient.IsSet() { + toSerialize["Recipient"] = o.Recipient.Get() + } + if !isNil(o.RotationWarningDays) { + toSerialize["RotationWarningDays"] = o.RotationWarningDays + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + if o.WorkflowId.IsSet() { + toSerialize["WorkflowId"] = o.WorkflowId.Get() + } + if o.WorkflowName.IsSet() { + toSerialize["WorkflowName"] = o.WorkflowName.Get() + } + if o.WorkflowPublishedVersion.IsSet() { + toSerialize["WorkflowPublishedVersion"] = o.WorkflowPublishedVersion.Get() + } + if o.WorkflowEnabled.IsSet() { + toSerialize["WorkflowEnabled"] = o.WorkflowEnabled.Get() + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse struct { + value *AlertsKeyRotationKeyRotationAlertDefinitionResponse + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) Get() *AlertsKeyRotationKeyRotationAlertDefinitionResponse { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) Set(val *AlertsKeyRotationKeyRotationAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertDefinitionResponse(val *AlertsKeyRotationKeyRotationAlertDefinitionResponse) *NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse { + return &NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_response.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_response.go new file mode 100644 index 0000000..3b26771 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_response.go @@ -0,0 +1,239 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsKeyRotationKeyRotationAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertResponse{} + +// AlertsKeyRotationKeyRotationAlertResponse struct for AlertsKeyRotationKeyRotationAlertResponse +type AlertsKeyRotationKeyRotationAlertResponse struct { + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipient NullableString `json:"Recipient,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertResponse instantiates a new AlertsKeyRotationKeyRotationAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertResponse() *AlertsKeyRotationKeyRotationAlertResponse { + this := AlertsKeyRotationKeyRotationAlertResponse{} + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertResponse { + this := AlertsKeyRotationKeyRotationAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetRecipient() string { + if o == nil || isNil(o.Recipient.Get()) { + var ret string + return ret + } + return *o.Recipient.Get() +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertResponse) GetRecipientOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Recipient.Get(), o.Recipient.IsSet() +} + +// HasRecipient returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertResponse) HasRecipient() bool { + if o != nil && o.Recipient.IsSet() { + return true + } + + return false +} + +// SetRecipient gets a reference to the given NullableString and assigns it to the Recipient field. +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetRecipient(v string) { + o.Recipient.Set(&v) +} + +// SetRecipientNil sets the value for Recipient to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) SetRecipientNil() { + o.Recipient.Set(nil) +} + +// UnsetRecipient ensures that no value is present for Recipient, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertResponse) UnsetRecipient() { + o.Recipient.Unset() +} + +func (o AlertsKeyRotationKeyRotationAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipient.IsSet() { + toSerialize["Recipient"] = o.Recipient.Get() + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertResponse struct { + value *AlertsKeyRotationKeyRotationAlertResponse + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertResponse) Get() *AlertsKeyRotationKeyRotationAlertResponse { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertResponse) Set(val *AlertsKeyRotationKeyRotationAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertResponse(val *AlertsKeyRotationKeyRotationAlertResponse) *NullableAlertsKeyRotationKeyRotationAlertResponse { + return &NullableAlertsKeyRotationKeyRotationAlertResponse{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_all_request.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_all_request.go new file mode 100644 index 0000000..552991b --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_all_request.go @@ -0,0 +1,207 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the AlertsKeyRotationKeyRotationAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertTestAllRequest{} + +// AlertsKeyRotationKeyRotationAlertTestAllRequest struct for AlertsKeyRotationKeyRotationAlertTestAllRequest +type AlertsKeyRotationKeyRotationAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertTestAllRequest instantiates a new AlertsKeyRotationKeyRotationAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertTestAllRequest() *AlertsKeyRotationKeyRotationAlertTestAllRequest { + this := AlertsKeyRotationKeyRotationAlertTestAllRequest{} + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertTestAllRequest { + this := AlertsKeyRotationKeyRotationAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsKeyRotationKeyRotationAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsKeyRotationKeyRotationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertTestAllRequest struct { + value *AlertsKeyRotationKeyRotationAlertTestAllRequest + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) Get() *AlertsKeyRotationKeyRotationAlertTestAllRequest { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) Set(val *AlertsKeyRotationKeyRotationAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertTestAllRequest(val *AlertsKeyRotationKeyRotationAlertTestAllRequest) *NullableAlertsKeyRotationKeyRotationAlertTestAllRequest { + return &NullableAlertsKeyRotationKeyRotationAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_request.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_request.go new file mode 100644 index 0000000..42fbe21 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_request.go @@ -0,0 +1,243 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the AlertsKeyRotationKeyRotationAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertTestRequest{} + +// AlertsKeyRotationKeyRotationAlertTestRequest struct for AlertsKeyRotationKeyRotationAlertTestRequest +type AlertsKeyRotationKeyRotationAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertTestRequest instantiates a new AlertsKeyRotationKeyRotationAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertTestRequest() *AlertsKeyRotationKeyRotationAlertTestRequest { + this := AlertsKeyRotationKeyRotationAlertTestRequest{} + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertTestRequest { + this := AlertsKeyRotationKeyRotationAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsKeyRotationKeyRotationAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsKeyRotationKeyRotationAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertTestRequest struct { + value *AlertsKeyRotationKeyRotationAlertTestRequest + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestRequest) Get() *AlertsKeyRotationKeyRotationAlertTestRequest { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestRequest) Set(val *AlertsKeyRotationKeyRotationAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertTestRequest(val *AlertsKeyRotationKeyRotationAlertTestRequest) *NullableAlertsKeyRotationKeyRotationAlertTestRequest { + return &NullableAlertsKeyRotationKeyRotationAlertTestRequest{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_response.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_response.go new file mode 100644 index 0000000..67c6164 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_test_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsKeyRotationKeyRotationAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertTestResponse{} + +// AlertsKeyRotationKeyRotationAlertTestResponse struct for AlertsKeyRotationKeyRotationAlertTestResponse +type AlertsKeyRotationKeyRotationAlertTestResponse struct { + KeyRotationAlerts []AlertsKeyRotationKeyRotationAlertResponse `json:"KeyRotationAlerts,omitempty"` + AlertBuildResult *CSSCMSDataModelEnumsAlertBuildResult `json:"AlertBuildResult,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertTestResponse instantiates a new AlertsKeyRotationKeyRotationAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertTestResponse() *AlertsKeyRotationKeyRotationAlertTestResponse { + this := AlertsKeyRotationKeyRotationAlertTestResponse{} + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults() *AlertsKeyRotationKeyRotationAlertTestResponse { + this := AlertsKeyRotationKeyRotationAlertTestResponse{} + return &this +} + +// GetKeyRotationAlerts returns the KeyRotationAlerts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlerts() []AlertsKeyRotationKeyRotationAlertResponse { + if o == nil { + var ret []AlertsKeyRotationKeyRotationAlertResponse + return ret + } + return o.KeyRotationAlerts +} + +// GetKeyRotationAlertsOk returns a tuple with the KeyRotationAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlertsOk() ([]AlertsKeyRotationKeyRotationAlertResponse, bool) { + if o == nil || isNil(o.KeyRotationAlerts) { + return nil, false + } + return o.KeyRotationAlerts, true +} + +// HasKeyRotationAlerts returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) HasKeyRotationAlerts() bool { + if o != nil && isNil(o.KeyRotationAlerts) { + return true + } + + return false +} + +// SetKeyRotationAlerts gets a reference to the given []AlertsKeyRotationKeyRotationAlertResponse and assigns it to the KeyRotationAlerts field. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) SetKeyRotationAlerts(v []AlertsKeyRotationKeyRotationAlertResponse) { + o.KeyRotationAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult { + if o == nil || isNil(o.AlertBuildResult) { + var ret CSSCMSDataModelEnumsAlertBuildResult + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given CSSCMSDataModelEnumsAlertBuildResult and assigns it to the AlertBuildResult field. +func (o *AlertsKeyRotationKeyRotationAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult) { + o.AlertBuildResult = &v +} + +func (o AlertsKeyRotationKeyRotationAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.KeyRotationAlerts != nil { + toSerialize["KeyRotationAlerts"] = o.KeyRotationAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertTestResponse struct { + value *AlertsKeyRotationKeyRotationAlertTestResponse + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestResponse) Get() *AlertsKeyRotationKeyRotationAlertTestResponse { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestResponse) Set(val *AlertsKeyRotationKeyRotationAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertTestResponse(val *AlertsKeyRotationKeyRotationAlertTestResponse) *NullableAlertsKeyRotationKeyRotationAlertTestResponse { + return &NullableAlertsKeyRotationKeyRotationAlertTestResponse{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_update_request.go b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_update_request.go new file mode 100644 index 0000000..70a5f8f --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_key_rotation_key_rotation_alert_update_request.go @@ -0,0 +1,391 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsKeyRotationKeyRotationAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsKeyRotationKeyRotationAlertUpdateRequest{} + +// AlertsKeyRotationKeyRotationAlertUpdateRequest struct for AlertsKeyRotationKeyRotationAlertUpdateRequest +type AlertsKeyRotationKeyRotationAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + RotationWarningDays int32 `json:"RotationWarningDays"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewAlertsKeyRotationKeyRotationAlertUpdateRequest instantiates a new AlertsKeyRotationKeyRotationAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsKeyRotationKeyRotationAlertUpdateRequest(displayName string, rotationWarningDays int32) *AlertsKeyRotationKeyRotationAlertUpdateRequest { + this := AlertsKeyRotationKeyRotationAlertUpdateRequest{} + this.DisplayName = displayName + this.RotationWarningDays = rotationWarningDays + return &this +} + +// NewAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults instantiates a new AlertsKeyRotationKeyRotationAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults() *AlertsKeyRotationKeyRotationAlertUpdateRequest { + this := AlertsKeyRotationKeyRotationAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetRotationWarningDays returns the RotationWarningDays field value +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RotationWarningDays, true +} + +// SetRotationWarningDays sets field value +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetRotationWarningDays(v int32) { + o.RotationWarningDays = v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *AlertsKeyRotationKeyRotationAlertUpdateRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o AlertsKeyRotationKeyRotationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsKeyRotationKeyRotationAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + toSerialize["RotationWarningDays"] = o.RotationWarningDays + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableAlertsKeyRotationKeyRotationAlertUpdateRequest struct { + value *AlertsKeyRotationKeyRotationAlertUpdateRequest + isSet bool +} + +func (v NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) Get() *AlertsKeyRotationKeyRotationAlertUpdateRequest { + return v.value +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) Set(val *AlertsKeyRotationKeyRotationAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsKeyRotationKeyRotationAlertUpdateRequest(val *AlertsKeyRotationKeyRotationAlertUpdateRequest) *NullableAlertsKeyRotationKeyRotationAlertUpdateRequest { + return &NullableAlertsKeyRotationKeyRotationAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsKeyRotationKeyRotationAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_creation_request.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_creation_request.go new file mode 100644 index 0000000..462842b --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_creation_request.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertCreationRequest{} + +// AlertsPendingPendingAlertCreationRequest struct for AlertsPendingPendingAlertCreationRequest +type AlertsPendingPendingAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsPendingPendingAlertCreationRequest instantiates a new AlertsPendingPendingAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertCreationRequest(displayName string, subject string, message string) *AlertsPendingPendingAlertCreationRequest { + this := AlertsPendingPendingAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsPendingPendingAlertCreationRequestWithDefaults instantiates a new AlertsPendingPendingAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertCreationRequestWithDefaults() *AlertsPendingPendingAlertCreationRequest { + this := AlertsPendingPendingAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsPendingPendingAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsPendingPendingAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsPendingPendingAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsPendingPendingAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsPendingPendingAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsPendingPendingAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertCreationRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsPendingPendingAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsPendingPendingAlertCreationRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsPendingPendingAlertCreationRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsPendingPendingAlertCreationRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertCreationRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertCreationRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsPendingPendingAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertCreationRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertCreationRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsPendingPendingAlertCreationRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsPendingPendingAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertCreationRequest struct { + value *AlertsPendingPendingAlertCreationRequest + isSet bool +} + +func (v NullableAlertsPendingPendingAlertCreationRequest) Get() *AlertsPendingPendingAlertCreationRequest { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertCreationRequest) Set(val *AlertsPendingPendingAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertCreationRequest(val *AlertsPendingPendingAlertCreationRequest) *NullableAlertsPendingPendingAlertCreationRequest { + return &NullableAlertsPendingPendingAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_definition_response.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_definition_response.go new file mode 100644 index 0000000..75fe02c --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_definition_response.go @@ -0,0 +1,421 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertDefinitionResponse{} + +// AlertsPendingPendingAlertDefinitionResponse struct for AlertsPendingPendingAlertDefinitionResponse +type AlertsPendingPendingAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *AlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsPendingPendingAlertDefinitionResponse instantiates a new AlertsPendingPendingAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertDefinitionResponse() *AlertsPendingPendingAlertDefinitionResponse { + this := AlertsPendingPendingAlertDefinitionResponse{} + return &this +} + +// NewAlertsPendingPendingAlertDefinitionResponseWithDefaults instantiates a new AlertsPendingPendingAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertDefinitionResponseWithDefaults() *AlertsPendingPendingAlertDefinitionResponse { + this := AlertsPendingPendingAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsPendingPendingAlertDefinitionResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertDefinitionResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetTemplate() AlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret AlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetTemplateOk() (*AlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given AlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetTemplate(v AlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParameters() []EventHandlerEventHandlerParameterResponse { + if o == nil { + var ret []EventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *AlertsPendingPendingAlertDefinitionResponse) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o AlertsPendingPendingAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertDefinitionResponse struct { + value *AlertsPendingPendingAlertDefinitionResponse + isSet bool +} + +func (v NullableAlertsPendingPendingAlertDefinitionResponse) Get() *AlertsPendingPendingAlertDefinitionResponse { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertDefinitionResponse) Set(val *AlertsPendingPendingAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertDefinitionResponse(val *AlertsPendingPendingAlertDefinitionResponse) *NullableAlertsPendingPendingAlertDefinitionResponse { + return &NullableAlertsPendingPendingAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_response.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_response.go new file mode 100644 index 0000000..ba5a3f1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_response.go @@ -0,0 +1,359 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertResponse{} + +// AlertsPendingPendingAlertResponse struct for AlertsPendingPendingAlertResponse +type AlertsPendingPendingAlertResponse struct { + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + CARequestId *int32 `json:"CARequestId,omitempty"` + CommonName NullableString `json:"CommonName,omitempty"` + LogicalName NullableString `json:"LogicalName,omitempty"` +} + +// NewAlertsPendingPendingAlertResponse instantiates a new AlertsPendingPendingAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertResponse() *AlertsPendingPendingAlertResponse { + this := AlertsPendingPendingAlertResponse{} + return &this +} + +// NewAlertsPendingPendingAlertResponseWithDefaults instantiates a new AlertsPendingPendingAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertResponseWithDefaults() *AlertsPendingPendingAlertResponse { + this := AlertsPendingPendingAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *AlertsPendingPendingAlertResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *AlertsPendingPendingAlertResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *AlertsPendingPendingAlertResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *AlertsPendingPendingAlertResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *AlertsPendingPendingAlertResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *AlertsPendingPendingAlertResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsPendingPendingAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertResponse) GetCARequestId() int32 { + if o == nil || isNil(o.CARequestId) { + var ret int32 + return ret + } + return *o.CARequestId +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertResponse) GetCARequestIdOk() (*int32, bool) { + if o == nil || isNil(o.CARequestId) { + return nil, false + } + return o.CARequestId, true +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasCARequestId() bool { + if o != nil && !isNil(o.CARequestId) { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given int32 and assigns it to the CARequestId field. +func (o *AlertsPendingPendingAlertResponse) SetCARequestId(v int32) { + o.CARequestId = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName.Get()) { + var ret string + return ret + } + return *o.CommonName.Get() +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertResponse) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommonName.Get(), o.CommonName.IsSet() +} + +// HasCommonName returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasCommonName() bool { + if o != nil && o.CommonName.IsSet() { + return true + } + + return false +} + +// SetCommonName gets a reference to the given NullableString and assigns it to the CommonName field. +func (o *AlertsPendingPendingAlertResponse) SetCommonName(v string) { + o.CommonName.Set(&v) +} + +// SetCommonNameNil sets the value for CommonName to be an explicit nil +func (o *AlertsPendingPendingAlertResponse) SetCommonNameNil() { + o.CommonName.Set(nil) +} + +// UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +func (o *AlertsPendingPendingAlertResponse) UnsetCommonName() { + o.CommonName.Unset() +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertResponse) GetLogicalName() string { + if o == nil || isNil(o.LogicalName.Get()) { + var ret string + return ret + } + return *o.LogicalName.Get() +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertResponse) GetLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogicalName.Get(), o.LogicalName.IsSet() +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertResponse) HasLogicalName() bool { + if o != nil && o.LogicalName.IsSet() { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given NullableString and assigns it to the LogicalName field. +func (o *AlertsPendingPendingAlertResponse) SetLogicalName(v string) { + o.LogicalName.Set(&v) +} + +// SetLogicalNameNil sets the value for LogicalName to be an explicit nil +func (o *AlertsPendingPendingAlertResponse) SetLogicalNameNil() { + o.LogicalName.Set(nil) +} + +// UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +func (o *AlertsPendingPendingAlertResponse) UnsetLogicalName() { + o.LogicalName.Unset() +} + +func (o AlertsPendingPendingAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.CARequestId) { + toSerialize["CARequestId"] = o.CARequestId + } + if o.CommonName.IsSet() { + toSerialize["CommonName"] = o.CommonName.Get() + } + if o.LogicalName.IsSet() { + toSerialize["LogicalName"] = o.LogicalName.Get() + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertResponse struct { + value *AlertsPendingPendingAlertResponse + isSet bool +} + +func (v NullableAlertsPendingPendingAlertResponse) Get() *AlertsPendingPendingAlertResponse { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertResponse) Set(val *AlertsPendingPendingAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertResponse(val *AlertsPendingPendingAlertResponse) *NullableAlertsPendingPendingAlertResponse { + return &NullableAlertsPendingPendingAlertResponse{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_all_request.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_all_request.go new file mode 100644 index 0000000..0b5ac8c --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_all_request.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertTestAllRequest{} + +// AlertsPendingPendingAlertTestAllRequest struct for AlertsPendingPendingAlertTestAllRequest +type AlertsPendingPendingAlertTestAllRequest struct { + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsPendingPendingAlertTestAllRequest instantiates a new AlertsPendingPendingAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertTestAllRequest() *AlertsPendingPendingAlertTestAllRequest { + this := AlertsPendingPendingAlertTestAllRequest{} + return &this +} + +// NewAlertsPendingPendingAlertTestAllRequestWithDefaults instantiates a new AlertsPendingPendingAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertTestAllRequestWithDefaults() *AlertsPendingPendingAlertTestAllRequest { + this := AlertsPendingPendingAlertTestAllRequest{} + return &this +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsPendingPendingAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsPendingPendingAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertTestAllRequest struct { + value *AlertsPendingPendingAlertTestAllRequest + isSet bool +} + +func (v NullableAlertsPendingPendingAlertTestAllRequest) Get() *AlertsPendingPendingAlertTestAllRequest { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertTestAllRequest) Set(val *AlertsPendingPendingAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertTestAllRequest(val *AlertsPendingPendingAlertTestAllRequest) *NullableAlertsPendingPendingAlertTestAllRequest { + return &NullableAlertsPendingPendingAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_request.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_request.go new file mode 100644 index 0000000..82a07f0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_request.go @@ -0,0 +1,170 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertTestRequest{} + +// AlertsPendingPendingAlertTestRequest struct for AlertsPendingPendingAlertTestRequest +type AlertsPendingPendingAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewAlertsPendingPendingAlertTestRequest instantiates a new AlertsPendingPendingAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertTestRequest() *AlertsPendingPendingAlertTestRequest { + this := AlertsPendingPendingAlertTestRequest{} + return &this +} + +// NewAlertsPendingPendingAlertTestRequestWithDefaults instantiates a new AlertsPendingPendingAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertTestRequestWithDefaults() *AlertsPendingPendingAlertTestRequest { + this := AlertsPendingPendingAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *AlertsPendingPendingAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *AlertsPendingPendingAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o AlertsPendingPendingAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertTestRequest struct { + value *AlertsPendingPendingAlertTestRequest + isSet bool +} + +func (v NullableAlertsPendingPendingAlertTestRequest) Get() *AlertsPendingPendingAlertTestRequest { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertTestRequest) Set(val *AlertsPendingPendingAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertTestRequest(val *AlertsPendingPendingAlertTestRequest) *NullableAlertsPendingPendingAlertTestRequest { + return &NullableAlertsPendingPendingAlertTestRequest{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_response.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_response.go new file mode 100644 index 0000000..3586741 --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_test_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertTestResponse{} + +// AlertsPendingPendingAlertTestResponse struct for AlertsPendingPendingAlertTestResponse +type AlertsPendingPendingAlertTestResponse struct { + PendingAlerts []AlertsPendingPendingAlertResponse `json:"PendingAlerts,omitempty"` + AlertBuildResult *CSSCMSDataModelEnumsAlertBuildResult `json:"AlertBuildResult,omitempty"` +} + +// NewAlertsPendingPendingAlertTestResponse instantiates a new AlertsPendingPendingAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertTestResponse() *AlertsPendingPendingAlertTestResponse { + this := AlertsPendingPendingAlertTestResponse{} + return &this +} + +// NewAlertsPendingPendingAlertTestResponseWithDefaults instantiates a new AlertsPendingPendingAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertTestResponseWithDefaults() *AlertsPendingPendingAlertTestResponse { + this := AlertsPendingPendingAlertTestResponse{} + return &this +} + +// GetPendingAlerts returns the PendingAlerts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertTestResponse) GetPendingAlerts() []AlertsPendingPendingAlertResponse { + if o == nil { + var ret []AlertsPendingPendingAlertResponse + return ret + } + return o.PendingAlerts +} + +// GetPendingAlertsOk returns a tuple with the PendingAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertTestResponse) GetPendingAlertsOk() ([]AlertsPendingPendingAlertResponse, bool) { + if o == nil || isNil(o.PendingAlerts) { + return nil, false + } + return o.PendingAlerts, true +} + +// HasPendingAlerts returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertTestResponse) HasPendingAlerts() bool { + if o != nil && isNil(o.PendingAlerts) { + return true + } + + return false +} + +// SetPendingAlerts gets a reference to the given []AlertsPendingPendingAlertResponse and assigns it to the PendingAlerts field. +func (o *AlertsPendingPendingAlertTestResponse) SetPendingAlerts(v []AlertsPendingPendingAlertResponse) { + o.PendingAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult { + if o == nil || isNil(o.AlertBuildResult) { + var ret CSSCMSDataModelEnumsAlertBuildResult + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given CSSCMSDataModelEnumsAlertBuildResult and assigns it to the AlertBuildResult field. +func (o *AlertsPendingPendingAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult) { + o.AlertBuildResult = &v +} + +func (o AlertsPendingPendingAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.PendingAlerts != nil { + toSerialize["PendingAlerts"] = o.PendingAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertTestResponse struct { + value *AlertsPendingPendingAlertTestResponse + isSet bool +} + +func (v NullableAlertsPendingPendingAlertTestResponse) Get() *AlertsPendingPendingAlertTestResponse { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertTestResponse) Set(val *AlertsPendingPendingAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertTestResponse(val *AlertsPendingPendingAlertTestResponse) *NullableAlertsPendingPendingAlertTestResponse { + return &NullableAlertsPendingPendingAlertTestResponse{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_update_request.go b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_update_request.go new file mode 100644 index 0000000..9383cfd --- /dev/null +++ b/v24/api/keyfactor/v1/model_alerts_pending_pending_alert_update_request.go @@ -0,0 +1,372 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AlertsPendingPendingAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertsPendingPendingAlertUpdateRequest{} + +// AlertsPendingPendingAlertUpdateRequest struct for AlertsPendingPendingAlertUpdateRequest +type AlertsPendingPendingAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *EventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []EventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` +} + +// NewAlertsPendingPendingAlertUpdateRequest instantiates a new AlertsPendingPendingAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAlertsPendingPendingAlertUpdateRequest(displayName string, subject string, message string) *AlertsPendingPendingAlertUpdateRequest { + this := AlertsPendingPendingAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewAlertsPendingPendingAlertUpdateRequestWithDefaults instantiates a new AlertsPendingPendingAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAlertsPendingPendingAlertUpdateRequestWithDefaults() *AlertsPendingPendingAlertUpdateRequest { + this := AlertsPendingPendingAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AlertsPendingPendingAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *AlertsPendingPendingAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *AlertsPendingPendingAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *AlertsPendingPendingAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *AlertsPendingPendingAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *AlertsPendingPendingAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AlertsPendingPendingAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *AlertsPendingPendingAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *AlertsPendingPendingAlertUpdateRequest) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *AlertsPendingPendingAlertUpdateRequest) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *AlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandler() EventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret EventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandlerOk() (*EventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given EventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *AlertsPendingPendingAlertUpdateRequest) SetRegisteredEventHandler(v EventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertUpdateRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *AlertsPendingPendingAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlertsPendingPendingAlertUpdateRequest) GetEventHandlerParameters() []EventHandlerEventHandlerParameterRequest { + if o == nil { + var ret []EventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AlertsPendingPendingAlertUpdateRequest) GetEventHandlerParametersOk() ([]EventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *AlertsPendingPendingAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []EventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *AlertsPendingPendingAlertUpdateRequest) SetEventHandlerParameters(v []EventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o AlertsPendingPendingAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertsPendingPendingAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + if o.EventHandlerParameters != nil { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + return toSerialize, nil +} + +type NullableAlertsPendingPendingAlertUpdateRequest struct { + value *AlertsPendingPendingAlertUpdateRequest + isSet bool +} + +func (v NullableAlertsPendingPendingAlertUpdateRequest) Get() *AlertsPendingPendingAlertUpdateRequest { + return v.value +} + +func (v *NullableAlertsPendingPendingAlertUpdateRequest) Set(val *AlertsPendingPendingAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAlertsPendingPendingAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertsPendingPendingAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertsPendingPendingAlertUpdateRequest(val *AlertsPendingPendingAlertUpdateRequest) *NullableAlertsPendingPendingAlertUpdateRequest { + return &NullableAlertsPendingPendingAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableAlertsPendingPendingAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertsPendingPendingAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_app_settings_app_setting_response.go b/v24/api/keyfactor/v1/model_app_settings_app_setting_response.go new file mode 100644 index 0000000..14c27c8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_app_settings_app_setting_response.go @@ -0,0 +1,369 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AppSettingsAppSettingResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppSettingsAppSettingResponse{} + +// AppSettingsAppSettingResponse struct for AppSettingsAppSettingResponse +type AppSettingsAppSettingResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + ShortName NullableString `json:"ShortName,omitempty"` + Description NullableString `json:"Description,omitempty"` + Value NullableString `json:"Value,omitempty"` + ValueType NullableString `json:"ValueType,omitempty"` +} + +// NewAppSettingsAppSettingResponse instantiates a new AppSettingsAppSettingResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppSettingsAppSettingResponse() *AppSettingsAppSettingResponse { + this := AppSettingsAppSettingResponse{} + return &this +} + +// NewAppSettingsAppSettingResponseWithDefaults instantiates a new AppSettingsAppSettingResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppSettingsAppSettingResponseWithDefaults() *AppSettingsAppSettingResponse { + this := AppSettingsAppSettingResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AppSettingsAppSettingResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppSettingsAppSettingResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AppSettingsAppSettingResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *AppSettingsAppSettingResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *AppSettingsAppSettingResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *AppSettingsAppSettingResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetShortName returns the ShortName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingResponse) GetShortName() string { + if o == nil || isNil(o.ShortName.Get()) { + var ret string + return ret + } + return *o.ShortName.Get() +} + +// GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingResponse) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ShortName.Get(), o.ShortName.IsSet() +} + +// HasShortName returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasShortName() bool { + if o != nil && o.ShortName.IsSet() { + return true + } + + return false +} + +// SetShortName gets a reference to the given NullableString and assigns it to the ShortName field. +func (o *AppSettingsAppSettingResponse) SetShortName(v string) { + o.ShortName.Set(&v) +} + +// SetShortNameNil sets the value for ShortName to be an explicit nil +func (o *AppSettingsAppSettingResponse) SetShortNameNil() { + o.ShortName.Set(nil) +} + +// UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +func (o *AppSettingsAppSettingResponse) UnsetShortName() { + o.ShortName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *AppSettingsAppSettingResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *AppSettingsAppSettingResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *AppSettingsAppSettingResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *AppSettingsAppSettingResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *AppSettingsAppSettingResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *AppSettingsAppSettingResponse) UnsetValue() { + o.Value.Unset() +} + +// GetValueType returns the ValueType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingResponse) GetValueType() string { + if o == nil || isNil(o.ValueType.Get()) { + var ret string + return ret + } + return *o.ValueType.Get() +} + +// GetValueTypeOk returns a tuple with the ValueType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingResponse) GetValueTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ValueType.Get(), o.ValueType.IsSet() +} + +// HasValueType returns a boolean if a field has been set. +func (o *AppSettingsAppSettingResponse) HasValueType() bool { + if o != nil && o.ValueType.IsSet() { + return true + } + + return false +} + +// SetValueType gets a reference to the given NullableString and assigns it to the ValueType field. +func (o *AppSettingsAppSettingResponse) SetValueType(v string) { + o.ValueType.Set(&v) +} + +// SetValueTypeNil sets the value for ValueType to be an explicit nil +func (o *AppSettingsAppSettingResponse) SetValueTypeNil() { + o.ValueType.Set(nil) +} + +// UnsetValueType ensures that no value is present for ValueType, not even an explicit nil +func (o *AppSettingsAppSettingResponse) UnsetValueType() { + o.ValueType.Unset() +} + +func (o AppSettingsAppSettingResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppSettingsAppSettingResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ShortName.IsSet() { + toSerialize["ShortName"] = o.ShortName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.ValueType.IsSet() { + toSerialize["ValueType"] = o.ValueType.Get() + } + return toSerialize, nil +} + +type NullableAppSettingsAppSettingResponse struct { + value *AppSettingsAppSettingResponse + isSet bool +} + +func (v NullableAppSettingsAppSettingResponse) Get() *AppSettingsAppSettingResponse { + return v.value +} + +func (v *NullableAppSettingsAppSettingResponse) Set(val *AppSettingsAppSettingResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAppSettingsAppSettingResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAppSettingsAppSettingResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppSettingsAppSettingResponse(val *AppSettingsAppSettingResponse) *NullableAppSettingsAppSettingResponse { + return &NullableAppSettingsAppSettingResponse{value: val, isSet: true} +} + +func (v NullableAppSettingsAppSettingResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppSettingsAppSettingResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_app_settings_app_setting_update_bulk_request.go b/v24/api/keyfactor/v1/model_app_settings_app_setting_update_bulk_request.go new file mode 100644 index 0000000..aa42387 --- /dev/null +++ b/v24/api/keyfactor/v1/model_app_settings_app_setting_update_bulk_request.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AppSettingsAppSettingUpdateBulkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppSettingsAppSettingUpdateBulkRequest{} + +// AppSettingsAppSettingUpdateBulkRequest struct for AppSettingsAppSettingUpdateBulkRequest +type AppSettingsAppSettingUpdateBulkRequest struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` +} + +// NewAppSettingsAppSettingUpdateBulkRequest instantiates a new AppSettingsAppSettingUpdateBulkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppSettingsAppSettingUpdateBulkRequest() *AppSettingsAppSettingUpdateBulkRequest { + this := AppSettingsAppSettingUpdateBulkRequest{} + return &this +} + +// NewAppSettingsAppSettingUpdateBulkRequestWithDefaults instantiates a new AppSettingsAppSettingUpdateBulkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppSettingsAppSettingUpdateBulkRequestWithDefaults() *AppSettingsAppSettingUpdateBulkRequest { + this := AppSettingsAppSettingUpdateBulkRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AppSettingsAppSettingUpdateBulkRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppSettingsAppSettingUpdateBulkRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AppSettingsAppSettingUpdateBulkRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *AppSettingsAppSettingUpdateBulkRequest) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingUpdateBulkRequest) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingUpdateBulkRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *AppSettingsAppSettingUpdateBulkRequest) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *AppSettingsAppSettingUpdateBulkRequest) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *AppSettingsAppSettingUpdateBulkRequest) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *AppSettingsAppSettingUpdateBulkRequest) UnsetValue() { + o.Value.Unset() +} + +func (o AppSettingsAppSettingUpdateBulkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppSettingsAppSettingUpdateBulkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableAppSettingsAppSettingUpdateBulkRequest struct { + value *AppSettingsAppSettingUpdateBulkRequest + isSet bool +} + +func (v NullableAppSettingsAppSettingUpdateBulkRequest) Get() *AppSettingsAppSettingUpdateBulkRequest { + return v.value +} + +func (v *NullableAppSettingsAppSettingUpdateBulkRequest) Set(val *AppSettingsAppSettingUpdateBulkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAppSettingsAppSettingUpdateBulkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAppSettingsAppSettingUpdateBulkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppSettingsAppSettingUpdateBulkRequest(val *AppSettingsAppSettingUpdateBulkRequest) *NullableAppSettingsAppSettingUpdateBulkRequest { + return &NullableAppSettingsAppSettingUpdateBulkRequest{value: val, isSet: true} +} + +func (v NullableAppSettingsAppSettingUpdateBulkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppSettingsAppSettingUpdateBulkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_app_settings_app_setting_update_request.go b/v24/api/keyfactor/v1/model_app_settings_app_setting_update_request.go new file mode 100644 index 0000000..7f16434 --- /dev/null +++ b/v24/api/keyfactor/v1/model_app_settings_app_setting_update_request.go @@ -0,0 +1,145 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the AppSettingsAppSettingUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppSettingsAppSettingUpdateRequest{} + +// AppSettingsAppSettingUpdateRequest struct for AppSettingsAppSettingUpdateRequest +type AppSettingsAppSettingUpdateRequest struct { + Value NullableString `json:"Value,omitempty"` +} + +// NewAppSettingsAppSettingUpdateRequest instantiates a new AppSettingsAppSettingUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppSettingsAppSettingUpdateRequest() *AppSettingsAppSettingUpdateRequest { + this := AppSettingsAppSettingUpdateRequest{} + return &this +} + +// NewAppSettingsAppSettingUpdateRequestWithDefaults instantiates a new AppSettingsAppSettingUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppSettingsAppSettingUpdateRequestWithDefaults() *AppSettingsAppSettingUpdateRequest { + this := AppSettingsAppSettingUpdateRequest{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AppSettingsAppSettingUpdateRequest) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AppSettingsAppSettingUpdateRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *AppSettingsAppSettingUpdateRequest) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *AppSettingsAppSettingUpdateRequest) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *AppSettingsAppSettingUpdateRequest) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *AppSettingsAppSettingUpdateRequest) UnsetValue() { + o.Value.Unset() +} + +func (o AppSettingsAppSettingUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppSettingsAppSettingUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableAppSettingsAppSettingUpdateRequest struct { + value *AppSettingsAppSettingUpdateRequest + isSet bool +} + +func (v NullableAppSettingsAppSettingUpdateRequest) Get() *AppSettingsAppSettingUpdateRequest { + return v.value +} + +func (v *NullableAppSettingsAppSettingUpdateRequest) Set(val *AppSettingsAppSettingUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAppSettingsAppSettingUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAppSettingsAppSettingUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppSettingsAppSettingUpdateRequest(val *AppSettingsAppSettingUpdateRequest) *NullableAppSettingsAppSettingUpdateRequest { + return &NullableAppSettingsAppSettingUpdateRequest{value: val, isSet: true} +} + +func (v NullableAppSettingsAppSettingUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppSettingsAppSettingUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_create_request.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_create_request.go new file mode 100644 index 0000000..21d3fea --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_create_request.go @@ -0,0 +1,125 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCAAlertRecipientCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAAlertRecipientCreateRequest{} + +// CertificateAuthoritiesCAAlertRecipientCreateRequest struct for CertificateAuthoritiesCAAlertRecipientCreateRequest +type CertificateAuthoritiesCAAlertRecipientCreateRequest struct { + Emails []string `json:"Emails"` +} + +// NewCertificateAuthoritiesCAAlertRecipientCreateRequest instantiates a new CertificateAuthoritiesCAAlertRecipientCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAAlertRecipientCreateRequest(emails []string) *CertificateAuthoritiesCAAlertRecipientCreateRequest { + this := CertificateAuthoritiesCAAlertRecipientCreateRequest{} + this.Emails = emails + return &this +} + +// NewCertificateAuthoritiesCAAlertRecipientCreateRequestWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAAlertRecipientCreateRequestWithDefaults() *CertificateAuthoritiesCAAlertRecipientCreateRequest { + this := CertificateAuthoritiesCAAlertRecipientCreateRequest{} + return &this +} + +// GetEmails returns the Emails field value +func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) GetEmails() []string { + if o == nil { + var ret []string + return ret + } + + return o.Emails +} + +// GetEmailsOk returns a tuple with the Emails field value +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) GetEmailsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Emails, true +} + +// SetEmails sets field value +func (o *CertificateAuthoritiesCAAlertRecipientCreateRequest) SetEmails(v []string) { + o.Emails = v +} + +func (o CertificateAuthoritiesCAAlertRecipientCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAAlertRecipientCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Emails"] = o.Emails + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAAlertRecipientCreateRequest struct { + value *CertificateAuthoritiesCAAlertRecipientCreateRequest + isSet bool +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) Get() *CertificateAuthoritiesCAAlertRecipientCreateRequest { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) Set(val *CertificateAuthoritiesCAAlertRecipientCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAAlertRecipientCreateRequest(val *CertificateAuthoritiesCAAlertRecipientCreateRequest) *NullableCertificateAuthoritiesCAAlertRecipientCreateRequest { + return &NullableCertificateAuthoritiesCAAlertRecipientCreateRequest{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_response.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_response.go new file mode 100644 index 0000000..d180c62 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCAAlertRecipientResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAAlertRecipientResponse{} + +// CertificateAuthoritiesCAAlertRecipientResponse struct for CertificateAuthoritiesCAAlertRecipientResponse +type CertificateAuthoritiesCAAlertRecipientResponse struct { + Id *int32 `json:"Id,omitempty"` + Email NullableString `json:"Email,omitempty"` +} + +// NewCertificateAuthoritiesCAAlertRecipientResponse instantiates a new CertificateAuthoritiesCAAlertRecipientResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAAlertRecipientResponse() *CertificateAuthoritiesCAAlertRecipientResponse { + this := CertificateAuthoritiesCAAlertRecipientResponse{} + return &this +} + +// NewCertificateAuthoritiesCAAlertRecipientResponseWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAAlertRecipientResponseWithDefaults() *CertificateAuthoritiesCAAlertRecipientResponse { + this := CertificateAuthoritiesCAAlertRecipientResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetId(v int32) { + o.Id = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetEmail() string { + if o == nil || isNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAAlertRecipientResponse) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetEmail(v string) { + o.Email.Set(&v) +} + +// SetEmailNil sets the value for Email to be an explicit nil +func (o *CertificateAuthoritiesCAAlertRecipientResponse) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *CertificateAuthoritiesCAAlertRecipientResponse) UnsetEmail() { + o.Email.Unset() +} + +func (o CertificateAuthoritiesCAAlertRecipientResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAAlertRecipientResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Email.IsSet() { + toSerialize["Email"] = o.Email.Get() + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAAlertRecipientResponse struct { + value *CertificateAuthoritiesCAAlertRecipientResponse + isSet bool +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientResponse) Get() *CertificateAuthoritiesCAAlertRecipientResponse { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientResponse) Set(val *CertificateAuthoritiesCAAlertRecipientResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAAlertRecipientResponse(val *CertificateAuthoritiesCAAlertRecipientResponse) *NullableCertificateAuthoritiesCAAlertRecipientResponse { + return &NullableCertificateAuthoritiesCAAlertRecipientResponse{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_update_request.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_update_request.go new file mode 100644 index 0000000..ca8257c --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_alert_recipient_update_request.go @@ -0,0 +1,125 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCAAlertRecipientUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAAlertRecipientUpdateRequest{} + +// CertificateAuthoritiesCAAlertRecipientUpdateRequest struct for CertificateAuthoritiesCAAlertRecipientUpdateRequest +type CertificateAuthoritiesCAAlertRecipientUpdateRequest struct { + Email string `json:"Email"` +} + +// NewCertificateAuthoritiesCAAlertRecipientUpdateRequest instantiates a new CertificateAuthoritiesCAAlertRecipientUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAAlertRecipientUpdateRequest(email string) *CertificateAuthoritiesCAAlertRecipientUpdateRequest { + this := CertificateAuthoritiesCAAlertRecipientUpdateRequest{} + this.Email = email + return &this +} + +// NewCertificateAuthoritiesCAAlertRecipientUpdateRequestWithDefaults instantiates a new CertificateAuthoritiesCAAlertRecipientUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAAlertRecipientUpdateRequestWithDefaults() *CertificateAuthoritiesCAAlertRecipientUpdateRequest { + this := CertificateAuthoritiesCAAlertRecipientUpdateRequest{} + return &this +} + +// GetEmail returns the Email field value +func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *CertificateAuthoritiesCAAlertRecipientUpdateRequest) SetEmail(v string) { + o.Email = v +} + +func (o CertificateAuthoritiesCAAlertRecipientUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAAlertRecipientUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Email"] = o.Email + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest struct { + value *CertificateAuthoritiesCAAlertRecipientUpdateRequest + isSet bool +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) Get() *CertificateAuthoritiesCAAlertRecipientUpdateRequest { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) Set(val *CertificateAuthoritiesCAAlertRecipientUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAAlertRecipientUpdateRequest(val *CertificateAuthoritiesCAAlertRecipientUpdateRequest) *NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest { + return &NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAAlertRecipientUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_request.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_request.go new file mode 100644 index 0000000..0691693 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_request.go @@ -0,0 +1,383 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCAConnectorRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAConnectorRequest{} + +// CertificateAuthoritiesCAConnectorRequest struct for CertificateAuthoritiesCAConnectorRequest +type CertificateAuthoritiesCAConnectorRequest struct { + Name NullableString `json:"Name,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + PoolName NullableString `json:"PoolName,omitempty"` + ClaimType *CSSCMSCoreEnumsClaimType `json:"ClaimType,omitempty"` + ClaimValue NullableString `json:"ClaimValue,omitempty"` + ProviderId *string `json:"ProviderId,omitempty"` + CAType *CSSCMSCoreEnumsCertificateAuthorityType `json:"CAType,omitempty"` +} + +// NewCertificateAuthoritiesCAConnectorRequest instantiates a new CertificateAuthoritiesCAConnectorRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAConnectorRequest() *CertificateAuthoritiesCAConnectorRequest { + this := CertificateAuthoritiesCAConnectorRequest{} + return &this +} + +// NewCertificateAuthoritiesCAConnectorRequestWithDefaults instantiates a new CertificateAuthoritiesCAConnectorRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAConnectorRequestWithDefaults() *CertificateAuthoritiesCAConnectorRequest { + this := CertificateAuthoritiesCAConnectorRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorRequest) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) UnsetName() { + o.Name.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPoolName returns the PoolName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorRequest) GetPoolName() string { + if o == nil || isNil(o.PoolName.Get()) { + var ret string + return ret + } + return *o.PoolName.Get() +} + +// GetPoolNameOk returns a tuple with the PoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorRequest) GetPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PoolName.Get(), o.PoolName.IsSet() +} + +// HasPoolName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasPoolName() bool { + if o != nil && o.PoolName.IsSet() { + return true + } + + return false +} + +// SetPoolName gets a reference to the given NullableString and assigns it to the PoolName field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetPoolName(v string) { + o.PoolName.Set(&v) +} + +// SetPoolNameNil sets the value for PoolName to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) SetPoolNameNil() { + o.PoolName.Set(nil) +} + +// UnsetPoolName ensures that no value is present for PoolName, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) UnsetPoolName() { + o.PoolName.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimType() CSSCMSCoreEnumsClaimType { + if o == nil || isNil(o.ClaimType) { + var ret CSSCMSCoreEnumsClaimType + return ret + } + return *o.ClaimType +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool) { + if o == nil || isNil(o.ClaimType) { + return nil, false + } + return o.ClaimType, true +} + +// HasClaimType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasClaimType() bool { + if o != nil && !isNil(o.ClaimType) { + return true + } + + return false +} + +// SetClaimType gets a reference to the given CSSCMSCoreEnumsClaimType and assigns it to the ClaimType field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimType(v CSSCMSCoreEnumsClaimType) { + o.ClaimType = &v +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorRequest) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorRequest) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorRequest) GetProviderId() string { + if o == nil || isNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) GetProviderIdOk() (*string, bool) { + if o == nil || isNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasProviderId() bool { + if o != nil && !isNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType { + if o == nil || isNil(o.CAType) { + var ret CSSCMSCoreEnumsCertificateAuthorityType + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorRequest) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given CSSCMSCoreEnumsCertificateAuthorityType and assigns it to the CAType field. +func (o *CertificateAuthoritiesCAConnectorRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType) { + o.CAType = &v +} + +func (o CertificateAuthoritiesCAConnectorRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAConnectorRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.PoolName.IsSet() { + toSerialize["PoolName"] = o.PoolName.Get() + } + if !isNil(o.ClaimType) { + toSerialize["ClaimType"] = o.ClaimType + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.ProviderId) { + toSerialize["ProviderId"] = o.ProviderId + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAConnectorRequest struct { + value *CertificateAuthoritiesCAConnectorRequest + isSet bool +} + +func (v NullableCertificateAuthoritiesCAConnectorRequest) Get() *CertificateAuthoritiesCAConnectorRequest { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAConnectorRequest) Set(val *CertificateAuthoritiesCAConnectorRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAConnectorRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAConnectorRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAConnectorRequest(val *CertificateAuthoritiesCAConnectorRequest) *NullableCertificateAuthoritiesCAConnectorRequest { + return &NullableCertificateAuthoritiesCAConnectorRequest{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAConnectorRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAConnectorRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_response.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_response.go new file mode 100644 index 0000000..1d271f9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_connector_response.go @@ -0,0 +1,550 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificateAuthoritiesCAConnectorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAConnectorResponse{} + +// CertificateAuthoritiesCAConnectorResponse struct for CertificateAuthoritiesCAConnectorResponse +type CertificateAuthoritiesCAConnectorResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + PoolName NullableString `json:"PoolName,omitempty"` + LastSeen NullableTime `json:"LastSeen,omitempty"` + ClaimType *CSSCMSCoreEnumsClaimType `json:"ClaimType,omitempty"` + ClaimValue NullableString `json:"ClaimValue,omitempty"` + ProviderId *string `json:"ProviderId,omitempty"` + ProviderName NullableString `json:"ProviderName,omitempty"` + Connected *bool `json:"Connected,omitempty"` + CAType *CSSCMSCoreEnumsCertificateAuthorityType `json:"CAType,omitempty"` +} + +// NewCertificateAuthoritiesCAConnectorResponse instantiates a new CertificateAuthoritiesCAConnectorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAConnectorResponse() *CertificateAuthoritiesCAConnectorResponse { + this := CertificateAuthoritiesCAConnectorResponse{} + return &this +} + +// NewCertificateAuthoritiesCAConnectorResponseWithDefaults instantiates a new CertificateAuthoritiesCAConnectorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAConnectorResponseWithDefaults() *CertificateAuthoritiesCAConnectorResponse { + this := CertificateAuthoritiesCAConnectorResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) UnsetName() { + o.Name.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPoolName returns the PoolName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorResponse) GetPoolName() string { + if o == nil || isNil(o.PoolName.Get()) { + var ret string + return ret + } + return *o.PoolName.Get() +} + +// GetPoolNameOk returns a tuple with the PoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorResponse) GetPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PoolName.Get(), o.PoolName.IsSet() +} + +// HasPoolName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasPoolName() bool { + if o != nil && o.PoolName.IsSet() { + return true + } + + return false +} + +// SetPoolName gets a reference to the given NullableString and assigns it to the PoolName field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetPoolName(v string) { + o.PoolName.Set(&v) +} + +// SetPoolNameNil sets the value for PoolName to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) SetPoolNameNil() { + o.PoolName.Set(nil) +} + +// UnsetPoolName ensures that no value is present for PoolName, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) UnsetPoolName() { + o.PoolName.Unset() +} + +// GetLastSeen returns the LastSeen field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorResponse) GetLastSeen() time.Time { + if o == nil || isNil(o.LastSeen.Get()) { + var ret time.Time + return ret + } + return *o.LastSeen.Get() +} + +// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorResponse) GetLastSeenOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastSeen.Get(), o.LastSeen.IsSet() +} + +// HasLastSeen returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasLastSeen() bool { + if o != nil && o.LastSeen.IsSet() { + return true + } + + return false +} + +// SetLastSeen gets a reference to the given NullableTime and assigns it to the LastSeen field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetLastSeen(v time.Time) { + o.LastSeen.Set(&v) +} + +// SetLastSeenNil sets the value for LastSeen to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) SetLastSeenNil() { + o.LastSeen.Set(nil) +} + +// UnsetLastSeen ensures that no value is present for LastSeen, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) UnsetLastSeen() { + o.LastSeen.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimType() CSSCMSCoreEnumsClaimType { + if o == nil || isNil(o.ClaimType) { + var ret CSSCMSCoreEnumsClaimType + return ret + } + return *o.ClaimType +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool) { + if o == nil || isNil(o.ClaimType) { + return nil, false + } + return o.ClaimType, true +} + +// HasClaimType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasClaimType() bool { + if o != nil && !isNil(o.ClaimType) { + return true + } + + return false +} + +// SetClaimType gets a reference to the given CSSCMSCoreEnumsClaimType and assigns it to the ClaimType field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimType(v CSSCMSCoreEnumsClaimType) { + o.ClaimType = &v +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorResponse) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderId() string { + if o == nil || isNil(o.ProviderId) { + var ret string + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderIdOk() (*string, bool) { + if o == nil || isNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasProviderId() bool { + if o != nil && !isNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderId(v string) { + o.ProviderId = &v +} + +// GetProviderName returns the ProviderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderName() string { + if o == nil || isNil(o.ProviderName.Get()) { + var ret string + return ret + } + return *o.ProviderName.Get() +} + +// GetProviderNameOk returns a tuple with the ProviderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAConnectorResponse) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProviderName.Get(), o.ProviderName.IsSet() +} + +// HasProviderName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasProviderName() bool { + if o != nil && o.ProviderName.IsSet() { + return true + } + + return false +} + +// SetProviderName gets a reference to the given NullableString and assigns it to the ProviderName field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderName(v string) { + o.ProviderName.Set(&v) +} + +// SetProviderNameNil sets the value for ProviderName to be an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) SetProviderNameNil() { + o.ProviderName.Set(nil) +} + +// UnsetProviderName ensures that no value is present for ProviderName, not even an explicit nil +func (o *CertificateAuthoritiesCAConnectorResponse) UnsetProviderName() { + o.ProviderName.Unset() +} + +// GetConnected returns the Connected field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetConnected() bool { + if o == nil || isNil(o.Connected) { + var ret bool + return ret + } + return *o.Connected +} + +// GetConnectedOk returns a tuple with the Connected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetConnectedOk() (*bool, bool) { + if o == nil || isNil(o.Connected) { + return nil, false + } + return o.Connected, true +} + +// HasConnected returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasConnected() bool { + if o != nil && !isNil(o.Connected) { + return true + } + + return false +} + +// SetConnected gets a reference to the given bool and assigns it to the Connected field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetConnected(v bool) { + o.Connected = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAConnectorResponse) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType { + if o == nil || isNil(o.CAType) { + var ret CSSCMSCoreEnumsCertificateAuthorityType + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAConnectorResponse) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given CSSCMSCoreEnumsCertificateAuthorityType and assigns it to the CAType field. +func (o *CertificateAuthoritiesCAConnectorResponse) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType) { + o.CAType = &v +} + +func (o CertificateAuthoritiesCAConnectorResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAConnectorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.PoolName.IsSet() { + toSerialize["PoolName"] = o.PoolName.Get() + } + if o.LastSeen.IsSet() { + toSerialize["LastSeen"] = o.LastSeen.Get() + } + if !isNil(o.ClaimType) { + toSerialize["ClaimType"] = o.ClaimType + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.ProviderId) { + toSerialize["ProviderId"] = o.ProviderId + } + if o.ProviderName.IsSet() { + toSerialize["ProviderName"] = o.ProviderName.Get() + } + if !isNil(o.Connected) { + toSerialize["Connected"] = o.Connected + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAConnectorResponse struct { + value *CertificateAuthoritiesCAConnectorResponse + isSet bool +} + +func (v NullableCertificateAuthoritiesCAConnectorResponse) Get() *CertificateAuthoritiesCAConnectorResponse { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAConnectorResponse) Set(val *CertificateAuthoritiesCAConnectorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAConnectorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAConnectorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAConnectorResponse(val *CertificateAuthoritiesCAConnectorResponse) *NullableCertificateAuthoritiesCAConnectorResponse { + return &NullableCertificateAuthoritiesCAConnectorResponse{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAConnectorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAConnectorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_ca_job_queue_test_response.go b/v24/api/keyfactor/v1/model_certificate_authorities_ca_job_queue_test_response.go new file mode 100644 index 0000000..108228d --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_ca_job_queue_test_response.go @@ -0,0 +1,183 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCAJobQueueTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCAJobQueueTestResponse{} + +// CertificateAuthoritiesCAJobQueueTestResponse struct for CertificateAuthoritiesCAJobQueueTestResponse +type CertificateAuthoritiesCAJobQueueTestResponse struct { + // Whether the test succeeded or failed. + Success *bool `json:"Success,omitempty"` + // The message returned by the test. + Message NullableString `json:"Message,omitempty"` +} + +// NewCertificateAuthoritiesCAJobQueueTestResponse instantiates a new CertificateAuthoritiesCAJobQueueTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCAJobQueueTestResponse() *CertificateAuthoritiesCAJobQueueTestResponse { + this := CertificateAuthoritiesCAJobQueueTestResponse{} + return &this +} + +// NewCertificateAuthoritiesCAJobQueueTestResponseWithDefaults instantiates a new CertificateAuthoritiesCAJobQueueTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCAJobQueueTestResponseWithDefaults() *CertificateAuthoritiesCAJobQueueTestResponse { + this := CertificateAuthoritiesCAJobQueueTestResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetSuccess() bool { + if o == nil || isNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetSuccessOk() (*bool, bool) { + if o == nil || isNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCAJobQueueTestResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CertificateAuthoritiesCAJobQueueTestResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CertificateAuthoritiesCAJobQueueTestResponse) UnsetMessage() { + o.Message.Unset() +} + +func (o CertificateAuthoritiesCAJobQueueTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCAJobQueueTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["Success"] = o.Success + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCAJobQueueTestResponse struct { + value *CertificateAuthoritiesCAJobQueueTestResponse + isSet bool +} + +func (v NullableCertificateAuthoritiesCAJobQueueTestResponse) Get() *CertificateAuthoritiesCAJobQueueTestResponse { + return v.value +} + +func (v *NullableCertificateAuthoritiesCAJobQueueTestResponse) Set(val *CertificateAuthoritiesCAJobQueueTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCAJobQueueTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCAJobQueueTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCAJobQueueTestResponse(val *CertificateAuthoritiesCAJobQueueTestResponse) *NullableCertificateAuthoritiesCAJobQueueTestResponse { + return &NullableCertificateAuthoritiesCAJobQueueTestResponse{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCAJobQueueTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCAJobQueueTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_request.go b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_request.go new file mode 100644 index 0000000..40f00f0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_request.go @@ -0,0 +1,1751 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCertificateAuthorityRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCertificateAuthorityRequest{} + +// CertificateAuthoritiesCertificateAuthorityRequest struct for CertificateAuthoritiesCertificateAuthorityRequest +type CertificateAuthoritiesCertificateAuthorityRequest struct { + Id *int32 `json:"Id,omitempty"` + LogicalName NullableString `json:"LogicalName,omitempty"` + HostName NullableString `json:"HostName,omitempty"` + Delegate *bool `json:"Delegate,omitempty"` + DelegateEnrollment *bool `json:"DelegateEnrollment,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` + UseCAConnector *bool `json:"UseCAConnector,omitempty"` + ConnectorPool NullableString `json:"ConnectorPool,omitempty"` + Remote *bool `json:"Remote,omitempty"` + Agent NullableString `json:"Agent,omitempty"` + Standalone *bool `json:"Standalone,omitempty"` + MonitorThresholds *bool `json:"MonitorThresholds,omitempty"` + IssuanceMax NullableInt32 `json:"IssuanceMax,omitempty"` + IssuanceMin NullableInt32 `json:"IssuanceMin,omitempty"` + FailureMax NullableInt32 `json:"FailureMax,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AllowedEnrollmentTypes *CSSCMSCoreEnumsEnrollmentType `json:"AllowedEnrollmentTypes,omitempty"` + KeyRetention *CSSCMSCoreEnumsKeyRetentionPolicy `json:"KeyRetention,omitempty"` + KeyRetentionDays NullableInt32 `json:"KeyRetentionDays,omitempty"` + ExplicitCredentials *bool `json:"ExplicitCredentials,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` + ExplicitUser NullableString `json:"ExplicitUser,omitempty"` + ExplicitPassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ExplicitPassword,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + FullScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"FullScan,omitempty"` + IncrementalScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"IncrementalScan,omitempty"` + ThresholdCheck *KeyfactorCommonSchedulingKeyfactorSchedule `json:"ThresholdCheck,omitempty"` + AuthCertificatePassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"AuthCertificatePassword,omitempty"` + AuthCertificate *CSSCMSDataModelModelsKeyfactorAPISecret `json:"AuthCertificate,omitempty"` + CAType *CSSCMSCoreEnumsCertificateAuthorityType `json:"CAType,omitempty"` + EnforceUniqueDN *bool `json:"EnforceUniqueDN,omitempty"` + AllowOneClickRenewals *bool `json:"AllowOneClickRenewals,omitempty"` + NewEndEntityOnRenewAndReissue *bool `json:"NewEndEntityOnRenewAndReissue,omitempty"` + TokenURL NullableString `json:"TokenURL,omitempty"` + ClientId NullableString `json:"ClientId,omitempty"` + ClientSecret *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret,omitempty"` + Scope NullableString `json:"Scope,omitempty"` + Audience NullableString `json:"Audience,omitempty"` +} + +// NewCertificateAuthoritiesCertificateAuthorityRequest instantiates a new CertificateAuthoritiesCertificateAuthorityRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCertificateAuthorityRequest() *CertificateAuthoritiesCertificateAuthorityRequest { + this := CertificateAuthoritiesCertificateAuthorityRequest{} + return &this +} + +// NewCertificateAuthoritiesCertificateAuthorityRequestWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCertificateAuthorityRequestWithDefaults() *CertificateAuthoritiesCertificateAuthorityRequest { + this := CertificateAuthoritiesCertificateAuthorityRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetId(v int32) { + o.Id = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetLogicalName() string { + if o == nil || isNil(o.LogicalName.Get()) { + var ret string + return ret + } + return *o.LogicalName.Get() +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogicalName.Get(), o.LogicalName.IsSet() +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasLogicalName() bool { + if o != nil && o.LogicalName.IsSet() { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given NullableString and assigns it to the LogicalName field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetLogicalName(v string) { + o.LogicalName.Set(&v) +} + +// SetLogicalNameNil sets the value for LogicalName to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetLogicalNameNil() { + o.LogicalName.Set(nil) +} + +// UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetLogicalName() { + o.LogicalName.Unset() +} + +// GetHostName returns the HostName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetHostName() string { + if o == nil || isNil(o.HostName.Get()) { + var ret string + return ret + } + return *o.HostName.Get() +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetHostNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.HostName.Get(), o.HostName.IsSet() +} + +// HasHostName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasHostName() bool { + if o != nil && o.HostName.IsSet() { + return true + } + + return false +} + +// SetHostName gets a reference to the given NullableString and assigns it to the HostName field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetHostName(v string) { + o.HostName.Set(&v) +} + +// SetHostNameNil sets the value for HostName to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetHostNameNil() { + o.HostName.Set(nil) +} + +// UnsetHostName ensures that no value is present for HostName, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetHostName() { + o.HostName.Unset() +} + +// GetDelegate returns the Delegate field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegate() bool { + if o == nil || isNil(o.Delegate) { + var ret bool + return ret + } + return *o.Delegate +} + +// GetDelegateOk returns a tuple with the Delegate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateOk() (*bool, bool) { + if o == nil || isNil(o.Delegate) { + return nil, false + } + return o.Delegate, true +} + +// HasDelegate returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasDelegate() bool { + if o != nil && !isNil(o.Delegate) { + return true + } + + return false +} + +// SetDelegate gets a reference to the given bool and assigns it to the Delegate field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetDelegate(v bool) { + o.Delegate = &v +} + +// GetDelegateEnrollment returns the DelegateEnrollment field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollment() bool { + if o == nil || isNil(o.DelegateEnrollment) { + var ret bool + return ret + } + return *o.DelegateEnrollment +} + +// GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.DelegateEnrollment) { + return nil, false + } + return o.DelegateEnrollment, true +} + +// HasDelegateEnrollment returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasDelegateEnrollment() bool { + if o != nil && !isNil(o.DelegateEnrollment) { + return true + } + + return false +} + +// SetDelegateEnrollment gets a reference to the given bool and assigns it to the DelegateEnrollment field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetDelegateEnrollment(v bool) { + o.DelegateEnrollment = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +// GetUseCAConnector returns the UseCAConnector field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseCAConnector() bool { + if o == nil || isNil(o.UseCAConnector) { + var ret bool + return ret + } + return *o.UseCAConnector +} + +// GetUseCAConnectorOk returns a tuple with the UseCAConnector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseCAConnectorOk() (*bool, bool) { + if o == nil || isNil(o.UseCAConnector) { + return nil, false + } + return o.UseCAConnector, true +} + +// HasUseCAConnector returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasUseCAConnector() bool { + if o != nil && !isNil(o.UseCAConnector) { + return true + } + + return false +} + +// SetUseCAConnector gets a reference to the given bool and assigns it to the UseCAConnector field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetUseCAConnector(v bool) { + o.UseCAConnector = &v +} + +// GetConnectorPool returns the ConnectorPool field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConnectorPool() string { + if o == nil || isNil(o.ConnectorPool.Get()) { + var ret string + return ret + } + return *o.ConnectorPool.Get() +} + +// GetConnectorPoolOk returns a tuple with the ConnectorPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetConnectorPoolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectorPool.Get(), o.ConnectorPool.IsSet() +} + +// HasConnectorPool returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasConnectorPool() bool { + if o != nil && o.ConnectorPool.IsSet() { + return true + } + + return false +} + +// SetConnectorPool gets a reference to the given NullableString and assigns it to the ConnectorPool field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConnectorPool(v string) { + o.ConnectorPool.Set(&v) +} + +// SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetConnectorPoolNil() { + o.ConnectorPool.Set(nil) +} + +// UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetConnectorPool() { + o.ConnectorPool.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetRemote(v bool) { + o.Remote = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAgent() string { + if o == nil || isNil(o.Agent.Get()) { + var ret string + return ret + } + return *o.Agent.Get() +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAgentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Agent.Get(), o.Agent.IsSet() +} + +// HasAgent returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAgent() bool { + if o != nil && o.Agent.IsSet() { + return true + } + + return false +} + +// SetAgent gets a reference to the given NullableString and assigns it to the Agent field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAgent(v string) { + o.Agent.Set(&v) +} + +// SetAgentNil sets the value for Agent to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAgentNil() { + o.Agent.Set(nil) +} + +// UnsetAgent ensures that no value is present for Agent, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetAgent() { + o.Agent.Unset() +} + +// GetStandalone returns the Standalone field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetStandalone() bool { + if o == nil || isNil(o.Standalone) { + var ret bool + return ret + } + return *o.Standalone +} + +// GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetStandaloneOk() (*bool, bool) { + if o == nil || isNil(o.Standalone) { + return nil, false + } + return o.Standalone, true +} + +// HasStandalone returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasStandalone() bool { + if o != nil && !isNil(o.Standalone) { + return true + } + + return false +} + +// SetStandalone gets a reference to the given bool and assigns it to the Standalone field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetStandalone(v bool) { + o.Standalone = &v +} + +// GetMonitorThresholds returns the MonitorThresholds field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholds() bool { + if o == nil || isNil(o.MonitorThresholds) { + var ret bool + return ret + } + return *o.MonitorThresholds +} + +// GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholdsOk() (*bool, bool) { + if o == nil || isNil(o.MonitorThresholds) { + return nil, false + } + return o.MonitorThresholds, true +} + +// HasMonitorThresholds returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasMonitorThresholds() bool { + if o != nil && !isNil(o.MonitorThresholds) { + return true + } + + return false +} + +// SetMonitorThresholds gets a reference to the given bool and assigns it to the MonitorThresholds field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetMonitorThresholds(v bool) { + o.MonitorThresholds = &v +} + +// GetIssuanceMax returns the IssuanceMax field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMax() int32 { + if o == nil || isNil(o.IssuanceMax.Get()) { + var ret int32 + return ret + } + return *o.IssuanceMax.Get() +} + +// GetIssuanceMaxOk returns a tuple with the IssuanceMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMaxOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.IssuanceMax.Get(), o.IssuanceMax.IsSet() +} + +// HasIssuanceMax returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMax() bool { + if o != nil && o.IssuanceMax.IsSet() { + return true + } + + return false +} + +// SetIssuanceMax gets a reference to the given NullableInt32 and assigns it to the IssuanceMax field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMax(v int32) { + o.IssuanceMax.Set(&v) +} + +// SetIssuanceMaxNil sets the value for IssuanceMax to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMaxNil() { + o.IssuanceMax.Set(nil) +} + +// UnsetIssuanceMax ensures that no value is present for IssuanceMax, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetIssuanceMax() { + o.IssuanceMax.Unset() +} + +// GetIssuanceMin returns the IssuanceMin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMin() int32 { + if o == nil || isNil(o.IssuanceMin.Get()) { + var ret int32 + return ret + } + return *o.IssuanceMin.Get() +} + +// GetIssuanceMinOk returns a tuple with the IssuanceMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMinOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.IssuanceMin.Get(), o.IssuanceMin.IsSet() +} + +// HasIssuanceMin returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMin() bool { + if o != nil && o.IssuanceMin.IsSet() { + return true + } + + return false +} + +// SetIssuanceMin gets a reference to the given NullableInt32 and assigns it to the IssuanceMin field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMin(v int32) { + o.IssuanceMin.Set(&v) +} + +// SetIssuanceMinNil sets the value for IssuanceMin to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMinNil() { + o.IssuanceMin.Set(nil) +} + +// UnsetIssuanceMin ensures that no value is present for IssuanceMin, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetIssuanceMin() { + o.IssuanceMin.Unset() +} + +// GetFailureMax returns the FailureMax field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFailureMax() int32 { + if o == nil || isNil(o.FailureMax.Get()) { + var ret int32 + return ret + } + return *o.FailureMax.Get() +} + +// GetFailureMaxOk returns a tuple with the FailureMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFailureMaxOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.FailureMax.Get(), o.FailureMax.IsSet() +} + +// HasFailureMax returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasFailureMax() bool { + if o != nil && o.FailureMax.IsSet() { + return true + } + + return false +} + +// SetFailureMax gets a reference to the given NullableInt32 and assigns it to the FailureMax field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFailureMax(v int32) { + o.FailureMax.Set(&v) +} + +// SetFailureMaxNil sets the value for FailureMax to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFailureMaxNil() { + o.FailureMax.Set(nil) +} + +// UnsetFailureMax ensures that no value is present for FailureMax, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetFailureMax() { + o.FailureMax.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetProperties() { + o.Properties.Unset() +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret CSSCMSCoreEnumsEnrollmentType + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given CSSCMSCoreEnumsEnrollmentType and assigns it to the AllowedEnrollmentTypes field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType) { + o.AllowedEnrollmentTypes = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy { + if o == nil || isNil(o.KeyRetention) { + var ret CSSCMSCoreEnumsKeyRetentionPolicy + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given CSSCMSCoreEnumsKeyRetentionPolicy and assigns it to the KeyRetention field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays.Get()) { + var ret int32 + return ret + } + return *o.KeyRetentionDays.Get() +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyRetentionDays.Get(), o.KeyRetentionDays.IsSet() +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetentionDays() bool { + if o != nil && o.KeyRetentionDays.IsSet() { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given NullableInt32 and assigns it to the KeyRetentionDays field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays.Set(&v) +} + +// SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDaysNil() { + o.KeyRetentionDays.Set(nil) +} + +// UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetKeyRetentionDays() { + o.KeyRetentionDays.Unset() +} + +// GetExplicitCredentials returns the ExplicitCredentials field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentials() bool { + if o == nil || isNil(o.ExplicitCredentials) { + var ret bool + return ret + } + return *o.ExplicitCredentials +} + +// GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentialsOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitCredentials) { + return nil, false + } + return o.ExplicitCredentials, true +} + +// HasExplicitCredentials returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitCredentials() bool { + if o != nil && !isNil(o.ExplicitCredentials) { + return true + } + + return false +} + +// SetExplicitCredentials gets a reference to the given bool and assigns it to the ExplicitCredentials field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitCredentials(v bool) { + o.ExplicitCredentials = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +// GetExplicitUser returns the ExplicitUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUser() string { + if o == nil || isNil(o.ExplicitUser.Get()) { + var ret string + return ret + } + return *o.ExplicitUser.Get() +} + +// GetExplicitUserOk returns a tuple with the ExplicitUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExplicitUser.Get(), o.ExplicitUser.IsSet() +} + +// HasExplicitUser returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitUser() bool { + if o != nil && o.ExplicitUser.IsSet() { + return true + } + + return false +} + +// SetExplicitUser gets a reference to the given NullableString and assigns it to the ExplicitUser field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUser(v string) { + o.ExplicitUser.Set(&v) +} + +// SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUserNil() { + o.ExplicitUser.Set(nil) +} + +// UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetExplicitUser() { + o.ExplicitUser.Unset() +} + +// GetExplicitPassword returns the ExplicitPassword field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ExplicitPassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ExplicitPassword +} + +// GetExplicitPasswordOk returns a tuple with the ExplicitPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ExplicitPassword) { + return nil, false + } + return o.ExplicitPassword, true +} + +// HasExplicitPassword returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasExplicitPassword() bool { + if o != nil && !isNil(o.ExplicitPassword) { + return true + } + + return false +} + +// SetExplicitPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ExplicitPassword field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ExplicitPassword = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequesters() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowedRequesters() bool { + if o != nil && isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetFullScan returns the FullScan field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.FullScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.FullScan +} + +// GetFullScanOk returns a tuple with the FullScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.FullScan) { + return nil, false + } + return o.FullScan, true +} + +// HasFullScan returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasFullScan() bool { + if o != nil && !isNil(o.FullScan) { + return true + } + + return false +} + +// SetFullScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the FullScan field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.FullScan = &v +} + +// GetIncrementalScan returns the IncrementalScan field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.IncrementalScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.IncrementalScan +} + +// GetIncrementalScanOk returns a tuple with the IncrementalScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.IncrementalScan) { + return nil, false + } + return o.IncrementalScan, true +} + +// HasIncrementalScan returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasIncrementalScan() bool { + if o != nil && !isNil(o.IncrementalScan) { + return true + } + + return false +} + +// SetIncrementalScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the IncrementalScan field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.IncrementalScan = &v +} + +// GetThresholdCheck returns the ThresholdCheck field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.ThresholdCheck) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.ThresholdCheck +} + +// GetThresholdCheckOk returns a tuple with the ThresholdCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.ThresholdCheck) { + return nil, false + } + return o.ThresholdCheck, true +} + +// HasThresholdCheck returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasThresholdCheck() bool { + if o != nil && !isNil(o.ThresholdCheck) { + return true + } + + return false +} + +// SetThresholdCheck gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the ThresholdCheck field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.ThresholdCheck = &v +} + +// GetAuthCertificatePassword returns the AuthCertificatePassword field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificatePassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificatePassword +} + +// GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificatePassword) { + return nil, false + } + return o.AuthCertificatePassword, true +} + +// HasAuthCertificatePassword returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificatePassword() bool { + if o != nil && !isNil(o.AuthCertificatePassword) { + return true + } + + return false +} + +// SetAuthCertificatePassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the AuthCertificatePassword field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificatePassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.AuthCertificatePassword = &v +} + +// GetAuthCertificate returns the AuthCertificate field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificate() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificate) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificate +} + +// GetAuthCertificateOk returns a tuple with the AuthCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificateOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificate) { + return nil, false + } + return o.AuthCertificate, true +} + +// HasAuthCertificate returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificate() bool { + if o != nil && !isNil(o.AuthCertificate) { + return true + } + + return false +} + +// SetAuthCertificate gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the AuthCertificate field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificate(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.AuthCertificate = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType { + if o == nil || isNil(o.CAType) { + var ret CSSCMSCoreEnumsCertificateAuthorityType + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given CSSCMSCoreEnumsCertificateAuthorityType and assigns it to the CAType field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType) { + o.CAType = &v +} + +// GetEnforceUniqueDN returns the EnforceUniqueDN field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDN() bool { + if o == nil || isNil(o.EnforceUniqueDN) { + var ret bool + return ret + } + return *o.EnforceUniqueDN +} + +// GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDNOk() (*bool, bool) { + if o == nil || isNil(o.EnforceUniqueDN) { + return nil, false + } + return o.EnforceUniqueDN, true +} + +// HasEnforceUniqueDN returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasEnforceUniqueDN() bool { + if o != nil && !isNil(o.EnforceUniqueDN) { + return true + } + + return false +} + +// SetEnforceUniqueDN gets a reference to the given bool and assigns it to the EnforceUniqueDN field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetEnforceUniqueDN(v bool) { + o.EnforceUniqueDN = &v +} + +// GetAllowOneClickRenewals returns the AllowOneClickRenewals field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowOneClickRenewals() bool { + if o == nil || isNil(o.AllowOneClickRenewals) { + var ret bool + return ret + } + return *o.AllowOneClickRenewals +} + +// GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAllowOneClickRenewalsOk() (*bool, bool) { + if o == nil || isNil(o.AllowOneClickRenewals) { + return nil, false + } + return o.AllowOneClickRenewals, true +} + +// HasAllowOneClickRenewals returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAllowOneClickRenewals() bool { + if o != nil && !isNil(o.AllowOneClickRenewals) { + return true + } + + return false +} + +// SetAllowOneClickRenewals gets a reference to the given bool and assigns it to the AllowOneClickRenewals field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAllowOneClickRenewals(v bool) { + o.AllowOneClickRenewals = &v +} + +// GetNewEndEntityOnRenewAndReissue returns the NewEndEntityOnRenewAndReissue field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetNewEndEntityOnRenewAndReissue() bool { + if o == nil || isNil(o.NewEndEntityOnRenewAndReissue) { + var ret bool + return ret + } + return *o.NewEndEntityOnRenewAndReissue +} + +// GetNewEndEntityOnRenewAndReissueOk returns a tuple with the NewEndEntityOnRenewAndReissue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetNewEndEntityOnRenewAndReissueOk() (*bool, bool) { + if o == nil || isNil(o.NewEndEntityOnRenewAndReissue) { + return nil, false + } + return o.NewEndEntityOnRenewAndReissue, true +} + +// HasNewEndEntityOnRenewAndReissue returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasNewEndEntityOnRenewAndReissue() bool { + if o != nil && !isNil(o.NewEndEntityOnRenewAndReissue) { + return true + } + + return false +} + +// SetNewEndEntityOnRenewAndReissue gets a reference to the given bool and assigns it to the NewEndEntityOnRenewAndReissue field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetNewEndEntityOnRenewAndReissue(v bool) { + o.NewEndEntityOnRenewAndReissue = &v +} + +// GetTokenURL returns the TokenURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetTokenURL() string { + if o == nil || isNil(o.TokenURL.Get()) { + var ret string + return ret + } + return *o.TokenURL.Get() +} + +// GetTokenURLOk returns a tuple with the TokenURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetTokenURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TokenURL.Get(), o.TokenURL.IsSet() +} + +// HasTokenURL returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasTokenURL() bool { + if o != nil && o.TokenURL.IsSet() { + return true + } + + return false +} + +// SetTokenURL gets a reference to the given NullableString and assigns it to the TokenURL field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetTokenURL(v string) { + o.TokenURL.Set(&v) +} + +// SetTokenURLNil sets the value for TokenURL to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetTokenURLNil() { + o.TokenURL.Set(nil) +} + +// UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetTokenURL() { + o.TokenURL.Unset() +} + +// GetClientId returns the ClientId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientId() string { + if o == nil || isNil(o.ClientId.Get()) { + var ret string + return ret + } + return *o.ClientId.Get() +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientId.Get(), o.ClientId.IsSet() +} + +// HasClientId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasClientId() bool { + if o != nil && o.ClientId.IsSet() { + return true + } + + return false +} + +// SetClientId gets a reference to the given NullableString and assigns it to the ClientId field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientId(v string) { + o.ClientId.Set(&v) +} + +// SetClientIdNil sets the value for ClientId to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientIdNil() { + o.ClientId.Set(nil) +} + +// UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetClientId() { + o.ClientId.Unset() +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ClientSecret) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasClientSecret() bool { + if o != nil && !isNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ClientSecret field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetScope() string { + if o == nil || isNil(o.Scope.Get()) { + var ret string + return ret + } + return *o.Scope.Get() +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Scope.Get(), o.Scope.IsSet() +} + +// HasScope returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasScope() bool { + if o != nil && o.Scope.IsSet() { + return true + } + + return false +} + +// SetScope gets a reference to the given NullableString and assigns it to the Scope field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetScope(v string) { + o.Scope.Set(&v) +} + +// SetScopeNil sets the value for Scope to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetScopeNil() { + o.Scope.Set(nil) +} + +// UnsetScope ensures that no value is present for Scope, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetScope() { + o.Scope.Unset() +} + +// GetAudience returns the Audience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAudience() string { + if o == nil || isNil(o.Audience.Get()) { + var ret string + return ret + } + return *o.Audience.Get() +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityRequest) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Audience.Get(), o.Audience.IsSet() +} + +// HasAudience returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) HasAudience() bool { + if o != nil && o.Audience.IsSet() { + return true + } + + return false +} + +// SetAudience gets a reference to the given NullableString and assigns it to the Audience field. +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAudience(v string) { + o.Audience.Set(&v) +} + +// SetAudienceNil sets the value for Audience to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) SetAudienceNil() { + o.Audience.Set(nil) +} + +// UnsetAudience ensures that no value is present for Audience, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityRequest) UnsetAudience() { + o.Audience.Unset() +} + +func (o CertificateAuthoritiesCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCertificateAuthorityRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.LogicalName.IsSet() { + toSerialize["LogicalName"] = o.LogicalName.Get() + } + if o.HostName.IsSet() { + toSerialize["HostName"] = o.HostName.Get() + } + if !isNil(o.Delegate) { + toSerialize["Delegate"] = o.Delegate + } + if !isNil(o.DelegateEnrollment) { + toSerialize["DelegateEnrollment"] = o.DelegateEnrollment + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + if !isNil(o.UseCAConnector) { + toSerialize["UseCAConnector"] = o.UseCAConnector + } + if o.ConnectorPool.IsSet() { + toSerialize["ConnectorPool"] = o.ConnectorPool.Get() + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if o.Agent.IsSet() { + toSerialize["Agent"] = o.Agent.Get() + } + if !isNil(o.Standalone) { + toSerialize["Standalone"] = o.Standalone + } + if !isNil(o.MonitorThresholds) { + toSerialize["MonitorThresholds"] = o.MonitorThresholds + } + if o.IssuanceMax.IsSet() { + toSerialize["IssuanceMax"] = o.IssuanceMax.Get() + } + if o.IssuanceMin.IsSet() { + toSerialize["IssuanceMin"] = o.IssuanceMin.Get() + } + if o.FailureMax.IsSet() { + toSerialize["FailureMax"] = o.FailureMax.Get() + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if o.KeyRetentionDays.IsSet() { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays.Get() + } + if !isNil(o.ExplicitCredentials) { + toSerialize["ExplicitCredentials"] = o.ExplicitCredentials + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + if o.ExplicitUser.IsSet() { + toSerialize["ExplicitUser"] = o.ExplicitUser.Get() + } + if !isNil(o.ExplicitPassword) { + toSerialize["ExplicitPassword"] = o.ExplicitPassword + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if o.AllowedRequesters != nil { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.FullScan) { + toSerialize["FullScan"] = o.FullScan + } + if !isNil(o.IncrementalScan) { + toSerialize["IncrementalScan"] = o.IncrementalScan + } + if !isNil(o.ThresholdCheck) { + toSerialize["ThresholdCheck"] = o.ThresholdCheck + } + if !isNil(o.AuthCertificatePassword) { + toSerialize["AuthCertificatePassword"] = o.AuthCertificatePassword + } + if !isNil(o.AuthCertificate) { + toSerialize["AuthCertificate"] = o.AuthCertificate + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + if !isNil(o.EnforceUniqueDN) { + toSerialize["EnforceUniqueDN"] = o.EnforceUniqueDN + } + if !isNil(o.AllowOneClickRenewals) { + toSerialize["AllowOneClickRenewals"] = o.AllowOneClickRenewals + } + if !isNil(o.NewEndEntityOnRenewAndReissue) { + toSerialize["NewEndEntityOnRenewAndReissue"] = o.NewEndEntityOnRenewAndReissue + } + if o.TokenURL.IsSet() { + toSerialize["TokenURL"] = o.TokenURL.Get() + } + if o.ClientId.IsSet() { + toSerialize["ClientId"] = o.ClientId.Get() + } + if !isNil(o.ClientSecret) { + toSerialize["ClientSecret"] = o.ClientSecret + } + if o.Scope.IsSet() { + toSerialize["Scope"] = o.Scope.Get() + } + if o.Audience.IsSet() { + toSerialize["Audience"] = o.Audience.Get() + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCertificateAuthorityRequest struct { + value *CertificateAuthoritiesCertificateAuthorityRequest + isSet bool +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityRequest) Get() *CertificateAuthoritiesCertificateAuthorityRequest { + return v.value +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityRequest) Set(val *CertificateAuthoritiesCertificateAuthorityRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCertificateAuthorityRequest(val *CertificateAuthoritiesCertificateAuthorityRequest) *NullableCertificateAuthoritiesCertificateAuthorityRequest { + return &NullableCertificateAuthoritiesCertificateAuthorityRequest{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_response.go b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_response.go new file mode 100644 index 0000000..e165c86 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_response.go @@ -0,0 +1,1903 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCertificateAuthorityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCertificateAuthorityResponse{} + +// CertificateAuthoritiesCertificateAuthorityResponse struct for CertificateAuthoritiesCertificateAuthorityResponse +type CertificateAuthoritiesCertificateAuthorityResponse struct { + Id *int32 `json:"Id,omitempty"` + LogicalName NullableString `json:"LogicalName,omitempty"` + HostName NullableString `json:"HostName,omitempty"` + Delegate *bool `json:"Delegate,omitempty"` + UseCAConnector *bool `json:"UseCAConnector,omitempty"` + ConnectorPool NullableString `json:"ConnectorPool,omitempty"` + DelegateEnrollment *bool `json:"DelegateEnrollment,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` + Remote *bool `json:"Remote,omitempty"` + Agent NullableString `json:"Agent,omitempty"` + AgentName NullableString `json:"AgentName,omitempty"` + AgentUsername NullableString `json:"AgentUsername,omitempty"` + Standalone *bool `json:"Standalone,omitempty"` + MonitorThresholds *bool `json:"MonitorThresholds,omitempty"` + IssuanceMax NullableInt32 `json:"IssuanceMax,omitempty"` + IssuanceMin NullableInt32 `json:"IssuanceMin,omitempty"` + DenialMax NullableInt32 `json:"DenialMax,omitempty"` + FailureMax NullableInt32 `json:"FailureMax,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AllowedEnrollmentTypes *CSSCMSCoreEnumsEnrollmentType `json:"AllowedEnrollmentTypes,omitempty"` + KeyRetention *CSSCMSCoreEnumsKeyRetentionPolicy `json:"KeyRetention,omitempty"` + KeyRetentionDays NullableInt32 `json:"KeyRetentionDays,omitempty"` + ExplicitCredentials *bool `json:"ExplicitCredentials,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` + ExplicitUser NullableString `json:"ExplicitUser,omitempty"` + ExplicitPassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ExplicitPassword,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + FullScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"FullScan,omitempty"` + IncrementalScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"IncrementalScan,omitempty"` + ThresholdCheck *KeyfactorCommonSchedulingKeyfactorSchedule `json:"ThresholdCheck,omitempty"` + CAType *CSSCMSCoreEnumsCertificateAuthorityType `json:"CAType,omitempty"` + AuthCertificate *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate `json:"AuthCertificate,omitempty"` + EnforceUniqueDN *bool `json:"EnforceUniqueDN,omitempty"` + AllowOneClickRenewals *bool `json:"AllowOneClickRenewals,omitempty"` + NewEndEntityOnRenewAndReissue *bool `json:"NewEndEntityOnRenewAndReissue,omitempty"` + TokenURL NullableString `json:"TokenURL,omitempty"` + ClientId NullableString `json:"ClientId,omitempty"` + Scope NullableString `json:"Scope,omitempty"` + Audience NullableString `json:"Audience,omitempty"` + ClientSecret *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret,omitempty"` + LastScan NullableString `json:"LastScan,omitempty"` +} + +// NewCertificateAuthoritiesCertificateAuthorityResponse instantiates a new CertificateAuthoritiesCertificateAuthorityResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCertificateAuthorityResponse() *CertificateAuthoritiesCertificateAuthorityResponse { + this := CertificateAuthoritiesCertificateAuthorityResponse{} + return &this +} + +// NewCertificateAuthoritiesCertificateAuthorityResponseWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCertificateAuthorityResponseWithDefaults() *CertificateAuthoritiesCertificateAuthorityResponse { + this := CertificateAuthoritiesCertificateAuthorityResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetId(v int32) { + o.Id = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLogicalName() string { + if o == nil || isNil(o.LogicalName.Get()) { + var ret string + return ret + } + return *o.LogicalName.Get() +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogicalName.Get(), o.LogicalName.IsSet() +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasLogicalName() bool { + if o != nil && o.LogicalName.IsSet() { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given NullableString and assigns it to the LogicalName field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLogicalName(v string) { + o.LogicalName.Set(&v) +} + +// SetLogicalNameNil sets the value for LogicalName to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLogicalNameNil() { + o.LogicalName.Set(nil) +} + +// UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetLogicalName() { + o.LogicalName.Unset() +} + +// GetHostName returns the HostName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetHostName() string { + if o == nil || isNil(o.HostName.Get()) { + var ret string + return ret + } + return *o.HostName.Get() +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetHostNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.HostName.Get(), o.HostName.IsSet() +} + +// HasHostName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasHostName() bool { + if o != nil && o.HostName.IsSet() { + return true + } + + return false +} + +// SetHostName gets a reference to the given NullableString and assigns it to the HostName field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetHostName(v string) { + o.HostName.Set(&v) +} + +// SetHostNameNil sets the value for HostName to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetHostNameNil() { + o.HostName.Set(nil) +} + +// UnsetHostName ensures that no value is present for HostName, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetHostName() { + o.HostName.Unset() +} + +// GetDelegate returns the Delegate field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegate() bool { + if o == nil || isNil(o.Delegate) { + var ret bool + return ret + } + return *o.Delegate +} + +// GetDelegateOk returns a tuple with the Delegate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateOk() (*bool, bool) { + if o == nil || isNil(o.Delegate) { + return nil, false + } + return o.Delegate, true +} + +// HasDelegate returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDelegate() bool { + if o != nil && !isNil(o.Delegate) { + return true + } + + return false +} + +// SetDelegate gets a reference to the given bool and assigns it to the Delegate field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDelegate(v bool) { + o.Delegate = &v +} + +// GetUseCAConnector returns the UseCAConnector field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseCAConnector() bool { + if o == nil || isNil(o.UseCAConnector) { + var ret bool + return ret + } + return *o.UseCAConnector +} + +// GetUseCAConnectorOk returns a tuple with the UseCAConnector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseCAConnectorOk() (*bool, bool) { + if o == nil || isNil(o.UseCAConnector) { + return nil, false + } + return o.UseCAConnector, true +} + +// HasUseCAConnector returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasUseCAConnector() bool { + if o != nil && !isNil(o.UseCAConnector) { + return true + } + + return false +} + +// SetUseCAConnector gets a reference to the given bool and assigns it to the UseCAConnector field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetUseCAConnector(v bool) { + o.UseCAConnector = &v +} + +// GetConnectorPool returns the ConnectorPool field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConnectorPool() string { + if o == nil || isNil(o.ConnectorPool.Get()) { + var ret string + return ret + } + return *o.ConnectorPool.Get() +} + +// GetConnectorPoolOk returns a tuple with the ConnectorPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConnectorPoolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectorPool.Get(), o.ConnectorPool.IsSet() +} + +// HasConnectorPool returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasConnectorPool() bool { + if o != nil && o.ConnectorPool.IsSet() { + return true + } + + return false +} + +// SetConnectorPool gets a reference to the given NullableString and assigns it to the ConnectorPool field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConnectorPool(v string) { + o.ConnectorPool.Set(&v) +} + +// SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConnectorPoolNil() { + o.ConnectorPool.Set(nil) +} + +// UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetConnectorPool() { + o.ConnectorPool.Unset() +} + +// GetDelegateEnrollment returns the DelegateEnrollment field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollment() bool { + if o == nil || isNil(o.DelegateEnrollment) { + var ret bool + return ret + } + return *o.DelegateEnrollment +} + +// GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.DelegateEnrollment) { + return nil, false + } + return o.DelegateEnrollment, true +} + +// HasDelegateEnrollment returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDelegateEnrollment() bool { + if o != nil && !isNil(o.DelegateEnrollment) { + return true + } + + return false +} + +// SetDelegateEnrollment gets a reference to the given bool and assigns it to the DelegateEnrollment field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDelegateEnrollment(v bool) { + o.DelegateEnrollment = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetRemote(v bool) { + o.Remote = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgent() string { + if o == nil || isNil(o.Agent.Get()) { + var ret string + return ret + } + return *o.Agent.Get() +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Agent.Get(), o.Agent.IsSet() +} + +// HasAgent returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgent() bool { + if o != nil && o.Agent.IsSet() { + return true + } + + return false +} + +// SetAgent gets a reference to the given NullableString and assigns it to the Agent field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgent(v string) { + o.Agent.Set(&v) +} + +// SetAgentNil sets the value for Agent to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentNil() { + o.Agent.Set(nil) +} + +// UnsetAgent ensures that no value is present for Agent, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgent() { + o.Agent.Unset() +} + +// GetAgentName returns the AgentName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentName() string { + if o == nil || isNil(o.AgentName.Get()) { + var ret string + return ret + } + return *o.AgentName.Get() +} + +// GetAgentNameOk returns a tuple with the AgentName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentName.Get(), o.AgentName.IsSet() +} + +// HasAgentName returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgentName() bool { + if o != nil && o.AgentName.IsSet() { + return true + } + + return false +} + +// SetAgentName gets a reference to the given NullableString and assigns it to the AgentName field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentName(v string) { + o.AgentName.Set(&v) +} + +// SetAgentNameNil sets the value for AgentName to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentNameNil() { + o.AgentName.Set(nil) +} + +// UnsetAgentName ensures that no value is present for AgentName, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgentName() { + o.AgentName.Unset() +} + +// GetAgentUsername returns the AgentUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentUsername() string { + if o == nil || isNil(o.AgentUsername.Get()) { + var ret string + return ret + } + return *o.AgentUsername.Get() +} + +// GetAgentUsernameOk returns a tuple with the AgentUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAgentUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentUsername.Get(), o.AgentUsername.IsSet() +} + +// HasAgentUsername returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAgentUsername() bool { + if o != nil && o.AgentUsername.IsSet() { + return true + } + + return false +} + +// SetAgentUsername gets a reference to the given NullableString and assigns it to the AgentUsername field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentUsername(v string) { + o.AgentUsername.Set(&v) +} + +// SetAgentUsernameNil sets the value for AgentUsername to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAgentUsernameNil() { + o.AgentUsername.Set(nil) +} + +// UnsetAgentUsername ensures that no value is present for AgentUsername, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAgentUsername() { + o.AgentUsername.Unset() +} + +// GetStandalone returns the Standalone field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetStandalone() bool { + if o == nil || isNil(o.Standalone) { + var ret bool + return ret + } + return *o.Standalone +} + +// GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetStandaloneOk() (*bool, bool) { + if o == nil || isNil(o.Standalone) { + return nil, false + } + return o.Standalone, true +} + +// HasStandalone returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasStandalone() bool { + if o != nil && !isNil(o.Standalone) { + return true + } + + return false +} + +// SetStandalone gets a reference to the given bool and assigns it to the Standalone field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetStandalone(v bool) { + o.Standalone = &v +} + +// GetMonitorThresholds returns the MonitorThresholds field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholds() bool { + if o == nil || isNil(o.MonitorThresholds) { + var ret bool + return ret + } + return *o.MonitorThresholds +} + +// GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholdsOk() (*bool, bool) { + if o == nil || isNil(o.MonitorThresholds) { + return nil, false + } + return o.MonitorThresholds, true +} + +// HasMonitorThresholds returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasMonitorThresholds() bool { + if o != nil && !isNil(o.MonitorThresholds) { + return true + } + + return false +} + +// SetMonitorThresholds gets a reference to the given bool and assigns it to the MonitorThresholds field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetMonitorThresholds(v bool) { + o.MonitorThresholds = &v +} + +// GetIssuanceMax returns the IssuanceMax field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMax() int32 { + if o == nil || isNil(o.IssuanceMax.Get()) { + var ret int32 + return ret + } + return *o.IssuanceMax.Get() +} + +// GetIssuanceMaxOk returns a tuple with the IssuanceMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMaxOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.IssuanceMax.Get(), o.IssuanceMax.IsSet() +} + +// HasIssuanceMax returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMax() bool { + if o != nil && o.IssuanceMax.IsSet() { + return true + } + + return false +} + +// SetIssuanceMax gets a reference to the given NullableInt32 and assigns it to the IssuanceMax field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMax(v int32) { + o.IssuanceMax.Set(&v) +} + +// SetIssuanceMaxNil sets the value for IssuanceMax to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMaxNil() { + o.IssuanceMax.Set(nil) +} + +// UnsetIssuanceMax ensures that no value is present for IssuanceMax, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetIssuanceMax() { + o.IssuanceMax.Unset() +} + +// GetIssuanceMin returns the IssuanceMin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMin() int32 { + if o == nil || isNil(o.IssuanceMin.Get()) { + var ret int32 + return ret + } + return *o.IssuanceMin.Get() +} + +// GetIssuanceMinOk returns a tuple with the IssuanceMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMinOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.IssuanceMin.Get(), o.IssuanceMin.IsSet() +} + +// HasIssuanceMin returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMin() bool { + if o != nil && o.IssuanceMin.IsSet() { + return true + } + + return false +} + +// SetIssuanceMin gets a reference to the given NullableInt32 and assigns it to the IssuanceMin field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMin(v int32) { + o.IssuanceMin.Set(&v) +} + +// SetIssuanceMinNil sets the value for IssuanceMin to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMinNil() { + o.IssuanceMin.Set(nil) +} + +// UnsetIssuanceMin ensures that no value is present for IssuanceMin, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetIssuanceMin() { + o.IssuanceMin.Unset() +} + +// GetDenialMax returns the DenialMax field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDenialMax() int32 { + if o == nil || isNil(o.DenialMax.Get()) { + var ret int32 + return ret + } + return *o.DenialMax.Get() +} + +// GetDenialMaxOk returns a tuple with the DenialMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetDenialMaxOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DenialMax.Get(), o.DenialMax.IsSet() +} + +// HasDenialMax returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasDenialMax() bool { + if o != nil && o.DenialMax.IsSet() { + return true + } + + return false +} + +// SetDenialMax gets a reference to the given NullableInt32 and assigns it to the DenialMax field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDenialMax(v int32) { + o.DenialMax.Set(&v) +} + +// SetDenialMaxNil sets the value for DenialMax to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetDenialMaxNil() { + o.DenialMax.Set(nil) +} + +// UnsetDenialMax ensures that no value is present for DenialMax, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetDenialMax() { + o.DenialMax.Unset() +} + +// GetFailureMax returns the FailureMax field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFailureMax() int32 { + if o == nil || isNil(o.FailureMax.Get()) { + var ret int32 + return ret + } + return *o.FailureMax.Get() +} + +// GetFailureMaxOk returns a tuple with the FailureMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFailureMaxOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.FailureMax.Get(), o.FailureMax.IsSet() +} + +// HasFailureMax returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasFailureMax() bool { + if o != nil && o.FailureMax.IsSet() { + return true + } + + return false +} + +// SetFailureMax gets a reference to the given NullableInt32 and assigns it to the FailureMax field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFailureMax(v int32) { + o.FailureMax.Set(&v) +} + +// SetFailureMaxNil sets the value for FailureMax to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFailureMaxNil() { + o.FailureMax.Set(nil) +} + +// UnsetFailureMax ensures that no value is present for FailureMax, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetFailureMax() { + o.FailureMax.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetProperties() { + o.Properties.Unset() +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret CSSCMSCoreEnumsEnrollmentType + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given CSSCMSCoreEnumsEnrollmentType and assigns it to the AllowedEnrollmentTypes field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType) { + o.AllowedEnrollmentTypes = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy { + if o == nil || isNil(o.KeyRetention) { + var ret CSSCMSCoreEnumsKeyRetentionPolicy + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given CSSCMSCoreEnumsKeyRetentionPolicy and assigns it to the KeyRetention field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays.Get()) { + var ret int32 + return ret + } + return *o.KeyRetentionDays.Get() +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyRetentionDays.Get(), o.KeyRetentionDays.IsSet() +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetentionDays() bool { + if o != nil && o.KeyRetentionDays.IsSet() { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given NullableInt32 and assigns it to the KeyRetentionDays field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays.Set(&v) +} + +// SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDaysNil() { + o.KeyRetentionDays.Set(nil) +} + +// UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetKeyRetentionDays() { + o.KeyRetentionDays.Unset() +} + +// GetExplicitCredentials returns the ExplicitCredentials field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentials() bool { + if o == nil || isNil(o.ExplicitCredentials) { + var ret bool + return ret + } + return *o.ExplicitCredentials +} + +// GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentialsOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitCredentials) { + return nil, false + } + return o.ExplicitCredentials, true +} + +// HasExplicitCredentials returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitCredentials() bool { + if o != nil && !isNil(o.ExplicitCredentials) { + return true + } + + return false +} + +// SetExplicitCredentials gets a reference to the given bool and assigns it to the ExplicitCredentials field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitCredentials(v bool) { + o.ExplicitCredentials = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +// GetExplicitUser returns the ExplicitUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUser() string { + if o == nil || isNil(o.ExplicitUser.Get()) { + var ret string + return ret + } + return *o.ExplicitUser.Get() +} + +// GetExplicitUserOk returns a tuple with the ExplicitUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExplicitUser.Get(), o.ExplicitUser.IsSet() +} + +// HasExplicitUser returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitUser() bool { + if o != nil && o.ExplicitUser.IsSet() { + return true + } + + return false +} + +// SetExplicitUser gets a reference to the given NullableString and assigns it to the ExplicitUser field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUser(v string) { + o.ExplicitUser.Set(&v) +} + +// SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUserNil() { + o.ExplicitUser.Set(nil) +} + +// UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetExplicitUser() { + o.ExplicitUser.Unset() +} + +// GetExplicitPassword returns the ExplicitPassword field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ExplicitPassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ExplicitPassword +} + +// GetExplicitPasswordOk returns a tuple with the ExplicitPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ExplicitPassword) { + return nil, false + } + return o.ExplicitPassword, true +} + +// HasExplicitPassword returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasExplicitPassword() bool { + if o != nil && !isNil(o.ExplicitPassword) { + return true + } + + return false +} + +// SetExplicitPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ExplicitPassword field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ExplicitPassword = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequesters() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowedRequesters() bool { + if o != nil && isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetFullScan returns the FullScan field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.FullScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.FullScan +} + +// GetFullScanOk returns a tuple with the FullScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.FullScan) { + return nil, false + } + return o.FullScan, true +} + +// HasFullScan returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasFullScan() bool { + if o != nil && !isNil(o.FullScan) { + return true + } + + return false +} + +// SetFullScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the FullScan field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.FullScan = &v +} + +// GetIncrementalScan returns the IncrementalScan field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.IncrementalScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.IncrementalScan +} + +// GetIncrementalScanOk returns a tuple with the IncrementalScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.IncrementalScan) { + return nil, false + } + return o.IncrementalScan, true +} + +// HasIncrementalScan returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasIncrementalScan() bool { + if o != nil && !isNil(o.IncrementalScan) { + return true + } + + return false +} + +// SetIncrementalScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the IncrementalScan field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.IncrementalScan = &v +} + +// GetThresholdCheck returns the ThresholdCheck field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.ThresholdCheck) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.ThresholdCheck +} + +// GetThresholdCheckOk returns a tuple with the ThresholdCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.ThresholdCheck) { + return nil, false + } + return o.ThresholdCheck, true +} + +// HasThresholdCheck returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasThresholdCheck() bool { + if o != nil && !isNil(o.ThresholdCheck) { + return true + } + + return false +} + +// SetThresholdCheck gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the ThresholdCheck field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.ThresholdCheck = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType { + if o == nil || isNil(o.CAType) { + var ret CSSCMSCoreEnumsCertificateAuthorityType + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given CSSCMSCoreEnumsCertificateAuthorityType and assigns it to the CAType field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType) { + o.CAType = &v +} + +// GetAuthCertificate returns the AuthCertificate field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificate() CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + if o == nil || isNil(o.AuthCertificate) { + var ret CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + return ret + } + return *o.AuthCertificate +} + +// GetAuthCertificateOk returns a tuple with the AuthCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificateOk() (*CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate, bool) { + if o == nil || isNil(o.AuthCertificate) { + return nil, false + } + return o.AuthCertificate, true +} + +// HasAuthCertificate returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAuthCertificate() bool { + if o != nil && !isNil(o.AuthCertificate) { + return true + } + + return false +} + +// SetAuthCertificate gets a reference to the given CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate and assigns it to the AuthCertificate field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAuthCertificate(v CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) { + o.AuthCertificate = &v +} + +// GetEnforceUniqueDN returns the EnforceUniqueDN field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDN() bool { + if o == nil || isNil(o.EnforceUniqueDN) { + var ret bool + return ret + } + return *o.EnforceUniqueDN +} + +// GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDNOk() (*bool, bool) { + if o == nil || isNil(o.EnforceUniqueDN) { + return nil, false + } + return o.EnforceUniqueDN, true +} + +// HasEnforceUniqueDN returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasEnforceUniqueDN() bool { + if o != nil && !isNil(o.EnforceUniqueDN) { + return true + } + + return false +} + +// SetEnforceUniqueDN gets a reference to the given bool and assigns it to the EnforceUniqueDN field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetEnforceUniqueDN(v bool) { + o.EnforceUniqueDN = &v +} + +// GetAllowOneClickRenewals returns the AllowOneClickRenewals field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowOneClickRenewals() bool { + if o == nil || isNil(o.AllowOneClickRenewals) { + var ret bool + return ret + } + return *o.AllowOneClickRenewals +} + +// GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAllowOneClickRenewalsOk() (*bool, bool) { + if o == nil || isNil(o.AllowOneClickRenewals) { + return nil, false + } + return o.AllowOneClickRenewals, true +} + +// HasAllowOneClickRenewals returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAllowOneClickRenewals() bool { + if o != nil && !isNil(o.AllowOneClickRenewals) { + return true + } + + return false +} + +// SetAllowOneClickRenewals gets a reference to the given bool and assigns it to the AllowOneClickRenewals field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAllowOneClickRenewals(v bool) { + o.AllowOneClickRenewals = &v +} + +// GetNewEndEntityOnRenewAndReissue returns the NewEndEntityOnRenewAndReissue field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetNewEndEntityOnRenewAndReissue() bool { + if o == nil || isNil(o.NewEndEntityOnRenewAndReissue) { + var ret bool + return ret + } + return *o.NewEndEntityOnRenewAndReissue +} + +// GetNewEndEntityOnRenewAndReissueOk returns a tuple with the NewEndEntityOnRenewAndReissue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetNewEndEntityOnRenewAndReissueOk() (*bool, bool) { + if o == nil || isNil(o.NewEndEntityOnRenewAndReissue) { + return nil, false + } + return o.NewEndEntityOnRenewAndReissue, true +} + +// HasNewEndEntityOnRenewAndReissue returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasNewEndEntityOnRenewAndReissue() bool { + if o != nil && !isNil(o.NewEndEntityOnRenewAndReissue) { + return true + } + + return false +} + +// SetNewEndEntityOnRenewAndReissue gets a reference to the given bool and assigns it to the NewEndEntityOnRenewAndReissue field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetNewEndEntityOnRenewAndReissue(v bool) { + o.NewEndEntityOnRenewAndReissue = &v +} + +// GetTokenURL returns the TokenURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetTokenURL() string { + if o == nil || isNil(o.TokenURL.Get()) { + var ret string + return ret + } + return *o.TokenURL.Get() +} + +// GetTokenURLOk returns a tuple with the TokenURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetTokenURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TokenURL.Get(), o.TokenURL.IsSet() +} + +// HasTokenURL returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasTokenURL() bool { + if o != nil && o.TokenURL.IsSet() { + return true + } + + return false +} + +// SetTokenURL gets a reference to the given NullableString and assigns it to the TokenURL field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetTokenURL(v string) { + o.TokenURL.Set(&v) +} + +// SetTokenURLNil sets the value for TokenURL to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetTokenURLNil() { + o.TokenURL.Set(nil) +} + +// UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetTokenURL() { + o.TokenURL.Unset() +} + +// GetClientId returns the ClientId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientId() string { + if o == nil || isNil(o.ClientId.Get()) { + var ret string + return ret + } + return *o.ClientId.Get() +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientId.Get(), o.ClientId.IsSet() +} + +// HasClientId returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasClientId() bool { + if o != nil && o.ClientId.IsSet() { + return true + } + + return false +} + +// SetClientId gets a reference to the given NullableString and assigns it to the ClientId field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientId(v string) { + o.ClientId.Set(&v) +} + +// SetClientIdNil sets the value for ClientId to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientIdNil() { + o.ClientId.Set(nil) +} + +// UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetClientId() { + o.ClientId.Unset() +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetScope() string { + if o == nil || isNil(o.Scope.Get()) { + var ret string + return ret + } + return *o.Scope.Get() +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Scope.Get(), o.Scope.IsSet() +} + +// HasScope returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasScope() bool { + if o != nil && o.Scope.IsSet() { + return true + } + + return false +} + +// SetScope gets a reference to the given NullableString and assigns it to the Scope field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetScope(v string) { + o.Scope.Set(&v) +} + +// SetScopeNil sets the value for Scope to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetScopeNil() { + o.Scope.Set(nil) +} + +// UnsetScope ensures that no value is present for Scope, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetScope() { + o.Scope.Unset() +} + +// GetAudience returns the Audience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAudience() string { + if o == nil || isNil(o.Audience.Get()) { + var ret string + return ret + } + return *o.Audience.Get() +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Audience.Get(), o.Audience.IsSet() +} + +// HasAudience returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasAudience() bool { + if o != nil && o.Audience.IsSet() { + return true + } + + return false +} + +// SetAudience gets a reference to the given NullableString and assigns it to the Audience field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAudience(v string) { + o.Audience.Set(&v) +} + +// SetAudienceNil sets the value for Audience to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetAudienceNil() { + o.Audience.Set(nil) +} + +// UnsetAudience ensures that no value is present for Audience, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetAudience() { + o.Audience.Unset() +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ClientSecret) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasClientSecret() bool { + if o != nil && !isNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ClientSecret field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = &v +} + +// GetLastScan returns the LastScan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLastScan() string { + if o == nil || isNil(o.LastScan.Get()) { + var ret string + return ret + } + return *o.LastScan.Get() +} + +// GetLastScanOk returns a tuple with the LastScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityResponse) GetLastScanOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LastScan.Get(), o.LastScan.IsSet() +} + +// HasLastScan returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) HasLastScan() bool { + if o != nil && o.LastScan.IsSet() { + return true + } + + return false +} + +// SetLastScan gets a reference to the given NullableString and assigns it to the LastScan field. +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLastScan(v string) { + o.LastScan.Set(&v) +} + +// SetLastScanNil sets the value for LastScan to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) SetLastScanNil() { + o.LastScan.Set(nil) +} + +// UnsetLastScan ensures that no value is present for LastScan, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityResponse) UnsetLastScan() { + o.LastScan.Unset() +} + +func (o CertificateAuthoritiesCertificateAuthorityResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCertificateAuthorityResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.LogicalName.IsSet() { + toSerialize["LogicalName"] = o.LogicalName.Get() + } + if o.HostName.IsSet() { + toSerialize["HostName"] = o.HostName.Get() + } + if !isNil(o.Delegate) { + toSerialize["Delegate"] = o.Delegate + } + if !isNil(o.UseCAConnector) { + toSerialize["UseCAConnector"] = o.UseCAConnector + } + if o.ConnectorPool.IsSet() { + toSerialize["ConnectorPool"] = o.ConnectorPool.Get() + } + if !isNil(o.DelegateEnrollment) { + toSerialize["DelegateEnrollment"] = o.DelegateEnrollment + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if o.Agent.IsSet() { + toSerialize["Agent"] = o.Agent.Get() + } + if o.AgentName.IsSet() { + toSerialize["AgentName"] = o.AgentName.Get() + } + if o.AgentUsername.IsSet() { + toSerialize["AgentUsername"] = o.AgentUsername.Get() + } + if !isNil(o.Standalone) { + toSerialize["Standalone"] = o.Standalone + } + if !isNil(o.MonitorThresholds) { + toSerialize["MonitorThresholds"] = o.MonitorThresholds + } + if o.IssuanceMax.IsSet() { + toSerialize["IssuanceMax"] = o.IssuanceMax.Get() + } + if o.IssuanceMin.IsSet() { + toSerialize["IssuanceMin"] = o.IssuanceMin.Get() + } + if o.DenialMax.IsSet() { + toSerialize["DenialMax"] = o.DenialMax.Get() + } + if o.FailureMax.IsSet() { + toSerialize["FailureMax"] = o.FailureMax.Get() + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if o.KeyRetentionDays.IsSet() { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays.Get() + } + if !isNil(o.ExplicitCredentials) { + toSerialize["ExplicitCredentials"] = o.ExplicitCredentials + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + if o.ExplicitUser.IsSet() { + toSerialize["ExplicitUser"] = o.ExplicitUser.Get() + } + if !isNil(o.ExplicitPassword) { + toSerialize["ExplicitPassword"] = o.ExplicitPassword + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if o.AllowedRequesters != nil { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.FullScan) { + toSerialize["FullScan"] = o.FullScan + } + if !isNil(o.IncrementalScan) { + toSerialize["IncrementalScan"] = o.IncrementalScan + } + if !isNil(o.ThresholdCheck) { + toSerialize["ThresholdCheck"] = o.ThresholdCheck + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + if !isNil(o.AuthCertificate) { + toSerialize["AuthCertificate"] = o.AuthCertificate + } + if !isNil(o.EnforceUniqueDN) { + toSerialize["EnforceUniqueDN"] = o.EnforceUniqueDN + } + if !isNil(o.AllowOneClickRenewals) { + toSerialize["AllowOneClickRenewals"] = o.AllowOneClickRenewals + } + if !isNil(o.NewEndEntityOnRenewAndReissue) { + toSerialize["NewEndEntityOnRenewAndReissue"] = o.NewEndEntityOnRenewAndReissue + } + if o.TokenURL.IsSet() { + toSerialize["TokenURL"] = o.TokenURL.Get() + } + if o.ClientId.IsSet() { + toSerialize["ClientId"] = o.ClientId.Get() + } + if o.Scope.IsSet() { + toSerialize["Scope"] = o.Scope.Get() + } + if o.Audience.IsSet() { + toSerialize["Audience"] = o.Audience.Get() + } + if !isNil(o.ClientSecret) { + toSerialize["ClientSecret"] = o.ClientSecret + } + if o.LastScan.IsSet() { + toSerialize["LastScan"] = o.LastScan.Get() + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCertificateAuthorityResponse struct { + value *CertificateAuthoritiesCertificateAuthorityResponse + isSet bool +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityResponse) Get() *CertificateAuthoritiesCertificateAuthorityResponse { + return v.value +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityResponse) Set(val *CertificateAuthoritiesCertificateAuthorityResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCertificateAuthorityResponse(val *CertificateAuthoritiesCertificateAuthorityResponse) *NullableCertificateAuthoritiesCertificateAuthorityResponse { + return &NullableCertificateAuthoritiesCertificateAuthorityResponse{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_test_response.go b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_test_response.go new file mode 100644 index 0000000..c845172 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_authorities_certificate_authority_test_response.go @@ -0,0 +1,183 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateAuthoritiesCertificateAuthorityTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateAuthoritiesCertificateAuthorityTestResponse{} + +// CertificateAuthoritiesCertificateAuthorityTestResponse A DTO for CA tests. +type CertificateAuthoritiesCertificateAuthorityTestResponse struct { + // Whether the test succeeded or failed. + Success *bool `json:"Success,omitempty"` + // The message returned by the test. + Message NullableString `json:"Message,omitempty"` +} + +// NewCertificateAuthoritiesCertificateAuthorityTestResponse instantiates a new CertificateAuthoritiesCertificateAuthorityTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateAuthoritiesCertificateAuthorityTestResponse() *CertificateAuthoritiesCertificateAuthorityTestResponse { + this := CertificateAuthoritiesCertificateAuthorityTestResponse{} + return &this +} + +// NewCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults instantiates a new CertificateAuthoritiesCertificateAuthorityTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults() *CertificateAuthoritiesCertificateAuthorityTestResponse { + this := CertificateAuthoritiesCertificateAuthorityTestResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccess() bool { + if o == nil || isNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccessOk() (*bool, bool) { + if o == nil || isNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CertificateAuthoritiesCertificateAuthorityTestResponse) UnsetMessage() { + o.Message.Unset() +} + +func (o CertificateAuthoritiesCertificateAuthorityTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateAuthoritiesCertificateAuthorityTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["Success"] = o.Success + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCertificateAuthoritiesCertificateAuthorityTestResponse struct { + value *CertificateAuthoritiesCertificateAuthorityTestResponse + isSet bool +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityTestResponse) Get() *CertificateAuthoritiesCertificateAuthorityTestResponse { + return v.value +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityTestResponse) Set(val *CertificateAuthoritiesCertificateAuthorityTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateAuthoritiesCertificateAuthorityTestResponse(val *CertificateAuthoritiesCertificateAuthorityTestResponse) *NullableCertificateAuthoritiesCertificateAuthorityTestResponse { + return &NullableCertificateAuthoritiesCertificateAuthorityTestResponse{value: val, isSet: true} +} + +func (v NullableCertificateAuthoritiesCertificateAuthorityTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateAuthoritiesCertificateAuthorityTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_assignable_query_role.go b/v24/api/keyfactor/v1/model_certificate_collections_assignable_query_role.go new file mode 100644 index 0000000..efad779 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_assignable_query_role.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsAssignableQueryRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsAssignableQueryRole{} + +// CertificateCollectionsAssignableQueryRole struct for CertificateCollectionsAssignableQueryRole +type CertificateCollectionsAssignableQueryRole struct { + RoleId *int32 `json:"RoleId,omitempty"` + Name NullableString `json:"Name,omitempty"` +} + +// NewCertificateCollectionsAssignableQueryRole instantiates a new CertificateCollectionsAssignableQueryRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsAssignableQueryRole() *CertificateCollectionsAssignableQueryRole { + this := CertificateCollectionsAssignableQueryRole{} + return &this +} + +// NewCertificateCollectionsAssignableQueryRoleWithDefaults instantiates a new CertificateCollectionsAssignableQueryRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsAssignableQueryRoleWithDefaults() *CertificateCollectionsAssignableQueryRole { + this := CertificateCollectionsAssignableQueryRole{} + return &this +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *CertificateCollectionsAssignableQueryRole) GetRoleId() int32 { + if o == nil || isNil(o.RoleId) { + var ret int32 + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsAssignableQueryRole) GetRoleIdOk() (*int32, bool) { + if o == nil || isNil(o.RoleId) { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *CertificateCollectionsAssignableQueryRole) HasRoleId() bool { + if o != nil && !isNil(o.RoleId) { + return true + } + + return false +} + +// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. +func (o *CertificateCollectionsAssignableQueryRole) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsAssignableQueryRole) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsAssignableQueryRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateCollectionsAssignableQueryRole) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateCollectionsAssignableQueryRole) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateCollectionsAssignableQueryRole) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateCollectionsAssignableQueryRole) UnsetName() { + o.Name.Unset() +} + +func (o CertificateCollectionsAssignableQueryRole) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsAssignableQueryRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RoleId) { + toSerialize["RoleId"] = o.RoleId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableCertificateCollectionsAssignableQueryRole struct { + value *CertificateCollectionsAssignableQueryRole + isSet bool +} + +func (v NullableCertificateCollectionsAssignableQueryRole) Get() *CertificateCollectionsAssignableQueryRole { + return v.value +} + +func (v *NullableCertificateCollectionsAssignableQueryRole) Set(val *CertificateCollectionsAssignableQueryRole) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsAssignableQueryRole) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsAssignableQueryRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsAssignableQueryRole(val *CertificateCollectionsAssignableQueryRole) *NullableCertificateCollectionsAssignableQueryRole { + return &NullableCertificateCollectionsAssignableQueryRole{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsAssignableQueryRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsAssignableQueryRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_copy_request.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_copy_request.go new file mode 100644 index 0000000..f358ec0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_copy_request.go @@ -0,0 +1,354 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateCollectionCopyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionCopyRequest{} + +// CertificateCollectionsCertificateCollectionCopyRequest struct for CertificateCollectionsCertificateCollectionCopyRequest +type CertificateCollectionsCertificateCollectionCopyRequest struct { + CopyFromId int32 `json:"CopyFromId"` + Name string `json:"Name"` + Description NullableString `json:"Description,omitempty"` + Query NullableString `json:"Query,omitempty"` + DuplicationField *CSSCMSCoreEnumsDuplicateSubjectType `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionCopyRequest instantiates a new CertificateCollectionsCertificateCollectionCopyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionCopyRequest(copyFromId int32, name string) *CertificateCollectionsCertificateCollectionCopyRequest { + this := CertificateCollectionsCertificateCollectionCopyRequest{} + this.CopyFromId = copyFromId + this.Name = name + return &this +} + +// NewCertificateCollectionsCertificateCollectionCopyRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionCopyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionCopyRequestWithDefaults() *CertificateCollectionsCertificateCollectionCopyRequest { + this := CertificateCollectionsCertificateCollectionCopyRequest{} + return &this +} + +// GetCopyFromId returns the CopyFromId field value +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CopyFromId +} + +// GetCopyFromIdOk returns a tuple with the CopyFromId field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CopyFromId, true +} + +// SetCopyFromId sets field value +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetCopyFromId(v int32) { + o.CopyFromId = v +} + +// GetName returns the Name field value +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCopyRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCopyRequest) UnsetQuery() { + o.Query.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType { + if o == nil || isNil(o.DuplicationField) { + var ret CSSCMSCoreEnumsDuplicateSubjectType + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given CSSCMSCoreEnumsDuplicateSubjectType and assigns it to the DuplicationField field. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CertificateCollectionsCertificateCollectionCopyRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o CertificateCollectionsCertificateCollectionCopyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionCopyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CopyFromId"] = o.CopyFromId + toSerialize["Name"] = o.Name + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionCopyRequest struct { + value *CertificateCollectionsCertificateCollectionCopyRequest + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionCopyRequest) Get() *CertificateCollectionsCertificateCollectionCopyRequest { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionCopyRequest) Set(val *CertificateCollectionsCertificateCollectionCopyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionCopyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionCopyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionCopyRequest(val *CertificateCollectionsCertificateCollectionCopyRequest) *NullableCertificateCollectionsCertificateCollectionCopyRequest { + return &NullableCertificateCollectionsCertificateCollectionCopyRequest{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionCopyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionCopyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_create_request.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_create_request.go new file mode 100644 index 0000000..044229c --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_create_request.go @@ -0,0 +1,421 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateCollectionCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionCreateRequest{} + +// CertificateCollectionsCertificateCollectionCreateRequest struct for CertificateCollectionsCertificateCollectionCreateRequest +type CertificateCollectionsCertificateCollectionCreateRequest struct { + CopyFromId NullableInt32 `json:"CopyFromId,omitempty"` + Id NullableInt32 `json:"Id,omitempty"` + Name string `json:"Name"` + Description NullableString `json:"Description,omitempty"` + Query NullableString `json:"Query,omitempty"` + DuplicationField *CSSCMSCoreEnumsDuplicateSubjectType `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionCreateRequest instantiates a new CertificateCollectionsCertificateCollectionCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionCreateRequest(name string) *CertificateCollectionsCertificateCollectionCreateRequest { + this := CertificateCollectionsCertificateCollectionCreateRequest{} + this.Name = name + return &this +} + +// NewCertificateCollectionsCertificateCollectionCreateRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionCreateRequestWithDefaults() *CertificateCollectionsCertificateCollectionCreateRequest { + this := CertificateCollectionsCertificateCollectionCreateRequest{} + return &this +} + +// GetCopyFromId returns the CopyFromId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromId() int32 { + if o == nil || isNil(o.CopyFromId.Get()) { + var ret int32 + return ret + } + return *o.CopyFromId.Get() +} + +// GetCopyFromIdOk returns a tuple with the CopyFromId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CopyFromId.Get(), o.CopyFromId.IsSet() +} + +// HasCopyFromId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasCopyFromId() bool { + if o != nil && o.CopyFromId.IsSet() { + return true + } + + return false +} + +// SetCopyFromId gets a reference to the given NullableInt32 and assigns it to the CopyFromId field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromId(v int32) { + o.CopyFromId.Set(&v) +} + +// SetCopyFromIdNil sets the value for CopyFromId to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromIdNil() { + o.CopyFromId.Set(nil) +} + +// UnsetCopyFromId ensures that no value is present for CopyFromId, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetCopyFromId() { + o.CopyFromId.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetId() int32 { + if o == nil || isNil(o.Id.Get()) { + var ret int32 + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableInt32 and assigns it to the Id field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetId(v int32) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetId() { + o.Id.Unset() +} + +// GetName returns the Name field value +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionCreateRequest) UnsetQuery() { + o.Query.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType { + if o == nil || isNil(o.DuplicationField) { + var ret CSSCMSCoreEnumsDuplicateSubjectType + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given CSSCMSCoreEnumsDuplicateSubjectType and assigns it to the DuplicationField field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CertificateCollectionsCertificateCollectionCreateRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o CertificateCollectionsCertificateCollectionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CopyFromId.IsSet() { + toSerialize["CopyFromId"] = o.CopyFromId.Get() + } + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + toSerialize["Name"] = o.Name + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionCreateRequest struct { + value *CertificateCollectionsCertificateCollectionCreateRequest + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionCreateRequest) Get() *CertificateCollectionsCertificateCollectionCreateRequest { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionCreateRequest) Set(val *CertificateCollectionsCertificateCollectionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionCreateRequest(val *CertificateCollectionsCertificateCollectionCreateRequest) *NullableCertificateCollectionsCertificateCollectionCreateRequest { + return &NullableCertificateCollectionsCertificateCollectionCreateRequest{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_favorite_request.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_favorite_request.go new file mode 100644 index 0000000..d599a00 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_favorite_request.go @@ -0,0 +1,125 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateCollectionFavoriteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionFavoriteRequest{} + +// CertificateCollectionsCertificateCollectionFavoriteRequest struct for CertificateCollectionsCertificateCollectionFavoriteRequest +type CertificateCollectionsCertificateCollectionFavoriteRequest struct { + ShowInNavigator bool `json:"ShowInNavigator"` +} + +// NewCertificateCollectionsCertificateCollectionFavoriteRequest instantiates a new CertificateCollectionsCertificateCollectionFavoriteRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionFavoriteRequest(showInNavigator bool) *CertificateCollectionsCertificateCollectionFavoriteRequest { + this := CertificateCollectionsCertificateCollectionFavoriteRequest{} + this.ShowInNavigator = showInNavigator + return &this +} + +// NewCertificateCollectionsCertificateCollectionFavoriteRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionFavoriteRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionFavoriteRequestWithDefaults() *CertificateCollectionsCertificateCollectionFavoriteRequest { + this := CertificateCollectionsCertificateCollectionFavoriteRequest{} + return &this +} + +// GetShowInNavigator returns the ShowInNavigator field value +func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) GetShowInNavigator() bool { + if o == nil { + var ret bool + return ret + } + + return o.ShowInNavigator +} + +// GetShowInNavigatorOk returns a tuple with the ShowInNavigator field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) GetShowInNavigatorOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ShowInNavigator, true +} + +// SetShowInNavigator sets field value +func (o *CertificateCollectionsCertificateCollectionFavoriteRequest) SetShowInNavigator(v bool) { + o.ShowInNavigator = v +} + +func (o CertificateCollectionsCertificateCollectionFavoriteRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionFavoriteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ShowInNavigator"] = o.ShowInNavigator + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionFavoriteRequest struct { + value *CertificateCollectionsCertificateCollectionFavoriteRequest + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionFavoriteRequest) Get() *CertificateCollectionsCertificateCollectionFavoriteRequest { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionFavoriteRequest) Set(val *CertificateCollectionsCertificateCollectionFavoriteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionFavoriteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionFavoriteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionFavoriteRequest(val *CertificateCollectionsCertificateCollectionFavoriteRequest) *NullableCertificateCollectionsCertificateCollectionFavoriteRequest { + return &NullableCertificateCollectionsCertificateCollectionFavoriteRequest{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionFavoriteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionFavoriteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_list_response.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_list_response.go new file mode 100644 index 0000000..7c28889 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_list_response.go @@ -0,0 +1,514 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificateCollectionsCertificateCollectionListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionListResponse{} + +// CertificateCollectionsCertificateCollectionListResponse struct for CertificateCollectionsCertificateCollectionListResponse +type CertificateCollectionsCertificateCollectionListResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + Content NullableString `json:"Content,omitempty"` + DuplicationField NullableString `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + EstimatedCertCount *int32 `json:"EstimatedCertCount,omitempty"` + LastEstimated NullableTime `json:"LastEstimated,omitempty"` + HasQueryPermissions *bool `json:"HasQueryPermissions,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionListResponse instantiates a new CertificateCollectionsCertificateCollectionListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionListResponse() *CertificateCollectionsCertificateCollectionListResponse { + this := CertificateCollectionsCertificateCollectionListResponse{} + return &this +} + +// NewCertificateCollectionsCertificateCollectionListResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionListResponseWithDefaults() *CertificateCollectionsCertificateCollectionListResponse { + this := CertificateCollectionsCertificateCollectionListResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionListResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionListResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionListResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionListResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionListResponse) GetContent() string { + if o == nil || isNil(o.Content.Get()) { + var ret string + return ret + } + return *o.Content.Get() +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionListResponse) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Content.Get(), o.Content.IsSet() +} + +// HasContent returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasContent() bool { + if o != nil && o.Content.IsSet() { + return true + } + + return false +} + +// SetContent gets a reference to the given NullableString and assigns it to the Content field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetContent(v string) { + o.Content.Set(&v) +} + +// SetContentNil sets the value for Content to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) SetContentNil() { + o.Content.Set(nil) +} + +// UnsetContent ensures that no value is present for Content, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetContent() { + o.Content.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionListResponse) GetDuplicationField() string { + if o == nil || isNil(o.DuplicationField.Get()) { + var ret string + return ret + } + return *o.DuplicationField.Get() +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionListResponse) GetDuplicationFieldOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DuplicationField.Get(), o.DuplicationField.IsSet() +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasDuplicationField() bool { + if o != nil && o.DuplicationField.IsSet() { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given NullableString and assigns it to the DuplicationField field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetDuplicationField(v string) { + o.DuplicationField.Set(&v) +} + +// SetDuplicationFieldNil sets the value for DuplicationField to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) SetDuplicationFieldNil() { + o.DuplicationField.Set(nil) +} + +// UnsetDuplicationField ensures that no value is present for DuplicationField, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetDuplicationField() { + o.DuplicationField.Unset() +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetEstimatedCertCount returns the EstimatedCertCount field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetEstimatedCertCount() int32 { + if o == nil || isNil(o.EstimatedCertCount) { + var ret int32 + return ret + } + return *o.EstimatedCertCount +} + +// GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetEstimatedCertCountOk() (*int32, bool) { + if o == nil || isNil(o.EstimatedCertCount) { + return nil, false + } + return o.EstimatedCertCount, true +} + +// HasEstimatedCertCount returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasEstimatedCertCount() bool { + if o != nil && !isNil(o.EstimatedCertCount) { + return true + } + + return false +} + +// SetEstimatedCertCount gets a reference to the given int32 and assigns it to the EstimatedCertCount field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetEstimatedCertCount(v int32) { + o.EstimatedCertCount = &v +} + +// GetLastEstimated returns the LastEstimated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionListResponse) GetLastEstimated() time.Time { + if o == nil || isNil(o.LastEstimated.Get()) { + var ret time.Time + return ret + } + return *o.LastEstimated.Get() +} + +// GetLastEstimatedOk returns a tuple with the LastEstimated field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionListResponse) GetLastEstimatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastEstimated.Get(), o.LastEstimated.IsSet() +} + +// HasLastEstimated returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasLastEstimated() bool { + if o != nil && o.LastEstimated.IsSet() { + return true + } + + return false +} + +// SetLastEstimated gets a reference to the given NullableTime and assigns it to the LastEstimated field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetLastEstimated(v time.Time) { + o.LastEstimated.Set(&v) +} + +// SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) SetLastEstimatedNil() { + o.LastEstimated.Set(nil) +} + +// UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionListResponse) UnsetLastEstimated() { + o.LastEstimated.Unset() +} + +// GetHasQueryPermissions returns the HasQueryPermissions field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetHasQueryPermissions() bool { + if o == nil || isNil(o.HasQueryPermissions) { + var ret bool + return ret + } + return *o.HasQueryPermissions +} + +// GetHasQueryPermissionsOk returns a tuple with the HasQueryPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) GetHasQueryPermissionsOk() (*bool, bool) { + if o == nil || isNil(o.HasQueryPermissions) { + return nil, false + } + return o.HasQueryPermissions, true +} + +// HasHasQueryPermissions returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionListResponse) HasHasQueryPermissions() bool { + if o != nil && !isNil(o.HasQueryPermissions) { + return true + } + + return false +} + +// SetHasQueryPermissions gets a reference to the given bool and assigns it to the HasQueryPermissions field. +func (o *CertificateCollectionsCertificateCollectionListResponse) SetHasQueryPermissions(v bool) { + o.HasQueryPermissions = &v +} + +func (o CertificateCollectionsCertificateCollectionListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Content.IsSet() { + toSerialize["Content"] = o.Content.Get() + } + if o.DuplicationField.IsSet() { + toSerialize["DuplicationField"] = o.DuplicationField.Get() + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.EstimatedCertCount) { + toSerialize["EstimatedCertCount"] = o.EstimatedCertCount + } + if o.LastEstimated.IsSet() { + toSerialize["LastEstimated"] = o.LastEstimated.Get() + } + if !isNil(o.HasQueryPermissions) { + toSerialize["HasQueryPermissions"] = o.HasQueryPermissions + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionListResponse struct { + value *CertificateCollectionsCertificateCollectionListResponse + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionListResponse) Get() *CertificateCollectionsCertificateCollectionListResponse { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionListResponse) Set(val *CertificateCollectionsCertificateCollectionListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionListResponse(val *CertificateCollectionsCertificateCollectionListResponse) *NullableCertificateCollectionsCertificateCollectionListResponse { + return &NullableCertificateCollectionsCertificateCollectionListResponse{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_permissions_response.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_permissions_response.go new file mode 100644 index 0000000..1a408c2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_permissions_response.go @@ -0,0 +1,208 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateCollectionPermissionsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionPermissionsResponse{} + +// CertificateCollectionsCertificateCollectionPermissionsResponse struct for CertificateCollectionsCertificateCollectionPermissionsResponse +type CertificateCollectionsCertificateCollectionPermissionsResponse struct { + QueryId *int32 `json:"QueryId,omitempty"` + AccessControlList []CertificateCollectionsCertificateQueryAccessControl `json:"AccessControlList,omitempty"` + AssignableRoles []CertificateCollectionsAssignableQueryRole `json:"AssignableRoles,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionPermissionsResponse instantiates a new CertificateCollectionsCertificateCollectionPermissionsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionPermissionsResponse() *CertificateCollectionsCertificateCollectionPermissionsResponse { + this := CertificateCollectionsCertificateCollectionPermissionsResponse{} + return &this +} + +// NewCertificateCollectionsCertificateCollectionPermissionsResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionPermissionsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionPermissionsResponseWithDefaults() *CertificateCollectionsCertificateCollectionPermissionsResponse { + this := CertificateCollectionsCertificateCollectionPermissionsResponse{} + return &this +} + +// GetQueryId returns the QueryId field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetQueryId() int32 { + if o == nil || isNil(o.QueryId) { + var ret int32 + return ret + } + return *o.QueryId +} + +// GetQueryIdOk returns a tuple with the QueryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetQueryIdOk() (*int32, bool) { + if o == nil || isNil(o.QueryId) { + return nil, false + } + return o.QueryId, true +} + +// HasQueryId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasQueryId() bool { + if o != nil && !isNil(o.QueryId) { + return true + } + + return false +} + +// SetQueryId gets a reference to the given int32 and assigns it to the QueryId field. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetQueryId(v int32) { + o.QueryId = &v +} + +// GetAccessControlList returns the AccessControlList field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAccessControlList() []CertificateCollectionsCertificateQueryAccessControl { + if o == nil { + var ret []CertificateCollectionsCertificateQueryAccessControl + return ret + } + return o.AccessControlList +} + +// GetAccessControlListOk returns a tuple with the AccessControlList field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAccessControlListOk() ([]CertificateCollectionsCertificateQueryAccessControl, bool) { + if o == nil || isNil(o.AccessControlList) { + return nil, false + } + return o.AccessControlList, true +} + +// HasAccessControlList returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasAccessControlList() bool { + if o != nil && isNil(o.AccessControlList) { + return true + } + + return false +} + +// SetAccessControlList gets a reference to the given []CertificateCollectionsCertificateQueryAccessControl and assigns it to the AccessControlList field. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAccessControlList(v []CertificateCollectionsCertificateQueryAccessControl) { + o.AccessControlList = v +} + +// GetAssignableRoles returns the AssignableRoles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAssignableRoles() []CertificateCollectionsAssignableQueryRole { + if o == nil { + var ret []CertificateCollectionsAssignableQueryRole + return ret + } + return o.AssignableRoles +} + +// GetAssignableRolesOk returns a tuple with the AssignableRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) GetAssignableRolesOk() ([]CertificateCollectionsAssignableQueryRole, bool) { + if o == nil || isNil(o.AssignableRoles) { + return nil, false + } + return o.AssignableRoles, true +} + +// HasAssignableRoles returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) HasAssignableRoles() bool { + if o != nil && isNil(o.AssignableRoles) { + return true + } + + return false +} + +// SetAssignableRoles gets a reference to the given []CertificateCollectionsAssignableQueryRole and assigns it to the AssignableRoles field. +func (o *CertificateCollectionsCertificateCollectionPermissionsResponse) SetAssignableRoles(v []CertificateCollectionsAssignableQueryRole) { + o.AssignableRoles = v +} + +func (o CertificateCollectionsCertificateCollectionPermissionsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionPermissionsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryId) { + toSerialize["QueryId"] = o.QueryId + } + if o.AccessControlList != nil { + toSerialize["AccessControlList"] = o.AccessControlList + } + if o.AssignableRoles != nil { + toSerialize["AssignableRoles"] = o.AssignableRoles + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionPermissionsResponse struct { + value *CertificateCollectionsCertificateCollectionPermissionsResponse + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionPermissionsResponse) Get() *CertificateCollectionsCertificateCollectionPermissionsResponse { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionPermissionsResponse) Set(val *CertificateCollectionsCertificateCollectionPermissionsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionPermissionsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionPermissionsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionPermissionsResponse(val *CertificateCollectionsCertificateCollectionPermissionsResponse) *NullableCertificateCollectionsCertificateCollectionPermissionsResponse { + return &NullableCertificateCollectionsCertificateCollectionPermissionsResponse{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionPermissionsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionPermissionsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_response.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_response.go new file mode 100644 index 0000000..084654e --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_response.go @@ -0,0 +1,514 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificateCollectionsCertificateCollectionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionResponse{} + +// CertificateCollectionsCertificateCollectionResponse struct for CertificateCollectionsCertificateCollectionResponse +type CertificateCollectionsCertificateCollectionResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + Content NullableString `json:"Content,omitempty"` + Query NullableString `json:"Query,omitempty"` + DuplicationField *CSSCMSCoreEnumsDuplicateSubjectType `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + EstimatedCertCount *int32 `json:"EstimatedCertCount,omitempty"` + LastEstimated NullableTime `json:"LastEstimated,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionResponse instantiates a new CertificateCollectionsCertificateCollectionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionResponse() *CertificateCollectionsCertificateCollectionResponse { + this := CertificateCollectionsCertificateCollectionResponse{} + return &this +} + +// NewCertificateCollectionsCertificateCollectionResponseWithDefaults instantiates a new CertificateCollectionsCertificateCollectionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionResponseWithDefaults() *CertificateCollectionsCertificateCollectionResponse { + this := CertificateCollectionsCertificateCollectionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionResponse) GetContent() string { + if o == nil || isNil(o.Content.Get()) { + var ret string + return ret + } + return *o.Content.Get() +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionResponse) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Content.Get(), o.Content.IsSet() +} + +// HasContent returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasContent() bool { + if o != nil && o.Content.IsSet() { + return true + } + + return false +} + +// SetContent gets a reference to the given NullableString and assigns it to the Content field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetContent(v string) { + o.Content.Set(&v) +} + +// SetContentNil sets the value for Content to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) SetContentNil() { + o.Content.Set(nil) +} + +// UnsetContent ensures that no value is present for Content, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) UnsetContent() { + o.Content.Unset() +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionResponse) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionResponse) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) UnsetQuery() { + o.Query.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionResponse) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType { + if o == nil || isNil(o.DuplicationField) { + var ret CSSCMSCoreEnumsDuplicateSubjectType + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given CSSCMSCoreEnumsDuplicateSubjectType and assigns it to the DuplicationField field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionResponse) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionResponse) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetEstimatedCertCount returns the EstimatedCertCount field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionResponse) GetEstimatedCertCount() int32 { + if o == nil || isNil(o.EstimatedCertCount) { + var ret int32 + return ret + } + return *o.EstimatedCertCount +} + +// GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) GetEstimatedCertCountOk() (*int32, bool) { + if o == nil || isNil(o.EstimatedCertCount) { + return nil, false + } + return o.EstimatedCertCount, true +} + +// HasEstimatedCertCount returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasEstimatedCertCount() bool { + if o != nil && !isNil(o.EstimatedCertCount) { + return true + } + + return false +} + +// SetEstimatedCertCount gets a reference to the given int32 and assigns it to the EstimatedCertCount field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetEstimatedCertCount(v int32) { + o.EstimatedCertCount = &v +} + +// GetLastEstimated returns the LastEstimated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionResponse) GetLastEstimated() time.Time { + if o == nil || isNil(o.LastEstimated.Get()) { + var ret time.Time + return ret + } + return *o.LastEstimated.Get() +} + +// GetLastEstimatedOk returns a tuple with the LastEstimated field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionResponse) GetLastEstimatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastEstimated.Get(), o.LastEstimated.IsSet() +} + +// HasLastEstimated returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionResponse) HasLastEstimated() bool { + if o != nil && o.LastEstimated.IsSet() { + return true + } + + return false +} + +// SetLastEstimated gets a reference to the given NullableTime and assigns it to the LastEstimated field. +func (o *CertificateCollectionsCertificateCollectionResponse) SetLastEstimated(v time.Time) { + o.LastEstimated.Set(&v) +} + +// SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) SetLastEstimatedNil() { + o.LastEstimated.Set(nil) +} + +// UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionResponse) UnsetLastEstimated() { + o.LastEstimated.Unset() +} + +func (o CertificateCollectionsCertificateCollectionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Content.IsSet() { + toSerialize["Content"] = o.Content.Get() + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.EstimatedCertCount) { + toSerialize["EstimatedCertCount"] = o.EstimatedCertCount + } + if o.LastEstimated.IsSet() { + toSerialize["LastEstimated"] = o.LastEstimated.Get() + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionResponse struct { + value *CertificateCollectionsCertificateCollectionResponse + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionResponse) Get() *CertificateCollectionsCertificateCollectionResponse { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionResponse) Set(val *CertificateCollectionsCertificateCollectionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionResponse(val *CertificateCollectionsCertificateCollectionResponse) *NullableCertificateCollectionsCertificateCollectionResponse { + return &NullableCertificateCollectionsCertificateCollectionResponse{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_update_request.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_update_request.go new file mode 100644 index 0000000..5008c10 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_collection_update_request.go @@ -0,0 +1,354 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateCollectionUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateCollectionUpdateRequest{} + +// CertificateCollectionsCertificateCollectionUpdateRequest struct for CertificateCollectionsCertificateCollectionUpdateRequest +type CertificateCollectionsCertificateCollectionUpdateRequest struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Description NullableString `json:"Description,omitempty"` + Query NullableString `json:"Query,omitempty"` + DuplicationField *CSSCMSCoreEnumsDuplicateSubjectType `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` +} + +// NewCertificateCollectionsCertificateCollectionUpdateRequest instantiates a new CertificateCollectionsCertificateCollectionUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateCollectionUpdateRequest(id int32, name string) *CertificateCollectionsCertificateCollectionUpdateRequest { + this := CertificateCollectionsCertificateCollectionUpdateRequest{} + this.Id = id + this.Name = name + return &this +} + +// NewCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults instantiates a new CertificateCollectionsCertificateCollectionUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults() *CertificateCollectionsCertificateCollectionUpdateRequest { + this := CertificateCollectionsCertificateCollectionUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) UnsetQuery() { + o.Query.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType { + if o == nil || isNil(o.DuplicationField) { + var ret CSSCMSCoreEnumsDuplicateSubjectType + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given CSSCMSCoreEnumsDuplicateSubjectType and assigns it to the DuplicationField field. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CertificateCollectionsCertificateCollectionUpdateRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o CertificateCollectionsCertificateCollectionUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateCollectionUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateCollectionUpdateRequest struct { + value *CertificateCollectionsCertificateCollectionUpdateRequest + isSet bool +} + +func (v NullableCertificateCollectionsCertificateCollectionUpdateRequest) Get() *CertificateCollectionsCertificateCollectionUpdateRequest { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateCollectionUpdateRequest) Set(val *CertificateCollectionsCertificateCollectionUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateCollectionUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateCollectionUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateCollectionUpdateRequest(val *CertificateCollectionsCertificateCollectionUpdateRequest) *NullableCertificateCollectionsCertificateCollectionUpdateRequest { + return &NullableCertificateCollectionsCertificateCollectionUpdateRequest{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateCollectionUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateCollectionUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_collections_certificate_query_access_control.go b/v24/api/keyfactor/v1/model_certificate_collections_certificate_query_access_control.go new file mode 100644 index 0000000..750145e --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_collections_certificate_query_access_control.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateCollectionsCertificateQueryAccessControl type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateCollectionsCertificateQueryAccessControl{} + +// CertificateCollectionsCertificateQueryAccessControl struct for CertificateCollectionsCertificateQueryAccessControl +type CertificateCollectionsCertificateQueryAccessControl struct { + RoleId *int32 `json:"RoleId,omitempty"` + AreaPermissions []CSSCMSCorePermissionsWebConsoleAreaPermission `json:"AreaPermissions,omitempty"` +} + +// NewCertificateCollectionsCertificateQueryAccessControl instantiates a new CertificateCollectionsCertificateQueryAccessControl object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateCollectionsCertificateQueryAccessControl() *CertificateCollectionsCertificateQueryAccessControl { + this := CertificateCollectionsCertificateQueryAccessControl{} + return &this +} + +// NewCertificateCollectionsCertificateQueryAccessControlWithDefaults instantiates a new CertificateCollectionsCertificateQueryAccessControl object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateCollectionsCertificateQueryAccessControlWithDefaults() *CertificateCollectionsCertificateQueryAccessControl { + this := CertificateCollectionsCertificateQueryAccessControl{} + return &this +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *CertificateCollectionsCertificateQueryAccessControl) GetRoleId() int32 { + if o == nil || isNil(o.RoleId) { + var ret int32 + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateCollectionsCertificateQueryAccessControl) GetRoleIdOk() (*int32, bool) { + if o == nil || isNil(o.RoleId) { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateQueryAccessControl) HasRoleId() bool { + if o != nil && !isNil(o.RoleId) { + return true + } + + return false +} + +// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. +func (o *CertificateCollectionsCertificateQueryAccessControl) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetAreaPermissions returns the AreaPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateCollectionsCertificateQueryAccessControl) GetAreaPermissions() []CSSCMSCorePermissionsWebConsoleAreaPermission { + if o == nil { + var ret []CSSCMSCorePermissionsWebConsoleAreaPermission + return ret + } + return o.AreaPermissions +} + +// GetAreaPermissionsOk returns a tuple with the AreaPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateCollectionsCertificateQueryAccessControl) GetAreaPermissionsOk() ([]CSSCMSCorePermissionsWebConsoleAreaPermission, bool) { + if o == nil || isNil(o.AreaPermissions) { + return nil, false + } + return o.AreaPermissions, true +} + +// HasAreaPermissions returns a boolean if a field has been set. +func (o *CertificateCollectionsCertificateQueryAccessControl) HasAreaPermissions() bool { + if o != nil && isNil(o.AreaPermissions) { + return true + } + + return false +} + +// SetAreaPermissions gets a reference to the given []CSSCMSCorePermissionsWebConsoleAreaPermission and assigns it to the AreaPermissions field. +func (o *CertificateCollectionsCertificateQueryAccessControl) SetAreaPermissions(v []CSSCMSCorePermissionsWebConsoleAreaPermission) { + o.AreaPermissions = v +} + +func (o CertificateCollectionsCertificateQueryAccessControl) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateCollectionsCertificateQueryAccessControl) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RoleId) { + toSerialize["RoleId"] = o.RoleId + } + if o.AreaPermissions != nil { + toSerialize["AreaPermissions"] = o.AreaPermissions + } + return toSerialize, nil +} + +type NullableCertificateCollectionsCertificateQueryAccessControl struct { + value *CertificateCollectionsCertificateQueryAccessControl + isSet bool +} + +func (v NullableCertificateCollectionsCertificateQueryAccessControl) Get() *CertificateCollectionsCertificateQueryAccessControl { + return v.value +} + +func (v *NullableCertificateCollectionsCertificateQueryAccessControl) Set(val *CertificateCollectionsCertificateQueryAccessControl) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateCollectionsCertificateQueryAccessControl) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateCollectionsCertificateQueryAccessControl) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateCollectionsCertificateQueryAccessControl(val *CertificateCollectionsCertificateQueryAccessControl) *NullableCertificateCollectionsCertificateQueryAccessControl { + return &NullableCertificateCollectionsCertificateQueryAccessControl{value: val, isSet: true} +} + +func (v NullableCertificateCollectionsCertificateQueryAccessControl) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateCollectionsCertificateQueryAccessControl) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_store_containers_certificate_store_container_response.go b/v24/api/keyfactor/v1/model_certificate_store_containers_certificate_store_container_response.go new file mode 100644 index 0000000..c2c115b --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_store_containers_certificate_store_container_response.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoreContainersCertificateStoreContainerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoreContainersCertificateStoreContainerResponse{} + +// CertificateStoreContainersCertificateStoreContainerResponse struct for CertificateStoreContainersCertificateStoreContainerResponse +type CertificateStoreContainersCertificateStoreContainerResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CertificateStores []CertificateStoresCertificateStoreResponse `json:"CertificateStores,omitempty"` +} + +// NewCertificateStoreContainersCertificateStoreContainerResponse instantiates a new CertificateStoreContainersCertificateStoreContainerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoreContainersCertificateStoreContainerResponse() *CertificateStoreContainersCertificateStoreContainerResponse { + this := CertificateStoreContainersCertificateStoreContainerResponse{} + return &this +} + +// NewCertificateStoreContainersCertificateStoreContainerResponseWithDefaults instantiates a new CertificateStoreContainersCertificateStoreContainerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoreContainersCertificateStoreContainerResponseWithDefaults() *CertificateStoreContainersCertificateStoreContainerResponse { + this := CertificateStoreContainersCertificateStoreContainerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateStoreContainersCertificateStoreContainerResponse) UnsetName() { + o.Name.Unset() +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCertificateStores returns the CertificateStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertificateStores() []CertificateStoresCertificateStoreResponse { + if o == nil { + var ret []CertificateStoresCertificateStoreResponse + return ret + } + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoreContainersCertificateStoreContainerResponse) GetCertificateStoresOk() ([]CertificateStoresCertificateStoreResponse, bool) { + if o == nil || isNil(o.CertificateStores) { + return nil, false + } + return o.CertificateStores, true +} + +// HasCertificateStores returns a boolean if a field has been set. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) HasCertificateStores() bool { + if o != nil && isNil(o.CertificateStores) { + return true + } + + return false +} + +// SetCertificateStores gets a reference to the given []CertificateStoresCertificateStoreResponse and assigns it to the CertificateStores field. +func (o *CertificateStoreContainersCertificateStoreContainerResponse) SetCertificateStores(v []CertificateStoresCertificateStoreResponse) { + o.CertificateStores = v +} + +func (o CertificateStoreContainersCertificateStoreContainerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoreContainersCertificateStoreContainerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if o.CertificateStores != nil { + toSerialize["CertificateStores"] = o.CertificateStores + } + return toSerialize, nil +} + +type NullableCertificateStoreContainersCertificateStoreContainerResponse struct { + value *CertificateStoreContainersCertificateStoreContainerResponse + isSet bool +} + +func (v NullableCertificateStoreContainersCertificateStoreContainerResponse) Get() *CertificateStoreContainersCertificateStoreContainerResponse { + return v.value +} + +func (v *NullableCertificateStoreContainersCertificateStoreContainerResponse) Set(val *CertificateStoreContainersCertificateStoreContainerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoreContainersCertificateStoreContainerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoreContainersCertificateStoreContainerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoreContainersCertificateStoreContainerResponse(val *CertificateStoreContainersCertificateStoreContainerResponse) *NullableCertificateStoreContainersCertificateStoreContainerResponse { + return &NullableCertificateStoreContainersCertificateStoreContainerResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoreContainersCertificateStoreContainerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoreContainersCertificateStoreContainerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_add_certificate_request.go b/v24/api/keyfactor/v1/model_certificate_stores_add_certificate_request.go new file mode 100644 index 0000000..177aeb2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_add_certificate_request.go @@ -0,0 +1,226 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresAddCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresAddCertificateRequest{} + +// CertificateStoresAddCertificateRequest struct for CertificateStoresAddCertificateRequest +type CertificateStoresAddCertificateRequest struct { + CertificateId int32 `json:"CertificateId"` + CertificateStores []CSSCMSDataModelModelsCertificateStoreEntry `json:"CertificateStores"` + Schedule KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule"` + CollectionId NullableInt32 `json:"CollectionId,omitempty"` +} + +// NewCertificateStoresAddCertificateRequest instantiates a new CertificateStoresAddCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresAddCertificateRequest(certificateId int32, certificateStores []CSSCMSDataModelModelsCertificateStoreEntry, schedule KeyfactorCommonSchedulingKeyfactorSchedule) *CertificateStoresAddCertificateRequest { + this := CertificateStoresAddCertificateRequest{} + this.CertificateId = certificateId + this.CertificateStores = certificateStores + this.Schedule = schedule + return &this +} + +// NewCertificateStoresAddCertificateRequestWithDefaults instantiates a new CertificateStoresAddCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresAddCertificateRequestWithDefaults() *CertificateStoresAddCertificateRequest { + this := CertificateStoresAddCertificateRequest{} + return &this +} + +// GetCertificateId returns the CertificateId field value +func (o *CertificateStoresAddCertificateRequest) GetCertificateId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresAddCertificateRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CertificateId, true +} + +// SetCertificateId sets field value +func (o *CertificateStoresAddCertificateRequest) SetCertificateId(v int32) { + o.CertificateId = v +} + +// GetCertificateStores returns the CertificateStores field value +func (o *CertificateStoresAddCertificateRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateStoreEntry { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreEntry + return ret + } + + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresAddCertificateRequest) GetCertificateStoresOk() ([]CSSCMSDataModelModelsCertificateStoreEntry, bool) { + if o == nil { + return nil, false + } + return o.CertificateStores, true +} + +// SetCertificateStores sets field value +func (o *CertificateStoresAddCertificateRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateStoreEntry) { + o.CertificateStores = v +} + +// GetSchedule returns the Schedule field value +func (o *CertificateStoresAddCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresAddCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *CertificateStoresAddCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresAddCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId.Get()) { + var ret int32 + return ret + } + return *o.CollectionId.Get() +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresAddCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CollectionId.Get(), o.CollectionId.IsSet() +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *CertificateStoresAddCertificateRequest) HasCollectionId() bool { + if o != nil && o.CollectionId.IsSet() { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given NullableInt32 and assigns it to the CollectionId field. +func (o *CertificateStoresAddCertificateRequest) SetCollectionId(v int32) { + o.CollectionId.Set(&v) +} + +// SetCollectionIdNil sets the value for CollectionId to be an explicit nil +func (o *CertificateStoresAddCertificateRequest) SetCollectionIdNil() { + o.CollectionId.Set(nil) +} + +// UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil +func (o *CertificateStoresAddCertificateRequest) UnsetCollectionId() { + o.CollectionId.Unset() +} + +func (o CertificateStoresAddCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresAddCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateId"] = o.CertificateId + toSerialize["CertificateStores"] = o.CertificateStores + toSerialize["Schedule"] = o.Schedule + if o.CollectionId.IsSet() { + toSerialize["CollectionId"] = o.CollectionId.Get() + } + return toSerialize, nil +} + +type NullableCertificateStoresAddCertificateRequest struct { + value *CertificateStoresAddCertificateRequest + isSet bool +} + +func (v NullableCertificateStoresAddCertificateRequest) Get() *CertificateStoresAddCertificateRequest { + return v.value +} + +func (v *NullableCertificateStoresAddCertificateRequest) Set(val *CertificateStoresAddCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresAddCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresAddCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresAddCertificateRequest(val *CertificateStoresAddCertificateRequest) *NullableCertificateStoresAddCertificateRequest { + return &NullableCertificateStoresAddCertificateRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresAddCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresAddCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_approve_request.go b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_approve_request.go new file mode 100644 index 0000000..fbd9148 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_approve_request.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresCertificateStoreApproveRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresCertificateStoreApproveRequest{} + +// CertificateStoresCertificateStoreApproveRequest struct for CertificateStoresCertificateStoreApproveRequest +type CertificateStoresCertificateStoreApproveRequest struct { + Id *string `json:"Id,omitempty"` + ContainerId NullableInt32 `json:"ContainerId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorAPISecret `json:"Password,omitempty"` +} + +// NewCertificateStoresCertificateStoreApproveRequest instantiates a new CertificateStoresCertificateStoreApproveRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresCertificateStoreApproveRequest() *CertificateStoresCertificateStoreApproveRequest { + this := CertificateStoresCertificateStoreApproveRequest{} + return &this +} + +// NewCertificateStoresCertificateStoreApproveRequestWithDefaults instantiates a new CertificateStoresCertificateStoreApproveRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresCertificateStoreApproveRequestWithDefaults() *CertificateStoresCertificateStoreApproveRequest { + this := CertificateStoresCertificateStoreApproveRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreApproveRequest) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetId(v string) { + o.Id = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreApproveRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId.Get()) { + var ret int32 + return ret + } + return *o.ContainerId.Get() +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreApproveRequest) GetContainerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ContainerId.Get(), o.ContainerId.IsSet() +} + +// HasContainerId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasContainerId() bool { + if o != nil && o.ContainerId.IsSet() { + return true + } + + return false +} + +// SetContainerId gets a reference to the given NullableInt32 and assigns it to the ContainerId field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetContainerId(v int32) { + o.ContainerId.Set(&v) +} + +// SetContainerIdNil sets the value for ContainerId to be an explicit nil +func (o *CertificateStoresCertificateStoreApproveRequest) SetContainerIdNil() { + o.ContainerId.Set(nil) +} + +// UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +func (o *CertificateStoresCertificateStoreApproveRequest) UnsetContainerId() { + o.ContainerId.Unset() +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreApproveRequest) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreApproveRequest) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreApproveRequest) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CertificateStoresCertificateStoreApproveRequest) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CertificateStoresCertificateStoreApproveRequest) UnsetProperties() { + o.Properties.Unset() +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreApproveRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreApproveRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreApproveRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *CertificateStoresCertificateStoreApproveRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o CertificateStoresCertificateStoreApproveRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresCertificateStoreApproveRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ContainerId.IsSet() { + toSerialize["ContainerId"] = o.ContainerId.Get() + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableCertificateStoresCertificateStoreApproveRequest struct { + value *CertificateStoresCertificateStoreApproveRequest + isSet bool +} + +func (v NullableCertificateStoresCertificateStoreApproveRequest) Get() *CertificateStoresCertificateStoreApproveRequest { + return v.value +} + +func (v *NullableCertificateStoresCertificateStoreApproveRequest) Set(val *CertificateStoresCertificateStoreApproveRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresCertificateStoreApproveRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresCertificateStoreApproveRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresCertificateStoreApproveRequest(val *CertificateStoresCertificateStoreApproveRequest) *NullableCertificateStoresCertificateStoreApproveRequest { + return &NullableCertificateStoresCertificateStoreApproveRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresCertificateStoreApproveRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresCertificateStoreApproveRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_certificate_response.go b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_certificate_response.go new file mode 100644 index 0000000..121a390 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_certificate_response.go @@ -0,0 +1,551 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificateStoresCertificateStoreInventoryCertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresCertificateStoreInventoryCertificateResponse{} + +// CertificateStoresCertificateStoreInventoryCertificateResponse struct for CertificateStoresCertificateStoreInventoryCertificateResponse +type CertificateStoresCertificateStoreInventoryCertificateResponse struct { + Id *int32 `json:"Id,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + SigningAlgorithm NullableString `json:"SigningAlgorithm,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + CertStoreInventoryItemId *int32 `json:"CertStoreInventoryItemId,omitempty"` + CertState *int32 `json:"CertState,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` +} + +// NewCertificateStoresCertificateStoreInventoryCertificateResponse instantiates a new CertificateStoresCertificateStoreInventoryCertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresCertificateStoreInventoryCertificateResponse() *CertificateStoresCertificateStoreInventoryCertificateResponse { + this := CertificateStoresCertificateStoreInventoryCertificateResponse{} + return &this +} + +// NewCertificateStoresCertificateStoreInventoryCertificateResponseWithDefaults instantiates a new CertificateStoresCertificateStoreInventoryCertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresCertificateStoreInventoryCertificateResponseWithDefaults() *CertificateStoresCertificateStoreInventoryCertificateResponse { + this := CertificateStoresCertificateStoreInventoryCertificateResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetId(v int32) { + o.Id = &v +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm.Get()) { + var ret string + return ret + } + return *o.SigningAlgorithm.Get() +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetSigningAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SigningAlgorithm.Get(), o.SigningAlgorithm.IsSet() +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasSigningAlgorithm() bool { + if o != nil && o.SigningAlgorithm.IsSet() { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given NullableString and assigns it to the SigningAlgorithm field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSigningAlgorithm(v string) { + o.SigningAlgorithm.Set(&v) +} + +// SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetSigningAlgorithmNil() { + o.SigningAlgorithm.Set(nil) +} + +// UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetSigningAlgorithm() { + o.SigningAlgorithm.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetCertStoreInventoryItemId returns the CertStoreInventoryItemId field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStoreInventoryItemId() int32 { + if o == nil || isNil(o.CertStoreInventoryItemId) { + var ret int32 + return ret + } + return *o.CertStoreInventoryItemId +} + +// GetCertStoreInventoryItemIdOk returns a tuple with the CertStoreInventoryItemId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStoreInventoryItemIdOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreInventoryItemId) { + return nil, false + } + return o.CertStoreInventoryItemId, true +} + +// HasCertStoreInventoryItemId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasCertStoreInventoryItemId() bool { + if o != nil && !isNil(o.CertStoreInventoryItemId) { + return true + } + + return false +} + +// SetCertStoreInventoryItemId gets a reference to the given int32 and assigns it to the CertStoreInventoryItemId field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetCertStoreInventoryItemId(v int32) { + o.CertStoreInventoryItemId = &v +} + +// GetCertState returns the CertState field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertState() int32 { + if o == nil || isNil(o.CertState) { + var ret int32 + return ret + } + return *o.CertState +} + +// GetCertStateOk returns a tuple with the CertState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetCertStateOk() (*int32, bool) { + if o == nil || isNil(o.CertState) { + return nil, false + } + return o.CertState, true +} + +// HasCertState returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasCertState() bool { + if o != nil && !isNil(o.CertState) { + return true + } + + return false +} + +// SetCertState gets a reference to the given int32 and assigns it to the CertState field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetCertState(v int32) { + o.CertState = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetMetadata() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *CertificateStoresCertificateStoreInventoryCertificateResponse) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +func (o CertificateStoresCertificateStoreInventoryCertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresCertificateStoreInventoryCertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if o.SigningAlgorithm.IsSet() { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.CertStoreInventoryItemId) { + toSerialize["CertStoreInventoryItemId"] = o.CertStoreInventoryItemId + } + if !isNil(o.CertState) { + toSerialize["CertState"] = o.CertState + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableCertificateStoresCertificateStoreInventoryCertificateResponse struct { + value *CertificateStoresCertificateStoreInventoryCertificateResponse + isSet bool +} + +func (v NullableCertificateStoresCertificateStoreInventoryCertificateResponse) Get() *CertificateStoresCertificateStoreInventoryCertificateResponse { + return v.value +} + +func (v *NullableCertificateStoresCertificateStoreInventoryCertificateResponse) Set(val *CertificateStoresCertificateStoreInventoryCertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresCertificateStoreInventoryCertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresCertificateStoreInventoryCertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresCertificateStoreInventoryCertificateResponse(val *CertificateStoresCertificateStoreInventoryCertificateResponse) *NullableCertificateStoresCertificateStoreInventoryCertificateResponse { + return &NullableCertificateStoresCertificateStoreInventoryCertificateResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoresCertificateStoreInventoryCertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresCertificateStoreInventoryCertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_response.go b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_response.go new file mode 100644 index 0000000..7777be6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_inventory_response.go @@ -0,0 +1,219 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresCertificateStoreInventoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresCertificateStoreInventoryResponse{} + +// CertificateStoresCertificateStoreInventoryResponse struct for CertificateStoresCertificateStoreInventoryResponse +type CertificateStoresCertificateStoreInventoryResponse struct { + Name NullableString `json:"Name,omitempty"` + Certificates []CertificateStoresCertificateStoreInventoryCertificateResponse `json:"Certificates,omitempty"` + Parameters map[string]interface{} `json:"Parameters,omitempty"` +} + +// NewCertificateStoresCertificateStoreInventoryResponse instantiates a new CertificateStoresCertificateStoreInventoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresCertificateStoreInventoryResponse() *CertificateStoresCertificateStoreInventoryResponse { + this := CertificateStoresCertificateStoreInventoryResponse{} + return &this +} + +// NewCertificateStoresCertificateStoreInventoryResponseWithDefaults instantiates a new CertificateStoresCertificateStoreInventoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresCertificateStoreInventoryResponseWithDefaults() *CertificateStoresCertificateStoreInventoryResponse { + this := CertificateStoresCertificateStoreInventoryResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateStoresCertificateStoreInventoryResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateStoresCertificateStoreInventoryResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateStoresCertificateStoreInventoryResponse) UnsetName() { + o.Name.Unset() +} + +// GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryResponse) GetCertificates() []CertificateStoresCertificateStoreInventoryCertificateResponse { + if o == nil { + var ret []CertificateStoresCertificateStoreInventoryCertificateResponse + return ret + } + return o.Certificates +} + +// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryResponse) GetCertificatesOk() ([]CertificateStoresCertificateStoreInventoryCertificateResponse, bool) { + if o == nil || isNil(o.Certificates) { + return nil, false + } + return o.Certificates, true +} + +// HasCertificates returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryResponse) HasCertificates() bool { + if o != nil && isNil(o.Certificates) { + return true + } + + return false +} + +// SetCertificates gets a reference to the given []CertificateStoresCertificateStoreInventoryCertificateResponse and assigns it to the Certificates field. +func (o *CertificateStoresCertificateStoreInventoryResponse) SetCertificates(v []CertificateStoresCertificateStoreInventoryCertificateResponse) { + o.Certificates = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreInventoryResponse) GetParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreInventoryResponse) GetParametersOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Parameters) { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreInventoryResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]interface{} and assigns it to the Parameters field. +func (o *CertificateStoresCertificateStoreInventoryResponse) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +func (o CertificateStoresCertificateStoreInventoryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresCertificateStoreInventoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Certificates != nil { + toSerialize["Certificates"] = o.Certificates + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullableCertificateStoresCertificateStoreInventoryResponse struct { + value *CertificateStoresCertificateStoreInventoryResponse + isSet bool +} + +func (v NullableCertificateStoresCertificateStoreInventoryResponse) Get() *CertificateStoresCertificateStoreInventoryResponse { + return v.value +} + +func (v *NullableCertificateStoresCertificateStoreInventoryResponse) Set(val *CertificateStoresCertificateStoreInventoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresCertificateStoreInventoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresCertificateStoreInventoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresCertificateStoreInventoryResponse(val *CertificateStoresCertificateStoreInventoryResponse) *NullableCertificateStoresCertificateStoreInventoryResponse { + return &NullableCertificateStoresCertificateStoreInventoryResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoresCertificateStoreInventoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresCertificateStoreInventoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_response.go b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_response.go new file mode 100644 index 0000000..f4b79e0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_certificate_store_response.go @@ -0,0 +1,798 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresCertificateStoreResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresCertificateStoreResponse{} + +// CertificateStoresCertificateStoreResponse struct for CertificateStoresCertificateStoreResponse +type CertificateStoresCertificateStoreResponse struct { + Id *string `json:"Id,omitempty"` + ContainerId NullableInt32 `json:"ContainerId,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + Storepath NullableString `json:"Storepath,omitempty"` + CertStoreInventoryJobId NullableString `json:"CertStoreInventoryJobId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + Approved *bool `json:"Approved,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + AgentAssigned *bool `json:"AgentAssigned,omitempty"` + ContainerName NullableString `json:"ContainerName,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + ReenrollmentStatus *CSSCMSDataModelModelsReenrollmentStatus `json:"ReenrollmentStatus,omitempty"` + SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorSecret `json:"Password,omitempty"` +} + +// NewCertificateStoresCertificateStoreResponse instantiates a new CertificateStoresCertificateStoreResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresCertificateStoreResponse() *CertificateStoresCertificateStoreResponse { + this := CertificateStoresCertificateStoreResponse{} + return &this +} + +// NewCertificateStoresCertificateStoreResponseWithDefaults instantiates a new CertificateStoresCertificateStoreResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresCertificateStoreResponseWithDefaults() *CertificateStoresCertificateStoreResponse { + this := CertificateStoresCertificateStoreResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CertificateStoresCertificateStoreResponse) SetId(v string) { + o.Id = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId.Get()) { + var ret int32 + return ret + } + return *o.ContainerId.Get() +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetContainerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ContainerId.Get(), o.ContainerId.IsSet() +} + +// HasContainerId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasContainerId() bool { + if o != nil && o.ContainerId.IsSet() { + return true + } + + return false +} + +// SetContainerId gets a reference to the given NullableInt32 and assigns it to the ContainerId field. +func (o *CertificateStoresCertificateStoreResponse) SetContainerId(v int32) { + o.ContainerId.Set(&v) +} + +// SetContainerIdNil sets the value for ContainerId to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetContainerIdNil() { + o.ContainerId.Set(nil) +} + +// UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetContainerId() { + o.ContainerId.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CertificateStoresCertificateStoreResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CertificateStoresCertificateStoreResponse) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorepath returns the Storepath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetStorepath() string { + if o == nil || isNil(o.Storepath.Get()) { + var ret string + return ret + } + return *o.Storepath.Get() +} + +// GetStorepathOk returns a tuple with the Storepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetStorepathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Storepath.Get(), o.Storepath.IsSet() +} + +// HasStorepath returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasStorepath() bool { + if o != nil && o.Storepath.IsSet() { + return true + } + + return false +} + +// SetStorepath gets a reference to the given NullableString and assigns it to the Storepath field. +func (o *CertificateStoresCertificateStoreResponse) SetStorepath(v string) { + o.Storepath.Set(&v) +} + +// SetStorepathNil sets the value for Storepath to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetStorepathNil() { + o.Storepath.Set(nil) +} + +// UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetStorepath() { + o.Storepath.Unset() +} + +// GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetCertStoreInventoryJobId() string { + if o == nil || isNil(o.CertStoreInventoryJobId.Get()) { + var ret string + return ret + } + return *o.CertStoreInventoryJobId.Get() +} + +// GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetCertStoreInventoryJobIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStoreInventoryJobId.Get(), o.CertStoreInventoryJobId.IsSet() +} + +// HasCertStoreInventoryJobId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasCertStoreInventoryJobId() bool { + if o != nil && o.CertStoreInventoryJobId.IsSet() { + return true + } + + return false +} + +// SetCertStoreInventoryJobId gets a reference to the given NullableString and assigns it to the CertStoreInventoryJobId field. +func (o *CertificateStoresCertificateStoreResponse) SetCertStoreInventoryJobId(v string) { + o.CertStoreInventoryJobId.Set(&v) +} + +// SetCertStoreInventoryJobIdNil sets the value for CertStoreInventoryJobId to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetCertStoreInventoryJobIdNil() { + o.CertStoreInventoryJobId.Set(nil) +} + +// UnsetCertStoreInventoryJobId ensures that no value is present for CertStoreInventoryJobId, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetCertStoreInventoryJobId() { + o.CertStoreInventoryJobId.Unset() +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CertificateStoresCertificateStoreResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetApproved() bool { + if o == nil || isNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetApprovedOk() (*bool, bool) { + if o == nil || isNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasApproved() bool { + if o != nil && !isNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *CertificateStoresCertificateStoreResponse) SetApproved(v bool) { + o.Approved = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *CertificateStoresCertificateStoreResponse) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CertificateStoresCertificateStoreResponse) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetProperties() { + o.Properties.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CertificateStoresCertificateStoreResponse) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetAgentAssigned returns the AgentAssigned field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetAgentAssigned() bool { + if o == nil || isNil(o.AgentAssigned) { + var ret bool + return ret + } + return *o.AgentAssigned +} + +// GetAgentAssignedOk returns a tuple with the AgentAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetAgentAssignedOk() (*bool, bool) { + if o == nil || isNil(o.AgentAssigned) { + return nil, false + } + return o.AgentAssigned, true +} + +// HasAgentAssigned returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasAgentAssigned() bool { + if o != nil && !isNil(o.AgentAssigned) { + return true + } + + return false +} + +// SetAgentAssigned gets a reference to the given bool and assigns it to the AgentAssigned field. +func (o *CertificateStoresCertificateStoreResponse) SetAgentAssigned(v bool) { + o.AgentAssigned = &v +} + +// GetContainerName returns the ContainerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresCertificateStoreResponse) GetContainerName() string { + if o == nil || isNil(o.ContainerName.Get()) { + var ret string + return ret + } + return *o.ContainerName.Get() +} + +// GetContainerNameOk returns a tuple with the ContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresCertificateStoreResponse) GetContainerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContainerName.Get(), o.ContainerName.IsSet() +} + +// HasContainerName returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasContainerName() bool { + if o != nil && o.ContainerName.IsSet() { + return true + } + + return false +} + +// SetContainerName gets a reference to the given NullableString and assigns it to the ContainerName field. +func (o *CertificateStoresCertificateStoreResponse) SetContainerName(v string) { + o.ContainerName.Set(&v) +} + +// SetContainerNameNil sets the value for ContainerName to be an explicit nil +func (o *CertificateStoresCertificateStoreResponse) SetContainerNameNil() { + o.ContainerName.Set(nil) +} + +// UnsetContainerName ensures that no value is present for ContainerName, not even an explicit nil +func (o *CertificateStoresCertificateStoreResponse) UnsetContainerName() { + o.ContainerName.Unset() +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *CertificateStoresCertificateStoreResponse) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetReenrollmentStatus returns the ReenrollmentStatus field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetReenrollmentStatus() CSSCMSDataModelModelsReenrollmentStatus { + if o == nil || isNil(o.ReenrollmentStatus) { + var ret CSSCMSDataModelModelsReenrollmentStatus + return ret + } + return *o.ReenrollmentStatus +} + +// GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetReenrollmentStatusOk() (*CSSCMSDataModelModelsReenrollmentStatus, bool) { + if o == nil || isNil(o.ReenrollmentStatus) { + return nil, false + } + return o.ReenrollmentStatus, true +} + +// HasReenrollmentStatus returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasReenrollmentStatus() bool { + if o != nil && !isNil(o.ReenrollmentStatus) { + return true + } + + return false +} + +// SetReenrollmentStatus gets a reference to the given CSSCMSDataModelModelsReenrollmentStatus and assigns it to the ReenrollmentStatus field. +func (o *CertificateStoresCertificateStoreResponse) SetReenrollmentStatus(v CSSCMSDataModelModelsReenrollmentStatus) { + o.ReenrollmentStatus = &v +} + +// GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetSetNewPasswordAllowed() bool { + if o == nil || isNil(o.SetNewPasswordAllowed) { + var ret bool + return ret + } + return *o.SetNewPasswordAllowed +} + +// GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetSetNewPasswordAllowedOk() (*bool, bool) { + if o == nil || isNil(o.SetNewPasswordAllowed) { + return nil, false + } + return o.SetNewPasswordAllowed, true +} + +// HasSetNewPasswordAllowed returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasSetNewPasswordAllowed() bool { + if o != nil && !isNil(o.SetNewPasswordAllowed) { + return true + } + + return false +} + +// SetSetNewPasswordAllowed gets a reference to the given bool and assigns it to the SetNewPasswordAllowed field. +func (o *CertificateStoresCertificateStoreResponse) SetSetNewPasswordAllowed(v bool) { + o.SetNewPasswordAllowed = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CertificateStoresCertificateStoreResponse) GetPassword() CSSCMSDataModelModelsKeyfactorSecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorSecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresCertificateStoreResponse) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorSecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CertificateStoresCertificateStoreResponse) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorSecret and assigns it to the Password field. +func (o *CertificateStoresCertificateStoreResponse) SetPassword(v CSSCMSDataModelModelsKeyfactorSecret) { + o.Password = &v +} + +func (o CertificateStoresCertificateStoreResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresCertificateStoreResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ContainerId.IsSet() { + toSerialize["ContainerId"] = o.ContainerId.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.Storepath.IsSet() { + toSerialize["Storepath"] = o.Storepath.Get() + } + if o.CertStoreInventoryJobId.IsSet() { + toSerialize["CertStoreInventoryJobId"] = o.CertStoreInventoryJobId.Get() + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.Approved) { + toSerialize["Approved"] = o.Approved + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if !isNil(o.AgentAssigned) { + toSerialize["AgentAssigned"] = o.AgentAssigned + } + if o.ContainerName.IsSet() { + toSerialize["ContainerName"] = o.ContainerName.Get() + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.ReenrollmentStatus) { + toSerialize["ReenrollmentStatus"] = o.ReenrollmentStatus + } + if !isNil(o.SetNewPasswordAllowed) { + toSerialize["SetNewPasswordAllowed"] = o.SetNewPasswordAllowed + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableCertificateStoresCertificateStoreResponse struct { + value *CertificateStoresCertificateStoreResponse + isSet bool +} + +func (v NullableCertificateStoresCertificateStoreResponse) Get() *CertificateStoresCertificateStoreResponse { + return v.value +} + +func (v *NullableCertificateStoresCertificateStoreResponse) Set(val *CertificateStoresCertificateStoreResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresCertificateStoreResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresCertificateStoreResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresCertificateStoreResponse(val *CertificateStoresCertificateStoreResponse) *NullableCertificateStoresCertificateStoreResponse { + return &NullableCertificateStoresCertificateStoreResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoresCertificateStoreResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresCertificateStoreResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_job_history_response.go b/v24/api/keyfactor/v1/model_certificate_stores_job_history_response.go new file mode 100644 index 0000000..1a9ec49 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_job_history_response.go @@ -0,0 +1,597 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificateStoresJobHistoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresJobHistoryResponse{} + +// CertificateStoresJobHistoryResponse struct for CertificateStoresJobHistoryResponse +type CertificateStoresJobHistoryResponse struct { + JobHistoryId *int64 `json:"JobHistoryId,omitempty"` + AgentMachine NullableString `json:"AgentMachine,omitempty"` + JobId *string `json:"JobId,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobType NullableString `json:"JobType,omitempty"` + OperationStart *time.Time `json:"OperationStart,omitempty"` + OperationEnd NullableTime `json:"OperationEnd,omitempty"` + Message NullableString `json:"Message,omitempty"` + Result *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult `json:"Result,omitempty"` + Status *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus `json:"Status,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` +} + +// NewCertificateStoresJobHistoryResponse instantiates a new CertificateStoresJobHistoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresJobHistoryResponse() *CertificateStoresJobHistoryResponse { + this := CertificateStoresJobHistoryResponse{} + return &this +} + +// NewCertificateStoresJobHistoryResponseWithDefaults instantiates a new CertificateStoresJobHistoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresJobHistoryResponseWithDefaults() *CertificateStoresJobHistoryResponse { + this := CertificateStoresJobHistoryResponse{} + return &this +} + +// GetJobHistoryId returns the JobHistoryId field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetJobHistoryId() int64 { + if o == nil || isNil(o.JobHistoryId) { + var ret int64 + return ret + } + return *o.JobHistoryId +} + +// GetJobHistoryIdOk returns a tuple with the JobHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetJobHistoryIdOk() (*int64, bool) { + if o == nil || isNil(o.JobHistoryId) { + return nil, false + } + return o.JobHistoryId, true +} + +// HasJobHistoryId returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasJobHistoryId() bool { + if o != nil && !isNil(o.JobHistoryId) { + return true + } + + return false +} + +// SetJobHistoryId gets a reference to the given int64 and assigns it to the JobHistoryId field. +func (o *CertificateStoresJobHistoryResponse) SetJobHistoryId(v int64) { + o.JobHistoryId = &v +} + +// GetAgentMachine returns the AgentMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetAgentMachine() string { + if o == nil || isNil(o.AgentMachine.Get()) { + var ret string + return ret + } + return *o.AgentMachine.Get() +} + +// GetAgentMachineOk returns a tuple with the AgentMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetAgentMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentMachine.Get(), o.AgentMachine.IsSet() +} + +// HasAgentMachine returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasAgentMachine() bool { + if o != nil && o.AgentMachine.IsSet() { + return true + } + + return false +} + +// SetAgentMachine gets a reference to the given NullableString and assigns it to the AgentMachine field. +func (o *CertificateStoresJobHistoryResponse) SetAgentMachine(v string) { + o.AgentMachine.Set(&v) +} + +// SetAgentMachineNil sets the value for AgentMachine to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetAgentMachineNil() { + o.AgentMachine.Set(nil) +} + +// UnsetAgentMachine ensures that no value is present for AgentMachine, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetAgentMachine() { + o.AgentMachine.Unset() +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *CertificateStoresJobHistoryResponse) SetJobId(v string) { + o.JobId = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CertificateStoresJobHistoryResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetJobType() string { + if o == nil || isNil(o.JobType.Get()) { + var ret string + return ret + } + return *o.JobType.Get() +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobType.Get(), o.JobType.IsSet() +} + +// HasJobType returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasJobType() bool { + if o != nil && o.JobType.IsSet() { + return true + } + + return false +} + +// SetJobType gets a reference to the given NullableString and assigns it to the JobType field. +func (o *CertificateStoresJobHistoryResponse) SetJobType(v string) { + o.JobType.Set(&v) +} + +// SetJobTypeNil sets the value for JobType to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetJobTypeNil() { + o.JobType.Set(nil) +} + +// UnsetJobType ensures that no value is present for JobType, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetJobType() { + o.JobType.Unset() +} + +// GetOperationStart returns the OperationStart field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetOperationStart() time.Time { + if o == nil || isNil(o.OperationStart) { + var ret time.Time + return ret + } + return *o.OperationStart +} + +// GetOperationStartOk returns a tuple with the OperationStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetOperationStartOk() (*time.Time, bool) { + if o == nil || isNil(o.OperationStart) { + return nil, false + } + return o.OperationStart, true +} + +// HasOperationStart returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasOperationStart() bool { + if o != nil && !isNil(o.OperationStart) { + return true + } + + return false +} + +// SetOperationStart gets a reference to the given time.Time and assigns it to the OperationStart field. +func (o *CertificateStoresJobHistoryResponse) SetOperationStart(v time.Time) { + o.OperationStart = &v +} + +// GetOperationEnd returns the OperationEnd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetOperationEnd() time.Time { + if o == nil || isNil(o.OperationEnd.Get()) { + var ret time.Time + return ret + } + return *o.OperationEnd.Get() +} + +// GetOperationEndOk returns a tuple with the OperationEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetOperationEndOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.OperationEnd.Get(), o.OperationEnd.IsSet() +} + +// HasOperationEnd returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasOperationEnd() bool { + if o != nil && o.OperationEnd.IsSet() { + return true + } + + return false +} + +// SetOperationEnd gets a reference to the given NullableTime and assigns it to the OperationEnd field. +func (o *CertificateStoresJobHistoryResponse) SetOperationEnd(v time.Time) { + o.OperationEnd.Set(&v) +} + +// SetOperationEndNil sets the value for OperationEnd to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetOperationEndNil() { + o.OperationEnd.Set(nil) +} + +// UnsetOperationEnd ensures that no value is present for OperationEnd, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetOperationEnd() { + o.OperationEnd.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CertificateStoresJobHistoryResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetResult() KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult { + if o == nil || isNil(o.Result) { + var ret KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetResultOk() (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult, bool) { + if o == nil || isNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasResult() bool { + if o != nil && !isNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult and assigns it to the Result field. +func (o *CertificateStoresJobHistoryResponse) SetResult(v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) { + o.Result = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CertificateStoresJobHistoryResponse) GetStatus() KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus { + if o == nil || isNil(o.Status) { + var ret KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresJobHistoryResponse) GetStatusOk() (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus and assigns it to the Status field. +func (o *CertificateStoresJobHistoryResponse) SetStatus(v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) { + o.Status = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CertificateStoresJobHistoryResponse) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresJobHistoryResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresJobHistoryResponse) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CertificateStoresJobHistoryResponse) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CertificateStoresJobHistoryResponse) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CertificateStoresJobHistoryResponse) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CertificateStoresJobHistoryResponse) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +func (o CertificateStoresJobHistoryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresJobHistoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobHistoryId) { + toSerialize["JobHistoryId"] = o.JobHistoryId + } + if o.AgentMachine.IsSet() { + toSerialize["AgentMachine"] = o.AgentMachine.Get() + } + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.JobType.IsSet() { + toSerialize["JobType"] = o.JobType.Get() + } + if !isNil(o.OperationStart) { + toSerialize["OperationStart"] = o.OperationStart + } + if o.OperationEnd.IsSet() { + toSerialize["OperationEnd"] = o.OperationEnd.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if !isNil(o.Result) { + toSerialize["Result"] = o.Result + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + return toSerialize, nil +} + +type NullableCertificateStoresJobHistoryResponse struct { + value *CertificateStoresJobHistoryResponse + isSet bool +} + +func (v NullableCertificateStoresJobHistoryResponse) Get() *CertificateStoresJobHistoryResponse { + return v.value +} + +func (v *NullableCertificateStoresJobHistoryResponse) Set(val *CertificateStoresJobHistoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresJobHistoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresJobHistoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresJobHistoryResponse(val *CertificateStoresJobHistoryResponse) *NullableCertificateStoresJobHistoryResponse { + return &NullableCertificateStoresJobHistoryResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoresJobHistoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresJobHistoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_reenrollment_request.go b/v24/api/keyfactor/v1/model_certificate_stores_reenrollment_request.go new file mode 100644 index 0000000..fca5505 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_reenrollment_request.go @@ -0,0 +1,395 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresReenrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresReenrollmentRequest{} + +// CertificateStoresReenrollmentRequest struct for CertificateStoresReenrollmentRequest +type CertificateStoresReenrollmentRequest struct { + KeystoreId *string `json:"KeystoreId,omitempty"` + SubjectName NullableString `json:"SubjectName,omitempty"` + AgentGuid *string `json:"AgentGuid,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + JobProperties map[string]interface{} `json:"JobProperties,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + CertificateTemplate NullableString `json:"CertificateTemplate,omitempty"` +} + +// NewCertificateStoresReenrollmentRequest instantiates a new CertificateStoresReenrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresReenrollmentRequest() *CertificateStoresReenrollmentRequest { + this := CertificateStoresReenrollmentRequest{} + return &this +} + +// NewCertificateStoresReenrollmentRequestWithDefaults instantiates a new CertificateStoresReenrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresReenrollmentRequestWithDefaults() *CertificateStoresReenrollmentRequest { + this := CertificateStoresReenrollmentRequest{} + return &this +} + +// GetKeystoreId returns the KeystoreId field value if set, zero value otherwise. +func (o *CertificateStoresReenrollmentRequest) GetKeystoreId() string { + if o == nil || isNil(o.KeystoreId) { + var ret string + return ret + } + return *o.KeystoreId +} + +// GetKeystoreIdOk returns a tuple with the KeystoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresReenrollmentRequest) GetKeystoreIdOk() (*string, bool) { + if o == nil || isNil(o.KeystoreId) { + return nil, false + } + return o.KeystoreId, true +} + +// HasKeystoreId returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasKeystoreId() bool { + if o != nil && !isNil(o.KeystoreId) { + return true + } + + return false +} + +// SetKeystoreId gets a reference to the given string and assigns it to the KeystoreId field. +func (o *CertificateStoresReenrollmentRequest) SetKeystoreId(v string) { + o.KeystoreId = &v +} + +// GetSubjectName returns the SubjectName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresReenrollmentRequest) GetSubjectName() string { + if o == nil || isNil(o.SubjectName.Get()) { + var ret string + return ret + } + return *o.SubjectName.Get() +} + +// GetSubjectNameOk returns a tuple with the SubjectName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresReenrollmentRequest) GetSubjectNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectName.Get(), o.SubjectName.IsSet() +} + +// HasSubjectName returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasSubjectName() bool { + if o != nil && o.SubjectName.IsSet() { + return true + } + + return false +} + +// SetSubjectName gets a reference to the given NullableString and assigns it to the SubjectName field. +func (o *CertificateStoresReenrollmentRequest) SetSubjectName(v string) { + o.SubjectName.Set(&v) +} + +// SetSubjectNameNil sets the value for SubjectName to be an explicit nil +func (o *CertificateStoresReenrollmentRequest) SetSubjectNameNil() { + o.SubjectName.Set(nil) +} + +// UnsetSubjectName ensures that no value is present for SubjectName, not even an explicit nil +func (o *CertificateStoresReenrollmentRequest) UnsetSubjectName() { + o.SubjectName.Unset() +} + +// GetAgentGuid returns the AgentGuid field value if set, zero value otherwise. +func (o *CertificateStoresReenrollmentRequest) GetAgentGuid() string { + if o == nil || isNil(o.AgentGuid) { + var ret string + return ret + } + return *o.AgentGuid +} + +// GetAgentGuidOk returns a tuple with the AgentGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresReenrollmentRequest) GetAgentGuidOk() (*string, bool) { + if o == nil || isNil(o.AgentGuid) { + return nil, false + } + return o.AgentGuid, true +} + +// HasAgentGuid returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasAgentGuid() bool { + if o != nil && !isNil(o.AgentGuid) { + return true + } + + return false +} + +// SetAgentGuid gets a reference to the given string and assigns it to the AgentGuid field. +func (o *CertificateStoresReenrollmentRequest) SetAgentGuid(v string) { + o.AgentGuid = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresReenrollmentRequest) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresReenrollmentRequest) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CertificateStoresReenrollmentRequest) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CertificateStoresReenrollmentRequest) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CertificateStoresReenrollmentRequest) UnsetAlias() { + o.Alias.Unset() +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresReenrollmentRequest) GetJobProperties() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresReenrollmentRequest) GetJobPropertiesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.JobProperties) { + return map[string]interface{}{}, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasJobProperties() bool { + if o != nil && isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given map[string]interface{} and assigns it to the JobProperties field. +func (o *CertificateStoresReenrollmentRequest) SetJobProperties(v map[string]interface{}) { + o.JobProperties = v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresReenrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresReenrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *CertificateStoresReenrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *CertificateStoresReenrollmentRequest) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *CertificateStoresReenrollmentRequest) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetCertificateTemplate returns the CertificateTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresReenrollmentRequest) GetCertificateTemplate() string { + if o == nil || isNil(o.CertificateTemplate.Get()) { + var ret string + return ret + } + return *o.CertificateTemplate.Get() +} + +// GetCertificateTemplateOk returns a tuple with the CertificateTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresReenrollmentRequest) GetCertificateTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateTemplate.Get(), o.CertificateTemplate.IsSet() +} + +// HasCertificateTemplate returns a boolean if a field has been set. +func (o *CertificateStoresReenrollmentRequest) HasCertificateTemplate() bool { + if o != nil && o.CertificateTemplate.IsSet() { + return true + } + + return false +} + +// SetCertificateTemplate gets a reference to the given NullableString and assigns it to the CertificateTemplate field. +func (o *CertificateStoresReenrollmentRequest) SetCertificateTemplate(v string) { + o.CertificateTemplate.Set(&v) +} + +// SetCertificateTemplateNil sets the value for CertificateTemplate to be an explicit nil +func (o *CertificateStoresReenrollmentRequest) SetCertificateTemplateNil() { + o.CertificateTemplate.Set(nil) +} + +// UnsetCertificateTemplate ensures that no value is present for CertificateTemplate, not even an explicit nil +func (o *CertificateStoresReenrollmentRequest) UnsetCertificateTemplate() { + o.CertificateTemplate.Unset() +} + +func (o CertificateStoresReenrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresReenrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeystoreId) { + toSerialize["KeystoreId"] = o.KeystoreId + } + if o.SubjectName.IsSet() { + toSerialize["SubjectName"] = o.SubjectName.Get() + } + if !isNil(o.AgentGuid) { + toSerialize["AgentGuid"] = o.AgentGuid + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if o.JobProperties != nil { + toSerialize["JobProperties"] = o.JobProperties + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if o.CertificateTemplate.IsSet() { + toSerialize["CertificateTemplate"] = o.CertificateTemplate.Get() + } + return toSerialize, nil +} + +type NullableCertificateStoresReenrollmentRequest struct { + value *CertificateStoresReenrollmentRequest + isSet bool +} + +func (v NullableCertificateStoresReenrollmentRequest) Get() *CertificateStoresReenrollmentRequest { + return v.value +} + +func (v *NullableCertificateStoresReenrollmentRequest) Set(val *CertificateStoresReenrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresReenrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresReenrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresReenrollmentRequest(val *CertificateStoresReenrollmentRequest) *NullableCertificateStoresReenrollmentRequest { + return &NullableCertificateStoresReenrollmentRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresReenrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresReenrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_remove_certificate_request.go b/v24/api/keyfactor/v1/model_certificate_stores_remove_certificate_request.go new file mode 100644 index 0000000..71d45cd --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_remove_certificate_request.go @@ -0,0 +1,199 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresRemoveCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresRemoveCertificateRequest{} + +// CertificateStoresRemoveCertificateRequest struct for CertificateStoresRemoveCertificateRequest +type CertificateStoresRemoveCertificateRequest struct { + CertificateStores []CSSCMSDataModelModelsCertificateLocationSpecifier `json:"CertificateStores"` + Schedule KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule"` + CollectionId NullableInt32 `json:"CollectionId,omitempty"` +} + +// NewCertificateStoresRemoveCertificateRequest instantiates a new CertificateStoresRemoveCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresRemoveCertificateRequest(certificateStores []CSSCMSDataModelModelsCertificateLocationSpecifier, schedule KeyfactorCommonSchedulingKeyfactorSchedule) *CertificateStoresRemoveCertificateRequest { + this := CertificateStoresRemoveCertificateRequest{} + this.CertificateStores = certificateStores + this.Schedule = schedule + return &this +} + +// NewCertificateStoresRemoveCertificateRequestWithDefaults instantiates a new CertificateStoresRemoveCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresRemoveCertificateRequestWithDefaults() *CertificateStoresRemoveCertificateRequest { + this := CertificateStoresRemoveCertificateRequest{} + return &this +} + +// GetCertificateStores returns the CertificateStores field value +func (o *CertificateStoresRemoveCertificateRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateLocationSpecifier { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateLocationSpecifier + return ret + } + + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresRemoveCertificateRequest) GetCertificateStoresOk() ([]CSSCMSDataModelModelsCertificateLocationSpecifier, bool) { + if o == nil { + return nil, false + } + return o.CertificateStores, true +} + +// SetCertificateStores sets field value +func (o *CertificateStoresRemoveCertificateRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateLocationSpecifier) { + o.CertificateStores = v +} + +// GetSchedule returns the Schedule field value +func (o *CertificateStoresRemoveCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresRemoveCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *CertificateStoresRemoveCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresRemoveCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId.Get()) { + var ret int32 + return ret + } + return *o.CollectionId.Get() +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresRemoveCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CollectionId.Get(), o.CollectionId.IsSet() +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *CertificateStoresRemoveCertificateRequest) HasCollectionId() bool { + if o != nil && o.CollectionId.IsSet() { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given NullableInt32 and assigns it to the CollectionId field. +func (o *CertificateStoresRemoveCertificateRequest) SetCollectionId(v int32) { + o.CollectionId.Set(&v) +} + +// SetCollectionIdNil sets the value for CollectionId to be an explicit nil +func (o *CertificateStoresRemoveCertificateRequest) SetCollectionIdNil() { + o.CollectionId.Set(nil) +} + +// UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil +func (o *CertificateStoresRemoveCertificateRequest) UnsetCollectionId() { + o.CollectionId.Unset() +} + +func (o CertificateStoresRemoveCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresRemoveCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateStores"] = o.CertificateStores + toSerialize["Schedule"] = o.Schedule + if o.CollectionId.IsSet() { + toSerialize["CollectionId"] = o.CollectionId.Get() + } + return toSerialize, nil +} + +type NullableCertificateStoresRemoveCertificateRequest struct { + value *CertificateStoresRemoveCertificateRequest + isSet bool +} + +func (v NullableCertificateStoresRemoveCertificateRequest) Get() *CertificateStoresRemoveCertificateRequest { + return v.value +} + +func (v *NullableCertificateStoresRemoveCertificateRequest) Set(val *CertificateStoresRemoveCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresRemoveCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresRemoveCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresRemoveCertificateRequest(val *CertificateStoresRemoveCertificateRequest) *NullableCertificateStoresRemoveCertificateRequest { + return &NullableCertificateStoresRemoveCertificateRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresRemoveCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresRemoveCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_creation_request.go b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_creation_request.go new file mode 100644 index 0000000..0b02b4b --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_creation_request.go @@ -0,0 +1,1003 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresTypesCertificateStoreTypeCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresTypesCertificateStoreTypeCreationRequest{} + +// CertificateStoresTypesCertificateStoreTypeCreationRequest struct for CertificateStoresTypesCertificateStoreTypeCreationRequest +type CertificateStoresTypesCertificateStoreTypeCreationRequest struct { + Name string `json:"Name"` + ShortName string `json:"ShortName"` + Capability NullableString `json:"Capability,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *CSSCMSDataModelModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []CSSCMSDataModelModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + PasswordOptions *CSSCMSDataModelModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType NullableString `json:"StorePathType,omitempty"` + StorePathValue NullableString `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *CSSCMSCoreEnumsCertStorePrivateKey `json:"PrivateKeyAllowed,omitempty"` + CertificateFormat *CSSCMSCoreEnumsCertificateFormat `json:"CertificateFormat,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias `json:"CustomAliasAllowed,omitempty"` + ServerRegistration NullableInt32 `json:"ServerRegistration,omitempty"` + InventoryEndpoint NullableString `json:"InventoryEndpoint,omitempty"` + InventoryJobTypeId *string `json:"InventoryJobTypeId,omitempty"` + ManagementJobTypeId NullableString `json:"ManagementJobTypeId,omitempty"` + DiscoveryJobTypeId NullableString `json:"DiscoveryJobTypeId,omitempty"` + EnrollmentJobTypeId NullableString `json:"EnrollmentJobTypeId,omitempty"` + // Deprecated + JobProperties []string `json:"JobProperties,omitempty"` + EntryParameters []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` +} + +// NewCertificateStoresTypesCertificateStoreTypeCreationRequest instantiates a new CertificateStoresTypesCertificateStoreTypeCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresTypesCertificateStoreTypeCreationRequest(name string, shortName string) *CertificateStoresTypesCertificateStoreTypeCreationRequest { + this := CertificateStoresTypesCertificateStoreTypeCreationRequest{} + this.Name = name + this.ShortName = shortName + return &this +} + +// NewCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults() *CertificateStoresTypesCertificateStoreTypeCreationRequest { + this := CertificateStoresTypesCertificateStoreTypeCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetName(v string) { + o.Name = v +} + +// GetShortName returns the ShortName field value +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortName() string { + if o == nil { + var ret string + return ret + } + + return o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ShortName, true +} + +// SetShortName sets field value +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetShortName(v string) { + o.ShortName = v +} + +// GetCapability returns the Capability field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapability() string { + if o == nil || isNil(o.Capability.Get()) { + var ret string + return ret + } + return *o.Capability.Get() +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapabilityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Capability.Get(), o.Capability.IsSet() +} + +// HasCapability returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCapability() bool { + if o != nil && o.Capability.IsSet() { + return true + } + + return false +} + +// SetCapability gets a reference to the given NullableString and assigns it to the Capability field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapability(v string) { + o.Capability.Set(&v) +} + +// SetCapabilityNil sets the value for Capability to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapabilityNil() { + o.Capability.Set(nil) +} + +// UnsetCapability ensures that no value is present for Capability, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetCapability() { + o.Capability.Unset() +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret CSSCMSDataModelModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given CSSCMSDataModelModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPropertiesOk() ([]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret CSSCMSDataModelModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given CSSCMSDataModelModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathType() string { + if o == nil || isNil(o.StorePathType.Get()) { + var ret string + return ret + } + return *o.StorePathType.Get() +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathType.Get(), o.StorePathType.IsSet() +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathType() bool { + if o != nil && o.StorePathType.IsSet() { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given NullableString and assigns it to the StorePathType field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathType(v string) { + o.StorePathType.Set(&v) +} + +// SetStorePathTypeNil sets the value for StorePathType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathTypeNil() { + o.StorePathType.Set(nil) +} + +// UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetStorePathType() { + o.StorePathType.Unset() +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue.Get()) { + var ret string + return ret + } + return *o.StorePathValue.Get() +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathValue.Get(), o.StorePathValue.IsSet() +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathValue() bool { + if o != nil && o.StorePathValue.IsSet() { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given NullableString and assigns it to the StorePathValue field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValue(v string) { + o.StorePathValue.Set(&v) +} + +// SetStorePathValueNil sets the value for StorePathValue to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValueNil() { + o.StorePathValue.Set(nil) +} + +// UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetStorePathValue() { + o.StorePathValue.Unset() +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret CSSCMSCoreEnumsCertStorePrivateKey + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given CSSCMSCoreEnumsCertStorePrivateKey and assigns it to the PrivateKeyAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey) { + o.PrivateKeyAllowed = &v +} + +// GetCertificateFormat returns the CertificateFormat field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat { + if o == nil || isNil(o.CertificateFormat) { + var ret CSSCMSCoreEnumsCertificateFormat + return ret + } + return *o.CertificateFormat +} + +// GetCertificateFormatOk returns a tuple with the CertificateFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool) { + if o == nil || isNil(o.CertificateFormat) { + return nil, false + } + return o.CertificateFormat, true +} + +// HasCertificateFormat returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCertificateFormat() bool { + if o != nil && !isNil(o.CertificateFormat) { + return true + } + + return false +} + +// SetCertificateFormat gets a reference to the given CSSCMSCoreEnumsCertificateFormat and assigns it to the CertificateFormat field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat) { + o.CertificateFormat = &v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias and assigns it to the CustomAliasAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) { + o.CustomAliasAllowed = &v +} + +// GetServerRegistration returns the ServerRegistration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistration() int32 { + if o == nil || isNil(o.ServerRegistration.Get()) { + var ret int32 + return ret + } + return *o.ServerRegistration.Get() +} + +// GetServerRegistrationOk returns a tuple with the ServerRegistration field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistrationOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ServerRegistration.Get(), o.ServerRegistration.IsSet() +} + +// HasServerRegistration returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRegistration() bool { + if o != nil && o.ServerRegistration.IsSet() { + return true + } + + return false +} + +// SetServerRegistration gets a reference to the given NullableInt32 and assigns it to the ServerRegistration field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistration(v int32) { + o.ServerRegistration.Set(&v) +} + +// SetServerRegistrationNil sets the value for ServerRegistration to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistrationNil() { + o.ServerRegistration.Set(nil) +} + +// UnsetServerRegistration ensures that no value is present for ServerRegistration, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetServerRegistration() { + o.ServerRegistration.Unset() +} + +// GetInventoryEndpoint returns the InventoryEndpoint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpoint() string { + if o == nil || isNil(o.InventoryEndpoint.Get()) { + var ret string + return ret + } + return *o.InventoryEndpoint.Get() +} + +// GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InventoryEndpoint.Get(), o.InventoryEndpoint.IsSet() +} + +// HasInventoryEndpoint returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryEndpoint() bool { + if o != nil && o.InventoryEndpoint.IsSet() { + return true + } + + return false +} + +// SetInventoryEndpoint gets a reference to the given NullableString and assigns it to the InventoryEndpoint field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpoint(v string) { + o.InventoryEndpoint.Set(&v) +} + +// SetInventoryEndpointNil sets the value for InventoryEndpoint to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpointNil() { + o.InventoryEndpoint.Set(nil) +} + +// UnsetInventoryEndpoint ensures that no value is present for InventoryEndpoint, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetInventoryEndpoint() { + o.InventoryEndpoint.Unset() +} + +// GetInventoryJobTypeId returns the InventoryJobTypeId field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeId() string { + if o == nil || isNil(o.InventoryJobTypeId) { + var ret string + return ret + } + return *o.InventoryJobTypeId +} + +// GetInventoryJobTypeIdOk returns a tuple with the InventoryJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.InventoryJobTypeId) { + return nil, false + } + return o.InventoryJobTypeId, true +} + +// HasInventoryJobTypeId returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryJobTypeId() bool { + if o != nil && !isNil(o.InventoryJobTypeId) { + return true + } + + return false +} + +// SetInventoryJobTypeId gets a reference to the given string and assigns it to the InventoryJobTypeId field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryJobTypeId(v string) { + o.InventoryJobTypeId = &v +} + +// GetManagementJobTypeId returns the ManagementJobTypeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeId() string { + if o == nil || isNil(o.ManagementJobTypeId.Get()) { + var ret string + return ret + } + return *o.ManagementJobTypeId.Get() +} + +// GetManagementJobTypeIdOk returns a tuple with the ManagementJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ManagementJobTypeId.Get(), o.ManagementJobTypeId.IsSet() +} + +// HasManagementJobTypeId returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasManagementJobTypeId() bool { + if o != nil && o.ManagementJobTypeId.IsSet() { + return true + } + + return false +} + +// SetManagementJobTypeId gets a reference to the given NullableString and assigns it to the ManagementJobTypeId field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeId(v string) { + o.ManagementJobTypeId.Set(&v) +} + +// SetManagementJobTypeIdNil sets the value for ManagementJobTypeId to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeIdNil() { + o.ManagementJobTypeId.Set(nil) +} + +// UnsetManagementJobTypeId ensures that no value is present for ManagementJobTypeId, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetManagementJobTypeId() { + o.ManagementJobTypeId.Unset() +} + +// GetDiscoveryJobTypeId returns the DiscoveryJobTypeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeId() string { + if o == nil || isNil(o.DiscoveryJobTypeId.Get()) { + var ret string + return ret + } + return *o.DiscoveryJobTypeId.Get() +} + +// GetDiscoveryJobTypeIdOk returns a tuple with the DiscoveryJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DiscoveryJobTypeId.Get(), o.DiscoveryJobTypeId.IsSet() +} + +// HasDiscoveryJobTypeId returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasDiscoveryJobTypeId() bool { + if o != nil && o.DiscoveryJobTypeId.IsSet() { + return true + } + + return false +} + +// SetDiscoveryJobTypeId gets a reference to the given NullableString and assigns it to the DiscoveryJobTypeId field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeId(v string) { + o.DiscoveryJobTypeId.Set(&v) +} + +// SetDiscoveryJobTypeIdNil sets the value for DiscoveryJobTypeId to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeIdNil() { + o.DiscoveryJobTypeId.Set(nil) +} + +// UnsetDiscoveryJobTypeId ensures that no value is present for DiscoveryJobTypeId, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetDiscoveryJobTypeId() { + o.DiscoveryJobTypeId.Unset() +} + +// GetEnrollmentJobTypeId returns the EnrollmentJobTypeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeId() string { + if o == nil || isNil(o.EnrollmentJobTypeId.Get()) { + var ret string + return ret + } + return *o.EnrollmentJobTypeId.Get() +} + +// GetEnrollmentJobTypeIdOk returns a tuple with the EnrollmentJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EnrollmentJobTypeId.Get(), o.EnrollmentJobTypeId.IsSet() +} + +// HasEnrollmentJobTypeId returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasEnrollmentJobTypeId() bool { + if o != nil && o.EnrollmentJobTypeId.IsSet() { + return true + } + + return false +} + +// SetEnrollmentJobTypeId gets a reference to the given NullableString and assigns it to the EnrollmentJobTypeId field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeId(v string) { + o.EnrollmentJobTypeId.Set(&v) +} + +// SetEnrollmentJobTypeIdNil sets the value for EnrollmentJobTypeId to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeIdNil() { + o.EnrollmentJobTypeId.Set(nil) +} + +// UnsetEnrollmentJobTypeId ensures that no value is present for EnrollmentJobTypeId, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) UnsetEnrollmentJobTypeId() { + o.EnrollmentJobTypeId.Unset() +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetJobProperties() []string { + if o == nil { + var ret []string + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetJobPropertiesOk() ([]string, bool) { + if o == nil || isNil(o.JobProperties) { + return nil, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasJobProperties() bool { + if o != nil && isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given []string and assigns it to the JobProperties field. +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetJobProperties(v []string) { + o.JobProperties = v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParametersOk() ([]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) HasEntryParameters() bool { + if o != nil && isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *CertificateStoresTypesCertificateStoreTypeCreationRequest) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o CertificateStoresTypesCertificateStoreTypeCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresTypesCertificateStoreTypeCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["ShortName"] = o.ShortName + if o.Capability.IsSet() { + toSerialize["Capability"] = o.Capability.Get() + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if o.StorePathType.IsSet() { + toSerialize["StorePathType"] = o.StorePathType.Get() + } + if o.StorePathValue.IsSet() { + toSerialize["StorePathValue"] = o.StorePathValue.Get() + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + if !isNil(o.CertificateFormat) { + toSerialize["CertificateFormat"] = o.CertificateFormat + } + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if o.ServerRegistration.IsSet() { + toSerialize["ServerRegistration"] = o.ServerRegistration.Get() + } + if o.InventoryEndpoint.IsSet() { + toSerialize["InventoryEndpoint"] = o.InventoryEndpoint.Get() + } + if !isNil(o.InventoryJobTypeId) { + toSerialize["InventoryJobTypeId"] = o.InventoryJobTypeId + } + if o.ManagementJobTypeId.IsSet() { + toSerialize["ManagementJobTypeId"] = o.ManagementJobTypeId.Get() + } + if o.DiscoveryJobTypeId.IsSet() { + toSerialize["DiscoveryJobTypeId"] = o.DiscoveryJobTypeId.Get() + } + if o.EnrollmentJobTypeId.IsSet() { + toSerialize["EnrollmentJobTypeId"] = o.EnrollmentJobTypeId.Get() + } + if o.JobProperties != nil { + toSerialize["JobProperties"] = o.JobProperties + } + if o.EntryParameters != nil { + toSerialize["EntryParameters"] = o.EntryParameters + } + return toSerialize, nil +} + +type NullableCertificateStoresTypesCertificateStoreTypeCreationRequest struct { + value *CertificateStoresTypesCertificateStoreTypeCreationRequest + isSet bool +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) Get() *CertificateStoresTypesCertificateStoreTypeCreationRequest { + return v.value +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) Set(val *CertificateStoresTypesCertificateStoreTypeCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresTypesCertificateStoreTypeCreationRequest(val *CertificateStoresTypesCertificateStoreTypeCreationRequest) *NullableCertificateStoresTypesCertificateStoreTypeCreationRequest { + return &NullableCertificateStoresTypesCertificateStoreTypeCreationRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_response.go b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_response.go new file mode 100644 index 0000000..2966bfe --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_response.go @@ -0,0 +1,1133 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresTypesCertificateStoreTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresTypesCertificateStoreTypeResponse{} + +// CertificateStoresTypesCertificateStoreTypeResponse struct for CertificateStoresTypesCertificateStoreTypeResponse +type CertificateStoresTypesCertificateStoreTypeResponse struct { + Name NullableString `json:"Name,omitempty"` + ShortName NullableString `json:"ShortName,omitempty"` + Capability NullableString `json:"Capability,omitempty"` + StoreType NullableInt32 `json:"StoreType,omitempty"` + ImportType NullableInt32 `json:"ImportType,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *CSSCMSDataModelModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []CSSCMSDataModelModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + EntryParameters []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` + PasswordOptions *CSSCMSDataModelModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType NullableString `json:"StorePathType,omitempty"` + StorePathValue NullableString `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *CSSCMSCoreEnumsCertStorePrivateKey `json:"PrivateKeyAllowed,omitempty"` + CertificateFormat *CSSCMSCoreEnumsCertificateFormat `json:"CertificateFormat,omitempty"` + JobProperties []string `json:"JobProperties,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias `json:"CustomAliasAllowed,omitempty"` + ServerRegistration NullableInt32 `json:"ServerRegistration,omitempty"` + InventoryEndpoint NullableString `json:"InventoryEndpoint,omitempty"` + InventoryJobType *string `json:"InventoryJobType,omitempty"` + ManagementJobType NullableString `json:"ManagementJobType,omitempty"` + DiscoveryJobType NullableString `json:"DiscoveryJobType,omitempty"` + EnrollmentJobType NullableString `json:"EnrollmentJobType,omitempty"` +} + +// NewCertificateStoresTypesCertificateStoreTypeResponse instantiates a new CertificateStoresTypesCertificateStoreTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresTypesCertificateStoreTypeResponse() *CertificateStoresTypesCertificateStoreTypeResponse { + this := CertificateStoresTypesCertificateStoreTypeResponse{} + return &this +} + +// NewCertificateStoresTypesCertificateStoreTypeResponseWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresTypesCertificateStoreTypeResponseWithDefaults() *CertificateStoresTypesCertificateStoreTypeResponse { + this := CertificateStoresTypesCertificateStoreTypeResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetName() { + o.Name.Unset() +} + +// GetShortName returns the ShortName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetShortName() string { + if o == nil || isNil(o.ShortName.Get()) { + var ret string + return ret + } + return *o.ShortName.Get() +} + +// GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ShortName.Get(), o.ShortName.IsSet() +} + +// HasShortName returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasShortName() bool { + if o != nil && o.ShortName.IsSet() { + return true + } + + return false +} + +// SetShortName gets a reference to the given NullableString and assigns it to the ShortName field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetShortName(v string) { + o.ShortName.Set(&v) +} + +// SetShortNameNil sets the value for ShortName to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetShortNameNil() { + o.ShortName.Set(nil) +} + +// UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetShortName() { + o.ShortName.Unset() +} + +// GetCapability returns the Capability field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCapability() string { + if o == nil || isNil(o.Capability.Get()) { + var ret string + return ret + } + return *o.Capability.Get() +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCapabilityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Capability.Get(), o.Capability.IsSet() +} + +// HasCapability returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCapability() bool { + if o != nil && o.Capability.IsSet() { + return true + } + + return false +} + +// SetCapability gets a reference to the given NullableString and assigns it to the Capability field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCapability(v string) { + o.Capability.Set(&v) +} + +// SetCapabilityNil sets the value for Capability to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCapabilityNil() { + o.Capability.Set(nil) +} + +// UnsetCapability ensures that no value is present for Capability, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetCapability() { + o.Capability.Unset() +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStoreType() int32 { + if o == nil || isNil(o.StoreType.Get()) { + var ret int32 + return ret + } + return *o.StoreType.Get() +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStoreTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StoreType.Get(), o.StoreType.IsSet() +} + +// HasStoreType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStoreType() bool { + if o != nil && o.StoreType.IsSet() { + return true + } + + return false +} + +// SetStoreType gets a reference to the given NullableInt32 and assigns it to the StoreType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStoreType(v int32) { + o.StoreType.Set(&v) +} + +// SetStoreTypeNil sets the value for StoreType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStoreTypeNil() { + o.StoreType.Set(nil) +} + +// UnsetStoreType ensures that no value is present for StoreType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStoreType() { + o.StoreType.Unset() +} + +// GetImportType returns the ImportType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetImportType() int32 { + if o == nil || isNil(o.ImportType.Get()) { + var ret int32 + return ret + } + return *o.ImportType.Get() +} + +// GetImportTypeOk returns a tuple with the ImportType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetImportTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ImportType.Get(), o.ImportType.IsSet() +} + +// HasImportType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasImportType() bool { + if o != nil && o.ImportType.IsSet() { + return true + } + + return false +} + +// SetImportType gets a reference to the given NullableInt32 and assigns it to the ImportType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetImportType(v int32) { + o.ImportType.Set(&v) +} + +// SetImportTypeNil sets the value for ImportType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetImportTypeNil() { + o.ImportType.Set(nil) +} + +// UnsetImportType ensures that no value is present for ImportType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetImportType() { + o.ImportType.Unset() +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret CSSCMSDataModelModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given CSSCMSDataModelModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPropertiesOk() ([]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEntryParametersOk() ([]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasEntryParameters() bool { + if o != nil && isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret CSSCMSDataModelModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given CSSCMSDataModelModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathType() string { + if o == nil || isNil(o.StorePathType.Get()) { + var ret string + return ret + } + return *o.StorePathType.Get() +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathType.Get(), o.StorePathType.IsSet() +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStorePathType() bool { + if o != nil && o.StorePathType.IsSet() { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given NullableString and assigns it to the StorePathType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathType(v string) { + o.StorePathType.Set(&v) +} + +// SetStorePathTypeNil sets the value for StorePathType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathTypeNil() { + o.StorePathType.Set(nil) +} + +// UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStorePathType() { + o.StorePathType.Unset() +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue.Get()) { + var ret string + return ret + } + return *o.StorePathValue.Get() +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathValue.Get(), o.StorePathValue.IsSet() +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasStorePathValue() bool { + if o != nil && o.StorePathValue.IsSet() { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given NullableString and assigns it to the StorePathValue field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValue(v string) { + o.StorePathValue.Set(&v) +} + +// SetStorePathValueNil sets the value for StorePathValue to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValueNil() { + o.StorePathValue.Set(nil) +} + +// UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetStorePathValue() { + o.StorePathValue.Unset() +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret CSSCMSCoreEnumsCertStorePrivateKey + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given CSSCMSCoreEnumsCertStorePrivateKey and assigns it to the PrivateKeyAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey) { + o.PrivateKeyAllowed = &v +} + +// GetCertificateFormat returns the CertificateFormat field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat { + if o == nil || isNil(o.CertificateFormat) { + var ret CSSCMSCoreEnumsCertificateFormat + return ret + } + return *o.CertificateFormat +} + +// GetCertificateFormatOk returns a tuple with the CertificateFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool) { + if o == nil || isNil(o.CertificateFormat) { + return nil, false + } + return o.CertificateFormat, true +} + +// HasCertificateFormat returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCertificateFormat() bool { + if o != nil && !isNil(o.CertificateFormat) { + return true + } + + return false +} + +// SetCertificateFormat gets a reference to the given CSSCMSCoreEnumsCertificateFormat and assigns it to the CertificateFormat field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat) { + o.CertificateFormat = &v +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetJobProperties() []string { + if o == nil { + var ret []string + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetJobPropertiesOk() ([]string, bool) { + if o == nil || isNil(o.JobProperties) { + return nil, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasJobProperties() bool { + if o != nil && isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given []string and assigns it to the JobProperties field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetJobProperties(v []string) { + o.JobProperties = v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias and assigns it to the CustomAliasAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) { + o.CustomAliasAllowed = &v +} + +// GetServerRegistration returns the ServerRegistration field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistration() int32 { + if o == nil || isNil(o.ServerRegistration.Get()) { + var ret int32 + return ret + } + return *o.ServerRegistration.Get() +} + +// GetServerRegistrationOk returns a tuple with the ServerRegistration field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistrationOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ServerRegistration.Get(), o.ServerRegistration.IsSet() +} + +// HasServerRegistration returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasServerRegistration() bool { + if o != nil && o.ServerRegistration.IsSet() { + return true + } + + return false +} + +// SetServerRegistration gets a reference to the given NullableInt32 and assigns it to the ServerRegistration field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistration(v int32) { + o.ServerRegistration.Set(&v) +} + +// SetServerRegistrationNil sets the value for ServerRegistration to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistrationNil() { + o.ServerRegistration.Set(nil) +} + +// UnsetServerRegistration ensures that no value is present for ServerRegistration, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetServerRegistration() { + o.ServerRegistration.Unset() +} + +// GetInventoryEndpoint returns the InventoryEndpoint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpoint() string { + if o == nil || isNil(o.InventoryEndpoint.Get()) { + var ret string + return ret + } + return *o.InventoryEndpoint.Get() +} + +// GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InventoryEndpoint.Get(), o.InventoryEndpoint.IsSet() +} + +// HasInventoryEndpoint returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasInventoryEndpoint() bool { + if o != nil && o.InventoryEndpoint.IsSet() { + return true + } + + return false +} + +// SetInventoryEndpoint gets a reference to the given NullableString and assigns it to the InventoryEndpoint field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpoint(v string) { + o.InventoryEndpoint.Set(&v) +} + +// SetInventoryEndpointNil sets the value for InventoryEndpoint to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpointNil() { + o.InventoryEndpoint.Set(nil) +} + +// UnsetInventoryEndpoint ensures that no value is present for InventoryEndpoint, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetInventoryEndpoint() { + o.InventoryEndpoint.Unset() +} + +// GetInventoryJobType returns the InventoryJobType field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobType() string { + if o == nil || isNil(o.InventoryJobType) { + var ret string + return ret + } + return *o.InventoryJobType +} + +// GetInventoryJobTypeOk returns a tuple with the InventoryJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobTypeOk() (*string, bool) { + if o == nil || isNil(o.InventoryJobType) { + return nil, false + } + return o.InventoryJobType, true +} + +// HasInventoryJobType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasInventoryJobType() bool { + if o != nil && !isNil(o.InventoryJobType) { + return true + } + + return false +} + +// SetInventoryJobType gets a reference to the given string and assigns it to the InventoryJobType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetInventoryJobType(v string) { + o.InventoryJobType = &v +} + +// GetManagementJobType returns the ManagementJobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobType() string { + if o == nil || isNil(o.ManagementJobType.Get()) { + var ret string + return ret + } + return *o.ManagementJobType.Get() +} + +// GetManagementJobTypeOk returns a tuple with the ManagementJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ManagementJobType.Get(), o.ManagementJobType.IsSet() +} + +// HasManagementJobType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasManagementJobType() bool { + if o != nil && o.ManagementJobType.IsSet() { + return true + } + + return false +} + +// SetManagementJobType gets a reference to the given NullableString and assigns it to the ManagementJobType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobType(v string) { + o.ManagementJobType.Set(&v) +} + +// SetManagementJobTypeNil sets the value for ManagementJobType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobTypeNil() { + o.ManagementJobType.Set(nil) +} + +// UnsetManagementJobType ensures that no value is present for ManagementJobType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetManagementJobType() { + o.ManagementJobType.Unset() +} + +// GetDiscoveryJobType returns the DiscoveryJobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobType() string { + if o == nil || isNil(o.DiscoveryJobType.Get()) { + var ret string + return ret + } + return *o.DiscoveryJobType.Get() +} + +// GetDiscoveryJobTypeOk returns a tuple with the DiscoveryJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DiscoveryJobType.Get(), o.DiscoveryJobType.IsSet() +} + +// HasDiscoveryJobType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasDiscoveryJobType() bool { + if o != nil && o.DiscoveryJobType.IsSet() { + return true + } + + return false +} + +// SetDiscoveryJobType gets a reference to the given NullableString and assigns it to the DiscoveryJobType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobType(v string) { + o.DiscoveryJobType.Set(&v) +} + +// SetDiscoveryJobTypeNil sets the value for DiscoveryJobType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobTypeNil() { + o.DiscoveryJobType.Set(nil) +} + +// UnsetDiscoveryJobType ensures that no value is present for DiscoveryJobType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetDiscoveryJobType() { + o.DiscoveryJobType.Unset() +} + +// GetEnrollmentJobType returns the EnrollmentJobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobType() string { + if o == nil || isNil(o.EnrollmentJobType.Get()) { + var ret string + return ret + } + return *o.EnrollmentJobType.Get() +} + +// GetEnrollmentJobTypeOk returns a tuple with the EnrollmentJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EnrollmentJobType.Get(), o.EnrollmentJobType.IsSet() +} + +// HasEnrollmentJobType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) HasEnrollmentJobType() bool { + if o != nil && o.EnrollmentJobType.IsSet() { + return true + } + + return false +} + +// SetEnrollmentJobType gets a reference to the given NullableString and assigns it to the EnrollmentJobType field. +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobType(v string) { + o.EnrollmentJobType.Set(&v) +} + +// SetEnrollmentJobTypeNil sets the value for EnrollmentJobType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobTypeNil() { + o.EnrollmentJobType.Set(nil) +} + +// UnsetEnrollmentJobType ensures that no value is present for EnrollmentJobType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeResponse) UnsetEnrollmentJobType() { + o.EnrollmentJobType.Unset() +} + +func (o CertificateStoresTypesCertificateStoreTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresTypesCertificateStoreTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.ShortName.IsSet() { + toSerialize["ShortName"] = o.ShortName.Get() + } + if o.Capability.IsSet() { + toSerialize["Capability"] = o.Capability.Get() + } + if o.StoreType.IsSet() { + toSerialize["StoreType"] = o.StoreType.Get() + } + if o.ImportType.IsSet() { + toSerialize["ImportType"] = o.ImportType.Get() + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + if o.EntryParameters != nil { + toSerialize["EntryParameters"] = o.EntryParameters + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if o.StorePathType.IsSet() { + toSerialize["StorePathType"] = o.StorePathType.Get() + } + if o.StorePathValue.IsSet() { + toSerialize["StorePathValue"] = o.StorePathValue.Get() + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + if !isNil(o.CertificateFormat) { + toSerialize["CertificateFormat"] = o.CertificateFormat + } + if o.JobProperties != nil { + toSerialize["JobProperties"] = o.JobProperties + } + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if o.ServerRegistration.IsSet() { + toSerialize["ServerRegistration"] = o.ServerRegistration.Get() + } + if o.InventoryEndpoint.IsSet() { + toSerialize["InventoryEndpoint"] = o.InventoryEndpoint.Get() + } + if !isNil(o.InventoryJobType) { + toSerialize["InventoryJobType"] = o.InventoryJobType + } + if o.ManagementJobType.IsSet() { + toSerialize["ManagementJobType"] = o.ManagementJobType.Get() + } + if o.DiscoveryJobType.IsSet() { + toSerialize["DiscoveryJobType"] = o.DiscoveryJobType.Get() + } + if o.EnrollmentJobType.IsSet() { + toSerialize["EnrollmentJobType"] = o.EnrollmentJobType.Get() + } + return toSerialize, nil +} + +type NullableCertificateStoresTypesCertificateStoreTypeResponse struct { + value *CertificateStoresTypesCertificateStoreTypeResponse + isSet bool +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeResponse) Get() *CertificateStoresTypesCertificateStoreTypeResponse { + return v.value +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeResponse) Set(val *CertificateStoresTypesCertificateStoreTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresTypesCertificateStoreTypeResponse(val *CertificateStoresTypesCertificateStoreTypeResponse) *NullableCertificateStoresTypesCertificateStoreTypeResponse { + return &NullableCertificateStoresTypesCertificateStoreTypeResponse{value: val, isSet: true} +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_update_request.go b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_update_request.go new file mode 100644 index 0000000..3eb1e81 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificate_stores_types_certificate_store_type_update_request.go @@ -0,0 +1,759 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificateStoresTypesCertificateStoreTypeUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificateStoresTypesCertificateStoreTypeUpdateRequest{} + +// CertificateStoresTypesCertificateStoreTypeUpdateRequest struct for CertificateStoresTypesCertificateStoreTypeUpdateRequest +type CertificateStoresTypesCertificateStoreTypeUpdateRequest struct { + StoreType int32 `json:"StoreType"` + Name string `json:"Name"` + ShortName string `json:"ShortName"` + Capability NullableString `json:"Capability,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *CSSCMSDataModelModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []CSSCMSDataModelModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + PasswordOptions *CSSCMSDataModelModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType NullableString `json:"StorePathType,omitempty"` + StorePathValue NullableString `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *CSSCMSCoreEnumsCertStorePrivateKey `json:"PrivateKeyAllowed,omitempty"` + CertificateFormat *CSSCMSCoreEnumsCertificateFormat `json:"CertificateFormat,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias `json:"CustomAliasAllowed,omitempty"` + // Deprecated + JobProperties []string `json:"JobProperties,omitempty"` + EntryParameters []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` +} + +// NewCertificateStoresTypesCertificateStoreTypeUpdateRequest instantiates a new CertificateStoresTypesCertificateStoreTypeUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificateStoresTypesCertificateStoreTypeUpdateRequest(storeType int32, name string, shortName string) *CertificateStoresTypesCertificateStoreTypeUpdateRequest { + this := CertificateStoresTypesCertificateStoreTypeUpdateRequest{} + this.StoreType = storeType + this.Name = name + this.ShortName = shortName + return &this +} + +// NewCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults instantiates a new CertificateStoresTypesCertificateStoreTypeUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults() *CertificateStoresTypesCertificateStoreTypeUpdateRequest { + this := CertificateStoresTypesCertificateStoreTypeUpdateRequest{} + return &this +} + +// GetStoreType returns the StoreType field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.StoreType, true +} + +// SetStoreType sets field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStoreType(v int32) { + o.StoreType = v +} + +// GetName returns the Name field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetShortName returns the ShortName field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortName() string { + if o == nil { + var ret string + return ret + } + + return o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ShortName, true +} + +// SetShortName sets field value +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetShortName(v string) { + o.ShortName = v +} + +// GetCapability returns the Capability field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapability() string { + if o == nil || isNil(o.Capability.Get()) { + var ret string + return ret + } + return *o.Capability.Get() +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapabilityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Capability.Get(), o.Capability.IsSet() +} + +// HasCapability returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCapability() bool { + if o != nil && o.Capability.IsSet() { + return true + } + + return false +} + +// SetCapability gets a reference to the given NullableString and assigns it to the Capability field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapability(v string) { + o.Capability.Set(&v) +} + +// SetCapabilityNil sets the value for Capability to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapabilityNil() { + o.Capability.Set(nil) +} + +// UnsetCapability ensures that no value is present for Capability, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetCapability() { + o.Capability.Unset() +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperations() CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret CSSCMSDataModelModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperationsOk() (*CSSCMSDataModelModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given CSSCMSDataModelModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetSupportedOperations(v CSSCMSDataModelModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetProperties() []CSSCMSDataModelModelsCertificateStoreTypeProperty { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPropertiesOk() ([]CSSCMSDataModelModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetProperties(v []CSSCMSDataModelModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptions() CSSCMSDataModelModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret CSSCMSDataModelModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptionsOk() (*CSSCMSDataModelModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given CSSCMSDataModelModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPasswordOptions(v CSSCMSDataModelModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathType() string { + if o == nil || isNil(o.StorePathType.Get()) { + var ret string + return ret + } + return *o.StorePathType.Get() +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathType.Get(), o.StorePathType.IsSet() +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathType() bool { + if o != nil && o.StorePathType.IsSet() { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given NullableString and assigns it to the StorePathType field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathType(v string) { + o.StorePathType.Set(&v) +} + +// SetStorePathTypeNil sets the value for StorePathType to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathTypeNil() { + o.StorePathType.Set(nil) +} + +// UnsetStorePathType ensures that no value is present for StorePathType, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetStorePathType() { + o.StorePathType.Unset() +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue.Get()) { + var ret string + return ret + } + return *o.StorePathValue.Get() +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePathValue.Get(), o.StorePathValue.IsSet() +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathValue() bool { + if o != nil && o.StorePathValue.IsSet() { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given NullableString and assigns it to the StorePathValue field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValue(v string) { + o.StorePathValue.Set(&v) +} + +// SetStorePathValueNil sets the value for StorePathValue to be an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValueNil() { + o.StorePathValue.Set(nil) +} + +// UnsetStorePathValue ensures that no value is present for StorePathValue, not even an explicit nil +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) UnsetStorePathValue() { + o.StorePathValue.Unset() +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowed() CSSCMSCoreEnumsCertStorePrivateKey { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret CSSCMSCoreEnumsCertStorePrivateKey + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowedOk() (*CSSCMSCoreEnumsCertStorePrivateKey, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given CSSCMSCoreEnumsCertStorePrivateKey and assigns it to the PrivateKeyAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPrivateKeyAllowed(v CSSCMSCoreEnumsCertStorePrivateKey) { + o.PrivateKeyAllowed = &v +} + +// GetCertificateFormat returns the CertificateFormat field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCertificateFormat() CSSCMSCoreEnumsCertificateFormat { + if o == nil || isNil(o.CertificateFormat) { + var ret CSSCMSCoreEnumsCertificateFormat + return ret + } + return *o.CertificateFormat +} + +// GetCertificateFormatOk returns a tuple with the CertificateFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCertificateFormatOk() (*CSSCMSCoreEnumsCertificateFormat, bool) { + if o == nil || isNil(o.CertificateFormat) { + return nil, false + } + return o.CertificateFormat, true +} + +// HasCertificateFormat returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCertificateFormat() bool { + if o != nil && !isNil(o.CertificateFormat) { + return true + } + + return false +} + +// SetCertificateFormat gets a reference to the given CSSCMSCoreEnumsCertificateFormat and assigns it to the CertificateFormat field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCertificateFormat(v CSSCMSCoreEnumsCertificateFormat) { + o.CertificateFormat = &v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowed() KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowedOk() (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias and assigns it to the CustomAliasAllowed field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCustomAliasAllowed(v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) { + o.CustomAliasAllowed = &v +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise (both if not set or set to explicit null). +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetJobProperties() []string { + if o == nil { + var ret []string + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetJobPropertiesOk() ([]string, bool) { + if o == nil || isNil(o.JobProperties) { + return nil, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasJobProperties() bool { + if o != nil && isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given []string and assigns it to the JobProperties field. +// Deprecated +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetJobProperties(v []string) { + o.JobProperties = v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParametersOk() ([]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) HasEntryParameters() bool { + if o != nil && isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *CertificateStoresTypesCertificateStoreTypeUpdateRequest) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o CertificateStoresTypesCertificateStoreTypeUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificateStoresTypesCertificateStoreTypeUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["StoreType"] = o.StoreType + toSerialize["Name"] = o.Name + toSerialize["ShortName"] = o.ShortName + if o.Capability.IsSet() { + toSerialize["Capability"] = o.Capability.Get() + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if o.StorePathType.IsSet() { + toSerialize["StorePathType"] = o.StorePathType.Get() + } + if o.StorePathValue.IsSet() { + toSerialize["StorePathValue"] = o.StorePathValue.Get() + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + if !isNil(o.CertificateFormat) { + toSerialize["CertificateFormat"] = o.CertificateFormat + } + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if o.JobProperties != nil { + toSerialize["JobProperties"] = o.JobProperties + } + if o.EntryParameters != nil { + toSerialize["EntryParameters"] = o.EntryParameters + } + return toSerialize, nil +} + +type NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest struct { + value *CertificateStoresTypesCertificateStoreTypeUpdateRequest + isSet bool +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) Get() *CertificateStoresTypesCertificateStoreTypeUpdateRequest { + return v.value +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) Set(val *CertificateStoresTypesCertificateStoreTypeUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateStoresTypesCertificateStoreTypeUpdateRequest(val *CertificateStoresTypesCertificateStoreTypeUpdateRequest) *NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest { + return &NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest{value: val, isSet: true} +} + +func (v NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateStoresTypesCertificateStoreTypeUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_analyze_certificate_request.go b/v24/api/keyfactor/v1/model_certificates_analyze_certificate_request.go new file mode 100644 index 0000000..2a6f190 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_analyze_certificate_request.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesAnalyzeCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesAnalyzeCertificateRequest{} + +// CertificatesAnalyzeCertificateRequest struct for CertificatesAnalyzeCertificateRequest +type CertificatesAnalyzeCertificateRequest struct { + Certificate NullableString `json:"Certificate,omitempty"` + Password NullableString `json:"Password,omitempty"` +} + +// NewCertificatesAnalyzeCertificateRequest instantiates a new CertificatesAnalyzeCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesAnalyzeCertificateRequest() *CertificatesAnalyzeCertificateRequest { + this := CertificatesAnalyzeCertificateRequest{} + return &this +} + +// NewCertificatesAnalyzeCertificateRequestWithDefaults instantiates a new CertificatesAnalyzeCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesAnalyzeCertificateRequestWithDefaults() *CertificatesAnalyzeCertificateRequest { + this := CertificatesAnalyzeCertificateRequest{} + return &this +} + +// GetCertificate returns the Certificate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesAnalyzeCertificateRequest) GetCertificate() string { + if o == nil || isNil(o.Certificate.Get()) { + var ret string + return ret + } + return *o.Certificate.Get() +} + +// GetCertificateOk returns a tuple with the Certificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesAnalyzeCertificateRequest) GetCertificateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Certificate.Get(), o.Certificate.IsSet() +} + +// HasCertificate returns a boolean if a field has been set. +func (o *CertificatesAnalyzeCertificateRequest) HasCertificate() bool { + if o != nil && o.Certificate.IsSet() { + return true + } + + return false +} + +// SetCertificate gets a reference to the given NullableString and assigns it to the Certificate field. +func (o *CertificatesAnalyzeCertificateRequest) SetCertificate(v string) { + o.Certificate.Set(&v) +} + +// SetCertificateNil sets the value for Certificate to be an explicit nil +func (o *CertificatesAnalyzeCertificateRequest) SetCertificateNil() { + o.Certificate.Set(nil) +} + +// UnsetCertificate ensures that no value is present for Certificate, not even an explicit nil +func (o *CertificatesAnalyzeCertificateRequest) UnsetCertificate() { + o.Certificate.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesAnalyzeCertificateRequest) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesAnalyzeCertificateRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *CertificatesAnalyzeCertificateRequest) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *CertificatesAnalyzeCertificateRequest) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *CertificatesAnalyzeCertificateRequest) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *CertificatesAnalyzeCertificateRequest) UnsetPassword() { + o.Password.Unset() +} + +func (o CertificatesAnalyzeCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesAnalyzeCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Certificate.IsSet() { + toSerialize["Certificate"] = o.Certificate.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + return toSerialize, nil +} + +type NullableCertificatesAnalyzeCertificateRequest struct { + value *CertificatesAnalyzeCertificateRequest + isSet bool +} + +func (v NullableCertificatesAnalyzeCertificateRequest) Get() *CertificatesAnalyzeCertificateRequest { + return v.value +} + +func (v *NullableCertificatesAnalyzeCertificateRequest) Set(val *CertificatesAnalyzeCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesAnalyzeCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesAnalyzeCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesAnalyzeCertificateRequest(val *CertificatesAnalyzeCertificateRequest) *NullableCertificatesAnalyzeCertificateRequest { + return &NullableCertificatesAnalyzeCertificateRequest{value: val, isSet: true} +} + +func (v NullableCertificatesAnalyzeCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesAnalyzeCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_cert_request_response_model.go b/v24/api/keyfactor/v1/model_certificates_cert_request_response_model.go new file mode 100644 index 0000000..055e2c7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_cert_request_response_model.go @@ -0,0 +1,836 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificatesCertRequestResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertRequestResponseModel{} + +// CertificatesCertRequestResponseModel +type CertificatesCertRequestResponseModel struct { + Id *int32 `json:"Id,omitempty"` + CARequestId NullableString `json:"CARequestId,omitempty"` + CommonName NullableString `json:"CommonName,omitempty"` + DistinguishedName NullableString `json:"DistinguishedName,omitempty"` + SubmissionDate NullableTime `json:"SubmissionDate,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + Template NullableString `json:"Template,omitempty"` + Requester NullableString `json:"Requester,omitempty"` + State *KeyfactorPKIEnumsCertificateState `json:"State,omitempty"` + StateString NullableString `json:"StateString,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` + DenialComment NullableString `json:"DenialComment,omitempty"` + KeyLength NullableString `json:"KeyLength,omitempty"` + SANs []string `json:"SANs,omitempty"` + CertStores []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel `json:"CertStores,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + SubjectAltNames []CertificatesSubjectAlternativeName `json:"SubjectAltNames,omitempty"` +} + +// NewCertificatesCertRequestResponseModel instantiates a new CertificatesCertRequestResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertRequestResponseModel() *CertificatesCertRequestResponseModel { + this := CertificatesCertRequestResponseModel{} + return &this +} + +// NewCertificatesCertRequestResponseModelWithDefaults instantiates a new CertificatesCertRequestResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertRequestResponseModelWithDefaults() *CertificatesCertRequestResponseModel { + this := CertificatesCertRequestResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertRequestResponseModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertRequestResponseModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertRequestResponseModel) SetId(v int32) { + o.Id = &v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetCARequestId() string { + if o == nil || isNil(o.CARequestId.Get()) { + var ret string + return ret + } + return *o.CARequestId.Get() +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetCARequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CARequestId.Get(), o.CARequestId.IsSet() +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasCARequestId() bool { + if o != nil && o.CARequestId.IsSet() { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given NullableString and assigns it to the CARequestId field. +func (o *CertificatesCertRequestResponseModel) SetCARequestId(v string) { + o.CARequestId.Set(&v) +} + +// SetCARequestIdNil sets the value for CARequestId to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetCARequestIdNil() { + o.CARequestId.Set(nil) +} + +// UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetCARequestId() { + o.CARequestId.Unset() +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetCommonName() string { + if o == nil || isNil(o.CommonName.Get()) { + var ret string + return ret + } + return *o.CommonName.Get() +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommonName.Get(), o.CommonName.IsSet() +} + +// HasCommonName returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasCommonName() bool { + if o != nil && o.CommonName.IsSet() { + return true + } + + return false +} + +// SetCommonName gets a reference to the given NullableString and assigns it to the CommonName field. +func (o *CertificatesCertRequestResponseModel) SetCommonName(v string) { + o.CommonName.Set(&v) +} + +// SetCommonNameNil sets the value for CommonName to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetCommonNameNil() { + o.CommonName.Set(nil) +} + +// UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetCommonName() { + o.CommonName.Unset() +} + +// GetDistinguishedName returns the DistinguishedName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetDistinguishedName() string { + if o == nil || isNil(o.DistinguishedName.Get()) { + var ret string + return ret + } + return *o.DistinguishedName.Get() +} + +// GetDistinguishedNameOk returns a tuple with the DistinguishedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetDistinguishedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DistinguishedName.Get(), o.DistinguishedName.IsSet() +} + +// HasDistinguishedName returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasDistinguishedName() bool { + if o != nil && o.DistinguishedName.IsSet() { + return true + } + + return false +} + +// SetDistinguishedName gets a reference to the given NullableString and assigns it to the DistinguishedName field. +func (o *CertificatesCertRequestResponseModel) SetDistinguishedName(v string) { + o.DistinguishedName.Set(&v) +} + +// SetDistinguishedNameNil sets the value for DistinguishedName to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetDistinguishedNameNil() { + o.DistinguishedName.Set(nil) +} + +// UnsetDistinguishedName ensures that no value is present for DistinguishedName, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetDistinguishedName() { + o.DistinguishedName.Unset() +} + +// GetSubmissionDate returns the SubmissionDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetSubmissionDate() time.Time { + if o == nil || isNil(o.SubmissionDate.Get()) { + var ret time.Time + return ret + } + return *o.SubmissionDate.Get() +} + +// GetSubmissionDateOk returns a tuple with the SubmissionDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetSubmissionDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SubmissionDate.Get(), o.SubmissionDate.IsSet() +} + +// HasSubmissionDate returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasSubmissionDate() bool { + if o != nil && o.SubmissionDate.IsSet() { + return true + } + + return false +} + +// SetSubmissionDate gets a reference to the given NullableTime and assigns it to the SubmissionDate field. +func (o *CertificatesCertRequestResponseModel) SetSubmissionDate(v time.Time) { + o.SubmissionDate.Set(&v) +} + +// SetSubmissionDateNil sets the value for SubmissionDate to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetSubmissionDateNil() { + o.SubmissionDate.Set(nil) +} + +// UnsetSubmissionDate ensures that no value is present for SubmissionDate, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetSubmissionDate() { + o.SubmissionDate.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *CertificatesCertRequestResponseModel) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *CertificatesCertRequestResponseModel) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetTemplate() { + o.Template.Unset() +} + +// GetRequester returns the Requester field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetRequester() string { + if o == nil || isNil(o.Requester.Get()) { + var ret string + return ret + } + return *o.Requester.Get() +} + +// GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetRequesterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Requester.Get(), o.Requester.IsSet() +} + +// HasRequester returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasRequester() bool { + if o != nil && o.Requester.IsSet() { + return true + } + + return false +} + +// SetRequester gets a reference to the given NullableString and assigns it to the Requester field. +func (o *CertificatesCertRequestResponseModel) SetRequester(v string) { + o.Requester.Set(&v) +} + +// SetRequesterNil sets the value for Requester to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetRequesterNil() { + o.Requester.Set(nil) +} + +// UnsetRequester ensures that no value is present for Requester, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetRequester() { + o.Requester.Unset() +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *CertificatesCertRequestResponseModel) GetState() KeyfactorPKIEnumsCertificateState { + if o == nil || isNil(o.State) { + var ret KeyfactorPKIEnumsCertificateState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertRequestResponseModel) GetStateOk() (*KeyfactorPKIEnumsCertificateState, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given KeyfactorPKIEnumsCertificateState and assigns it to the State field. +func (o *CertificatesCertRequestResponseModel) SetState(v KeyfactorPKIEnumsCertificateState) { + o.State = &v +} + +// GetStateString returns the StateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetStateString() string { + if o == nil || isNil(o.StateString.Get()) { + var ret string + return ret + } + return *o.StateString.Get() +} + +// GetStateStringOk returns a tuple with the StateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetStateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StateString.Get(), o.StateString.IsSet() +} + +// HasStateString returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasStateString() bool { + if o != nil && o.StateString.IsSet() { + return true + } + + return false +} + +// SetStateString gets a reference to the given NullableString and assigns it to the StateString field. +func (o *CertificatesCertRequestResponseModel) SetStateString(v string) { + o.StateString.Set(&v) +} + +// SetStateStringNil sets the value for StateString to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetStateStringNil() { + o.StateString.Set(nil) +} + +// UnsetStateString ensures that no value is present for StateString, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetStateString() { + o.StateString.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CertificatesCertRequestResponseModel) SetMetadata(v map[string]string) { + o.Metadata = v +} + +// GetDenialComment returns the DenialComment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetDenialComment() string { + if o == nil || isNil(o.DenialComment.Get()) { + var ret string + return ret + } + return *o.DenialComment.Get() +} + +// GetDenialCommentOk returns a tuple with the DenialComment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetDenialCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DenialComment.Get(), o.DenialComment.IsSet() +} + +// HasDenialComment returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasDenialComment() bool { + if o != nil && o.DenialComment.IsSet() { + return true + } + + return false +} + +// SetDenialComment gets a reference to the given NullableString and assigns it to the DenialComment field. +func (o *CertificatesCertRequestResponseModel) SetDenialComment(v string) { + o.DenialComment.Set(&v) +} + +// SetDenialCommentNil sets the value for DenialComment to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetDenialCommentNil() { + o.DenialComment.Set(nil) +} + +// UnsetDenialComment ensures that no value is present for DenialComment, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetDenialComment() { + o.DenialComment.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetKeyLength() string { + if o == nil || isNil(o.KeyLength.Get()) { + var ret string + return ret + } + return *o.KeyLength.Get() +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetKeyLengthOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyLength.Get(), o.KeyLength.IsSet() +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasKeyLength() bool { + if o != nil && o.KeyLength.IsSet() { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given NullableString and assigns it to the KeyLength field. +func (o *CertificatesCertRequestResponseModel) SetKeyLength(v string) { + o.KeyLength.Set(&v) +} + +// SetKeyLengthNil sets the value for KeyLength to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetKeyLengthNil() { + o.KeyLength.Set(nil) +} + +// UnsetKeyLength ensures that no value is present for KeyLength, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetKeyLength() { + o.KeyLength.Unset() +} + +// GetSANs returns the SANs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetSANs() []string { + if o == nil { + var ret []string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetSANsOk() ([]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasSANs() bool { + if o != nil && isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given []string and assigns it to the SANs field. +func (o *CertificatesCertRequestResponseModel) SetSANs(v []string) { + o.SANs = v +} + +// GetCertStores returns the CertStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetCertStores() []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel { + if o == nil { + var ret []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel + return ret + } + return o.CertStores +} + +// GetCertStoresOk returns a tuple with the CertStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetCertStoresOk() ([]CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel, bool) { + if o == nil || isNil(o.CertStores) { + return nil, false + } + return o.CertStores, true +} + +// HasCertStores returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasCertStores() bool { + if o != nil && isNil(o.CertStores) { + return true + } + + return false +} + +// SetCertStores gets a reference to the given []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel and assigns it to the CertStores field. +func (o *CertificatesCertRequestResponseModel) SetCertStores(v []CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) { + o.CertStores = v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *CertificatesCertRequestResponseModel) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *CertificatesCertRequestResponseModel) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *CertificatesCertRequestResponseModel) UnsetCurve() { + o.Curve.Unset() +} + +// GetSubjectAltNames returns the SubjectAltNames field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertRequestResponseModel) GetSubjectAltNames() []CertificatesSubjectAlternativeName { + if o == nil { + var ret []CertificatesSubjectAlternativeName + return ret + } + return o.SubjectAltNames +} + +// GetSubjectAltNamesOk returns a tuple with the SubjectAltNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertRequestResponseModel) GetSubjectAltNamesOk() ([]CertificatesSubjectAlternativeName, bool) { + if o == nil || isNil(o.SubjectAltNames) { + return nil, false + } + return o.SubjectAltNames, true +} + +// HasSubjectAltNames returns a boolean if a field has been set. +func (o *CertificatesCertRequestResponseModel) HasSubjectAltNames() bool { + if o != nil && isNil(o.SubjectAltNames) { + return true + } + + return false +} + +// SetSubjectAltNames gets a reference to the given []CertificatesSubjectAlternativeName and assigns it to the SubjectAltNames field. +func (o *CertificatesCertRequestResponseModel) SetSubjectAltNames(v []CertificatesSubjectAlternativeName) { + o.SubjectAltNames = v +} + +func (o CertificatesCertRequestResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertRequestResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.CARequestId.IsSet() { + toSerialize["CARequestId"] = o.CARequestId.Get() + } + if o.CommonName.IsSet() { + toSerialize["CommonName"] = o.CommonName.Get() + } + if o.DistinguishedName.IsSet() { + toSerialize["DistinguishedName"] = o.DistinguishedName.Get() + } + if o.SubmissionDate.IsSet() { + toSerialize["SubmissionDate"] = o.SubmissionDate.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.Requester.IsSet() { + toSerialize["Requester"] = o.Requester.Get() + } + if !isNil(o.State) { + toSerialize["State"] = o.State + } + if o.StateString.IsSet() { + toSerialize["StateString"] = o.StateString.Get() + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.DenialComment.IsSet() { + toSerialize["DenialComment"] = o.DenialComment.Get() + } + if o.KeyLength.IsSet() { + toSerialize["KeyLength"] = o.KeyLength.Get() + } + if o.SANs != nil { + toSerialize["SANs"] = o.SANs + } + if o.CertStores != nil { + toSerialize["CertStores"] = o.CertStores + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if o.SubjectAltNames != nil { + toSerialize["SubjectAltNames"] = o.SubjectAltNames + } + return toSerialize, nil +} + +type NullableCertificatesCertRequestResponseModel struct { + value *CertificatesCertRequestResponseModel + isSet bool +} + +func (v NullableCertificatesCertRequestResponseModel) Get() *CertificatesCertRequestResponseModel { + return v.value +} + +func (v *NullableCertificatesCertRequestResponseModel) Set(val *CertificatesCertRequestResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertRequestResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertRequestResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertRequestResponseModel(val *CertificatesCertRequestResponseModel) *NullableCertificatesCertRequestResponseModel { + return &NullableCertificatesCertRequestResponseModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertRequestResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertRequestResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_download_request.go b/v24/api/keyfactor/v1/model_certificates_certificate_download_request.go new file mode 100644 index 0000000..e5c48ff --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_download_request.go @@ -0,0 +1,452 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateDownloadRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateDownloadRequest{} + +// CertificatesCertificateDownloadRequest struct for CertificatesCertificateDownloadRequest +type CertificatesCertificateDownloadRequest struct { + CertID NullableInt32 `json:"CertID,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + IncludeSubjectHeader *bool `json:"IncludeSubjectHeader,omitempty"` + FriendlyName NullableString `json:"FriendlyName,omitempty"` + ChainOrder NullableString `json:"ChainOrder,omitempty"` +} + +// NewCertificatesCertificateDownloadRequest instantiates a new CertificatesCertificateDownloadRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateDownloadRequest() *CertificatesCertificateDownloadRequest { + this := CertificatesCertificateDownloadRequest{} + return &this +} + +// NewCertificatesCertificateDownloadRequestWithDefaults instantiates a new CertificatesCertificateDownloadRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateDownloadRequestWithDefaults() *CertificatesCertificateDownloadRequest { + this := CertificatesCertificateDownloadRequest{} + return &this +} + +// GetCertID returns the CertID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetCertID() int32 { + if o == nil || isNil(o.CertID.Get()) { + var ret int32 + return ret + } + return *o.CertID.Get() +} + +// GetCertIDOk returns a tuple with the CertID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetCertIDOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertID.Get(), o.CertID.IsSet() +} + +// HasCertID returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasCertID() bool { + if o != nil && o.CertID.IsSet() { + return true + } + + return false +} + +// SetCertID gets a reference to the given NullableInt32 and assigns it to the CertID field. +func (o *CertificatesCertificateDownloadRequest) SetCertID(v int32) { + o.CertID.Set(&v) +} + +// SetCertIDNil sets the value for CertID to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetCertIDNil() { + o.CertID.Set(nil) +} + +// UnsetCertID ensures that no value is present for CertID, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetCertID() { + o.CertID.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CertificatesCertificateDownloadRequest) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CertificatesCertificateDownloadRequest) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CertificatesCertificateDownloadRequest) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *CertificatesCertificateDownloadRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateDownloadRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *CertificatesCertificateDownloadRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetIncludeSubjectHeader returns the IncludeSubjectHeader field value if set, zero value otherwise. +func (o *CertificatesCertificateDownloadRequest) GetIncludeSubjectHeader() bool { + if o == nil || isNil(o.IncludeSubjectHeader) { + var ret bool + return ret + } + return *o.IncludeSubjectHeader +} + +// GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateDownloadRequest) GetIncludeSubjectHeaderOk() (*bool, bool) { + if o == nil || isNil(o.IncludeSubjectHeader) { + return nil, false + } + return o.IncludeSubjectHeader, true +} + +// HasIncludeSubjectHeader returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasIncludeSubjectHeader() bool { + if o != nil && !isNil(o.IncludeSubjectHeader) { + return true + } + + return false +} + +// SetIncludeSubjectHeader gets a reference to the given bool and assigns it to the IncludeSubjectHeader field. +func (o *CertificatesCertificateDownloadRequest) SetIncludeSubjectHeader(v bool) { + o.IncludeSubjectHeader = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName.Get()) { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *CertificatesCertificateDownloadRequest) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetChainOrder returns the ChainOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateDownloadRequest) GetChainOrder() string { + if o == nil || isNil(o.ChainOrder.Get()) { + var ret string + return ret + } + return *o.ChainOrder.Get() +} + +// GetChainOrderOk returns a tuple with the ChainOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateDownloadRequest) GetChainOrderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ChainOrder.Get(), o.ChainOrder.IsSet() +} + +// HasChainOrder returns a boolean if a field has been set. +func (o *CertificatesCertificateDownloadRequest) HasChainOrder() bool { + if o != nil && o.ChainOrder.IsSet() { + return true + } + + return false +} + +// SetChainOrder gets a reference to the given NullableString and assigns it to the ChainOrder field. +func (o *CertificatesCertificateDownloadRequest) SetChainOrder(v string) { + o.ChainOrder.Set(&v) +} + +// SetChainOrderNil sets the value for ChainOrder to be an explicit nil +func (o *CertificatesCertificateDownloadRequest) SetChainOrderNil() { + o.ChainOrder.Set(nil) +} + +// UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +func (o *CertificatesCertificateDownloadRequest) UnsetChainOrder() { + o.ChainOrder.Unset() +} + +func (o CertificatesCertificateDownloadRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateDownloadRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CertID.IsSet() { + toSerialize["CertID"] = o.CertID.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.IncludeSubjectHeader) { + toSerialize["IncludeSubjectHeader"] = o.IncludeSubjectHeader + } + if o.FriendlyName.IsSet() { + toSerialize["FriendlyName"] = o.FriendlyName.Get() + } + if o.ChainOrder.IsSet() { + toSerialize["ChainOrder"] = o.ChainOrder.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateDownloadRequest struct { + value *CertificatesCertificateDownloadRequest + isSet bool +} + +func (v NullableCertificatesCertificateDownloadRequest) Get() *CertificatesCertificateDownloadRequest { + return v.value +} + +func (v *NullableCertificatesCertificateDownloadRequest) Set(val *CertificatesCertificateDownloadRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateDownloadRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateDownloadRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateDownloadRequest(val *CertificatesCertificateDownloadRequest) *NullableCertificatesCertificateDownloadRequest { + return &NullableCertificatesCertificateDownloadRequest{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateDownloadRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateDownloadRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response.go b/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response.go new file mode 100644 index 0000000..8a7109a --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response.go @@ -0,0 +1,317 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponse{} + +// CertificatesCertificateIdentityAuditResponse Represents an account with a list of permission granted to it on a given certificate by either a role or collection +type CertificatesCertificateIdentityAuditResponse struct { + // Id of the account represented by the audit response + Id *int32 `json:"Id,omitempty"` + // Name of the account represented by the audit response + AccountName NullableString `json:"AccountName,omitempty"` + // The type of account represented by the audit response (User or Group) + IdentityType NullableString `json:"IdentityType,omitempty"` + // The SID of the account represented by the audit reponse + SID NullableString `json:"SID,omitempty"` + // Permissions granted to the account represented by the audit reponse on the specified certifcate + Permissions []CertificatesCertificateIdentityAuditResponseCertificatePermission `json:"Permissions,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponse instantiates a new CertificatesCertificateIdentityAuditResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponse() *CertificatesCertificateIdentityAuditResponse { + this := CertificatesCertificateIdentityAuditResponse{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponseWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponseWithDefaults() *CertificatesCertificateIdentityAuditResponse { + this := CertificatesCertificateIdentityAuditResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateIdentityAuditResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateIdentityAuditResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateIdentityAuditResponse) SetId(v int32) { + o.Id = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse) GetAccountName() string { + if o == nil || isNil(o.AccountName.Get()) { + var ret string + return ret + } + return *o.AccountName.Get() +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountName.Get(), o.AccountName.IsSet() +} + +// HasAccountName returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse) HasAccountName() bool { + if o != nil && o.AccountName.IsSet() { + return true + } + + return false +} + +// SetAccountName gets a reference to the given NullableString and assigns it to the AccountName field. +func (o *CertificatesCertificateIdentityAuditResponse) SetAccountName(v string) { + o.AccountName.Set(&v) +} + +// SetAccountNameNil sets the value for AccountName to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) SetAccountNameNil() { + o.AccountName.Set(nil) +} + +// UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) UnsetAccountName() { + o.AccountName.Unset() +} + +// GetIdentityType returns the IdentityType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse) GetIdentityType() string { + if o == nil || isNil(o.IdentityType.Get()) { + var ret string + return ret + } + return *o.IdentityType.Get() +} + +// GetIdentityTypeOk returns a tuple with the IdentityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse) GetIdentityTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IdentityType.Get(), o.IdentityType.IsSet() +} + +// HasIdentityType returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse) HasIdentityType() bool { + if o != nil && o.IdentityType.IsSet() { + return true + } + + return false +} + +// SetIdentityType gets a reference to the given NullableString and assigns it to the IdentityType field. +func (o *CertificatesCertificateIdentityAuditResponse) SetIdentityType(v string) { + o.IdentityType.Set(&v) +} + +// SetIdentityTypeNil sets the value for IdentityType to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) SetIdentityTypeNil() { + o.IdentityType.Set(nil) +} + +// UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) UnsetIdentityType() { + o.IdentityType.Unset() +} + +// GetSID returns the SID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse) GetSID() string { + if o == nil || isNil(o.SID.Get()) { + var ret string + return ret + } + return *o.SID.Get() +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse) GetSIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SID.Get(), o.SID.IsSet() +} + +// HasSID returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse) HasSID() bool { + if o != nil && o.SID.IsSet() { + return true + } + + return false +} + +// SetSID gets a reference to the given NullableString and assigns it to the SID field. +func (o *CertificatesCertificateIdentityAuditResponse) SetSID(v string) { + o.SID.Set(&v) +} + +// SetSIDNil sets the value for SID to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) SetSIDNil() { + o.SID.Set(nil) +} + +// UnsetSID ensures that no value is present for SID, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse) UnsetSID() { + o.SID.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse) GetPermissions() []CertificatesCertificateIdentityAuditResponseCertificatePermission { + if o == nil { + var ret []CertificatesCertificateIdentityAuditResponseCertificatePermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse) GetPermissionsOk() ([]CertificatesCertificateIdentityAuditResponseCertificatePermission, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []CertificatesCertificateIdentityAuditResponseCertificatePermission and assigns it to the Permissions field. +func (o *CertificatesCertificateIdentityAuditResponse) SetPermissions(v []CertificatesCertificateIdentityAuditResponseCertificatePermission) { + o.Permissions = v +} + +func (o CertificatesCertificateIdentityAuditResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AccountName.IsSet() { + toSerialize["AccountName"] = o.AccountName.Get() + } + if o.IdentityType.IsSet() { + toSerialize["IdentityType"] = o.IdentityType.Get() + } + if o.SID.IsSet() { + toSerialize["SID"] = o.SID.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponse struct { + value *CertificatesCertificateIdentityAuditResponse + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponse) Get() *CertificatesCertificateIdentityAuditResponse { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse) Set(val *CertificatesCertificateIdentityAuditResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponse(val *CertificatesCertificateIdentityAuditResponse) *NullableCertificatesCertificateIdentityAuditResponse { + return &NullableCertificatesCertificateIdentityAuditResponse{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response_certificate_permission.go b/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response_certificate_permission.go new file mode 100644 index 0000000..a49261c --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_identity_audit_response_certificate_permission.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponseCertificatePermission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponseCertificatePermission{} + +// CertificatesCertificateIdentityAuditResponseCertificatePermission Represents a permission granted to an account for a certificate +type CertificatesCertificateIdentityAuditResponseCertificatePermission struct { + // The name of the permission + Name NullableString `json:"Name,omitempty"` + // A list of roles or collections that grant the given permission + GrantedBy []string `json:"GrantedBy,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponseCertificatePermission instantiates a new CertificatesCertificateIdentityAuditResponseCertificatePermission object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponseCertificatePermission() *CertificatesCertificateIdentityAuditResponseCertificatePermission { + this := CertificatesCertificateIdentityAuditResponseCertificatePermission{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponseCertificatePermission object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults() *CertificatesCertificateIdentityAuditResponseCertificatePermission { + this := CertificatesCertificateIdentityAuditResponseCertificatePermission{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) UnsetName() { + o.Name.Unset() +} + +// GetGrantedBy returns the GrantedBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedBy() []string { + if o == nil { + var ret []string + return ret + } + return o.GrantedBy +} + +// GetGrantedByOk returns a tuple with the GrantedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedByOk() ([]string, bool) { + if o == nil || isNil(o.GrantedBy) { + return nil, false + } + return o.GrantedBy, true +} + +// HasGrantedBy returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) HasGrantedBy() bool { + if o != nil && isNil(o.GrantedBy) { + return true + } + + return false +} + +// SetGrantedBy gets a reference to the given []string and assigns it to the GrantedBy field. +func (o *CertificatesCertificateIdentityAuditResponseCertificatePermission) SetGrantedBy(v []string) { + o.GrantedBy = v +} + +func (o CertificatesCertificateIdentityAuditResponseCertificatePermission) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponseCertificatePermission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.GrantedBy != nil { + toSerialize["GrantedBy"] = o.GrantedBy + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponseCertificatePermission struct { + value *CertificatesCertificateIdentityAuditResponseCertificatePermission + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) Get() *CertificatesCertificateIdentityAuditResponseCertificatePermission { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) Set(val *CertificatesCertificateIdentityAuditResponseCertificatePermission) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponseCertificatePermission(val *CertificatesCertificateIdentityAuditResponseCertificatePermission) *NullableCertificatesCertificateIdentityAuditResponseCertificatePermission { + return &NullableCertificatesCertificateIdentityAuditResponseCertificatePermission{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponseCertificatePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_locations_response.go b/v24/api/keyfactor/v1/model_certificates_certificate_locations_response.go new file mode 100644 index 0000000..afa2bcb --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_locations_response.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateLocationsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateLocationsResponse{} + +// CertificatesCertificateLocationsResponse struct for CertificatesCertificateLocationsResponse +type CertificatesCertificateLocationsResponse struct { + Details []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup `json:"Details,omitempty"` +} + +// NewCertificatesCertificateLocationsResponse instantiates a new CertificatesCertificateLocationsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateLocationsResponse() *CertificatesCertificateLocationsResponse { + this := CertificatesCertificateLocationsResponse{} + return &this +} + +// NewCertificatesCertificateLocationsResponseWithDefaults instantiates a new CertificatesCertificateLocationsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateLocationsResponseWithDefaults() *CertificatesCertificateLocationsResponse { + this := CertificatesCertificateLocationsResponse{} + return &this +} + +// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateLocationsResponse) GetDetails() []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup { + if o == nil { + var ret []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup + return ret + } + return o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateLocationsResponse) GetDetailsOk() ([]CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup, bool) { + if o == nil || isNil(o.Details) { + return nil, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *CertificatesCertificateLocationsResponse) HasDetails() bool { + if o != nil && isNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup and assigns it to the Details field. +func (o *CertificatesCertificateLocationsResponse) SetDetails(v []CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) { + o.Details = v +} + +func (o CertificatesCertificateLocationsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateLocationsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Details != nil { + toSerialize["Details"] = o.Details + } + return toSerialize, nil +} + +type NullableCertificatesCertificateLocationsResponse struct { + value *CertificatesCertificateLocationsResponse + isSet bool +} + +func (v NullableCertificatesCertificateLocationsResponse) Get() *CertificatesCertificateLocationsResponse { + return v.value +} + +func (v *NullableCertificatesCertificateLocationsResponse) Set(val *CertificatesCertificateLocationsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateLocationsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateLocationsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateLocationsResponse(val *CertificatesCertificateLocationsResponse) *NullableCertificatesCertificateLocationsResponse { + return &NullableCertificatesCertificateLocationsResponse{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateLocationsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateLocationsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_recovery_request.go b/v24/api/keyfactor/v1/model_certificates_certificate_recovery_request.go new file mode 100644 index 0000000..afb2809 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_recovery_request.go @@ -0,0 +1,573 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRecoveryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRecoveryRequest{} + +// CertificatesCertificateRecoveryRequest struct for CertificatesCertificateRecoveryRequest +type CertificatesCertificateRecoveryRequest struct { + Password string `json:"Password"` + UseLegacyEncryption NullableBool `json:"UseLegacyEncryption,omitempty"` + MicrosoftTargetCSP NullableString `json:"MicrosoftTargetCSP,omitempty"` + CertID NullableInt32 `json:"CertID,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + IncludeSubjectHeader *bool `json:"IncludeSubjectHeader,omitempty"` + FriendlyName NullableString `json:"FriendlyName,omitempty"` + ChainOrder NullableString `json:"ChainOrder,omitempty"` +} + +// NewCertificatesCertificateRecoveryRequest instantiates a new CertificatesCertificateRecoveryRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRecoveryRequest(password string) *CertificatesCertificateRecoveryRequest { + this := CertificatesCertificateRecoveryRequest{} + this.Password = password + return &this +} + +// NewCertificatesCertificateRecoveryRequestWithDefaults instantiates a new CertificatesCertificateRecoveryRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRecoveryRequestWithDefaults() *CertificatesCertificateRecoveryRequest { + this := CertificatesCertificateRecoveryRequest{} + return &this +} + +// GetPassword returns the Password field value +func (o *CertificatesCertificateRecoveryRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRecoveryRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *CertificatesCertificateRecoveryRequest) SetPassword(v string) { + o.Password = v +} + +// GetUseLegacyEncryption returns the UseLegacyEncryption field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetUseLegacyEncryption() bool { + if o == nil || isNil(o.UseLegacyEncryption.Get()) { + var ret bool + return ret + } + return *o.UseLegacyEncryption.Get() +} + +// GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetUseLegacyEncryptionOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.UseLegacyEncryption.Get(), o.UseLegacyEncryption.IsSet() +} + +// HasUseLegacyEncryption returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasUseLegacyEncryption() bool { + if o != nil && o.UseLegacyEncryption.IsSet() { + return true + } + + return false +} + +// SetUseLegacyEncryption gets a reference to the given NullableBool and assigns it to the UseLegacyEncryption field. +func (o *CertificatesCertificateRecoveryRequest) SetUseLegacyEncryption(v bool) { + o.UseLegacyEncryption.Set(&v) +} + +// SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetUseLegacyEncryptionNil() { + o.UseLegacyEncryption.Set(nil) +} + +// UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetUseLegacyEncryption() { + o.UseLegacyEncryption.Unset() +} + +// GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetMicrosoftTargetCSP() string { + if o == nil || isNil(o.MicrosoftTargetCSP.Get()) { + var ret string + return ret + } + return *o.MicrosoftTargetCSP.Get() +} + +// GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetMicrosoftTargetCSPOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MicrosoftTargetCSP.Get(), o.MicrosoftTargetCSP.IsSet() +} + +// HasMicrosoftTargetCSP returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasMicrosoftTargetCSP() bool { + if o != nil && o.MicrosoftTargetCSP.IsSet() { + return true + } + + return false +} + +// SetMicrosoftTargetCSP gets a reference to the given NullableString and assigns it to the MicrosoftTargetCSP field. +func (o *CertificatesCertificateRecoveryRequest) SetMicrosoftTargetCSP(v string) { + o.MicrosoftTargetCSP.Set(&v) +} + +// SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetMicrosoftTargetCSPNil() { + o.MicrosoftTargetCSP.Set(nil) +} + +// UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetMicrosoftTargetCSP() { + o.MicrosoftTargetCSP.Unset() +} + +// GetCertID returns the CertID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetCertID() int32 { + if o == nil || isNil(o.CertID.Get()) { + var ret int32 + return ret + } + return *o.CertID.Get() +} + +// GetCertIDOk returns a tuple with the CertID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetCertIDOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertID.Get(), o.CertID.IsSet() +} + +// HasCertID returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasCertID() bool { + if o != nil && o.CertID.IsSet() { + return true + } + + return false +} + +// SetCertID gets a reference to the given NullableInt32 and assigns it to the CertID field. +func (o *CertificatesCertificateRecoveryRequest) SetCertID(v int32) { + o.CertID.Set(&v) +} + +// SetCertIDNil sets the value for CertID to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetCertIDNil() { + o.CertID.Set(nil) +} + +// UnsetCertID ensures that no value is present for CertID, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetCertID() { + o.CertID.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CertificatesCertificateRecoveryRequest) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CertificatesCertificateRecoveryRequest) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CertificatesCertificateRecoveryRequest) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *CertificatesCertificateRecoveryRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRecoveryRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *CertificatesCertificateRecoveryRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetIncludeSubjectHeader returns the IncludeSubjectHeader field value if set, zero value otherwise. +func (o *CertificatesCertificateRecoveryRequest) GetIncludeSubjectHeader() bool { + if o == nil || isNil(o.IncludeSubjectHeader) { + var ret bool + return ret + } + return *o.IncludeSubjectHeader +} + +// GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRecoveryRequest) GetIncludeSubjectHeaderOk() (*bool, bool) { + if o == nil || isNil(o.IncludeSubjectHeader) { + return nil, false + } + return o.IncludeSubjectHeader, true +} + +// HasIncludeSubjectHeader returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasIncludeSubjectHeader() bool { + if o != nil && !isNil(o.IncludeSubjectHeader) { + return true + } + + return false +} + +// SetIncludeSubjectHeader gets a reference to the given bool and assigns it to the IncludeSubjectHeader field. +func (o *CertificatesCertificateRecoveryRequest) SetIncludeSubjectHeader(v bool) { + o.IncludeSubjectHeader = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName.Get()) { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *CertificatesCertificateRecoveryRequest) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetChainOrder returns the ChainOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRecoveryRequest) GetChainOrder() string { + if o == nil || isNil(o.ChainOrder.Get()) { + var ret string + return ret + } + return *o.ChainOrder.Get() +} + +// GetChainOrderOk returns a tuple with the ChainOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRecoveryRequest) GetChainOrderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ChainOrder.Get(), o.ChainOrder.IsSet() +} + +// HasChainOrder returns a boolean if a field has been set. +func (o *CertificatesCertificateRecoveryRequest) HasChainOrder() bool { + if o != nil && o.ChainOrder.IsSet() { + return true + } + + return false +} + +// SetChainOrder gets a reference to the given NullableString and assigns it to the ChainOrder field. +func (o *CertificatesCertificateRecoveryRequest) SetChainOrder(v string) { + o.ChainOrder.Set(&v) +} + +// SetChainOrderNil sets the value for ChainOrder to be an explicit nil +func (o *CertificatesCertificateRecoveryRequest) SetChainOrderNil() { + o.ChainOrder.Set(nil) +} + +// UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +func (o *CertificatesCertificateRecoveryRequest) UnsetChainOrder() { + o.ChainOrder.Unset() +} + +func (o CertificatesCertificateRecoveryRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRecoveryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Password"] = o.Password + if o.UseLegacyEncryption.IsSet() { + toSerialize["UseLegacyEncryption"] = o.UseLegacyEncryption.Get() + } + if o.MicrosoftTargetCSP.IsSet() { + toSerialize["MicrosoftTargetCSP"] = o.MicrosoftTargetCSP.Get() + } + if o.CertID.IsSet() { + toSerialize["CertID"] = o.CertID.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.IncludeSubjectHeader) { + toSerialize["IncludeSubjectHeader"] = o.IncludeSubjectHeader + } + if o.FriendlyName.IsSet() { + toSerialize["FriendlyName"] = o.FriendlyName.Get() + } + if o.ChainOrder.IsSet() { + toSerialize["ChainOrder"] = o.ChainOrder.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRecoveryRequest struct { + value *CertificatesCertificateRecoveryRequest + isSet bool +} + +func (v NullableCertificatesCertificateRecoveryRequest) Get() *CertificatesCertificateRecoveryRequest { + return v.value +} + +func (v *NullableCertificatesCertificateRecoveryRequest) Set(val *CertificatesCertificateRecoveryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRecoveryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRecoveryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRecoveryRequest(val *CertificatesCertificateRecoveryRequest) *NullableCertificatesCertificateRecoveryRequest { + return &NullableCertificatesCertificateRecoveryRequest{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRecoveryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRecoveryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response.go new file mode 100644 index 0000000..9d8c6af --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response.go @@ -0,0 +1,2309 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificatesCertificateRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponse{} + +// CertificatesCertificateRetrievalResponse struct for CertificatesCertificateRetrievalResponse +type CertificatesCertificateRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + ImportDate *time.Time `json:"ImportDate,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + PrincipalId NullableInt32 `json:"PrincipalId,omitempty"` + OwnerRoleId NullableInt32 `json:"OwnerRoleId,omitempty"` + OwnerRoleName NullableString `json:"OwnerRoleName,omitempty"` + TemplateId NullableInt32 `json:"TemplateId,omitempty"` + CertState *KeyfactorPKIEnumsCertificateState `json:"CertState,omitempty"` + KeySizeInBits *int32 `json:"KeySizeInBits,omitempty"` + KeyType *KeyfactorPKIEnumsEncryptionKeyType `json:"KeyType,omitempty"` + AltKeySizeInBits *int32 `json:"AltKeySizeInBits,omitempty"` + AltKeyType *KeyfactorPKIEnumsEncryptionKeyType `json:"AltKeyType,omitempty"` + RequesterId NullableInt32 `json:"RequesterId,omitempty"` + IssuedOU NullableString `json:"IssuedOU,omitempty"` + IssuedEmail NullableString `json:"IssuedEmail,omitempty"` + KeyUsage NullableInt32 `json:"KeyUsage,omitempty"` + SigningAlgorithm NullableString `json:"SigningAlgorithm,omitempty"` + AltSigningAlgorithm NullableString `json:"AltSigningAlgorithm,omitempty"` + CertStateString NullableString `json:"CertStateString,omitempty"` + KeyTypeString NullableString `json:"KeyTypeString,omitempty"` + AltKeyTypeString NullableString `json:"AltKeyTypeString,omitempty"` + RevocationEffDate NullableTime `json:"RevocationEffDate,omitempty"` + RevocationReason *KeyfactorPKIEnumsRevokeCode `json:"RevocationReason,omitempty"` + RevocationComment NullableString `json:"RevocationComment,omitempty"` + CertificateAuthorityId NullableInt32 `json:"CertificateAuthorityId,omitempty"` + CertificateAuthorityName NullableString `json:"CertificateAuthorityName,omitempty"` + // Full template display name. + TemplateName NullableString `json:"TemplateName,omitempty"` + ArchivedKey *bool `json:"ArchivedKey,omitempty"` + HasPrivateKey *bool `json:"HasPrivateKey,omitempty"` + HasAltPrivateKey *bool `json:"HasAltPrivateKey,omitempty"` + PrincipalName NullableString `json:"PrincipalName,omitempty"` + CertRequestId NullableInt32 `json:"CertRequestId,omitempty"` + RequesterName NullableString `json:"RequesterName,omitempty"` + ContentBytes NullableString `json:"ContentBytes,omitempty"` + ExtendedKeyUsages []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel `json:"ExtendedKeyUsages,omitempty"` + SubjectAltNameElements []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel `json:"SubjectAltNameElements,omitempty"` + CRLDistributionPoints []CertificatesCertificateRetrievalResponseCRLDistributionPointModel `json:"CRLDistributionPoints,omitempty"` + LocationsCount []CertificatesCertificateRetrievalResponseLocationCountModel `json:"LocationsCount,omitempty"` + SSLLocations []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel `json:"SSLLocations,omitempty"` + Locations []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel `json:"Locations,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` + CARowIndex NullableInt64 `json:"CARowIndex,omitempty"` + CARecordId NullableString `json:"CARecordId,omitempty"` + DetailedKeyUsage *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel `json:"DetailedKeyUsage,omitempty"` + KeyRecoverable *bool `json:"KeyRecoverable,omitempty"` + Curve NullableString `json:"Curve,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponse instantiates a new CertificatesCertificateRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponse() *CertificatesCertificateRetrievalResponse { + this := CertificatesCertificateRetrievalResponse{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseWithDefaults instantiates a new CertificatesCertificateRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseWithDefaults() *CertificatesCertificateRetrievalResponse { + this := CertificatesCertificateRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CertificatesCertificateRetrievalResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CertificatesCertificateRetrievalResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *CertificatesCertificateRetrievalResponse) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *CertificatesCertificateRetrievalResponse) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetImportDate returns the ImportDate field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetImportDate() time.Time { + if o == nil || isNil(o.ImportDate) { + var ret time.Time + return ret + } + return *o.ImportDate +} + +// GetImportDateOk returns a tuple with the ImportDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetImportDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ImportDate) { + return nil, false + } + return o.ImportDate, true +} + +// HasImportDate returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasImportDate() bool { + if o != nil && !isNil(o.ImportDate) { + return true + } + + return false +} + +// SetImportDate gets a reference to the given time.Time and assigns it to the ImportDate field. +func (o *CertificatesCertificateRetrievalResponse) SetImportDate(v time.Time) { + o.ImportDate = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *CertificatesCertificateRetrievalResponse) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *CertificatesCertificateRetrievalResponse) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CertificatesCertificateRetrievalResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetPrincipalId returns the PrincipalId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetPrincipalId() int32 { + if o == nil || isNil(o.PrincipalId.Get()) { + var ret int32 + return ret + } + return *o.PrincipalId.Get() +} + +// GetPrincipalIdOk returns a tuple with the PrincipalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetPrincipalIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PrincipalId.Get(), o.PrincipalId.IsSet() +} + +// HasPrincipalId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasPrincipalId() bool { + if o != nil && o.PrincipalId.IsSet() { + return true + } + + return false +} + +// SetPrincipalId gets a reference to the given NullableInt32 and assigns it to the PrincipalId field. +func (o *CertificatesCertificateRetrievalResponse) SetPrincipalId(v int32) { + o.PrincipalId.Set(&v) +} + +// SetPrincipalIdNil sets the value for PrincipalId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetPrincipalIdNil() { + o.PrincipalId.Set(nil) +} + +// UnsetPrincipalId ensures that no value is present for PrincipalId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetPrincipalId() { + o.PrincipalId.Unset() +} + +// GetOwnerRoleId returns the OwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleId() int32 { + if o == nil || isNil(o.OwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.OwnerRoleId.Get() +} + +// GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleId.Get(), o.OwnerRoleId.IsSet() +} + +// HasOwnerRoleId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasOwnerRoleId() bool { + if o != nil && o.OwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the OwnerRoleId field. +func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleId(v int32) { + o.OwnerRoleId.Set(&v) +} + +// SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleIdNil() { + o.OwnerRoleId.Set(nil) +} + +// UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetOwnerRoleId() { + o.OwnerRoleId.Unset() +} + +// GetOwnerRoleName returns the OwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleName() string { + if o == nil || isNil(o.OwnerRoleName.Get()) { + var ret string + return ret + } + return *o.OwnerRoleName.Get() +} + +// GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleName.Get(), o.OwnerRoleName.IsSet() +} + +// HasOwnerRoleName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasOwnerRoleName() bool { + if o != nil && o.OwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleName gets a reference to the given NullableString and assigns it to the OwnerRoleName field. +func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleName(v string) { + o.OwnerRoleName.Set(&v) +} + +// SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetOwnerRoleNameNil() { + o.OwnerRoleName.Set(nil) +} + +// UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetOwnerRoleName() { + o.OwnerRoleName.Unset() +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId.Get()) { + var ret int32 + return ret + } + return *o.TemplateId.Get() +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetTemplateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TemplateId.Get(), o.TemplateId.IsSet() +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasTemplateId() bool { + if o != nil && o.TemplateId.IsSet() { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given NullableInt32 and assigns it to the TemplateId field. +func (o *CertificatesCertificateRetrievalResponse) SetTemplateId(v int32) { + o.TemplateId.Set(&v) +} + +// SetTemplateIdNil sets the value for TemplateId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetTemplateIdNil() { + o.TemplateId.Set(nil) +} + +// UnsetTemplateId ensures that no value is present for TemplateId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetTemplateId() { + o.TemplateId.Unset() +} + +// GetCertState returns the CertState field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetCertState() KeyfactorPKIEnumsCertificateState { + if o == nil || isNil(o.CertState) { + var ret KeyfactorPKIEnumsCertificateState + return ret + } + return *o.CertState +} + +// GetCertStateOk returns a tuple with the CertState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetCertStateOk() (*KeyfactorPKIEnumsCertificateState, bool) { + if o == nil || isNil(o.CertState) { + return nil, false + } + return o.CertState, true +} + +// HasCertState returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCertState() bool { + if o != nil && !isNil(o.CertState) { + return true + } + + return false +} + +// SetCertState gets a reference to the given KeyfactorPKIEnumsCertificateState and assigns it to the CertState field. +func (o *CertificatesCertificateRetrievalResponse) SetCertState(v KeyfactorPKIEnumsCertificateState) { + o.CertState = &v +} + +// GetKeySizeInBits returns the KeySizeInBits field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetKeySizeInBits() int32 { + if o == nil || isNil(o.KeySizeInBits) { + var ret int32 + return ret + } + return *o.KeySizeInBits +} + +// GetKeySizeInBitsOk returns a tuple with the KeySizeInBits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetKeySizeInBitsOk() (*int32, bool) { + if o == nil || isNil(o.KeySizeInBits) { + return nil, false + } + return o.KeySizeInBits, true +} + +// HasKeySizeInBits returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasKeySizeInBits() bool { + if o != nil && !isNil(o.KeySizeInBits) { + return true + } + + return false +} + +// SetKeySizeInBits gets a reference to the given int32 and assigns it to the KeySizeInBits field. +func (o *CertificatesCertificateRetrievalResponse) SetKeySizeInBits(v int32) { + o.KeySizeInBits = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetKeyType() KeyfactorPKIEnumsEncryptionKeyType { + if o == nil || isNil(o.KeyType) { + var ret KeyfactorPKIEnumsEncryptionKeyType + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeOk() (*KeyfactorPKIEnumsEncryptionKeyType, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given KeyfactorPKIEnumsEncryptionKeyType and assigns it to the KeyType field. +func (o *CertificatesCertificateRetrievalResponse) SetKeyType(v KeyfactorPKIEnumsEncryptionKeyType) { + o.KeyType = &v +} + +// GetAltKeySizeInBits returns the AltKeySizeInBits field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetAltKeySizeInBits() int32 { + if o == nil || isNil(o.AltKeySizeInBits) { + var ret int32 + return ret + } + return *o.AltKeySizeInBits +} + +// GetAltKeySizeInBitsOk returns a tuple with the AltKeySizeInBits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetAltKeySizeInBitsOk() (*int32, bool) { + if o == nil || isNil(o.AltKeySizeInBits) { + return nil, false + } + return o.AltKeySizeInBits, true +} + +// HasAltKeySizeInBits returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasAltKeySizeInBits() bool { + if o != nil && !isNil(o.AltKeySizeInBits) { + return true + } + + return false +} + +// SetAltKeySizeInBits gets a reference to the given int32 and assigns it to the AltKeySizeInBits field. +func (o *CertificatesCertificateRetrievalResponse) SetAltKeySizeInBits(v int32) { + o.AltKeySizeInBits = &v +} + +// GetAltKeyType returns the AltKeyType field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetAltKeyType() KeyfactorPKIEnumsEncryptionKeyType { + if o == nil || isNil(o.AltKeyType) { + var ret KeyfactorPKIEnumsEncryptionKeyType + return ret + } + return *o.AltKeyType +} + +// GetAltKeyTypeOk returns a tuple with the AltKeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeOk() (*KeyfactorPKIEnumsEncryptionKeyType, bool) { + if o == nil || isNil(o.AltKeyType) { + return nil, false + } + return o.AltKeyType, true +} + +// HasAltKeyType returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasAltKeyType() bool { + if o != nil && !isNil(o.AltKeyType) { + return true + } + + return false +} + +// SetAltKeyType gets a reference to the given KeyfactorPKIEnumsEncryptionKeyType and assigns it to the AltKeyType field. +func (o *CertificatesCertificateRetrievalResponse) SetAltKeyType(v KeyfactorPKIEnumsEncryptionKeyType) { + o.AltKeyType = &v +} + +// GetRequesterId returns the RequesterId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetRequesterId() int32 { + if o == nil || isNil(o.RequesterId.Get()) { + var ret int32 + return ret + } + return *o.RequesterId.Get() +} + +// GetRequesterIdOk returns a tuple with the RequesterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetRequesterIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RequesterId.Get(), o.RequesterId.IsSet() +} + +// HasRequesterId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasRequesterId() bool { + if o != nil && o.RequesterId.IsSet() { + return true + } + + return false +} + +// SetRequesterId gets a reference to the given NullableInt32 and assigns it to the RequesterId field. +func (o *CertificatesCertificateRetrievalResponse) SetRequesterId(v int32) { + o.RequesterId.Set(&v) +} + +// SetRequesterIdNil sets the value for RequesterId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetRequesterIdNil() { + o.RequesterId.Set(nil) +} + +// UnsetRequesterId ensures that no value is present for RequesterId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetRequesterId() { + o.RequesterId.Unset() +} + +// GetIssuedOU returns the IssuedOU field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetIssuedOU() string { + if o == nil || isNil(o.IssuedOU.Get()) { + var ret string + return ret + } + return *o.IssuedOU.Get() +} + +// GetIssuedOUOk returns a tuple with the IssuedOU field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetIssuedOUOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedOU.Get(), o.IssuedOU.IsSet() +} + +// HasIssuedOU returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasIssuedOU() bool { + if o != nil && o.IssuedOU.IsSet() { + return true + } + + return false +} + +// SetIssuedOU gets a reference to the given NullableString and assigns it to the IssuedOU field. +func (o *CertificatesCertificateRetrievalResponse) SetIssuedOU(v string) { + o.IssuedOU.Set(&v) +} + +// SetIssuedOUNil sets the value for IssuedOU to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetIssuedOUNil() { + o.IssuedOU.Set(nil) +} + +// UnsetIssuedOU ensures that no value is present for IssuedOU, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedOU() { + o.IssuedOU.Unset() +} + +// GetIssuedEmail returns the IssuedEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetIssuedEmail() string { + if o == nil || isNil(o.IssuedEmail.Get()) { + var ret string + return ret + } + return *o.IssuedEmail.Get() +} + +// GetIssuedEmailOk returns a tuple with the IssuedEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetIssuedEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedEmail.Get(), o.IssuedEmail.IsSet() +} + +// HasIssuedEmail returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasIssuedEmail() bool { + if o != nil && o.IssuedEmail.IsSet() { + return true + } + + return false +} + +// SetIssuedEmail gets a reference to the given NullableString and assigns it to the IssuedEmail field. +func (o *CertificatesCertificateRetrievalResponse) SetIssuedEmail(v string) { + o.IssuedEmail.Set(&v) +} + +// SetIssuedEmailNil sets the value for IssuedEmail to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetIssuedEmailNil() { + o.IssuedEmail.Set(nil) +} + +// UnsetIssuedEmail ensures that no value is present for IssuedEmail, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetIssuedEmail() { + o.IssuedEmail.Unset() +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage.Get()) { + var ret int32 + return ret + } + return *o.KeyUsage.Get() +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyUsage.Get(), o.KeyUsage.IsSet() +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasKeyUsage() bool { + if o != nil && o.KeyUsage.IsSet() { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given NullableInt32 and assigns it to the KeyUsage field. +func (o *CertificatesCertificateRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage.Set(&v) +} + +// SetKeyUsageNil sets the value for KeyUsage to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetKeyUsageNil() { + o.KeyUsage.Set(nil) +} + +// UnsetKeyUsage ensures that no value is present for KeyUsage, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetKeyUsage() { + o.KeyUsage.Unset() +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm.Get()) { + var ret string + return ret + } + return *o.SigningAlgorithm.Get() +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetSigningAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SigningAlgorithm.Get(), o.SigningAlgorithm.IsSet() +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasSigningAlgorithm() bool { + if o != nil && o.SigningAlgorithm.IsSet() { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given NullableString and assigns it to the SigningAlgorithm field. +func (o *CertificatesCertificateRetrievalResponse) SetSigningAlgorithm(v string) { + o.SigningAlgorithm.Set(&v) +} + +// SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetSigningAlgorithmNil() { + o.SigningAlgorithm.Set(nil) +} + +// UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetSigningAlgorithm() { + o.SigningAlgorithm.Unset() +} + +// GetAltSigningAlgorithm returns the AltSigningAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetAltSigningAlgorithm() string { + if o == nil || isNil(o.AltSigningAlgorithm.Get()) { + var ret string + return ret + } + return *o.AltSigningAlgorithm.Get() +} + +// GetAltSigningAlgorithmOk returns a tuple with the AltSigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetAltSigningAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AltSigningAlgorithm.Get(), o.AltSigningAlgorithm.IsSet() +} + +// HasAltSigningAlgorithm returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasAltSigningAlgorithm() bool { + if o != nil && o.AltSigningAlgorithm.IsSet() { + return true + } + + return false +} + +// SetAltSigningAlgorithm gets a reference to the given NullableString and assigns it to the AltSigningAlgorithm field. +func (o *CertificatesCertificateRetrievalResponse) SetAltSigningAlgorithm(v string) { + o.AltSigningAlgorithm.Set(&v) +} + +// SetAltSigningAlgorithmNil sets the value for AltSigningAlgorithm to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetAltSigningAlgorithmNil() { + o.AltSigningAlgorithm.Set(nil) +} + +// UnsetAltSigningAlgorithm ensures that no value is present for AltSigningAlgorithm, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetAltSigningAlgorithm() { + o.AltSigningAlgorithm.Unset() +} + +// GetCertStateString returns the CertStateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCertStateString() string { + if o == nil || isNil(o.CertStateString.Get()) { + var ret string + return ret + } + return *o.CertStateString.Get() +} + +// GetCertStateStringOk returns a tuple with the CertStateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCertStateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStateString.Get(), o.CertStateString.IsSet() +} + +// HasCertStateString returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCertStateString() bool { + if o != nil && o.CertStateString.IsSet() { + return true + } + + return false +} + +// SetCertStateString gets a reference to the given NullableString and assigns it to the CertStateString field. +func (o *CertificatesCertificateRetrievalResponse) SetCertStateString(v string) { + o.CertStateString.Set(&v) +} + +// SetCertStateStringNil sets the value for CertStateString to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCertStateStringNil() { + o.CertStateString.Set(nil) +} + +// UnsetCertStateString ensures that no value is present for CertStateString, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCertStateString() { + o.CertStateString.Unset() +} + +// GetKeyTypeString returns the KeyTypeString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeString() string { + if o == nil || isNil(o.KeyTypeString.Get()) { + var ret string + return ret + } + return *o.KeyTypeString.Get() +} + +// GetKeyTypeStringOk returns a tuple with the KeyTypeString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetKeyTypeStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyTypeString.Get(), o.KeyTypeString.IsSet() +} + +// HasKeyTypeString returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasKeyTypeString() bool { + if o != nil && o.KeyTypeString.IsSet() { + return true + } + + return false +} + +// SetKeyTypeString gets a reference to the given NullableString and assigns it to the KeyTypeString field. +func (o *CertificatesCertificateRetrievalResponse) SetKeyTypeString(v string) { + o.KeyTypeString.Set(&v) +} + +// SetKeyTypeStringNil sets the value for KeyTypeString to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetKeyTypeStringNil() { + o.KeyTypeString.Set(nil) +} + +// UnsetKeyTypeString ensures that no value is present for KeyTypeString, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetKeyTypeString() { + o.KeyTypeString.Unset() +} + +// GetAltKeyTypeString returns the AltKeyTypeString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeString() string { + if o == nil || isNil(o.AltKeyTypeString.Get()) { + var ret string + return ret + } + return *o.AltKeyTypeString.Get() +} + +// GetAltKeyTypeStringOk returns a tuple with the AltKeyTypeString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetAltKeyTypeStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AltKeyTypeString.Get(), o.AltKeyTypeString.IsSet() +} + +// HasAltKeyTypeString returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasAltKeyTypeString() bool { + if o != nil && o.AltKeyTypeString.IsSet() { + return true + } + + return false +} + +// SetAltKeyTypeString gets a reference to the given NullableString and assigns it to the AltKeyTypeString field. +func (o *CertificatesCertificateRetrievalResponse) SetAltKeyTypeString(v string) { + o.AltKeyTypeString.Set(&v) +} + +// SetAltKeyTypeStringNil sets the value for AltKeyTypeString to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetAltKeyTypeStringNil() { + o.AltKeyTypeString.Set(nil) +} + +// UnsetAltKeyTypeString ensures that no value is present for AltKeyTypeString, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetAltKeyTypeString() { + o.AltKeyTypeString.Unset() +} + +// GetRevocationEffDate returns the RevocationEffDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetRevocationEffDate() time.Time { + if o == nil || isNil(o.RevocationEffDate.Get()) { + var ret time.Time + return ret + } + return *o.RevocationEffDate.Get() +} + +// GetRevocationEffDateOk returns a tuple with the RevocationEffDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetRevocationEffDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.RevocationEffDate.Get(), o.RevocationEffDate.IsSet() +} + +// HasRevocationEffDate returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasRevocationEffDate() bool { + if o != nil && o.RevocationEffDate.IsSet() { + return true + } + + return false +} + +// SetRevocationEffDate gets a reference to the given NullableTime and assigns it to the RevocationEffDate field. +func (o *CertificatesCertificateRetrievalResponse) SetRevocationEffDate(v time.Time) { + o.RevocationEffDate.Set(&v) +} + +// SetRevocationEffDateNil sets the value for RevocationEffDate to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetRevocationEffDateNil() { + o.RevocationEffDate.Set(nil) +} + +// UnsetRevocationEffDate ensures that no value is present for RevocationEffDate, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetRevocationEffDate() { + o.RevocationEffDate.Unset() +} + +// GetRevocationReason returns the RevocationReason field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetRevocationReason() KeyfactorPKIEnumsRevokeCode { + if o == nil || isNil(o.RevocationReason) { + var ret KeyfactorPKIEnumsRevokeCode + return ret + } + return *o.RevocationReason +} + +// GetRevocationReasonOk returns a tuple with the RevocationReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetRevocationReasonOk() (*KeyfactorPKIEnumsRevokeCode, bool) { + if o == nil || isNil(o.RevocationReason) { + return nil, false + } + return o.RevocationReason, true +} + +// HasRevocationReason returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasRevocationReason() bool { + if o != nil && !isNil(o.RevocationReason) { + return true + } + + return false +} + +// SetRevocationReason gets a reference to the given KeyfactorPKIEnumsRevokeCode and assigns it to the RevocationReason field. +func (o *CertificatesCertificateRetrievalResponse) SetRevocationReason(v KeyfactorPKIEnumsRevokeCode) { + o.RevocationReason = &v +} + +// GetRevocationComment returns the RevocationComment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetRevocationComment() string { + if o == nil || isNil(o.RevocationComment.Get()) { + var ret string + return ret + } + return *o.RevocationComment.Get() +} + +// GetRevocationCommentOk returns a tuple with the RevocationComment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetRevocationCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RevocationComment.Get(), o.RevocationComment.IsSet() +} + +// HasRevocationComment returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasRevocationComment() bool { + if o != nil && o.RevocationComment.IsSet() { + return true + } + + return false +} + +// SetRevocationComment gets a reference to the given NullableString and assigns it to the RevocationComment field. +func (o *CertificatesCertificateRetrievalResponse) SetRevocationComment(v string) { + o.RevocationComment.Set(&v) +} + +// SetRevocationCommentNil sets the value for RevocationComment to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetRevocationCommentNil() { + o.RevocationComment.Set(nil) +} + +// UnsetRevocationComment ensures that no value is present for RevocationComment, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetRevocationComment() { + o.RevocationComment.Unset() +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId.Get()) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId.Get() +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthorityId.Get(), o.CertificateAuthorityId.IsSet() +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCertificateAuthorityId() bool { + if o != nil && o.CertificateAuthorityId.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given NullableInt32 and assigns it to the CertificateAuthorityId field. +func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId.Set(&v) +} + +// SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityIdNil() { + o.CertificateAuthorityId.Set(nil) +} + +// UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCertificateAuthorityId() { + o.CertificateAuthorityId.Unset() +} + +// GetCertificateAuthorityName returns the CertificateAuthorityName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityName() string { + if o == nil || isNil(o.CertificateAuthorityName.Get()) { + var ret string + return ret + } + return *o.CertificateAuthorityName.Get() +} + +// GetCertificateAuthorityNameOk returns a tuple with the CertificateAuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCertificateAuthorityNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthorityName.Get(), o.CertificateAuthorityName.IsSet() +} + +// HasCertificateAuthorityName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCertificateAuthorityName() bool { + if o != nil && o.CertificateAuthorityName.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthorityName gets a reference to the given NullableString and assigns it to the CertificateAuthorityName field. +func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityName(v string) { + o.CertificateAuthorityName.Set(&v) +} + +// SetCertificateAuthorityNameNil sets the value for CertificateAuthorityName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCertificateAuthorityNameNil() { + o.CertificateAuthorityName.Set(nil) +} + +// UnsetCertificateAuthorityName ensures that no value is present for CertificateAuthorityName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCertificateAuthorityName() { + o.CertificateAuthorityName.Unset() +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName.Get()) { + var ret string + return ret + } + return *o.TemplateName.Get() +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TemplateName.Get(), o.TemplateName.IsSet() +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasTemplateName() bool { + if o != nil && o.TemplateName.IsSet() { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given NullableString and assigns it to the TemplateName field. +func (o *CertificatesCertificateRetrievalResponse) SetTemplateName(v string) { + o.TemplateName.Set(&v) +} + +// SetTemplateNameNil sets the value for TemplateName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetTemplateNameNil() { + o.TemplateName.Set(nil) +} + +// UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetTemplateName() { + o.TemplateName.Unset() +} + +// GetArchivedKey returns the ArchivedKey field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetArchivedKey() bool { + if o == nil || isNil(o.ArchivedKey) { + var ret bool + return ret + } + return *o.ArchivedKey +} + +// GetArchivedKeyOk returns a tuple with the ArchivedKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetArchivedKeyOk() (*bool, bool) { + if o == nil || isNil(o.ArchivedKey) { + return nil, false + } + return o.ArchivedKey, true +} + +// HasArchivedKey returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasArchivedKey() bool { + if o != nil && !isNil(o.ArchivedKey) { + return true + } + + return false +} + +// SetArchivedKey gets a reference to the given bool and assigns it to the ArchivedKey field. +func (o *CertificatesCertificateRetrievalResponse) SetArchivedKey(v bool) { + o.ArchivedKey = &v +} + +// GetHasPrivateKey returns the HasPrivateKey field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetHasPrivateKey() bool { + if o == nil || isNil(o.HasPrivateKey) { + var ret bool + return ret + } + return *o.HasPrivateKey +} + +// GetHasPrivateKeyOk returns a tuple with the HasPrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetHasPrivateKeyOk() (*bool, bool) { + if o == nil || isNil(o.HasPrivateKey) { + return nil, false + } + return o.HasPrivateKey, true +} + +// HasHasPrivateKey returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasHasPrivateKey() bool { + if o != nil && !isNil(o.HasPrivateKey) { + return true + } + + return false +} + +// SetHasPrivateKey gets a reference to the given bool and assigns it to the HasPrivateKey field. +func (o *CertificatesCertificateRetrievalResponse) SetHasPrivateKey(v bool) { + o.HasPrivateKey = &v +} + +// GetHasAltPrivateKey returns the HasAltPrivateKey field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetHasAltPrivateKey() bool { + if o == nil || isNil(o.HasAltPrivateKey) { + var ret bool + return ret + } + return *o.HasAltPrivateKey +} + +// GetHasAltPrivateKeyOk returns a tuple with the HasAltPrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetHasAltPrivateKeyOk() (*bool, bool) { + if o == nil || isNil(o.HasAltPrivateKey) { + return nil, false + } + return o.HasAltPrivateKey, true +} + +// HasHasAltPrivateKey returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasHasAltPrivateKey() bool { + if o != nil && !isNil(o.HasAltPrivateKey) { + return true + } + + return false +} + +// SetHasAltPrivateKey gets a reference to the given bool and assigns it to the HasAltPrivateKey field. +func (o *CertificatesCertificateRetrievalResponse) SetHasAltPrivateKey(v bool) { + o.HasAltPrivateKey = &v +} + +// GetPrincipalName returns the PrincipalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetPrincipalName() string { + if o == nil || isNil(o.PrincipalName.Get()) { + var ret string + return ret + } + return *o.PrincipalName.Get() +} + +// GetPrincipalNameOk returns a tuple with the PrincipalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetPrincipalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrincipalName.Get(), o.PrincipalName.IsSet() +} + +// HasPrincipalName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasPrincipalName() bool { + if o != nil && o.PrincipalName.IsSet() { + return true + } + + return false +} + +// SetPrincipalName gets a reference to the given NullableString and assigns it to the PrincipalName field. +func (o *CertificatesCertificateRetrievalResponse) SetPrincipalName(v string) { + o.PrincipalName.Set(&v) +} + +// SetPrincipalNameNil sets the value for PrincipalName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetPrincipalNameNil() { + o.PrincipalName.Set(nil) +} + +// UnsetPrincipalName ensures that no value is present for PrincipalName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetPrincipalName() { + o.PrincipalName.Unset() +} + +// GetCertRequestId returns the CertRequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCertRequestId() int32 { + if o == nil || isNil(o.CertRequestId.Get()) { + var ret int32 + return ret + } + return *o.CertRequestId.Get() +} + +// GetCertRequestIdOk returns a tuple with the CertRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCertRequestIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertRequestId.Get(), o.CertRequestId.IsSet() +} + +// HasCertRequestId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCertRequestId() bool { + if o != nil && o.CertRequestId.IsSet() { + return true + } + + return false +} + +// SetCertRequestId gets a reference to the given NullableInt32 and assigns it to the CertRequestId field. +func (o *CertificatesCertificateRetrievalResponse) SetCertRequestId(v int32) { + o.CertRequestId.Set(&v) +} + +// SetCertRequestIdNil sets the value for CertRequestId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCertRequestIdNil() { + o.CertRequestId.Set(nil) +} + +// UnsetCertRequestId ensures that no value is present for CertRequestId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCertRequestId() { + o.CertRequestId.Unset() +} + +// GetRequesterName returns the RequesterName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetRequesterName() string { + if o == nil || isNil(o.RequesterName.Get()) { + var ret string + return ret + } + return *o.RequesterName.Get() +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetRequesterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequesterName.Get(), o.RequesterName.IsSet() +} + +// HasRequesterName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasRequesterName() bool { + if o != nil && o.RequesterName.IsSet() { + return true + } + + return false +} + +// SetRequesterName gets a reference to the given NullableString and assigns it to the RequesterName field. +func (o *CertificatesCertificateRetrievalResponse) SetRequesterName(v string) { + o.RequesterName.Set(&v) +} + +// SetRequesterNameNil sets the value for RequesterName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetRequesterNameNil() { + o.RequesterName.Set(nil) +} + +// UnsetRequesterName ensures that no value is present for RequesterName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetRequesterName() { + o.RequesterName.Unset() +} + +// GetContentBytes returns the ContentBytes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetContentBytes() string { + if o == nil || isNil(o.ContentBytes.Get()) { + var ret string + return ret + } + return *o.ContentBytes.Get() +} + +// GetContentBytesOk returns a tuple with the ContentBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetContentBytesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContentBytes.Get(), o.ContentBytes.IsSet() +} + +// HasContentBytes returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasContentBytes() bool { + if o != nil && o.ContentBytes.IsSet() { + return true + } + + return false +} + +// SetContentBytes gets a reference to the given NullableString and assigns it to the ContentBytes field. +func (o *CertificatesCertificateRetrievalResponse) SetContentBytes(v string) { + o.ContentBytes.Set(&v) +} + +// SetContentBytesNil sets the value for ContentBytes to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetContentBytesNil() { + o.ContentBytes.Set(nil) +} + +// UnsetContentBytes ensures that no value is present for ContentBytes, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetContentBytes() { + o.ContentBytes.Unset() +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetExtendedKeyUsages() []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetExtendedKeyUsagesOk() ([]CertificatesCertificateRetrievalResponseExtendedKeyUsageModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel and assigns it to the ExtendedKeyUsages field. +func (o *CertificatesCertificateRetrievalResponse) SetExtendedKeyUsages(v []CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) { + o.ExtendedKeyUsages = v +} + +// GetSubjectAltNameElements returns the SubjectAltNameElements field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetSubjectAltNameElements() []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel + return ret + } + return o.SubjectAltNameElements +} + +// GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetSubjectAltNameElementsOk() ([]CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel, bool) { + if o == nil || isNil(o.SubjectAltNameElements) { + return nil, false + } + return o.SubjectAltNameElements, true +} + +// HasSubjectAltNameElements returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasSubjectAltNameElements() bool { + if o != nil && isNil(o.SubjectAltNameElements) { + return true + } + + return false +} + +// SetSubjectAltNameElements gets a reference to the given []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel and assigns it to the SubjectAltNameElements field. +func (o *CertificatesCertificateRetrievalResponse) SetSubjectAltNameElements(v []CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) { + o.SubjectAltNameElements = v +} + +// GetCRLDistributionPoints returns the CRLDistributionPoints field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCRLDistributionPoints() []CertificatesCertificateRetrievalResponseCRLDistributionPointModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseCRLDistributionPointModel + return ret + } + return o.CRLDistributionPoints +} + +// GetCRLDistributionPointsOk returns a tuple with the CRLDistributionPoints field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCRLDistributionPointsOk() ([]CertificatesCertificateRetrievalResponseCRLDistributionPointModel, bool) { + if o == nil || isNil(o.CRLDistributionPoints) { + return nil, false + } + return o.CRLDistributionPoints, true +} + +// HasCRLDistributionPoints returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCRLDistributionPoints() bool { + if o != nil && isNil(o.CRLDistributionPoints) { + return true + } + + return false +} + +// SetCRLDistributionPoints gets a reference to the given []CertificatesCertificateRetrievalResponseCRLDistributionPointModel and assigns it to the CRLDistributionPoints field. +func (o *CertificatesCertificateRetrievalResponse) SetCRLDistributionPoints(v []CertificatesCertificateRetrievalResponseCRLDistributionPointModel) { + o.CRLDistributionPoints = v +} + +// GetLocationsCount returns the LocationsCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetLocationsCount() []CertificatesCertificateRetrievalResponseLocationCountModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseLocationCountModel + return ret + } + return o.LocationsCount +} + +// GetLocationsCountOk returns a tuple with the LocationsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetLocationsCountOk() ([]CertificatesCertificateRetrievalResponseLocationCountModel, bool) { + if o == nil || isNil(o.LocationsCount) { + return nil, false + } + return o.LocationsCount, true +} + +// HasLocationsCount returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasLocationsCount() bool { + if o != nil && isNil(o.LocationsCount) { + return true + } + + return false +} + +// SetLocationsCount gets a reference to the given []CertificatesCertificateRetrievalResponseLocationCountModel and assigns it to the LocationsCount field. +func (o *CertificatesCertificateRetrievalResponse) SetLocationsCount(v []CertificatesCertificateRetrievalResponseLocationCountModel) { + o.LocationsCount = v +} + +// GetSSLLocations returns the SSLLocations field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetSSLLocations() []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel + return ret + } + return o.SSLLocations +} + +// GetSSLLocationsOk returns a tuple with the SSLLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetSSLLocationsOk() ([]CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel, bool) { + if o == nil || isNil(o.SSLLocations) { + return nil, false + } + return o.SSLLocations, true +} + +// HasSSLLocations returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasSSLLocations() bool { + if o != nil && isNil(o.SSLLocations) { + return true + } + + return false +} + +// SetSSLLocations gets a reference to the given []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel and assigns it to the SSLLocations field. +func (o *CertificatesCertificateRetrievalResponse) SetSSLLocations(v []CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) { + o.SSLLocations = v +} + +// GetLocations returns the Locations field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetLocations() []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel { + if o == nil { + var ret []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel + return ret + } + return o.Locations +} + +// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetLocationsOk() ([]CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel, bool) { + if o == nil || isNil(o.Locations) { + return nil, false + } + return o.Locations, true +} + +// HasLocations returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasLocations() bool { + if o != nil && isNil(o.Locations) { + return true + } + + return false +} + +// SetLocations gets a reference to the given []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel and assigns it to the Locations field. +func (o *CertificatesCertificateRetrievalResponse) SetLocations(v []CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) { + o.Locations = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CertificatesCertificateRetrievalResponse) SetMetadata(v map[string]string) { + o.Metadata = v +} + +// GetCARowIndex returns the CARowIndex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCARowIndex() int64 { + if o == nil || isNil(o.CARowIndex.Get()) { + var ret int64 + return ret + } + return *o.CARowIndex.Get() +} + +// GetCARowIndexOk returns a tuple with the CARowIndex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCARowIndexOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.CARowIndex.Get(), o.CARowIndex.IsSet() +} + +// HasCARowIndex returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCARowIndex() bool { + if o != nil && o.CARowIndex.IsSet() { + return true + } + + return false +} + +// SetCARowIndex gets a reference to the given NullableInt64 and assigns it to the CARowIndex field. +func (o *CertificatesCertificateRetrievalResponse) SetCARowIndex(v int64) { + o.CARowIndex.Set(&v) +} + +// SetCARowIndexNil sets the value for CARowIndex to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCARowIndexNil() { + o.CARowIndex.Set(nil) +} + +// UnsetCARowIndex ensures that no value is present for CARowIndex, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCARowIndex() { + o.CARowIndex.Unset() +} + +// GetCARecordId returns the CARecordId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCARecordId() string { + if o == nil || isNil(o.CARecordId.Get()) { + var ret string + return ret + } + return *o.CARecordId.Get() +} + +// GetCARecordIdOk returns a tuple with the CARecordId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCARecordIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CARecordId.Get(), o.CARecordId.IsSet() +} + +// HasCARecordId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCARecordId() bool { + if o != nil && o.CARecordId.IsSet() { + return true + } + + return false +} + +// SetCARecordId gets a reference to the given NullableString and assigns it to the CARecordId field. +func (o *CertificatesCertificateRetrievalResponse) SetCARecordId(v string) { + o.CARecordId.Set(&v) +} + +// SetCARecordIdNil sets the value for CARecordId to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCARecordIdNil() { + o.CARecordId.Set(nil) +} + +// UnsetCARecordId ensures that no value is present for CARecordId, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCARecordId() { + o.CARecordId.Unset() +} + +// GetDetailedKeyUsage returns the DetailedKeyUsage field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetDetailedKeyUsage() CertificatesCertificateRetrievalResponseDetailedKeyUsageModel { + if o == nil || isNil(o.DetailedKeyUsage) { + var ret CertificatesCertificateRetrievalResponseDetailedKeyUsageModel + return ret + } + return *o.DetailedKeyUsage +} + +// GetDetailedKeyUsageOk returns a tuple with the DetailedKeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetDetailedKeyUsageOk() (*CertificatesCertificateRetrievalResponseDetailedKeyUsageModel, bool) { + if o == nil || isNil(o.DetailedKeyUsage) { + return nil, false + } + return o.DetailedKeyUsage, true +} + +// HasDetailedKeyUsage returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasDetailedKeyUsage() bool { + if o != nil && !isNil(o.DetailedKeyUsage) { + return true + } + + return false +} + +// SetDetailedKeyUsage gets a reference to the given CertificatesCertificateRetrievalResponseDetailedKeyUsageModel and assigns it to the DetailedKeyUsage field. +func (o *CertificatesCertificateRetrievalResponse) SetDetailedKeyUsage(v CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) { + o.DetailedKeyUsage = &v +} + +// GetKeyRecoverable returns the KeyRecoverable field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponse) GetKeyRecoverable() bool { + if o == nil || isNil(o.KeyRecoverable) { + var ret bool + return ret + } + return *o.KeyRecoverable +} + +// GetKeyRecoverableOk returns a tuple with the KeyRecoverable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponse) GetKeyRecoverableOk() (*bool, bool) { + if o == nil || isNil(o.KeyRecoverable) { + return nil, false + } + return o.KeyRecoverable, true +} + +// HasKeyRecoverable returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasKeyRecoverable() bool { + if o != nil && !isNil(o.KeyRecoverable) { + return true + } + + return false +} + +// SetKeyRecoverable gets a reference to the given bool and assigns it to the KeyRecoverable field. +func (o *CertificatesCertificateRetrievalResponse) SetKeyRecoverable(v bool) { + o.KeyRecoverable = &v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponse) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponse) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponse) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *CertificatesCertificateRetrievalResponse) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *CertificatesCertificateRetrievalResponse) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponse) UnsetCurve() { + o.Curve.Unset() +} + +func (o CertificatesCertificateRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if !isNil(o.ImportDate) { + toSerialize["ImportDate"] = o.ImportDate + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.PrincipalId.IsSet() { + toSerialize["PrincipalId"] = o.PrincipalId.Get() + } + if o.OwnerRoleId.IsSet() { + toSerialize["OwnerRoleId"] = o.OwnerRoleId.Get() + } + if o.OwnerRoleName.IsSet() { + toSerialize["OwnerRoleName"] = o.OwnerRoleName.Get() + } + if o.TemplateId.IsSet() { + toSerialize["TemplateId"] = o.TemplateId.Get() + } + if !isNil(o.CertState) { + toSerialize["CertState"] = o.CertState + } + if !isNil(o.KeySizeInBits) { + toSerialize["KeySizeInBits"] = o.KeySizeInBits + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.AltKeySizeInBits) { + toSerialize["AltKeySizeInBits"] = o.AltKeySizeInBits + } + if !isNil(o.AltKeyType) { + toSerialize["AltKeyType"] = o.AltKeyType + } + if o.RequesterId.IsSet() { + toSerialize["RequesterId"] = o.RequesterId.Get() + } + if o.IssuedOU.IsSet() { + toSerialize["IssuedOU"] = o.IssuedOU.Get() + } + if o.IssuedEmail.IsSet() { + toSerialize["IssuedEmail"] = o.IssuedEmail.Get() + } + if o.KeyUsage.IsSet() { + toSerialize["KeyUsage"] = o.KeyUsage.Get() + } + if o.SigningAlgorithm.IsSet() { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm.Get() + } + if o.AltSigningAlgorithm.IsSet() { + toSerialize["AltSigningAlgorithm"] = o.AltSigningAlgorithm.Get() + } + if o.CertStateString.IsSet() { + toSerialize["CertStateString"] = o.CertStateString.Get() + } + if o.KeyTypeString.IsSet() { + toSerialize["KeyTypeString"] = o.KeyTypeString.Get() + } + if o.AltKeyTypeString.IsSet() { + toSerialize["AltKeyTypeString"] = o.AltKeyTypeString.Get() + } + if o.RevocationEffDate.IsSet() { + toSerialize["RevocationEffDate"] = o.RevocationEffDate.Get() + } + if !isNil(o.RevocationReason) { + toSerialize["RevocationReason"] = o.RevocationReason + } + if o.RevocationComment.IsSet() { + toSerialize["RevocationComment"] = o.RevocationComment.Get() + } + if o.CertificateAuthorityId.IsSet() { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId.Get() + } + if o.CertificateAuthorityName.IsSet() { + toSerialize["CertificateAuthorityName"] = o.CertificateAuthorityName.Get() + } + if o.TemplateName.IsSet() { + toSerialize["TemplateName"] = o.TemplateName.Get() + } + if !isNil(o.ArchivedKey) { + toSerialize["ArchivedKey"] = o.ArchivedKey + } + if !isNil(o.HasPrivateKey) { + toSerialize["HasPrivateKey"] = o.HasPrivateKey + } + if !isNil(o.HasAltPrivateKey) { + toSerialize["HasAltPrivateKey"] = o.HasAltPrivateKey + } + if o.PrincipalName.IsSet() { + toSerialize["PrincipalName"] = o.PrincipalName.Get() + } + if o.CertRequestId.IsSet() { + toSerialize["CertRequestId"] = o.CertRequestId.Get() + } + if o.RequesterName.IsSet() { + toSerialize["RequesterName"] = o.RequesterName.Get() + } + if o.ContentBytes.IsSet() { + toSerialize["ContentBytes"] = o.ContentBytes.Get() + } + if o.ExtendedKeyUsages != nil { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if o.SubjectAltNameElements != nil { + toSerialize["SubjectAltNameElements"] = o.SubjectAltNameElements + } + if o.CRLDistributionPoints != nil { + toSerialize["CRLDistributionPoints"] = o.CRLDistributionPoints + } + if o.LocationsCount != nil { + toSerialize["LocationsCount"] = o.LocationsCount + } + if o.SSLLocations != nil { + toSerialize["SSLLocations"] = o.SSLLocations + } + if o.Locations != nil { + toSerialize["Locations"] = o.Locations + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.CARowIndex.IsSet() { + toSerialize["CARowIndex"] = o.CARowIndex.Get() + } + if o.CARecordId.IsSet() { + toSerialize["CARecordId"] = o.CARecordId.Get() + } + if !isNil(o.DetailedKeyUsage) { + toSerialize["DetailedKeyUsage"] = o.DetailedKeyUsage + } + if !isNil(o.KeyRecoverable) { + toSerialize["KeyRecoverable"] = o.KeyRecoverable + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponse struct { + value *CertificatesCertificateRetrievalResponse + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponse) Get() *CertificatesCertificateRetrievalResponse { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponse) Set(val *CertificatesCertificateRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponse(val *CertificatesCertificateRetrievalResponse) *NullableCertificatesCertificateRetrievalResponse { + return &NullableCertificatesCertificateRetrievalResponse{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_inventory_item_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_inventory_item_model.go new file mode 100644 index 0000000..fcc554b --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_inventory_item_model.go @@ -0,0 +1,347 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + +// CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel struct for CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel +type CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel struct { + StoreMachine NullableString `json:"StoreMachine,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` + StoreType *int32 `json:"StoreType,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + ChainLevel *int32 `json:"ChainLevel,omitempty"` + CertStoreId *string `json:"CertStoreId,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel() *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel { + this := CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults() *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel { + this := CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + return &this +} + +// GetStoreMachine returns the StoreMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachine() string { + if o == nil || isNil(o.StoreMachine.Get()) { + var ret string + return ret + } + return *o.StoreMachine.Get() +} + +// GetStoreMachineOk returns a tuple with the StoreMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StoreMachine.Get(), o.StoreMachine.IsSet() +} + +// HasStoreMachine returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreMachine() bool { + if o != nil && o.StoreMachine.IsSet() { + return true + } + + return false +} + +// SetStoreMachine gets a reference to the given NullableString and assigns it to the StoreMachine field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachine(v string) { + o.StoreMachine.Set(&v) +} + +// SetStoreMachineNil sets the value for StoreMachine to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachineNil() { + o.StoreMachine.Set(nil) +} + +// UnsetStoreMachine ensures that no value is present for StoreMachine, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetStoreMachine() { + o.StoreMachine.Unset() +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreType() int32 { + if o == nil || isNil(o.StoreType) { + var ret int32 + return ret + } + return *o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.StoreType) { + return nil, false + } + return o.StoreType, true +} + +// HasStoreType returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreType() bool { + if o != nil && !isNil(o.StoreType) { + return true + } + + return false +} + +// SetStoreType gets a reference to the given int32 and assigns it to the StoreType field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreType(v int32) { + o.StoreType = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnsetAlias() { + o.Alias.Unset() +} + +// GetChainLevel returns the ChainLevel field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevel() int32 { + if o == nil || isNil(o.ChainLevel) { + var ret int32 + return ret + } + return *o.ChainLevel +} + +// GetChainLevelOk returns a tuple with the ChainLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevelOk() (*int32, bool) { + if o == nil || isNil(o.ChainLevel) { + return nil, false + } + return o.ChainLevel, true +} + +// HasChainLevel returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasChainLevel() bool { + if o != nil && !isNil(o.ChainLevel) { + return true + } + + return false +} + +// SetChainLevel gets a reference to the given int32 and assigns it to the ChainLevel field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetChainLevel(v int32) { + o.ChainLevel = &v +} + +// GetCertStoreId returns the CertStoreId field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreId() string { + if o == nil || isNil(o.CertStoreId) { + var ret string + return ret + } + return *o.CertStoreId +} + +// GetCertStoreIdOk returns a tuple with the CertStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreIdOk() (*string, bool) { + if o == nil || isNil(o.CertStoreId) { + return nil, false + } + return o.CertStoreId, true +} + +// HasCertStoreId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasCertStoreId() bool { + if o != nil && !isNil(o.CertStoreId) { + return true + } + + return false +} + +// SetCertStoreId gets a reference to the given string and assigns it to the CertStoreId field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetCertStoreId(v string) { + o.CertStoreId = &v +} + +func (o CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.StoreMachine.IsSet() { + toSerialize["StoreMachine"] = o.StoreMachine.Get() + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if !isNil(o.StoreType) { + toSerialize["StoreType"] = o.StoreType + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.ChainLevel) { + toSerialize["ChainLevel"] = o.ChainLevel + } + if !isNil(o.CertStoreId) { + toSerialize["CertStoreId"] = o.CertStoreId + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel struct { + value *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) Get() *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) Set(val *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel(val *CertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) *NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel { + return &NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_location_detail_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_location_detail_model.go new file mode 100644 index 0000000..da7a913 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_certificate_store_location_detail_model.go @@ -0,0 +1,333 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + +// CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel struct for CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel +type CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel struct { + StorePath NullableString `json:"StorePath,omitempty"` + AgentPool NullableString `json:"AgentPool,omitempty"` + IPAddress NullableString `json:"IPAddress,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` + NetworkName NullableString `json:"NetworkName,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel() *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel { + this := CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults() *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel { + this := CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + return &this +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetAgentPool returns the AgentPool field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPool() string { + if o == nil || isNil(o.AgentPool.Get()) { + var ret string + return ret + } + return *o.AgentPool.Get() +} + +// GetAgentPoolOk returns a tuple with the AgentPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPoolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPool.Get(), o.AgentPool.IsSet() +} + +// HasAgentPool returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasAgentPool() bool { + if o != nil && o.AgentPool.IsSet() { + return true + } + + return false +} + +// SetAgentPool gets a reference to the given NullableString and assigns it to the AgentPool field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPool(v string) { + o.AgentPool.Set(&v) +} + +// SetAgentPoolNil sets the value for AgentPool to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPoolNil() { + o.AgentPool.Set(nil) +} + +// UnsetAgentPool ensures that no value is present for AgentPool, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetAgentPool() { + o.AgentPool.Unset() +} + +// GetIPAddress returns the IPAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddress() string { + if o == nil || isNil(o.IPAddress.Get()) { + var ret string + return ret + } + return *o.IPAddress.Get() +} + +// GetIPAddressOk returns a tuple with the IPAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IPAddress.Get(), o.IPAddress.IsSet() +} + +// HasIPAddress returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasIPAddress() bool { + if o != nil && o.IPAddress.IsSet() { + return true + } + + return false +} + +// SetIPAddress gets a reference to the given NullableString and assigns it to the IPAddress field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddress(v string) { + o.IPAddress.Set(&v) +} + +// SetIPAddressNil sets the value for IPAddress to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddressNil() { + o.IPAddress.Set(nil) +} + +// UnsetIPAddress ensures that no value is present for IPAddress, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetIPAddress() { + o.IPAddress.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetPort() { + o.Port.Unset() +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkName() string { + if o == nil || isNil(o.NetworkName.Get()) { + var ret string + return ret + } + return *o.NetworkName.Get() +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NetworkName.Get(), o.NetworkName.IsSet() +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasNetworkName() bool { + if o != nil && o.NetworkName.IsSet() { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given NullableString and assigns it to the NetworkName field. +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkName(v string) { + o.NetworkName.Set(&v) +} + +// SetNetworkNameNil sets the value for NetworkName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkNameNil() { + o.NetworkName.Set(nil) +} + +// UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnsetNetworkName() { + o.NetworkName.Unset() +} + +func (o CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if o.AgentPool.IsSet() { + toSerialize["AgentPool"] = o.AgentPool.Get() + } + if o.IPAddress.IsSet() { + toSerialize["IPAddress"] = o.IPAddress.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + if o.NetworkName.IsSet() { + toSerialize["NetworkName"] = o.NetworkName.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel struct { + value *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) Get() *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) Set(val *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel(val *CertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) *NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel { + return &NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_crl_distribution_point_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_crl_distribution_point_model.go new file mode 100644 index 0000000..6c55959 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_crl_distribution_point_model.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseCRLDistributionPointModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseCRLDistributionPointModel{} + +// CertificatesCertificateRetrievalResponseCRLDistributionPointModel struct for CertificatesCertificateRetrievalResponseCRLDistributionPointModel +type CertificatesCertificateRetrievalResponseCRLDistributionPointModel struct { + Id *int32 `json:"Id,omitempty"` + Url NullableString `json:"Url,omitempty"` + UrlHash NullableString `json:"UrlHash,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseCRLDistributionPointModel instantiates a new CertificatesCertificateRetrievalResponseCRLDistributionPointModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseCRLDistributionPointModel() *CertificatesCertificateRetrievalResponseCRLDistributionPointModel { + this := CertificatesCertificateRetrievalResponseCRLDistributionPointModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseCRLDistributionPointModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseCRLDistributionPointModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseCRLDistributionPointModelWithDefaults() *CertificatesCertificateRetrievalResponseCRLDistributionPointModel { + this := CertificatesCertificateRetrievalResponseCRLDistributionPointModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetId(v int32) { + o.Id = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrl() string { + if o == nil || isNil(o.Url.Get()) { + var ret string + return ret + } + return *o.Url.Get() +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Url.Get(), o.Url.IsSet() +} + +// HasUrl returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasUrl() bool { + if o != nil && o.Url.IsSet() { + return true + } + + return false +} + +// SetUrl gets a reference to the given NullableString and assigns it to the Url field. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrl(v string) { + o.Url.Set(&v) +} + +// SetUrlNil sets the value for Url to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlNil() { + o.Url.Set(nil) +} + +// UnsetUrl ensures that no value is present for Url, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) UnsetUrl() { + o.Url.Unset() +} + +// GetUrlHash returns the UrlHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHash() string { + if o == nil || isNil(o.UrlHash.Get()) { + var ret string + return ret + } + return *o.UrlHash.Get() +} + +// GetUrlHashOk returns a tuple with the UrlHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UrlHash.Get(), o.UrlHash.IsSet() +} + +// HasUrlHash returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) HasUrlHash() bool { + if o != nil && o.UrlHash.IsSet() { + return true + } + + return false +} + +// SetUrlHash gets a reference to the given NullableString and assigns it to the UrlHash field. +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHash(v string) { + o.UrlHash.Set(&v) +} + +// SetUrlHashNil sets the value for UrlHash to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHashNil() { + o.UrlHash.Set(nil) +} + +// UnsetUrlHash ensures that no value is present for UrlHash, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) UnsetUrlHash() { + o.UrlHash.Unset() +} + +func (o CertificatesCertificateRetrievalResponseCRLDistributionPointModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseCRLDistributionPointModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Url.IsSet() { + toSerialize["Url"] = o.Url.Get() + } + if o.UrlHash.IsSet() { + toSerialize["UrlHash"] = o.UrlHash.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel struct { + value *CertificatesCertificateRetrievalResponseCRLDistributionPointModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) Get() *CertificatesCertificateRetrievalResponseCRLDistributionPointModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) Set(val *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel(val *CertificatesCertificateRetrievalResponseCRLDistributionPointModel) *NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel { + return &NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseCRLDistributionPointModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_detailed_key_usage_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_detailed_key_usage_model.go new file mode 100644 index 0000000..9cd188a --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_detailed_key_usage_model.go @@ -0,0 +1,469 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseDetailedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseDetailedKeyUsageModel{} + +// CertificatesCertificateRetrievalResponseDetailedKeyUsageModel struct for CertificatesCertificateRetrievalResponseDetailedKeyUsageModel +type CertificatesCertificateRetrievalResponseDetailedKeyUsageModel struct { + CrlSign *bool `json:"CrlSign,omitempty"` + DataEncipherment *bool `json:"DataEncipherment,omitempty"` + DecipherOnly *bool `json:"DecipherOnly,omitempty"` + DigitalSignature *bool `json:"DigitalSignature,omitempty"` + EncipherOnly *bool `json:"EncipherOnly,omitempty"` + KeyAgreement *bool `json:"KeyAgreement,omitempty"` + KeyCertSign *bool `json:"KeyCertSign,omitempty"` + KeyEncipherment *bool `json:"KeyEncipherment,omitempty"` + NonRepudiation *bool `json:"NonRepudiation,omitempty"` + HexCode NullableString `json:"HexCode,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModel instantiates a new CertificatesCertificateRetrievalResponseDetailedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModel() *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel { + this := CertificatesCertificateRetrievalResponseDetailedKeyUsageModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseDetailedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults() *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel { + this := CertificatesCertificateRetrievalResponseDetailedKeyUsageModel{} + return &this +} + +// GetCrlSign returns the CrlSign field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSign() bool { + if o == nil || isNil(o.CrlSign) { + var ret bool + return ret + } + return *o.CrlSign +} + +// GetCrlSignOk returns a tuple with the CrlSign field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSignOk() (*bool, bool) { + if o == nil || isNil(o.CrlSign) { + return nil, false + } + return o.CrlSign, true +} + +// HasCrlSign returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasCrlSign() bool { + if o != nil && !isNil(o.CrlSign) { + return true + } + + return false +} + +// SetCrlSign gets a reference to the given bool and assigns it to the CrlSign field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetCrlSign(v bool) { + o.CrlSign = &v +} + +// GetDataEncipherment returns the DataEncipherment field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEncipherment() bool { + if o == nil || isNil(o.DataEncipherment) { + var ret bool + return ret + } + return *o.DataEncipherment +} + +// GetDataEnciphermentOk returns a tuple with the DataEncipherment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEnciphermentOk() (*bool, bool) { + if o == nil || isNil(o.DataEncipherment) { + return nil, false + } + return o.DataEncipherment, true +} + +// HasDataEncipherment returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDataEncipherment() bool { + if o != nil && !isNil(o.DataEncipherment) { + return true + } + + return false +} + +// SetDataEncipherment gets a reference to the given bool and assigns it to the DataEncipherment field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDataEncipherment(v bool) { + o.DataEncipherment = &v +} + +// GetDecipherOnly returns the DecipherOnly field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnly() bool { + if o == nil || isNil(o.DecipherOnly) { + var ret bool + return ret + } + return *o.DecipherOnly +} + +// GetDecipherOnlyOk returns a tuple with the DecipherOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnlyOk() (*bool, bool) { + if o == nil || isNil(o.DecipherOnly) { + return nil, false + } + return o.DecipherOnly, true +} + +// HasDecipherOnly returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDecipherOnly() bool { + if o != nil && !isNil(o.DecipherOnly) { + return true + } + + return false +} + +// SetDecipherOnly gets a reference to the given bool and assigns it to the DecipherOnly field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDecipherOnly(v bool) { + o.DecipherOnly = &v +} + +// GetDigitalSignature returns the DigitalSignature field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignature() bool { + if o == nil || isNil(o.DigitalSignature) { + var ret bool + return ret + } + return *o.DigitalSignature +} + +// GetDigitalSignatureOk returns a tuple with the DigitalSignature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignatureOk() (*bool, bool) { + if o == nil || isNil(o.DigitalSignature) { + return nil, false + } + return o.DigitalSignature, true +} + +// HasDigitalSignature returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasDigitalSignature() bool { + if o != nil && !isNil(o.DigitalSignature) { + return true + } + + return false +} + +// SetDigitalSignature gets a reference to the given bool and assigns it to the DigitalSignature field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetDigitalSignature(v bool) { + o.DigitalSignature = &v +} + +// GetEncipherOnly returns the EncipherOnly field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnly() bool { + if o == nil || isNil(o.EncipherOnly) { + var ret bool + return ret + } + return *o.EncipherOnly +} + +// GetEncipherOnlyOk returns a tuple with the EncipherOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnlyOk() (*bool, bool) { + if o == nil || isNil(o.EncipherOnly) { + return nil, false + } + return o.EncipherOnly, true +} + +// HasEncipherOnly returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasEncipherOnly() bool { + if o != nil && !isNil(o.EncipherOnly) { + return true + } + + return false +} + +// SetEncipherOnly gets a reference to the given bool and assigns it to the EncipherOnly field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetEncipherOnly(v bool) { + o.EncipherOnly = &v +} + +// GetKeyAgreement returns the KeyAgreement field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreement() bool { + if o == nil || isNil(o.KeyAgreement) { + var ret bool + return ret + } + return *o.KeyAgreement +} + +// GetKeyAgreementOk returns a tuple with the KeyAgreement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreementOk() (*bool, bool) { + if o == nil || isNil(o.KeyAgreement) { + return nil, false + } + return o.KeyAgreement, true +} + +// HasKeyAgreement returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyAgreement() bool { + if o != nil && !isNil(o.KeyAgreement) { + return true + } + + return false +} + +// SetKeyAgreement gets a reference to the given bool and assigns it to the KeyAgreement field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyAgreement(v bool) { + o.KeyAgreement = &v +} + +// GetKeyCertSign returns the KeyCertSign field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSign() bool { + if o == nil || isNil(o.KeyCertSign) { + var ret bool + return ret + } + return *o.KeyCertSign +} + +// GetKeyCertSignOk returns a tuple with the KeyCertSign field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSignOk() (*bool, bool) { + if o == nil || isNil(o.KeyCertSign) { + return nil, false + } + return o.KeyCertSign, true +} + +// HasKeyCertSign returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyCertSign() bool { + if o != nil && !isNil(o.KeyCertSign) { + return true + } + + return false +} + +// SetKeyCertSign gets a reference to the given bool and assigns it to the KeyCertSign field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyCertSign(v bool) { + o.KeyCertSign = &v +} + +// GetKeyEncipherment returns the KeyEncipherment field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEncipherment() bool { + if o == nil || isNil(o.KeyEncipherment) { + var ret bool + return ret + } + return *o.KeyEncipherment +} + +// GetKeyEnciphermentOk returns a tuple with the KeyEncipherment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEnciphermentOk() (*bool, bool) { + if o == nil || isNil(o.KeyEncipherment) { + return nil, false + } + return o.KeyEncipherment, true +} + +// HasKeyEncipherment returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyEncipherment() bool { + if o != nil && !isNil(o.KeyEncipherment) { + return true + } + + return false +} + +// SetKeyEncipherment gets a reference to the given bool and assigns it to the KeyEncipherment field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyEncipherment(v bool) { + o.KeyEncipherment = &v +} + +// GetNonRepudiation returns the NonRepudiation field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiation() bool { + if o == nil || isNil(o.NonRepudiation) { + var ret bool + return ret + } + return *o.NonRepudiation +} + +// GetNonRepudiationOk returns a tuple with the NonRepudiation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiationOk() (*bool, bool) { + if o == nil || isNil(o.NonRepudiation) { + return nil, false + } + return o.NonRepudiation, true +} + +// HasNonRepudiation returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasNonRepudiation() bool { + if o != nil && !isNil(o.NonRepudiation) { + return true + } + + return false +} + +// SetNonRepudiation gets a reference to the given bool and assigns it to the NonRepudiation field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetNonRepudiation(v bool) { + o.NonRepudiation = &v +} + +// GetHexCode returns the HexCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCode() string { + if o == nil || isNil(o.HexCode.Get()) { + var ret string + return ret + } + return *o.HexCode.Get() +} + +// GetHexCodeOk returns a tuple with the HexCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.HexCode.Get(), o.HexCode.IsSet() +} + +// HasHexCode returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) HasHexCode() bool { + if o != nil && o.HexCode.IsSet() { + return true + } + + return false +} + +// SetHexCode gets a reference to the given NullableString and assigns it to the HexCode field. +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCode(v string) { + o.HexCode.Set(&v) +} + +// SetHexCodeNil sets the value for HexCode to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCodeNil() { + o.HexCode.Set(nil) +} + +// UnsetHexCode ensures that no value is present for HexCode, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) UnsetHexCode() { + o.HexCode.Unset() +} + +func (o CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CrlSign) { + toSerialize["CrlSign"] = o.CrlSign + } + if !isNil(o.DataEncipherment) { + toSerialize["DataEncipherment"] = o.DataEncipherment + } + if !isNil(o.DecipherOnly) { + toSerialize["DecipherOnly"] = o.DecipherOnly + } + if !isNil(o.DigitalSignature) { + toSerialize["DigitalSignature"] = o.DigitalSignature + } + if !isNil(o.EncipherOnly) { + toSerialize["EncipherOnly"] = o.EncipherOnly + } + if !isNil(o.KeyAgreement) { + toSerialize["KeyAgreement"] = o.KeyAgreement + } + if !isNil(o.KeyCertSign) { + toSerialize["KeyCertSign"] = o.KeyCertSign + } + if !isNil(o.KeyEncipherment) { + toSerialize["KeyEncipherment"] = o.KeyEncipherment + } + if !isNil(o.NonRepudiation) { + toSerialize["NonRepudiation"] = o.NonRepudiation + } + if o.HexCode.IsSet() { + toSerialize["HexCode"] = o.HexCode.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel struct { + value *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) Get() *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) Set(val *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel(val *CertificatesCertificateRetrievalResponseDetailedKeyUsageModel) *NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel { + return &NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseDetailedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_extended_key_usage_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_extended_key_usage_model.go new file mode 100644 index 0000000..edff1bb --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_extended_key_usage_model.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseExtendedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseExtendedKeyUsageModel{} + +// CertificatesCertificateRetrievalResponseExtendedKeyUsageModel struct for CertificatesCertificateRetrievalResponseExtendedKeyUsageModel +type CertificatesCertificateRetrievalResponseExtendedKeyUsageModel struct { + Id *int32 `json:"Id,omitempty"` + Oid NullableString `json:"Oid,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModel instantiates a new CertificatesCertificateRetrievalResponseExtendedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModel() *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel { + this := CertificatesCertificateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseExtendedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults() *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel { + this := CertificatesCertificateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetOid() string { + if o == nil || isNil(o.Oid.Get()) { + var ret string + return ret + } + return *o.Oid.Get() +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oid.Get(), o.Oid.IsSet() +} + +// HasOid returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasOid() bool { + if o != nil && o.Oid.IsSet() { + return true + } + + return false +} + +// SetOid gets a reference to the given NullableString and assigns it to the Oid field. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetOid(v string) { + o.Oid.Set(&v) +} + +// SetOidNil sets the value for Oid to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetOidNil() { + o.Oid.Set(nil) +} + +// UnsetOid ensures that no value is present for Oid, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) UnsetOid() { + o.Oid.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) UnsetDisplayName() { + o.DisplayName.Unset() +} + +func (o CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Oid.IsSet() { + toSerialize["Oid"] = o.Oid.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel struct { + value *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) Get() *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) Set(val *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel(val *CertificatesCertificateRetrievalResponseExtendedKeyUsageModel) *NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel { + return &NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_location_count_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_location_count_model.go new file mode 100644 index 0000000..44b922d --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_location_count_model.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseLocationCountModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseLocationCountModel{} + +// CertificatesCertificateRetrievalResponseLocationCountModel struct for CertificatesCertificateRetrievalResponseLocationCountModel +type CertificatesCertificateRetrievalResponseLocationCountModel struct { + Type NullableString `json:"Type,omitempty"` + Count *int32 `json:"Count,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseLocationCountModel instantiates a new CertificatesCertificateRetrievalResponseLocationCountModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseLocationCountModel() *CertificatesCertificateRetrievalResponseLocationCountModel { + this := CertificatesCertificateRetrievalResponseLocationCountModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseLocationCountModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseLocationCountModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseLocationCountModelWithDefaults() *CertificatesCertificateRetrievalResponseLocationCountModel { + this := CertificatesCertificateRetrievalResponseLocationCountModel{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetType() string { + if o == nil || isNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetType(v string) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) UnsetType() { + o.Type.Unset() +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetCount() int32 { + if o == nil || isNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) GetCountOk() (*int32, bool) { + if o == nil || isNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) HasCount() bool { + if o != nil && !isNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *CertificatesCertificateRetrievalResponseLocationCountModel) SetCount(v int32) { + o.Count = &v +} + +func (o CertificatesCertificateRetrievalResponseLocationCountModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseLocationCountModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type.IsSet() { + toSerialize["Type"] = o.Type.Get() + } + if !isNil(o.Count) { + toSerialize["Count"] = o.Count + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseLocationCountModel struct { + value *CertificatesCertificateRetrievalResponseLocationCountModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseLocationCountModel) Get() *CertificatesCertificateRetrievalResponseLocationCountModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseLocationCountModel) Set(val *CertificatesCertificateRetrievalResponseLocationCountModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseLocationCountModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseLocationCountModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseLocationCountModel(val *CertificatesCertificateRetrievalResponseLocationCountModel) *NullableCertificatesCertificateRetrievalResponseLocationCountModel { + return &NullableCertificatesCertificateRetrievalResponseLocationCountModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseLocationCountModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseLocationCountModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_subject_alternative_name_model.go b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_subject_alternative_name_model.go new file mode 100644 index 0000000..ad4d6b3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_certificate_retrieval_response_subject_alternative_name_model.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel{} + +// CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel struct for CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel +type CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + Type *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType `json:"Type,omitempty"` + ValueHash NullableString `json:"ValueHash,omitempty"` +} + +// NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel instantiates a new CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel() *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel { + this := CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel{} + return &this +} + +// NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults instantiates a new CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults() *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel { + this := CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) UnsetValue() { + o.Value.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetType() KeyfactorPKIPKIConstantsX509SubjectAltNameElementType { + if o == nil || isNil(o.Type) { + var ret KeyfactorPKIPKIConstantsX509SubjectAltNameElementType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetTypeOk() (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given KeyfactorPKIPKIConstantsX509SubjectAltNameElementType and assigns it to the Type field. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetType(v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) { + o.Type = &v +} + +// GetValueHash returns the ValueHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHash() string { + if o == nil || isNil(o.ValueHash.Get()) { + var ret string + return ret + } + return *o.ValueHash.Get() +} + +// GetValueHashOk returns a tuple with the ValueHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ValueHash.Get(), o.ValueHash.IsSet() +} + +// HasValueHash returns a boolean if a field has been set. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) HasValueHash() bool { + if o != nil && o.ValueHash.IsSet() { + return true + } + + return false +} + +// SetValueHash gets a reference to the given NullableString and assigns it to the ValueHash field. +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHash(v string) { + o.ValueHash.Set(&v) +} + +// SetValueHashNil sets the value for ValueHash to be an explicit nil +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHashNil() { + o.ValueHash.Set(nil) +} + +// UnsetValueHash ensures that no value is present for ValueHash, not even an explicit nil +func (o *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) UnsetValueHash() { + o.ValueHash.Unset() +} + +func (o CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if o.ValueHash.IsSet() { + toSerialize["ValueHash"] = o.ValueHash.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel struct { + value *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel + isSet bool +} + +func (v NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) Get() *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel { + return v.value +} + +func (v *NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) Set(val *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel(val *CertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) *NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel { + return &NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateRetrievalResponseSubjectAlternativeNameModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_owner_request.go b/v24/api/keyfactor/v1/model_certificates_owner_request.go new file mode 100644 index 0000000..1049a63 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_owner_request.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesOwnerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesOwnerRequest{} + +// CertificatesOwnerRequest struct for CertificatesOwnerRequest +type CertificatesOwnerRequest struct { + NewRoleId NullableInt32 `json:"NewRoleId,omitempty"` + NewRoleName NullableString `json:"NewRoleName,omitempty"` +} + +// NewCertificatesOwnerRequest instantiates a new CertificatesOwnerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesOwnerRequest() *CertificatesOwnerRequest { + this := CertificatesOwnerRequest{} + return &this +} + +// NewCertificatesOwnerRequestWithDefaults instantiates a new CertificatesOwnerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesOwnerRequestWithDefaults() *CertificatesOwnerRequest { + this := CertificatesOwnerRequest{} + return &this +} + +// GetNewRoleId returns the NewRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesOwnerRequest) GetNewRoleId() int32 { + if o == nil || isNil(o.NewRoleId.Get()) { + var ret int32 + return ret + } + return *o.NewRoleId.Get() +} + +// GetNewRoleIdOk returns a tuple with the NewRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesOwnerRequest) GetNewRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NewRoleId.Get(), o.NewRoleId.IsSet() +} + +// HasNewRoleId returns a boolean if a field has been set. +func (o *CertificatesOwnerRequest) HasNewRoleId() bool { + if o != nil && o.NewRoleId.IsSet() { + return true + } + + return false +} + +// SetNewRoleId gets a reference to the given NullableInt32 and assigns it to the NewRoleId field. +func (o *CertificatesOwnerRequest) SetNewRoleId(v int32) { + o.NewRoleId.Set(&v) +} + +// SetNewRoleIdNil sets the value for NewRoleId to be an explicit nil +func (o *CertificatesOwnerRequest) SetNewRoleIdNil() { + o.NewRoleId.Set(nil) +} + +// UnsetNewRoleId ensures that no value is present for NewRoleId, not even an explicit nil +func (o *CertificatesOwnerRequest) UnsetNewRoleId() { + o.NewRoleId.Unset() +} + +// GetNewRoleName returns the NewRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesOwnerRequest) GetNewRoleName() string { + if o == nil || isNil(o.NewRoleName.Get()) { + var ret string + return ret + } + return *o.NewRoleName.Get() +} + +// GetNewRoleNameOk returns a tuple with the NewRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesOwnerRequest) GetNewRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NewRoleName.Get(), o.NewRoleName.IsSet() +} + +// HasNewRoleName returns a boolean if a field has been set. +func (o *CertificatesOwnerRequest) HasNewRoleName() bool { + if o != nil && o.NewRoleName.IsSet() { + return true + } + + return false +} + +// SetNewRoleName gets a reference to the given NullableString and assigns it to the NewRoleName field. +func (o *CertificatesOwnerRequest) SetNewRoleName(v string) { + o.NewRoleName.Set(&v) +} + +// SetNewRoleNameNil sets the value for NewRoleName to be an explicit nil +func (o *CertificatesOwnerRequest) SetNewRoleNameNil() { + o.NewRoleName.Set(nil) +} + +// UnsetNewRoleName ensures that no value is present for NewRoleName, not even an explicit nil +func (o *CertificatesOwnerRequest) UnsetNewRoleName() { + o.NewRoleName.Unset() +} + +func (o CertificatesOwnerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesOwnerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.NewRoleId.IsSet() { + toSerialize["NewRoleId"] = o.NewRoleId.Get() + } + if o.NewRoleName.IsSet() { + toSerialize["NewRoleName"] = o.NewRoleName.Get() + } + return toSerialize, nil +} + +type NullableCertificatesOwnerRequest struct { + value *CertificatesOwnerRequest + isSet bool +} + +func (v NullableCertificatesOwnerRequest) Get() *CertificatesOwnerRequest { + return v.value +} + +func (v *NullableCertificatesOwnerRequest) Set(val *CertificatesOwnerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesOwnerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesOwnerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesOwnerRequest(val *CertificatesOwnerRequest) *NullableCertificatesOwnerRequest { + return &NullableCertificatesOwnerRequest{value: val, isSet: true} +} + +func (v NullableCertificatesOwnerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesOwnerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_revocation_response.go b/v24/api/keyfactor/v1/model_certificates_revocation_response.go new file mode 100644 index 0000000..57c0fb1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_revocation_response.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesRevocationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesRevocationResponse{} + +// CertificatesRevocationResponse struct for CertificatesRevocationResponse +type CertificatesRevocationResponse struct { + RevokedIds []int32 `json:"RevokedIds,omitempty"` + SuspendedCerts []CertificatesSuspendedRevocationResponse `json:"SuspendedCerts,omitempty"` +} + +// NewCertificatesRevocationResponse instantiates a new CertificatesRevocationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesRevocationResponse() *CertificatesRevocationResponse { + this := CertificatesRevocationResponse{} + return &this +} + +// NewCertificatesRevocationResponseWithDefaults instantiates a new CertificatesRevocationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesRevocationResponseWithDefaults() *CertificatesRevocationResponse { + this := CertificatesRevocationResponse{} + return &this +} + +// GetRevokedIds returns the RevokedIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesRevocationResponse) GetRevokedIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.RevokedIds +} + +// GetRevokedIdsOk returns a tuple with the RevokedIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesRevocationResponse) GetRevokedIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RevokedIds) { + return nil, false + } + return o.RevokedIds, true +} + +// HasRevokedIds returns a boolean if a field has been set. +func (o *CertificatesRevocationResponse) HasRevokedIds() bool { + if o != nil && isNil(o.RevokedIds) { + return true + } + + return false +} + +// SetRevokedIds gets a reference to the given []int32 and assigns it to the RevokedIds field. +func (o *CertificatesRevocationResponse) SetRevokedIds(v []int32) { + o.RevokedIds = v +} + +// GetSuspendedCerts returns the SuspendedCerts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesRevocationResponse) GetSuspendedCerts() []CertificatesSuspendedRevocationResponse { + if o == nil { + var ret []CertificatesSuspendedRevocationResponse + return ret + } + return o.SuspendedCerts +} + +// GetSuspendedCertsOk returns a tuple with the SuspendedCerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesRevocationResponse) GetSuspendedCertsOk() ([]CertificatesSuspendedRevocationResponse, bool) { + if o == nil || isNil(o.SuspendedCerts) { + return nil, false + } + return o.SuspendedCerts, true +} + +// HasSuspendedCerts returns a boolean if a field has been set. +func (o *CertificatesRevocationResponse) HasSuspendedCerts() bool { + if o != nil && isNil(o.SuspendedCerts) { + return true + } + + return false +} + +// SetSuspendedCerts gets a reference to the given []CertificatesSuspendedRevocationResponse and assigns it to the SuspendedCerts field. +func (o *CertificatesRevocationResponse) SetSuspendedCerts(v []CertificatesSuspendedRevocationResponse) { + o.SuspendedCerts = v +} + +func (o CertificatesRevocationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesRevocationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.RevokedIds != nil { + toSerialize["RevokedIds"] = o.RevokedIds + } + if o.SuspendedCerts != nil { + toSerialize["SuspendedCerts"] = o.SuspendedCerts + } + return toSerialize, nil +} + +type NullableCertificatesRevocationResponse struct { + value *CertificatesRevocationResponse + isSet bool +} + +func (v NullableCertificatesRevocationResponse) Get() *CertificatesRevocationResponse { + return v.value +} + +func (v *NullableCertificatesRevocationResponse) Set(val *CertificatesRevocationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesRevocationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesRevocationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesRevocationResponse(val *CertificatesRevocationResponse) *NullableCertificatesRevocationResponse { + return &NullableCertificatesRevocationResponse{value: val, isSet: true} +} + +func (v NullableCertificatesRevocationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesRevocationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_revoke_certificate_request.go b/v24/api/keyfactor/v1/model_certificates_revoke_certificate_request.go new file mode 100644 index 0000000..3b490e7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_revoke_certificate_request.go @@ -0,0 +1,338 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CertificatesRevokeCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesRevokeCertificateRequest{} + +// CertificatesRevokeCertificateRequest struct for CertificatesRevokeCertificateRequest +type CertificatesRevokeCertificateRequest struct { + CertificateIds []int32 `json:"CertificateIds,omitempty"` + Reason *KeyfactorPKIEnumsRevokeCode `json:"Reason,omitempty"` + Comment NullableString `json:"Comment,omitempty"` + EffectiveDate *time.Time `json:"EffectiveDate,omitempty"` + CollectionId NullableInt32 `json:"CollectionId,omitempty"` + PublishCRL *bool `json:"PublishCRL,omitempty"` +} + +// NewCertificatesRevokeCertificateRequest instantiates a new CertificatesRevokeCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesRevokeCertificateRequest() *CertificatesRevokeCertificateRequest { + this := CertificatesRevokeCertificateRequest{} + return &this +} + +// NewCertificatesRevokeCertificateRequestWithDefaults instantiates a new CertificatesRevokeCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesRevokeCertificateRequestWithDefaults() *CertificatesRevokeCertificateRequest { + this := CertificatesRevokeCertificateRequest{} + return &this +} + +// GetCertificateIds returns the CertificateIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesRevokeCertificateRequest) GetCertificateIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.CertificateIds +} + +// GetCertificateIdsOk returns a tuple with the CertificateIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesRevokeCertificateRequest) GetCertificateIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateIds) { + return nil, false + } + return o.CertificateIds, true +} + +// HasCertificateIds returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasCertificateIds() bool { + if o != nil && isNil(o.CertificateIds) { + return true + } + + return false +} + +// SetCertificateIds gets a reference to the given []int32 and assigns it to the CertificateIds field. +func (o *CertificatesRevokeCertificateRequest) SetCertificateIds(v []int32) { + o.CertificateIds = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *CertificatesRevokeCertificateRequest) GetReason() KeyfactorPKIEnumsRevokeCode { + if o == nil || isNil(o.Reason) { + var ret KeyfactorPKIEnumsRevokeCode + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesRevokeCertificateRequest) GetReasonOk() (*KeyfactorPKIEnumsRevokeCode, bool) { + if o == nil || isNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasReason() bool { + if o != nil && !isNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given KeyfactorPKIEnumsRevokeCode and assigns it to the Reason field. +func (o *CertificatesRevokeCertificateRequest) SetReason(v KeyfactorPKIEnumsRevokeCode) { + o.Reason = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesRevokeCertificateRequest) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesRevokeCertificateRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CertificatesRevokeCertificateRequest) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CertificatesRevokeCertificateRequest) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CertificatesRevokeCertificateRequest) UnsetComment() { + o.Comment.Unset() +} + +// GetEffectiveDate returns the EffectiveDate field value if set, zero value otherwise. +func (o *CertificatesRevokeCertificateRequest) GetEffectiveDate() time.Time { + if o == nil || isNil(o.EffectiveDate) { + var ret time.Time + return ret + } + return *o.EffectiveDate +} + +// GetEffectiveDateOk returns a tuple with the EffectiveDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesRevokeCertificateRequest) GetEffectiveDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EffectiveDate) { + return nil, false + } + return o.EffectiveDate, true +} + +// HasEffectiveDate returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasEffectiveDate() bool { + if o != nil && !isNil(o.EffectiveDate) { + return true + } + + return false +} + +// SetEffectiveDate gets a reference to the given time.Time and assigns it to the EffectiveDate field. +func (o *CertificatesRevokeCertificateRequest) SetEffectiveDate(v time.Time) { + o.EffectiveDate = &v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesRevokeCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId.Get()) { + var ret int32 + return ret + } + return *o.CollectionId.Get() +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesRevokeCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CollectionId.Get(), o.CollectionId.IsSet() +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasCollectionId() bool { + if o != nil && o.CollectionId.IsSet() { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given NullableInt32 and assigns it to the CollectionId field. +func (o *CertificatesRevokeCertificateRequest) SetCollectionId(v int32) { + o.CollectionId.Set(&v) +} + +// SetCollectionIdNil sets the value for CollectionId to be an explicit nil +func (o *CertificatesRevokeCertificateRequest) SetCollectionIdNil() { + o.CollectionId.Set(nil) +} + +// UnsetCollectionId ensures that no value is present for CollectionId, not even an explicit nil +func (o *CertificatesRevokeCertificateRequest) UnsetCollectionId() { + o.CollectionId.Unset() +} + +// GetPublishCRL returns the PublishCRL field value if set, zero value otherwise. +func (o *CertificatesRevokeCertificateRequest) GetPublishCRL() bool { + if o == nil || isNil(o.PublishCRL) { + var ret bool + return ret + } + return *o.PublishCRL +} + +// GetPublishCRLOk returns a tuple with the PublishCRL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesRevokeCertificateRequest) GetPublishCRLOk() (*bool, bool) { + if o == nil || isNil(o.PublishCRL) { + return nil, false + } + return o.PublishCRL, true +} + +// HasPublishCRL returns a boolean if a field has been set. +func (o *CertificatesRevokeCertificateRequest) HasPublishCRL() bool { + if o != nil && !isNil(o.PublishCRL) { + return true + } + + return false +} + +// SetPublishCRL gets a reference to the given bool and assigns it to the PublishCRL field. +func (o *CertificatesRevokeCertificateRequest) SetPublishCRL(v bool) { + o.PublishCRL = &v +} + +func (o CertificatesRevokeCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesRevokeCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CertificateIds != nil { + toSerialize["CertificateIds"] = o.CertificateIds + } + if !isNil(o.Reason) { + toSerialize["Reason"] = o.Reason + } + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + if !isNil(o.EffectiveDate) { + toSerialize["EffectiveDate"] = o.EffectiveDate + } + if o.CollectionId.IsSet() { + toSerialize["CollectionId"] = o.CollectionId.Get() + } + if !isNil(o.PublishCRL) { + toSerialize["PublishCRL"] = o.PublishCRL + } + return toSerialize, nil +} + +type NullableCertificatesRevokeCertificateRequest struct { + value *CertificatesRevokeCertificateRequest + isSet bool +} + +func (v NullableCertificatesRevokeCertificateRequest) Get() *CertificatesRevokeCertificateRequest { + return v.value +} + +func (v *NullableCertificatesRevokeCertificateRequest) Set(val *CertificatesRevokeCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesRevokeCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesRevokeCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesRevokeCertificateRequest(val *CertificatesRevokeCertificateRequest) *NullableCertificatesRevokeCertificateRequest { + return &NullableCertificatesRevokeCertificateRequest{value: val, isSet: true} +} + +func (v NullableCertificatesRevokeCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesRevokeCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_subject_alternative_name.go b/v24/api/keyfactor/v1/model_certificates_subject_alternative_name.go new file mode 100644 index 0000000..cd7c103 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_subject_alternative_name.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesSubjectAlternativeName type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesSubjectAlternativeName{} + +// CertificatesSubjectAlternativeName +type CertificatesSubjectAlternativeName struct { + Value NullableString `json:"Value,omitempty"` + Type NullableString `json:"Type,omitempty"` +} + +// NewCertificatesSubjectAlternativeName instantiates a new CertificatesSubjectAlternativeName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesSubjectAlternativeName() *CertificatesSubjectAlternativeName { + this := CertificatesSubjectAlternativeName{} + return &this +} + +// NewCertificatesSubjectAlternativeNameWithDefaults instantiates a new CertificatesSubjectAlternativeName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesSubjectAlternativeNameWithDefaults() *CertificatesSubjectAlternativeName { + this := CertificatesSubjectAlternativeName{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesSubjectAlternativeName) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesSubjectAlternativeName) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CertificatesSubjectAlternativeName) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CertificatesSubjectAlternativeName) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CertificatesSubjectAlternativeName) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CertificatesSubjectAlternativeName) UnsetValue() { + o.Value.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesSubjectAlternativeName) GetType() string { + if o == nil || isNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesSubjectAlternativeName) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *CertificatesSubjectAlternativeName) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *CertificatesSubjectAlternativeName) SetType(v string) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *CertificatesSubjectAlternativeName) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *CertificatesSubjectAlternativeName) UnsetType() { + o.Type.Unset() +} + +func (o CertificatesSubjectAlternativeName) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesSubjectAlternativeName) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.Type.IsSet() { + toSerialize["Type"] = o.Type.Get() + } + return toSerialize, nil +} + +type NullableCertificatesSubjectAlternativeName struct { + value *CertificatesSubjectAlternativeName + isSet bool +} + +func (v NullableCertificatesSubjectAlternativeName) Get() *CertificatesSubjectAlternativeName { + return v.value +} + +func (v *NullableCertificatesSubjectAlternativeName) Set(val *CertificatesSubjectAlternativeName) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesSubjectAlternativeName) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesSubjectAlternativeName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesSubjectAlternativeName(val *CertificatesSubjectAlternativeName) *NullableCertificatesSubjectAlternativeName { + return &NullableCertificatesSubjectAlternativeName{value: val, isSet: true} +} + +func (v NullableCertificatesSubjectAlternativeName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesSubjectAlternativeName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_certificates_suspended_revocation_response.go b/v24/api/keyfactor/v1/model_certificates_suspended_revocation_response.go new file mode 100644 index 0000000..b84f464 --- /dev/null +++ b/v24/api/keyfactor/v1/model_certificates_suspended_revocation_response.go @@ -0,0 +1,217 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CertificatesSuspendedRevocationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesSuspendedRevocationResponse{} + +// CertificatesSuspendedRevocationResponse struct for CertificatesSuspendedRevocationResponse +type CertificatesSuspendedRevocationResponse struct { + CertId *int32 `json:"CertId,omitempty"` + WorkflowId *string `json:"WorkflowId,omitempty"` + Message NullableString `json:"Message,omitempty"` +} + +// NewCertificatesSuspendedRevocationResponse instantiates a new CertificatesSuspendedRevocationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesSuspendedRevocationResponse() *CertificatesSuspendedRevocationResponse { + this := CertificatesSuspendedRevocationResponse{} + return &this +} + +// NewCertificatesSuspendedRevocationResponseWithDefaults instantiates a new CertificatesSuspendedRevocationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesSuspendedRevocationResponseWithDefaults() *CertificatesSuspendedRevocationResponse { + this := CertificatesSuspendedRevocationResponse{} + return &this +} + +// GetCertId returns the CertId field value if set, zero value otherwise. +func (o *CertificatesSuspendedRevocationResponse) GetCertId() int32 { + if o == nil || isNil(o.CertId) { + var ret int32 + return ret + } + return *o.CertId +} + +// GetCertIdOk returns a tuple with the CertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesSuspendedRevocationResponse) GetCertIdOk() (*int32, bool) { + if o == nil || isNil(o.CertId) { + return nil, false + } + return o.CertId, true +} + +// HasCertId returns a boolean if a field has been set. +func (o *CertificatesSuspendedRevocationResponse) HasCertId() bool { + if o != nil && !isNil(o.CertId) { + return true + } + + return false +} + +// SetCertId gets a reference to the given int32 and assigns it to the CertId field. +func (o *CertificatesSuspendedRevocationResponse) SetCertId(v int32) { + o.CertId = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise. +func (o *CertificatesSuspendedRevocationResponse) GetWorkflowId() string { + if o == nil || isNil(o.WorkflowId) { + var ret string + return ret + } + return *o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesSuspendedRevocationResponse) GetWorkflowIdOk() (*string, bool) { + if o == nil || isNil(o.WorkflowId) { + return nil, false + } + return o.WorkflowId, true +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *CertificatesSuspendedRevocationResponse) HasWorkflowId() bool { + if o != nil && !isNil(o.WorkflowId) { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given string and assigns it to the WorkflowId field. +func (o *CertificatesSuspendedRevocationResponse) SetWorkflowId(v string) { + o.WorkflowId = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesSuspendedRevocationResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesSuspendedRevocationResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CertificatesSuspendedRevocationResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CertificatesSuspendedRevocationResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CertificatesSuspendedRevocationResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CertificatesSuspendedRevocationResponse) UnsetMessage() { + o.Message.Unset() +} + +func (o CertificatesSuspendedRevocationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesSuspendedRevocationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertId) { + toSerialize["CertId"] = o.CertId + } + if !isNil(o.WorkflowId) { + toSerialize["WorkflowId"] = o.WorkflowId + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCertificatesSuspendedRevocationResponse struct { + value *CertificatesSuspendedRevocationResponse + isSet bool +} + +func (v NullableCertificatesSuspendedRevocationResponse) Get() *CertificatesSuspendedRevocationResponse { + return v.value +} + +func (v *NullableCertificatesSuspendedRevocationResponse) Set(val *CertificatesSuspendedRevocationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesSuspendedRevocationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesSuspendedRevocationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesSuspendedRevocationResponse(val *CertificatesSuspendedRevocationResponse) *NullableCertificatesSuspendedRevocationResponse { + return &NullableCertificatesSuspendedRevocationResponse{value: val, isSet: true} +} + +func (v NullableCertificatesSuspendedRevocationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesSuspendedRevocationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_component_installation_component_installation_response.go b/v24/api/keyfactor/v1/model_component_installation_component_installation_response.go new file mode 100644 index 0000000..ccc7626 --- /dev/null +++ b/v24/api/keyfactor/v1/model_component_installation_component_installation_response.go @@ -0,0 +1,275 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ComponentInstallationComponentInstallationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComponentInstallationComponentInstallationResponse{} + +// ComponentInstallationComponentInstallationResponse struct for ComponentInstallationComponentInstallationResponse +type ComponentInstallationComponentInstallationResponse struct { + Id *int32 `json:"Id,omitempty"` + Machine NullableString `json:"Machine,omitempty"` + Version NullableString `json:"Version,omitempty"` + Components NullableString `json:"Components,omitempty"` +} + +// NewComponentInstallationComponentInstallationResponse instantiates a new ComponentInstallationComponentInstallationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentInstallationComponentInstallationResponse() *ComponentInstallationComponentInstallationResponse { + this := ComponentInstallationComponentInstallationResponse{} + return &this +} + +// NewComponentInstallationComponentInstallationResponseWithDefaults instantiates a new ComponentInstallationComponentInstallationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentInstallationComponentInstallationResponseWithDefaults() *ComponentInstallationComponentInstallationResponse { + this := ComponentInstallationComponentInstallationResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComponentInstallationComponentInstallationResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentInstallationComponentInstallationResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComponentInstallationComponentInstallationResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ComponentInstallationComponentInstallationResponse) SetId(v int32) { + o.Id = &v +} + +// GetMachine returns the Machine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ComponentInstallationComponentInstallationResponse) GetMachine() string { + if o == nil || isNil(o.Machine.Get()) { + var ret string + return ret + } + return *o.Machine.Get() +} + +// GetMachineOk returns a tuple with the Machine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ComponentInstallationComponentInstallationResponse) GetMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Machine.Get(), o.Machine.IsSet() +} + +// HasMachine returns a boolean if a field has been set. +func (o *ComponentInstallationComponentInstallationResponse) HasMachine() bool { + if o != nil && o.Machine.IsSet() { + return true + } + + return false +} + +// SetMachine gets a reference to the given NullableString and assigns it to the Machine field. +func (o *ComponentInstallationComponentInstallationResponse) SetMachine(v string) { + o.Machine.Set(&v) +} + +// SetMachineNil sets the value for Machine to be an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) SetMachineNil() { + o.Machine.Set(nil) +} + +// UnsetMachine ensures that no value is present for Machine, not even an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) UnsetMachine() { + o.Machine.Unset() +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ComponentInstallationComponentInstallationResponse) GetVersion() string { + if o == nil || isNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ComponentInstallationComponentInstallationResponse) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *ComponentInstallationComponentInstallationResponse) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *ComponentInstallationComponentInstallationResponse) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) UnsetVersion() { + o.Version.Unset() +} + +// GetComponents returns the Components field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ComponentInstallationComponentInstallationResponse) GetComponents() string { + if o == nil || isNil(o.Components.Get()) { + var ret string + return ret + } + return *o.Components.Get() +} + +// GetComponentsOk returns a tuple with the Components field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ComponentInstallationComponentInstallationResponse) GetComponentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Components.Get(), o.Components.IsSet() +} + +// HasComponents returns a boolean if a field has been set. +func (o *ComponentInstallationComponentInstallationResponse) HasComponents() bool { + if o != nil && o.Components.IsSet() { + return true + } + + return false +} + +// SetComponents gets a reference to the given NullableString and assigns it to the Components field. +func (o *ComponentInstallationComponentInstallationResponse) SetComponents(v string) { + o.Components.Set(&v) +} + +// SetComponentsNil sets the value for Components to be an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) SetComponentsNil() { + o.Components.Set(nil) +} + +// UnsetComponents ensures that no value is present for Components, not even an explicit nil +func (o *ComponentInstallationComponentInstallationResponse) UnsetComponents() { + o.Components.Unset() +} + +func (o ComponentInstallationComponentInstallationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComponentInstallationComponentInstallationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Machine.IsSet() { + toSerialize["Machine"] = o.Machine.Get() + } + if o.Version.IsSet() { + toSerialize["Version"] = o.Version.Get() + } + if o.Components.IsSet() { + toSerialize["Components"] = o.Components.Get() + } + return toSerialize, nil +} + +type NullableComponentInstallationComponentInstallationResponse struct { + value *ComponentInstallationComponentInstallationResponse + isSet bool +} + +func (v NullableComponentInstallationComponentInstallationResponse) Get() *ComponentInstallationComponentInstallationResponse { + return v.value +} + +func (v *NullableComponentInstallationComponentInstallationResponse) Set(val *ComponentInstallationComponentInstallationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableComponentInstallationComponentInstallationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentInstallationComponentInstallationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentInstallationComponentInstallationResponse(val *ComponentInstallationComponentInstallationResponse) *NullableComponentInstallationComponentInstallationResponse { + return &NullableComponentInstallationComponentInstallationResponse{value: val, isSet: true} +} + +func (v NullableComponentInstallationComponentInstallationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentInstallationComponentInstallationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_configuration_tenant_configuration_tenant_request.go b/v24/api/keyfactor/v1/model_configuration_tenant_configuration_tenant_request.go new file mode 100644 index 0000000..87b0914 --- /dev/null +++ b/v24/api/keyfactor/v1/model_configuration_tenant_configuration_tenant_request.go @@ -0,0 +1,145 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ConfigurationTenantConfigurationTenantRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigurationTenantConfigurationTenantRequest{} + +// ConfigurationTenantConfigurationTenantRequest struct for ConfigurationTenantConfigurationTenantRequest +type ConfigurationTenantConfigurationTenantRequest struct { + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` +} + +// NewConfigurationTenantConfigurationTenantRequest instantiates a new ConfigurationTenantConfigurationTenantRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigurationTenantConfigurationTenantRequest() *ConfigurationTenantConfigurationTenantRequest { + this := ConfigurationTenantConfigurationTenantRequest{} + return &this +} + +// NewConfigurationTenantConfigurationTenantRequestWithDefaults instantiates a new ConfigurationTenantConfigurationTenantRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigurationTenantConfigurationTenantRequestWithDefaults() *ConfigurationTenantConfigurationTenantRequest { + this := ConfigurationTenantConfigurationTenantRequest{} + return &this +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigurationTenantConfigurationTenantRequest) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigurationTenantConfigurationTenantRequest) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *ConfigurationTenantConfigurationTenantRequest) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *ConfigurationTenantConfigurationTenantRequest) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *ConfigurationTenantConfigurationTenantRequest) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *ConfigurationTenantConfigurationTenantRequest) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +func (o ConfigurationTenantConfigurationTenantRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigurationTenantConfigurationTenantRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + return toSerialize, nil +} + +type NullableConfigurationTenantConfigurationTenantRequest struct { + value *ConfigurationTenantConfigurationTenantRequest + isSet bool +} + +func (v NullableConfigurationTenantConfigurationTenantRequest) Get() *ConfigurationTenantConfigurationTenantRequest { + return v.value +} + +func (v *NullableConfigurationTenantConfigurationTenantRequest) Set(val *ConfigurationTenantConfigurationTenantRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConfigurationTenantConfigurationTenantRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigurationTenantConfigurationTenantRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigurationTenantConfigurationTenantRequest(val *ConfigurationTenantConfigurationTenantRequest) *NullableConfigurationTenantConfigurationTenantRequest { + return &NullableConfigurationTenantConfigurationTenantRequest{value: val, isSet: true} +} + +func (v NullableConfigurationTenantConfigurationTenantRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigurationTenantConfigurationTenantRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_platform_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_platform_type.go new file mode 100644 index 0000000..66996cc --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_platform_type.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsAgentPlatformType the model 'CSSCMSCoreEnumsAgentPlatformType' +type CSSCMSCoreEnumsAgentPlatformType int32 + +// List of CSS.CMS.Core.Enums.AgentPlatformType +const ( + CSSCMSCOREENUMSAGENTPLATFORMTYPE__0 CSSCMSCoreEnumsAgentPlatformType = 0 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__1 CSSCMSCoreEnumsAgentPlatformType = 1 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__2 CSSCMSCoreEnumsAgentPlatformType = 2 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__3 CSSCMSCoreEnumsAgentPlatformType = 3 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__4 CSSCMSCoreEnumsAgentPlatformType = 4 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__5 CSSCMSCoreEnumsAgentPlatformType = 5 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__6 CSSCMSCoreEnumsAgentPlatformType = 6 + CSSCMSCOREENUMSAGENTPLATFORMTYPE__7 CSSCMSCoreEnumsAgentPlatformType = 7 +) + +func ParseCSSCMSCoreEnumsAgentPlatformType(s string) (*CSSCMSCoreEnumsAgentPlatformType, error) { + var claimType CSSCMSCoreEnumsAgentPlatformType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsAgentPlatformType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsAgentPlatformType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsAgentPlatformType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsAgentPlatformType enum +var AllowedCSSCMSCoreEnumsAgentPlatformTypeEnumValues = []CSSCMSCoreEnumsAgentPlatformType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, +} + +func (v *CSSCMSCoreEnumsAgentPlatformType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsAgentPlatformType(value) + for _, existing := range AllowedCSSCMSCoreEnumsAgentPlatformTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsAgentPlatformType", value) +} + +// NewCSSCMSCoreEnumsAgentPlatformTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsAgentPlatformType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsAgentPlatformTypeFromValue(v int32) (*CSSCMSCoreEnumsAgentPlatformType, error) { + ev := CSSCMSCoreEnumsAgentPlatformType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsAgentPlatformType: valid values are %v", v, AllowedCSSCMSCoreEnumsAgentPlatformTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsAgentPlatformType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsAgentPlatformTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.AgentPlatformType value +func (v CSSCMSCoreEnumsAgentPlatformType) Ptr() *CSSCMSCoreEnumsAgentPlatformType { + return &v +} + +type NullableCSSCMSCoreEnumsAgentPlatformType struct { + value *CSSCMSCoreEnumsAgentPlatformType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsAgentPlatformType) Get() *CSSCMSCoreEnumsAgentPlatformType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsAgentPlatformType) Set(val *CSSCMSCoreEnumsAgentPlatformType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsAgentPlatformType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsAgentPlatformType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsAgentPlatformType(val *CSSCMSCoreEnumsAgentPlatformType) *NullableCSSCMSCoreEnumsAgentPlatformType { + return &NullableCSSCMSCoreEnumsAgentPlatformType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsAgentPlatformType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsAgentPlatformType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_status_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_status_type.go new file mode 100644 index 0000000..61b6f53 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_agent_status_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsAgentStatusType the model 'CSSCMSCoreEnumsAgentStatusType' +type CSSCMSCoreEnumsAgentStatusType int32 + +// List of CSS.CMS.Core.Enums.AgentStatusType +const ( + CSSCMSCOREENUMSAGENTSTATUSTYPE__1 CSSCMSCoreEnumsAgentStatusType = 1 + CSSCMSCOREENUMSAGENTSTATUSTYPE__2 CSSCMSCoreEnumsAgentStatusType = 2 + CSSCMSCOREENUMSAGENTSTATUSTYPE__3 CSSCMSCoreEnumsAgentStatusType = 3 + CSSCMSCOREENUMSAGENTSTATUSTYPE__4 CSSCMSCoreEnumsAgentStatusType = 4 +) + +func ParseCSSCMSCoreEnumsAgentStatusType(s string) (*CSSCMSCoreEnumsAgentStatusType, error) { + var claimType CSSCMSCoreEnumsAgentStatusType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsAgentStatusType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsAgentStatusType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsAgentStatusType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsAgentStatusType enum +var AllowedCSSCMSCoreEnumsAgentStatusTypeEnumValues = []CSSCMSCoreEnumsAgentStatusType{ + 1, + 2, + 3, + 4, +} + +func (v *CSSCMSCoreEnumsAgentStatusType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsAgentStatusType(value) + for _, existing := range AllowedCSSCMSCoreEnumsAgentStatusTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsAgentStatusType", value) +} + +// NewCSSCMSCoreEnumsAgentStatusTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsAgentStatusType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsAgentStatusTypeFromValue(v int32) (*CSSCMSCoreEnumsAgentStatusType, error) { + ev := CSSCMSCoreEnumsAgentStatusType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsAgentStatusType: valid values are %v", v, AllowedCSSCMSCoreEnumsAgentStatusTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsAgentStatusType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsAgentStatusTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.AgentStatusType value +func (v CSSCMSCoreEnumsAgentStatusType) Ptr() *CSSCMSCoreEnumsAgentStatusType { + return &v +} + +type NullableCSSCMSCoreEnumsAgentStatusType struct { + value *CSSCMSCoreEnumsAgentStatusType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsAgentStatusType) Get() *CSSCMSCoreEnumsAgentStatusType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsAgentStatusType) Set(val *CSSCMSCoreEnumsAgentStatusType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsAgentStatusType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsAgentStatusType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsAgentStatusType(val *CSSCMSCoreEnumsAgentStatusType) *NullableCSSCMSCoreEnumsAgentStatusType { + return &NullableCSSCMSCoreEnumsAgentStatusType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsAgentStatusType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsAgentStatusType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_entry_parameter_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_entry_parameter_type.go new file mode 100644 index 0000000..516f0c5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_entry_parameter_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsCertStoreEntryParameterType the model 'CSSCMSCoreEnumsCertStoreEntryParameterType' +type CSSCMSCoreEnumsCertStoreEntryParameterType int32 + +// List of CSS.CMS.Core.Enums.CertStoreEntryParameterType +const ( + CSSCMSCOREENUMSCERTSTOREENTRYPARAMETERTYPE__0 CSSCMSCoreEnumsCertStoreEntryParameterType = 0 + CSSCMSCOREENUMSCERTSTOREENTRYPARAMETERTYPE__1 CSSCMSCoreEnumsCertStoreEntryParameterType = 1 + CSSCMSCOREENUMSCERTSTOREENTRYPARAMETERTYPE__2 CSSCMSCoreEnumsCertStoreEntryParameterType = 2 + CSSCMSCOREENUMSCERTSTOREENTRYPARAMETERTYPE__3 CSSCMSCoreEnumsCertStoreEntryParameterType = 3 +) + +func ParseCSSCMSCoreEnumsCertStoreEntryParameterType(s string) (*CSSCMSCoreEnumsCertStoreEntryParameterType, error) { + var claimType CSSCMSCoreEnumsCertStoreEntryParameterType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsCertStoreEntryParameterType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsCertStoreEntryParameterType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsCertStoreEntryParameterType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsCertStoreEntryParameterType enum +var AllowedCSSCMSCoreEnumsCertStoreEntryParameterTypeEnumValues = []CSSCMSCoreEnumsCertStoreEntryParameterType{ + 0, + 1, + 2, + 3, +} + +func (v *CSSCMSCoreEnumsCertStoreEntryParameterType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsCertStoreEntryParameterType(value) + for _, existing := range AllowedCSSCMSCoreEnumsCertStoreEntryParameterTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsCertStoreEntryParameterType", value) +} + +// NewCSSCMSCoreEnumsCertStoreEntryParameterTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsCertStoreEntryParameterType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsCertStoreEntryParameterTypeFromValue(v int32) (*CSSCMSCoreEnumsCertStoreEntryParameterType, error) { + ev := CSSCMSCoreEnumsCertStoreEntryParameterType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsCertStoreEntryParameterType: valid values are %v", v, AllowedCSSCMSCoreEnumsCertStoreEntryParameterTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsCertStoreEntryParameterType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsCertStoreEntryParameterTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.CertStoreEntryParameterType value +func (v CSSCMSCoreEnumsCertStoreEntryParameterType) Ptr() *CSSCMSCoreEnumsCertStoreEntryParameterType { + return &v +} + +type NullableCSSCMSCoreEnumsCertStoreEntryParameterType struct { + value *CSSCMSCoreEnumsCertStoreEntryParameterType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsCertStoreEntryParameterType) Get() *CSSCMSCoreEnumsCertStoreEntryParameterType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsCertStoreEntryParameterType) Set(val *CSSCMSCoreEnumsCertStoreEntryParameterType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsCertStoreEntryParameterType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsCertStoreEntryParameterType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsCertStoreEntryParameterType(val *CSSCMSCoreEnumsCertStoreEntryParameterType) *NullableCSSCMSCoreEnumsCertStoreEntryParameterType { + return &NullableCSSCMSCoreEnumsCertStoreEntryParameterType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsCertStoreEntryParameterType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsCertStoreEntryParameterType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_private_key.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_private_key.go new file mode 100644 index 0000000..e90b4bb --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_cert_store_private_key.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsCertStorePrivateKey the model 'CSSCMSCoreEnumsCertStorePrivateKey' +type CSSCMSCoreEnumsCertStorePrivateKey int32 + +// List of CSS.CMS.Core.Enums.CertStorePrivateKey +const ( + CSSCMSCOREENUMSCERTSTOREPRIVATEKEY__0 CSSCMSCoreEnumsCertStorePrivateKey = 0 + CSSCMSCOREENUMSCERTSTOREPRIVATEKEY__1 CSSCMSCoreEnumsCertStorePrivateKey = 1 + CSSCMSCOREENUMSCERTSTOREPRIVATEKEY__2 CSSCMSCoreEnumsCertStorePrivateKey = 2 +) + +func ParseCSSCMSCoreEnumsCertStorePrivateKey(s string) (*CSSCMSCoreEnumsCertStorePrivateKey, error) { + var claimType CSSCMSCoreEnumsCertStorePrivateKey + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsCertStorePrivateKey) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsCertStorePrivateKey{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsCertStorePrivateKey. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsCertStorePrivateKey enum +var AllowedCSSCMSCoreEnumsCertStorePrivateKeyEnumValues = []CSSCMSCoreEnumsCertStorePrivateKey{ + 0, + 1, + 2, +} + +func (v *CSSCMSCoreEnumsCertStorePrivateKey) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsCertStorePrivateKey(value) + for _, existing := range AllowedCSSCMSCoreEnumsCertStorePrivateKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsCertStorePrivateKey", value) +} + +// NewCSSCMSCoreEnumsCertStorePrivateKeyFromValue returns a pointer to a valid CSSCMSCoreEnumsCertStorePrivateKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsCertStorePrivateKeyFromValue(v int32) (*CSSCMSCoreEnumsCertStorePrivateKey, error) { + ev := CSSCMSCoreEnumsCertStorePrivateKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsCertStorePrivateKey: valid values are %v", v, AllowedCSSCMSCoreEnumsCertStorePrivateKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsCertStorePrivateKey) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsCertStorePrivateKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.CertStorePrivateKey value +func (v CSSCMSCoreEnumsCertStorePrivateKey) Ptr() *CSSCMSCoreEnumsCertStorePrivateKey { + return &v +} + +type NullableCSSCMSCoreEnumsCertStorePrivateKey struct { + value *CSSCMSCoreEnumsCertStorePrivateKey + isSet bool +} + +func (v NullableCSSCMSCoreEnumsCertStorePrivateKey) Get() *CSSCMSCoreEnumsCertStorePrivateKey { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsCertStorePrivateKey) Set(val *CSSCMSCoreEnumsCertStorePrivateKey) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsCertStorePrivateKey) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsCertStorePrivateKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsCertStorePrivateKey(val *CSSCMSCoreEnumsCertStorePrivateKey) *NullableCSSCMSCoreEnumsCertStorePrivateKey { + return &NullableCSSCMSCoreEnumsCertStorePrivateKey{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsCertStorePrivateKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsCertStorePrivateKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_authority_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_authority_type.go new file mode 100644 index 0000000..aeb6286 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_authority_type.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsCertificateAuthorityType the model 'CSSCMSCoreEnumsCertificateAuthorityType' +type CSSCMSCoreEnumsCertificateAuthorityType int32 + +// List of CSS.CMS.Core.Enums.CertificateAuthorityType +const ( + CSSCMSCOREENUMSCERTIFICATEAUTHORITYTYPE__0 CSSCMSCoreEnumsCertificateAuthorityType = 0 + CSSCMSCOREENUMSCERTIFICATEAUTHORITYTYPE__1 CSSCMSCoreEnumsCertificateAuthorityType = 1 +) + +func ParseCSSCMSCoreEnumsCertificateAuthorityType(s string) (*CSSCMSCoreEnumsCertificateAuthorityType, error) { + var claimType CSSCMSCoreEnumsCertificateAuthorityType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsCertificateAuthorityType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsCertificateAuthorityType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsCertificateAuthorityType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsCertificateAuthorityType enum +var AllowedCSSCMSCoreEnumsCertificateAuthorityTypeEnumValues = []CSSCMSCoreEnumsCertificateAuthorityType{ + 0, + 1, +} + +func (v *CSSCMSCoreEnumsCertificateAuthorityType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsCertificateAuthorityType(value) + for _, existing := range AllowedCSSCMSCoreEnumsCertificateAuthorityTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsCertificateAuthorityType", value) +} + +// NewCSSCMSCoreEnumsCertificateAuthorityTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsCertificateAuthorityType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsCertificateAuthorityTypeFromValue(v int32) (*CSSCMSCoreEnumsCertificateAuthorityType, error) { + ev := CSSCMSCoreEnumsCertificateAuthorityType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsCertificateAuthorityType: valid values are %v", v, AllowedCSSCMSCoreEnumsCertificateAuthorityTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsCertificateAuthorityType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsCertificateAuthorityTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.CertificateAuthorityType value +func (v CSSCMSCoreEnumsCertificateAuthorityType) Ptr() *CSSCMSCoreEnumsCertificateAuthorityType { + return &v +} + +type NullableCSSCMSCoreEnumsCertificateAuthorityType struct { + value *CSSCMSCoreEnumsCertificateAuthorityType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsCertificateAuthorityType) Get() *CSSCMSCoreEnumsCertificateAuthorityType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsCertificateAuthorityType) Set(val *CSSCMSCoreEnumsCertificateAuthorityType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsCertificateAuthorityType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsCertificateAuthorityType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsCertificateAuthorityType(val *CSSCMSCoreEnumsCertificateAuthorityType) *NullableCSSCMSCoreEnumsCertificateAuthorityType { + return &NullableCSSCMSCoreEnumsCertificateAuthorityType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsCertificateAuthorityType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsCertificateAuthorityType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_format.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_format.go new file mode 100644 index 0000000..2019f01 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_format.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsCertificateFormat the model 'CSSCMSCoreEnumsCertificateFormat' +type CSSCMSCoreEnumsCertificateFormat int32 + +// List of CSS.CMS.Core.Enums.CertificateFormat +const ( + CSSCMSCOREENUMSCERTIFICATEFORMAT__1 CSSCMSCoreEnumsCertificateFormat = 1 + CSSCMSCOREENUMSCERTIFICATEFORMAT__2 CSSCMSCoreEnumsCertificateFormat = 2 +) + +func ParseCSSCMSCoreEnumsCertificateFormat(s string) (*CSSCMSCoreEnumsCertificateFormat, error) { + var claimType CSSCMSCoreEnumsCertificateFormat + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsCertificateFormat) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsCertificateFormat{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsCertificateFormat. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsCertificateFormat enum +var AllowedCSSCMSCoreEnumsCertificateFormatEnumValues = []CSSCMSCoreEnumsCertificateFormat{ + 1, + 2, +} + +func (v *CSSCMSCoreEnumsCertificateFormat) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsCertificateFormat(value) + for _, existing := range AllowedCSSCMSCoreEnumsCertificateFormatEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsCertificateFormat", value) +} + +// NewCSSCMSCoreEnumsCertificateFormatFromValue returns a pointer to a valid CSSCMSCoreEnumsCertificateFormat +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsCertificateFormatFromValue(v int32) (*CSSCMSCoreEnumsCertificateFormat, error) { + ev := CSSCMSCoreEnumsCertificateFormat(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsCertificateFormat: valid values are %v", v, AllowedCSSCMSCoreEnumsCertificateFormatEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsCertificateFormat) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsCertificateFormatEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.CertificateFormat value +func (v CSSCMSCoreEnumsCertificateFormat) Ptr() *CSSCMSCoreEnumsCertificateFormat { + return &v +} + +type NullableCSSCMSCoreEnumsCertificateFormat struct { + value *CSSCMSCoreEnumsCertificateFormat + isSet bool +} + +func (v NullableCSSCMSCoreEnumsCertificateFormat) Get() *CSSCMSCoreEnumsCertificateFormat { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsCertificateFormat) Set(val *CSSCMSCoreEnumsCertificateFormat) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsCertificateFormat) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsCertificateFormat) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsCertificateFormat(val *CSSCMSCoreEnumsCertificateFormat) *NullableCSSCMSCoreEnumsCertificateFormat { + return &NullableCSSCMSCoreEnumsCertificateFormat{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsCertificateFormat) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsCertificateFormat) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_store_type_property_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_store_type_property_type.go new file mode 100644 index 0000000..bff8802 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_certificate_store_type_property_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsCertificateStoreTypePropertyType the model 'CSSCMSCoreEnumsCertificateStoreTypePropertyType' +type CSSCMSCoreEnumsCertificateStoreTypePropertyType int32 + +// List of CSS.CMS.Core.Enums.CertificateStoreTypePropertyType +const ( + CSSCMSCOREENUMSCERTIFICATESTORETYPEPROPERTYTYPE__0 CSSCMSCoreEnumsCertificateStoreTypePropertyType = 0 + CSSCMSCOREENUMSCERTIFICATESTORETYPEPROPERTYTYPE__1 CSSCMSCoreEnumsCertificateStoreTypePropertyType = 1 + CSSCMSCOREENUMSCERTIFICATESTORETYPEPROPERTYTYPE__2 CSSCMSCoreEnumsCertificateStoreTypePropertyType = 2 + CSSCMSCOREENUMSCERTIFICATESTORETYPEPROPERTYTYPE__3 CSSCMSCoreEnumsCertificateStoreTypePropertyType = 3 +) + +func ParseCSSCMSCoreEnumsCertificateStoreTypePropertyType(s string) (*CSSCMSCoreEnumsCertificateStoreTypePropertyType, error) { + var claimType CSSCMSCoreEnumsCertificateStoreTypePropertyType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsCertificateStoreTypePropertyType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsCertificateStoreTypePropertyType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsCertificateStoreTypePropertyType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsCertificateStoreTypePropertyType enum +var AllowedCSSCMSCoreEnumsCertificateStoreTypePropertyTypeEnumValues = []CSSCMSCoreEnumsCertificateStoreTypePropertyType{ + 0, + 1, + 2, + 3, +} + +func (v *CSSCMSCoreEnumsCertificateStoreTypePropertyType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsCertificateStoreTypePropertyType(value) + for _, existing := range AllowedCSSCMSCoreEnumsCertificateStoreTypePropertyTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsCertificateStoreTypePropertyType", value) +} + +// NewCSSCMSCoreEnumsCertificateStoreTypePropertyTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsCertificateStoreTypePropertyType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsCertificateStoreTypePropertyTypeFromValue(v int32) (*CSSCMSCoreEnumsCertificateStoreTypePropertyType, error) { + ev := CSSCMSCoreEnumsCertificateStoreTypePropertyType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsCertificateStoreTypePropertyType: valid values are %v", v, AllowedCSSCMSCoreEnumsCertificateStoreTypePropertyTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsCertificateStoreTypePropertyType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsCertificateStoreTypePropertyTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.CertificateStoreTypePropertyType value +func (v CSSCMSCoreEnumsCertificateStoreTypePropertyType) Ptr() *CSSCMSCoreEnumsCertificateStoreTypePropertyType { + return &v +} + +type NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType struct { + value *CSSCMSCoreEnumsCertificateStoreTypePropertyType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) Get() *CSSCMSCoreEnumsCertificateStoreTypePropertyType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) Set(val *CSSCMSCoreEnumsCertificateStoreTypePropertyType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsCertificateStoreTypePropertyType(val *CSSCMSCoreEnumsCertificateStoreTypePropertyType) *NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType { + return &NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsCertificateStoreTypePropertyType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_claim_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_claim_type.go new file mode 100644 index 0000000..994193c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_claim_type.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsClaimType the model 'CSSCMSCoreEnumsClaimType' +type CSSCMSCoreEnumsClaimType int32 + +// List of CSS.CMS.Core.Enums.ClaimType +const ( + CSSCMSCOREENUMSCLAIMTYPE_User CSSCMSCoreEnumsClaimType = 0 + CSSCMSCOREENUMSCLAIMTYPE_Group CSSCMSCoreEnumsClaimType = 1 + CSSCMSCOREENUMSCLAIMTYPE_Computer CSSCMSCoreEnumsClaimType = 2 + CSSCMSCOREENUMSCLAIMTYPE_OAuthOid CSSCMSCoreEnumsClaimType = 3 + CSSCMSCOREENUMSCLAIMTYPE_OAuthRole CSSCMSCoreEnumsClaimType = 4 + CSSCMSCOREENUMSCLAIMTYPE_OAuthSubject CSSCMSCoreEnumsClaimType = 5 + CSSCMSCOREENUMSCLAIMTYPE_OAuthClientId CSSCMSCoreEnumsClaimType = 6 +) + +func ParseCSSCMSCoreEnumsClaimType(s string) (*CSSCMSCoreEnumsClaimType, error) { + var claimType CSSCMSCoreEnumsClaimType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsClaimType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsClaimType{ + "User": CSSCMSCOREENUMSCLAIMTYPE_User, + "Group": CSSCMSCOREENUMSCLAIMTYPE_Group, + "Computer": CSSCMSCOREENUMSCLAIMTYPE_Computer, + "OAuthOid": CSSCMSCOREENUMSCLAIMTYPE_OAuthOid, + "OAuthRole": CSSCMSCOREENUMSCLAIMTYPE_OAuthRole, + "OAuthSubject": CSSCMSCOREENUMSCLAIMTYPE_OAuthSubject, + "OAuthClientId": CSSCMSCOREENUMSCLAIMTYPE_OAuthClientId, + } + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsClaimType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsClaimType enum +var AllowedCSSCMSCoreEnumsClaimTypeEnumValues = []CSSCMSCoreEnumsClaimType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *CSSCMSCoreEnumsClaimType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsClaimType(value) + for _, existing := range AllowedCSSCMSCoreEnumsClaimTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsClaimType", value) +} + +// NewCSSCMSCoreEnumsClaimTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsClaimType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsClaimTypeFromValue(v int32) (*CSSCMSCoreEnumsClaimType, error) { + ev := CSSCMSCoreEnumsClaimType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsClaimType: valid values are %v", v, AllowedCSSCMSCoreEnumsClaimTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsClaimType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsClaimTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.ClaimType value +func (v CSSCMSCoreEnumsClaimType) Ptr() *CSSCMSCoreEnumsClaimType { + return &v +} + +type NullableCSSCMSCoreEnumsClaimType struct { + value *CSSCMSCoreEnumsClaimType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsClaimType) Get() *CSSCMSCoreEnumsClaimType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsClaimType) Set(val *CSSCMSCoreEnumsClaimType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsClaimType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsClaimType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsClaimType(val *CSSCMSCoreEnumsClaimType) *NullableCSSCMSCoreEnumsClaimType { + return &NullableCSSCMSCoreEnumsClaimType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsClaimType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsClaimType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_duplicate_subject_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_duplicate_subject_type.go new file mode 100644 index 0000000..25d48ac --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_duplicate_subject_type.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsDuplicateSubjectType the model 'CSSCMSCoreEnumsDuplicateSubjectType' +type CSSCMSCoreEnumsDuplicateSubjectType int32 + +// List of CSS.CMS.Core.Enums.DuplicateSubjectType +const ( + CSSCMSCOREENUMSDUPLICATESUBJECTTYPE__0 CSSCMSCoreEnumsDuplicateSubjectType = 0 + CSSCMSCOREENUMSDUPLICATESUBJECTTYPE__1 CSSCMSCoreEnumsDuplicateSubjectType = 1 + CSSCMSCOREENUMSDUPLICATESUBJECTTYPE__2 CSSCMSCoreEnumsDuplicateSubjectType = 2 + CSSCMSCOREENUMSDUPLICATESUBJECTTYPE__3 CSSCMSCoreEnumsDuplicateSubjectType = 3 + CSSCMSCOREENUMSDUPLICATESUBJECTTYPE__4 CSSCMSCoreEnumsDuplicateSubjectType = 4 +) + +func ParseCSSCMSCoreEnumsDuplicateSubjectType(s string) (*CSSCMSCoreEnumsDuplicateSubjectType, error) { + var claimType CSSCMSCoreEnumsDuplicateSubjectType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsDuplicateSubjectType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsDuplicateSubjectType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsDuplicateSubjectType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsDuplicateSubjectType enum +var AllowedCSSCMSCoreEnumsDuplicateSubjectTypeEnumValues = []CSSCMSCoreEnumsDuplicateSubjectType{ + 0, + 1, + 2, + 3, + 4, +} + +func (v *CSSCMSCoreEnumsDuplicateSubjectType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsDuplicateSubjectType(value) + for _, existing := range AllowedCSSCMSCoreEnumsDuplicateSubjectTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsDuplicateSubjectType", value) +} + +// NewCSSCMSCoreEnumsDuplicateSubjectTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsDuplicateSubjectType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsDuplicateSubjectTypeFromValue(v int32) (*CSSCMSCoreEnumsDuplicateSubjectType, error) { + ev := CSSCMSCoreEnumsDuplicateSubjectType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsDuplicateSubjectType: valid values are %v", v, AllowedCSSCMSCoreEnumsDuplicateSubjectTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsDuplicateSubjectType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsDuplicateSubjectTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.DuplicateSubjectType value +func (v CSSCMSCoreEnumsDuplicateSubjectType) Ptr() *CSSCMSCoreEnumsDuplicateSubjectType { + return &v +} + +type NullableCSSCMSCoreEnumsDuplicateSubjectType struct { + value *CSSCMSCoreEnumsDuplicateSubjectType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsDuplicateSubjectType) Get() *CSSCMSCoreEnumsDuplicateSubjectType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsDuplicateSubjectType) Set(val *CSSCMSCoreEnumsDuplicateSubjectType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsDuplicateSubjectType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsDuplicateSubjectType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsDuplicateSubjectType(val *CSSCMSCoreEnumsDuplicateSubjectType) *NullableCSSCMSCoreEnumsDuplicateSubjectType { + return &NullableCSSCMSCoreEnumsDuplicateSubjectType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsDuplicateSubjectType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsDuplicateSubjectType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_enrollment_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_enrollment_type.go new file mode 100644 index 0000000..c829571 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_enrollment_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsEnrollmentType the model 'CSSCMSCoreEnumsEnrollmentType' +type CSSCMSCoreEnumsEnrollmentType int32 + +// List of CSS.CMS.Core.Enums.EnrollmentType +const ( + CSSCMSCOREENUMSENROLLMENTTYPE__0 CSSCMSCoreEnumsEnrollmentType = 0 + CSSCMSCOREENUMSENROLLMENTTYPE__1 CSSCMSCoreEnumsEnrollmentType = 1 + CSSCMSCOREENUMSENROLLMENTTYPE__2 CSSCMSCoreEnumsEnrollmentType = 2 + CSSCMSCOREENUMSENROLLMENTTYPE__4 CSSCMSCoreEnumsEnrollmentType = 4 +) + +func ParseCSSCMSCoreEnumsEnrollmentType(s string) (*CSSCMSCoreEnumsEnrollmentType, error) { + var claimType CSSCMSCoreEnumsEnrollmentType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsEnrollmentType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsEnrollmentType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsEnrollmentType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsEnrollmentType enum +var AllowedCSSCMSCoreEnumsEnrollmentTypeEnumValues = []CSSCMSCoreEnumsEnrollmentType{ + 0, + 1, + 2, + 4, +} + +func (v *CSSCMSCoreEnumsEnrollmentType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsEnrollmentType(value) + for _, existing := range AllowedCSSCMSCoreEnumsEnrollmentTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsEnrollmentType", value) +} + +// NewCSSCMSCoreEnumsEnrollmentTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsEnrollmentType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsEnrollmentTypeFromValue(v int32) (*CSSCMSCoreEnumsEnrollmentType, error) { + ev := CSSCMSCoreEnumsEnrollmentType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsEnrollmentType: valid values are %v", v, AllowedCSSCMSCoreEnumsEnrollmentTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsEnrollmentType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsEnrollmentTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.EnrollmentType value +func (v CSSCMSCoreEnumsEnrollmentType) Ptr() *CSSCMSCoreEnumsEnrollmentType { + return &v +} + +type NullableCSSCMSCoreEnumsEnrollmentType struct { + value *CSSCMSCoreEnumsEnrollmentType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsEnrollmentType) Get() *CSSCMSCoreEnumsEnrollmentType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsEnrollmentType) Set(val *CSSCMSCoreEnumsEnrollmentType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsEnrollmentType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsEnrollmentType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsEnrollmentType(val *CSSCMSCoreEnumsEnrollmentType) *NullableCSSCMSCoreEnumsEnrollmentType { + return &NullableCSSCMSCoreEnumsEnrollmentType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsEnrollmentType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsEnrollmentType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_entry_parameter_usage_flags.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_entry_parameter_usage_flags.go new file mode 100644 index 0000000..53d783e --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_entry_parameter_usage_flags.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsEntryParameterUsageFlags the model 'CSSCMSCoreEnumsEntryParameterUsageFlags' +type CSSCMSCoreEnumsEntryParameterUsageFlags int32 + +// List of CSS.CMS.Core.Enums.EntryParameterUsageFlags +const ( + CSSCMSCOREENUMSENTRYPARAMETERUSAGEFLAGS__0 CSSCMSCoreEnumsEntryParameterUsageFlags = 0 + CSSCMSCOREENUMSENTRYPARAMETERUSAGEFLAGS__1 CSSCMSCoreEnumsEntryParameterUsageFlags = 1 + CSSCMSCOREENUMSENTRYPARAMETERUSAGEFLAGS__2 CSSCMSCoreEnumsEntryParameterUsageFlags = 2 + CSSCMSCOREENUMSENTRYPARAMETERUSAGEFLAGS__4 CSSCMSCoreEnumsEntryParameterUsageFlags = 4 + CSSCMSCOREENUMSENTRYPARAMETERUSAGEFLAGS__8 CSSCMSCoreEnumsEntryParameterUsageFlags = 8 +) + +func ParseCSSCMSCoreEnumsEntryParameterUsageFlags(s string) (*CSSCMSCoreEnumsEntryParameterUsageFlags, error) { + var claimType CSSCMSCoreEnumsEntryParameterUsageFlags + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsEntryParameterUsageFlags) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsEntryParameterUsageFlags{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsEntryParameterUsageFlags. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsEntryParameterUsageFlags enum +var AllowedCSSCMSCoreEnumsEntryParameterUsageFlagsEnumValues = []CSSCMSCoreEnumsEntryParameterUsageFlags{ + 0, + 1, + 2, + 4, + 8, +} + +func (v *CSSCMSCoreEnumsEntryParameterUsageFlags) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsEntryParameterUsageFlags(value) + for _, existing := range AllowedCSSCMSCoreEnumsEntryParameterUsageFlagsEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsEntryParameterUsageFlags", value) +} + +// NewCSSCMSCoreEnumsEntryParameterUsageFlagsFromValue returns a pointer to a valid CSSCMSCoreEnumsEntryParameterUsageFlags +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsEntryParameterUsageFlagsFromValue(v int32) (*CSSCMSCoreEnumsEntryParameterUsageFlags, error) { + ev := CSSCMSCoreEnumsEntryParameterUsageFlags(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsEntryParameterUsageFlags: valid values are %v", v, AllowedCSSCMSCoreEnumsEntryParameterUsageFlagsEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsEntryParameterUsageFlags) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsEntryParameterUsageFlagsEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.EntryParameterUsageFlags value +func (v CSSCMSCoreEnumsEntryParameterUsageFlags) Ptr() *CSSCMSCoreEnumsEntryParameterUsageFlags { + return &v +} + +type NullableCSSCMSCoreEnumsEntryParameterUsageFlags struct { + value *CSSCMSCoreEnumsEntryParameterUsageFlags + isSet bool +} + +func (v NullableCSSCMSCoreEnumsEntryParameterUsageFlags) Get() *CSSCMSCoreEnumsEntryParameterUsageFlags { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsEntryParameterUsageFlags) Set(val *CSSCMSCoreEnumsEntryParameterUsageFlags) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsEntryParameterUsageFlags) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsEntryParameterUsageFlags) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsEntryParameterUsageFlags(val *CSSCMSCoreEnumsEntryParameterUsageFlags) *NullableCSSCMSCoreEnumsEntryParameterUsageFlags { + return &NullableCSSCMSCoreEnumsEntryParameterUsageFlags{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsEntryParameterUsageFlags) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsEntryParameterUsageFlags) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_key_retention_policy.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_key_retention_policy.go new file mode 100644 index 0000000..70ef56b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_key_retention_policy.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsKeyRetentionPolicy the model 'CSSCMSCoreEnumsKeyRetentionPolicy' +type CSSCMSCoreEnumsKeyRetentionPolicy int32 + +// List of CSS.CMS.Core.Enums.KeyRetentionPolicy +const ( + CSSCMSCOREENUMSKEYRETENTIONPOLICY__0 CSSCMSCoreEnumsKeyRetentionPolicy = 0 + CSSCMSCOREENUMSKEYRETENTIONPOLICY__1 CSSCMSCoreEnumsKeyRetentionPolicy = 1 + CSSCMSCOREENUMSKEYRETENTIONPOLICY__2 CSSCMSCoreEnumsKeyRetentionPolicy = 2 + CSSCMSCOREENUMSKEYRETENTIONPOLICY__3 CSSCMSCoreEnumsKeyRetentionPolicy = 3 +) + +func ParseCSSCMSCoreEnumsKeyRetentionPolicy(s string) (*CSSCMSCoreEnumsKeyRetentionPolicy, error) { + var claimType CSSCMSCoreEnumsKeyRetentionPolicy + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsKeyRetentionPolicy) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsKeyRetentionPolicy{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsKeyRetentionPolicy. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsKeyRetentionPolicy enum +var AllowedCSSCMSCoreEnumsKeyRetentionPolicyEnumValues = []CSSCMSCoreEnumsKeyRetentionPolicy{ + 0, + 1, + 2, + 3, +} + +func (v *CSSCMSCoreEnumsKeyRetentionPolicy) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsKeyRetentionPolicy(value) + for _, existing := range AllowedCSSCMSCoreEnumsKeyRetentionPolicyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsKeyRetentionPolicy", value) +} + +// NewCSSCMSCoreEnumsKeyRetentionPolicyFromValue returns a pointer to a valid CSSCMSCoreEnumsKeyRetentionPolicy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsKeyRetentionPolicyFromValue(v int32) (*CSSCMSCoreEnumsKeyRetentionPolicy, error) { + ev := CSSCMSCoreEnumsKeyRetentionPolicy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsKeyRetentionPolicy: valid values are %v", v, AllowedCSSCMSCoreEnumsKeyRetentionPolicyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsKeyRetentionPolicy) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsKeyRetentionPolicyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.KeyRetentionPolicy value +func (v CSSCMSCoreEnumsKeyRetentionPolicy) Ptr() *CSSCMSCoreEnumsKeyRetentionPolicy { + return &v +} + +type NullableCSSCMSCoreEnumsKeyRetentionPolicy struct { + value *CSSCMSCoreEnumsKeyRetentionPolicy + isSet bool +} + +func (v NullableCSSCMSCoreEnumsKeyRetentionPolicy) Get() *CSSCMSCoreEnumsKeyRetentionPolicy { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsKeyRetentionPolicy) Set(val *CSSCMSCoreEnumsKeyRetentionPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsKeyRetentionPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsKeyRetentionPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsKeyRetentionPolicy(val *CSSCMSCoreEnumsKeyRetentionPolicy) *NullableCSSCMSCoreEnumsKeyRetentionPolicy { + return &NullableCSSCMSCoreEnumsKeyRetentionPolicy{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsKeyRetentionPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsKeyRetentionPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_data_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_data_type.go new file mode 100644 index 0000000..647502f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_data_type.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsMetadataDataType the model 'CSSCMSCoreEnumsMetadataDataType' +type CSSCMSCoreEnumsMetadataDataType int32 + +// List of CSS.CMS.Core.Enums.MetadataDataType +const ( + CSSCMSCOREENUMSMETADATADATATYPE__1 CSSCMSCoreEnumsMetadataDataType = 1 + CSSCMSCOREENUMSMETADATADATATYPE__2 CSSCMSCoreEnumsMetadataDataType = 2 + CSSCMSCOREENUMSMETADATADATATYPE__3 CSSCMSCoreEnumsMetadataDataType = 3 + CSSCMSCOREENUMSMETADATADATATYPE__4 CSSCMSCoreEnumsMetadataDataType = 4 + CSSCMSCOREENUMSMETADATADATATYPE__5 CSSCMSCoreEnumsMetadataDataType = 5 + CSSCMSCOREENUMSMETADATADATATYPE__6 CSSCMSCoreEnumsMetadataDataType = 6 + CSSCMSCOREENUMSMETADATADATATYPE__7 CSSCMSCoreEnumsMetadataDataType = 7 +) + +func ParseCSSCMSCoreEnumsMetadataDataType(s string) (*CSSCMSCoreEnumsMetadataDataType, error) { + var claimType CSSCMSCoreEnumsMetadataDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsMetadataDataType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsMetadataDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsMetadataDataType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsMetadataDataType enum +var AllowedCSSCMSCoreEnumsMetadataDataTypeEnumValues = []CSSCMSCoreEnumsMetadataDataType{ + 1, + 2, + 3, + 4, + 5, + 6, + 7, +} + +func (v *CSSCMSCoreEnumsMetadataDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsMetadataDataType(value) + for _, existing := range AllowedCSSCMSCoreEnumsMetadataDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsMetadataDataType", value) +} + +// NewCSSCMSCoreEnumsMetadataDataTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsMetadataDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsMetadataDataTypeFromValue(v int32) (*CSSCMSCoreEnumsMetadataDataType, error) { + ev := CSSCMSCoreEnumsMetadataDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsMetadataDataType: valid values are %v", v, AllowedCSSCMSCoreEnumsMetadataDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsMetadataDataType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsMetadataDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.MetadataDataType value +func (v CSSCMSCoreEnumsMetadataDataType) Ptr() *CSSCMSCoreEnumsMetadataDataType { + return &v +} + +type NullableCSSCMSCoreEnumsMetadataDataType struct { + value *CSSCMSCoreEnumsMetadataDataType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsMetadataDataType) Get() *CSSCMSCoreEnumsMetadataDataType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsMetadataDataType) Set(val *CSSCMSCoreEnumsMetadataDataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsMetadataDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsMetadataDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsMetadataDataType(val *CSSCMSCoreEnumsMetadataDataType) *NullableCSSCMSCoreEnumsMetadataDataType { + return &NullableCSSCMSCoreEnumsMetadataDataType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsMetadataDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsMetadataDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_type_enrollment.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_type_enrollment.go new file mode 100644 index 0000000..e58005c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_metadata_type_enrollment.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsMetadataTypeEnrollment the model 'CSSCMSCoreEnumsMetadataTypeEnrollment' +type CSSCMSCoreEnumsMetadataTypeEnrollment int32 + +// List of CSS.CMS.Core.Enums.MetadataTypeEnrollment +const ( + CSSCMSCOREENUMSMETADATATYPEENROLLMENT__0 CSSCMSCoreEnumsMetadataTypeEnrollment = 0 + CSSCMSCOREENUMSMETADATATYPEENROLLMENT__1 CSSCMSCoreEnumsMetadataTypeEnrollment = 1 + CSSCMSCOREENUMSMETADATATYPEENROLLMENT__2 CSSCMSCoreEnumsMetadataTypeEnrollment = 2 +) + +func ParseCSSCMSCoreEnumsMetadataTypeEnrollment(s string) (*CSSCMSCoreEnumsMetadataTypeEnrollment, error) { + var claimType CSSCMSCoreEnumsMetadataTypeEnrollment + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsMetadataTypeEnrollment) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsMetadataTypeEnrollment{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsMetadataTypeEnrollment. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsMetadataTypeEnrollment enum +var AllowedCSSCMSCoreEnumsMetadataTypeEnrollmentEnumValues = []CSSCMSCoreEnumsMetadataTypeEnrollment{ + 0, + 1, + 2, +} + +func (v *CSSCMSCoreEnumsMetadataTypeEnrollment) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsMetadataTypeEnrollment(value) + for _, existing := range AllowedCSSCMSCoreEnumsMetadataTypeEnrollmentEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsMetadataTypeEnrollment", value) +} + +// NewCSSCMSCoreEnumsMetadataTypeEnrollmentFromValue returns a pointer to a valid CSSCMSCoreEnumsMetadataTypeEnrollment +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsMetadataTypeEnrollmentFromValue(v int32) (*CSSCMSCoreEnumsMetadataTypeEnrollment, error) { + ev := CSSCMSCoreEnumsMetadataTypeEnrollment(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsMetadataTypeEnrollment: valid values are %v", v, AllowedCSSCMSCoreEnumsMetadataTypeEnrollmentEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsMetadataTypeEnrollment) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsMetadataTypeEnrollmentEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.MetadataTypeEnrollment value +func (v CSSCMSCoreEnumsMetadataTypeEnrollment) Ptr() *CSSCMSCoreEnumsMetadataTypeEnrollment { + return &v +} + +type NullableCSSCMSCoreEnumsMetadataTypeEnrollment struct { + value *CSSCMSCoreEnumsMetadataTypeEnrollment + isSet bool +} + +func (v NullableCSSCMSCoreEnumsMetadataTypeEnrollment) Get() *CSSCMSCoreEnumsMetadataTypeEnrollment { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsMetadataTypeEnrollment) Set(val *CSSCMSCoreEnumsMetadataTypeEnrollment) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsMetadataTypeEnrollment) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsMetadataTypeEnrollment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsMetadataTypeEnrollment(val *CSSCMSCoreEnumsMetadataTypeEnrollment) *NullableCSSCMSCoreEnumsMetadataTypeEnrollment { + return &NullableCSSCMSCoreEnumsMetadataTypeEnrollment{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsMetadataTypeEnrollment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsMetadataTypeEnrollment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_orchestrator_auth_certificate_reenrollment.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_orchestrator_auth_certificate_reenrollment.go new file mode 100644 index 0000000..0bb9343 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_orchestrator_auth_certificate_reenrollment.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment the model 'CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment' +type CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment int32 + +// List of CSS.CMS.Core.Enums.OrchestratorAuthCertificateReenrollment +const ( + CSSCMSCOREENUMSORCHESTRATORAUTHCERTIFICATEREENROLLMENT__0 CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment = 0 + CSSCMSCOREENUMSORCHESTRATORAUTHCERTIFICATEREENROLLMENT__1 CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment = 1 + CSSCMSCOREENUMSORCHESTRATORAUTHCERTIFICATEREENROLLMENT__2 CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment = 2 +) + +func ParseCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment(s string) (*CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment, error) { + var claimType CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment enum +var AllowedCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentEnumValues = []CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment{ + 0, + 1, + 2, +} + +func (v *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment(value) + for _, existing := range AllowedCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment", value) +} + +// NewCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentFromValue returns a pointer to a valid CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentFromValue(v int32) (*CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment, error) { + ev := CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment: valid values are %v", v, AllowedCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollmentEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.OrchestratorAuthCertificateReenrollment value +func (v CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) Ptr() *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment { + return &v +} + +type NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment struct { + value *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment + isSet bool +} + +func (v NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) Get() *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) Set(val *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment(val *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) *NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment { + return &NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_type.go new file mode 100644 index 0000000..d34d04c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_type.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsReportParameterType the model 'CSSCMSCoreEnumsReportParameterType' +type CSSCMSCoreEnumsReportParameterType int32 + +// List of CSS.CMS.Core.Enums.ReportParameterType +const ( + CSSCMSCOREENUMSREPORTPARAMETERTYPE__0 CSSCMSCoreEnumsReportParameterType = 0 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__1 CSSCMSCoreEnumsReportParameterType = 1 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__2 CSSCMSCoreEnumsReportParameterType = 2 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__3 CSSCMSCoreEnumsReportParameterType = 3 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__4 CSSCMSCoreEnumsReportParameterType = 4 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__10 CSSCMSCoreEnumsReportParameterType = 10 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__11 CSSCMSCoreEnumsReportParameterType = 11 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__12 CSSCMSCoreEnumsReportParameterType = 12 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__13 CSSCMSCoreEnumsReportParameterType = 13 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__14 CSSCMSCoreEnumsReportParameterType = 14 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__15 CSSCMSCoreEnumsReportParameterType = 15 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__16 CSSCMSCoreEnumsReportParameterType = 16 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__17 CSSCMSCoreEnumsReportParameterType = 17 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__18 CSSCMSCoreEnumsReportParameterType = 18 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__19 CSSCMSCoreEnumsReportParameterType = 19 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__20 CSSCMSCoreEnumsReportParameterType = 20 + CSSCMSCOREENUMSREPORTPARAMETERTYPE__21 CSSCMSCoreEnumsReportParameterType = 21 +) + +func ParseCSSCMSCoreEnumsReportParameterType(s string) (*CSSCMSCoreEnumsReportParameterType, error) { + var claimType CSSCMSCoreEnumsReportParameterType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsReportParameterType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsReportParameterType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsReportParameterType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsReportParameterType enum +var AllowedCSSCMSCoreEnumsReportParameterTypeEnumValues = []CSSCMSCoreEnumsReportParameterType{ + 0, + 1, + 2, + 3, + 4, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, +} + +func (v *CSSCMSCoreEnumsReportParameterType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsReportParameterType(value) + for _, existing := range AllowedCSSCMSCoreEnumsReportParameterTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsReportParameterType", value) +} + +// NewCSSCMSCoreEnumsReportParameterTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsReportParameterType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsReportParameterTypeFromValue(v int32) (*CSSCMSCoreEnumsReportParameterType, error) { + ev := CSSCMSCoreEnumsReportParameterType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsReportParameterType: valid values are %v", v, AllowedCSSCMSCoreEnumsReportParameterTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsReportParameterType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsReportParameterTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.ReportParameterType value +func (v CSSCMSCoreEnumsReportParameterType) Ptr() *CSSCMSCoreEnumsReportParameterType { + return &v +} + +type NullableCSSCMSCoreEnumsReportParameterType struct { + value *CSSCMSCoreEnumsReportParameterType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsReportParameterType) Get() *CSSCMSCoreEnumsReportParameterType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsReportParameterType) Set(val *CSSCMSCoreEnumsReportParameterType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsReportParameterType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsReportParameterType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsReportParameterType(val *CSSCMSCoreEnumsReportParameterType) *NullableCSSCMSCoreEnumsReportParameterType { + return &NullableCSSCMSCoreEnumsReportParameterType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsReportParameterType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsReportParameterType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_visibility.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_visibility.go new file mode 100644 index 0000000..939f8b3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_report_parameter_visibility.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsReportParameterVisibility the model 'CSSCMSCoreEnumsReportParameterVisibility' +type CSSCMSCoreEnumsReportParameterVisibility int32 + +// List of CSS.CMS.Core.Enums.ReportParameterVisibility +const ( + CSSCMSCOREENUMSREPORTPARAMETERVISIBILITY__0 CSSCMSCoreEnumsReportParameterVisibility = 0 + CSSCMSCOREENUMSREPORTPARAMETERVISIBILITY__1 CSSCMSCoreEnumsReportParameterVisibility = 1 + CSSCMSCOREENUMSREPORTPARAMETERVISIBILITY__2 CSSCMSCoreEnumsReportParameterVisibility = 2 +) + +func ParseCSSCMSCoreEnumsReportParameterVisibility(s string) (*CSSCMSCoreEnumsReportParameterVisibility, error) { + var claimType CSSCMSCoreEnumsReportParameterVisibility + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsReportParameterVisibility) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsReportParameterVisibility{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsReportParameterVisibility. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsReportParameterVisibility enum +var AllowedCSSCMSCoreEnumsReportParameterVisibilityEnumValues = []CSSCMSCoreEnumsReportParameterVisibility{ + 0, + 1, + 2, +} + +func (v *CSSCMSCoreEnumsReportParameterVisibility) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsReportParameterVisibility(value) + for _, existing := range AllowedCSSCMSCoreEnumsReportParameterVisibilityEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsReportParameterVisibility", value) +} + +// NewCSSCMSCoreEnumsReportParameterVisibilityFromValue returns a pointer to a valid CSSCMSCoreEnumsReportParameterVisibility +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsReportParameterVisibilityFromValue(v int32) (*CSSCMSCoreEnumsReportParameterVisibility, error) { + ev := CSSCMSCoreEnumsReportParameterVisibility(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsReportParameterVisibility: valid values are %v", v, AllowedCSSCMSCoreEnumsReportParameterVisibilityEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsReportParameterVisibility) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsReportParameterVisibilityEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.ReportParameterVisibility value +func (v CSSCMSCoreEnumsReportParameterVisibility) Ptr() *CSSCMSCoreEnumsReportParameterVisibility { + return &v +} + +type NullableCSSCMSCoreEnumsReportParameterVisibility struct { + value *CSSCMSCoreEnumsReportParameterVisibility + isSet bool +} + +func (v NullableCSSCMSCoreEnumsReportParameterVisibility) Get() *CSSCMSCoreEnumsReportParameterVisibility { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsReportParameterVisibility) Set(val *CSSCMSCoreEnumsReportParameterVisibility) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsReportParameterVisibility) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsReportParameterVisibility) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsReportParameterVisibility(val *CSSCMSCoreEnumsReportParameterVisibility) *NullableCSSCMSCoreEnumsReportParameterVisibility { + return &NullableCSSCMSCoreEnumsReportParameterVisibility{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsReportParameterVisibility) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsReportParameterVisibility) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_scheduled_task_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_scheduled_task_type.go new file mode 100644 index 0000000..d4f20c6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_scheduled_task_type.go @@ -0,0 +1,198 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsScheduledTaskType the model 'CSSCMSCoreEnumsScheduledTaskType' +type CSSCMSCoreEnumsScheduledTaskType int32 + +// List of CSS.CMS.Core.Enums.ScheduledTaskType +const ( + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__0 CSSCMSCoreEnumsScheduledTaskType = 0 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__1 CSSCMSCoreEnumsScheduledTaskType = 1 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__2 CSSCMSCoreEnumsScheduledTaskType = 2 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__3 CSSCMSCoreEnumsScheduledTaskType = 3 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__4 CSSCMSCoreEnumsScheduledTaskType = 4 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__7 CSSCMSCoreEnumsScheduledTaskType = 7 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__9 CSSCMSCoreEnumsScheduledTaskType = 9 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__10 CSSCMSCoreEnumsScheduledTaskType = 10 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__11 CSSCMSCoreEnumsScheduledTaskType = 11 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__12 CSSCMSCoreEnumsScheduledTaskType = 12 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__13 CSSCMSCoreEnumsScheduledTaskType = 13 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__14 CSSCMSCoreEnumsScheduledTaskType = 14 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__15 CSSCMSCoreEnumsScheduledTaskType = 15 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__16 CSSCMSCoreEnumsScheduledTaskType = 16 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__17 CSSCMSCoreEnumsScheduledTaskType = 17 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__18 CSSCMSCoreEnumsScheduledTaskType = 18 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__19 CSSCMSCoreEnumsScheduledTaskType = 19 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__20 CSSCMSCoreEnumsScheduledTaskType = 20 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__21 CSSCMSCoreEnumsScheduledTaskType = 21 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__22 CSSCMSCoreEnumsScheduledTaskType = 22 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__24 CSSCMSCoreEnumsScheduledTaskType = 24 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__25 CSSCMSCoreEnumsScheduledTaskType = 25 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__26 CSSCMSCoreEnumsScheduledTaskType = 26 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__27 CSSCMSCoreEnumsScheduledTaskType = 27 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__28 CSSCMSCoreEnumsScheduledTaskType = 28 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__29 CSSCMSCoreEnumsScheduledTaskType = 29 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__30 CSSCMSCoreEnumsScheduledTaskType = 30 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__31 CSSCMSCoreEnumsScheduledTaskType = 31 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__32 CSSCMSCoreEnumsScheduledTaskType = 32 + CSSCMSCOREENUMSSCHEDULEDTASKTYPE__33 CSSCMSCoreEnumsScheduledTaskType = 33 +) + +func ParseCSSCMSCoreEnumsScheduledTaskType(s string) (*CSSCMSCoreEnumsScheduledTaskType, error) { + var claimType CSSCMSCoreEnumsScheduledTaskType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsScheduledTaskType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsScheduledTaskType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsScheduledTaskType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsScheduledTaskType enum +var AllowedCSSCMSCoreEnumsScheduledTaskTypeEnumValues = []CSSCMSCoreEnumsScheduledTaskType{ + 0, + 1, + 2, + 3, + 4, + 7, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, +} + +func (v *CSSCMSCoreEnumsScheduledTaskType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsScheduledTaskType(value) + for _, existing := range AllowedCSSCMSCoreEnumsScheduledTaskTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsScheduledTaskType", value) +} + +// NewCSSCMSCoreEnumsScheduledTaskTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsScheduledTaskType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsScheduledTaskTypeFromValue(v int32) (*CSSCMSCoreEnumsScheduledTaskType, error) { + ev := CSSCMSCoreEnumsScheduledTaskType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsScheduledTaskType: valid values are %v", v, AllowedCSSCMSCoreEnumsScheduledTaskTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsScheduledTaskType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsScheduledTaskTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.ScheduledTaskType value +func (v CSSCMSCoreEnumsScheduledTaskType) Ptr() *CSSCMSCoreEnumsScheduledTaskType { + return &v +} + +type NullableCSSCMSCoreEnumsScheduledTaskType struct { + value *CSSCMSCoreEnumsScheduledTaskType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsScheduledTaskType) Get() *CSSCMSCoreEnumsScheduledTaskType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsScheduledTaskType) Set(val *CSSCMSCoreEnumsScheduledTaskType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsScheduledTaskType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsScheduledTaskType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsScheduledTaskType(val *CSSCMSCoreEnumsScheduledTaskType) *NullableCSSCMSCoreEnumsScheduledTaskType { + return &NullableCSSCMSCoreEnumsScheduledTaskType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsScheduledTaskType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsScheduledTaskType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_network_job_status.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_network_job_status.go new file mode 100644 index 0000000..2ee5579 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_network_job_status.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsSslNetworkJobStatus the model 'CSSCMSCoreEnumsSslNetworkJobStatus' +type CSSCMSCoreEnumsSslNetworkJobStatus int32 + +// List of CSS.CMS.Core.Enums.SslNetworkJobStatus +const ( + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__0 CSSCMSCoreEnumsSslNetworkJobStatus = 0 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__1 CSSCMSCoreEnumsSslNetworkJobStatus = 1 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__2 CSSCMSCoreEnumsSslNetworkJobStatus = 2 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__3 CSSCMSCoreEnumsSslNetworkJobStatus = 3 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__4 CSSCMSCoreEnumsSslNetworkJobStatus = 4 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__5 CSSCMSCoreEnumsSslNetworkJobStatus = 5 + CSSCMSCOREENUMSSSLNETWORKJOBSTATUS__6 CSSCMSCoreEnumsSslNetworkJobStatus = 6 +) + +func ParseCSSCMSCoreEnumsSslNetworkJobStatus(s string) (*CSSCMSCoreEnumsSslNetworkJobStatus, error) { + var claimType CSSCMSCoreEnumsSslNetworkJobStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsSslNetworkJobStatus) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsSslNetworkJobStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsSslNetworkJobStatus. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsSslNetworkJobStatus enum +var AllowedCSSCMSCoreEnumsSslNetworkJobStatusEnumValues = []CSSCMSCoreEnumsSslNetworkJobStatus{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *CSSCMSCoreEnumsSslNetworkJobStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsSslNetworkJobStatus(value) + for _, existing := range AllowedCSSCMSCoreEnumsSslNetworkJobStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsSslNetworkJobStatus", value) +} + +// NewCSSCMSCoreEnumsSslNetworkJobStatusFromValue returns a pointer to a valid CSSCMSCoreEnumsSslNetworkJobStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsSslNetworkJobStatusFromValue(v int32) (*CSSCMSCoreEnumsSslNetworkJobStatus, error) { + ev := CSSCMSCoreEnumsSslNetworkJobStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsSslNetworkJobStatus: valid values are %v", v, AllowedCSSCMSCoreEnumsSslNetworkJobStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsSslNetworkJobStatus) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsSslNetworkJobStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.SslNetworkJobStatus value +func (v CSSCMSCoreEnumsSslNetworkJobStatus) Ptr() *CSSCMSCoreEnumsSslNetworkJobStatus { + return &v +} + +type NullableCSSCMSCoreEnumsSslNetworkJobStatus struct { + value *CSSCMSCoreEnumsSslNetworkJobStatus + isSet bool +} + +func (v NullableCSSCMSCoreEnumsSslNetworkJobStatus) Get() *CSSCMSCoreEnumsSslNetworkJobStatus { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsSslNetworkJobStatus) Set(val *CSSCMSCoreEnumsSslNetworkJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsSslNetworkJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsSslNetworkJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsSslNetworkJobStatus(val *CSSCMSCoreEnumsSslNetworkJobStatus) *NullableCSSCMSCoreEnumsSslNetworkJobStatus { + return &NullableCSSCMSCoreEnumsSslNetworkJobStatus{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsSslNetworkJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsSslNetworkJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_scan_job_status.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_scan_job_status.go new file mode 100644 index 0000000..bc89468 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_ssl_scan_job_status.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsSslScanJobStatus the model 'CSSCMSCoreEnumsSslScanJobStatus' +type CSSCMSCoreEnumsSslScanJobStatus int32 + +// List of CSS.CMS.Core.Enums.SslScanJobStatus +const ( + CSSCMSCOREENUMSSSLSCANJOBSTATUS__1 CSSCMSCoreEnumsSslScanJobStatus = 1 + CSSCMSCOREENUMSSSLSCANJOBSTATUS__2 CSSCMSCoreEnumsSslScanJobStatus = 2 + CSSCMSCOREENUMSSSLSCANJOBSTATUS__3 CSSCMSCoreEnumsSslScanJobStatus = 3 +) + +func ParseCSSCMSCoreEnumsSslScanJobStatus(s string) (*CSSCMSCoreEnumsSslScanJobStatus, error) { + var claimType CSSCMSCoreEnumsSslScanJobStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsSslScanJobStatus) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsSslScanJobStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsSslScanJobStatus. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsSslScanJobStatus enum +var AllowedCSSCMSCoreEnumsSslScanJobStatusEnumValues = []CSSCMSCoreEnumsSslScanJobStatus{ + 1, + 2, + 3, +} + +func (v *CSSCMSCoreEnumsSslScanJobStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsSslScanJobStatus(value) + for _, existing := range AllowedCSSCMSCoreEnumsSslScanJobStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsSslScanJobStatus", value) +} + +// NewCSSCMSCoreEnumsSslScanJobStatusFromValue returns a pointer to a valid CSSCMSCoreEnumsSslScanJobStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsSslScanJobStatusFromValue(v int32) (*CSSCMSCoreEnumsSslScanJobStatus, error) { + ev := CSSCMSCoreEnumsSslScanJobStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsSslScanJobStatus: valid values are %v", v, AllowedCSSCMSCoreEnumsSslScanJobStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsSslScanJobStatus) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsSslScanJobStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.SslScanJobStatus value +func (v CSSCMSCoreEnumsSslScanJobStatus) Ptr() *CSSCMSCoreEnumsSslScanJobStatus { + return &v +} + +type NullableCSSCMSCoreEnumsSslScanJobStatus struct { + value *CSSCMSCoreEnumsSslScanJobStatus + isSet bool +} + +func (v NullableCSSCMSCoreEnumsSslScanJobStatus) Get() *CSSCMSCoreEnumsSslScanJobStatus { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsSslScanJobStatus) Set(val *CSSCMSCoreEnumsSslScanJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsSslScanJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsSslScanJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsSslScanJobStatus(val *CSSCMSCoreEnumsSslScanJobStatus) *NullableCSSCMSCoreEnumsSslScanJobStatus { + return &NullableCSSCMSCoreEnumsSslScanJobStatus{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsSslScanJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsSslScanJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_template_certificate_owner_role.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_template_certificate_owner_role.go new file mode 100644 index 0000000..06c44c3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_template_certificate_owner_role.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsTemplateCertificateOwnerRole the model 'CSSCMSCoreEnumsTemplateCertificateOwnerRole' +type CSSCMSCoreEnumsTemplateCertificateOwnerRole int32 + +// List of CSS.CMS.Core.Enums.TemplateCertificateOwnerRole +const ( + CSSCMSCOREENUMSTEMPLATECERTIFICATEOWNERROLE__0 CSSCMSCoreEnumsTemplateCertificateOwnerRole = 0 + CSSCMSCOREENUMSTEMPLATECERTIFICATEOWNERROLE__1 CSSCMSCoreEnumsTemplateCertificateOwnerRole = 1 + CSSCMSCOREENUMSTEMPLATECERTIFICATEOWNERROLE__2 CSSCMSCoreEnumsTemplateCertificateOwnerRole = 2 +) + +func ParseCSSCMSCoreEnumsTemplateCertificateOwnerRole(s string) (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, error) { + var claimType CSSCMSCoreEnumsTemplateCertificateOwnerRole + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsTemplateCertificateOwnerRole) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsTemplateCertificateOwnerRole{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsTemplateCertificateOwnerRole. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsTemplateCertificateOwnerRole enum +var AllowedCSSCMSCoreEnumsTemplateCertificateOwnerRoleEnumValues = []CSSCMSCoreEnumsTemplateCertificateOwnerRole{ + 0, + 1, + 2, +} + +func (v *CSSCMSCoreEnumsTemplateCertificateOwnerRole) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsTemplateCertificateOwnerRole(value) + for _, existing := range AllowedCSSCMSCoreEnumsTemplateCertificateOwnerRoleEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsTemplateCertificateOwnerRole", value) +} + +// NewCSSCMSCoreEnumsTemplateCertificateOwnerRoleFromValue returns a pointer to a valid CSSCMSCoreEnumsTemplateCertificateOwnerRole +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsTemplateCertificateOwnerRoleFromValue(v int32) (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, error) { + ev := CSSCMSCoreEnumsTemplateCertificateOwnerRole(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsTemplateCertificateOwnerRole: valid values are %v", v, AllowedCSSCMSCoreEnumsTemplateCertificateOwnerRoleEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsTemplateCertificateOwnerRole) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsTemplateCertificateOwnerRoleEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.TemplateCertificateOwnerRole value +func (v CSSCMSCoreEnumsTemplateCertificateOwnerRole) Ptr() *CSSCMSCoreEnumsTemplateCertificateOwnerRole { + return &v +} + +type NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole struct { + value *CSSCMSCoreEnumsTemplateCertificateOwnerRole + isSet bool +} + +func (v NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) Get() *CSSCMSCoreEnumsTemplateCertificateOwnerRole { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) Set(val *CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsTemplateCertificateOwnerRole(val *CSSCMSCoreEnumsTemplateCertificateOwnerRole) *NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole { + return &NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsTemplateCertificateOwnerRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_enums_template_enrollment_field_type.go b/v24/api/keyfactor/v1/model_css_cms_core_enums_template_enrollment_field_type.go new file mode 100644 index 0000000..e68fa65 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_enums_template_enrollment_field_type.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsTemplateEnrollmentFieldType the model 'CSSCMSCoreEnumsTemplateEnrollmentFieldType' +type CSSCMSCoreEnumsTemplateEnrollmentFieldType int32 + +// List of CSS.CMS.Core.Enums.TemplateEnrollmentFieldType +const ( + CSSCMSCOREENUMSTEMPLATEENROLLMENTFIELDTYPE__1 CSSCMSCoreEnumsTemplateEnrollmentFieldType = 1 + CSSCMSCOREENUMSTEMPLATEENROLLMENTFIELDTYPE__2 CSSCMSCoreEnumsTemplateEnrollmentFieldType = 2 +) + +func ParseCSSCMSCoreEnumsTemplateEnrollmentFieldType(s string) (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, error) { + var claimType CSSCMSCoreEnumsTemplateEnrollmentFieldType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsTemplateEnrollmentFieldType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsTemplateEnrollmentFieldType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsTemplateEnrollmentFieldType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsTemplateEnrollmentFieldType enum +var AllowedCSSCMSCoreEnumsTemplateEnrollmentFieldTypeEnumValues = []CSSCMSCoreEnumsTemplateEnrollmentFieldType{ + 1, + 2, +} + +func (v *CSSCMSCoreEnumsTemplateEnrollmentFieldType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsTemplateEnrollmentFieldType(value) + for _, existing := range AllowedCSSCMSCoreEnumsTemplateEnrollmentFieldTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsTemplateEnrollmentFieldType", value) +} + +// NewCSSCMSCoreEnumsTemplateEnrollmentFieldTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsTemplateEnrollmentFieldType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsTemplateEnrollmentFieldTypeFromValue(v int32) (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, error) { + ev := CSSCMSCoreEnumsTemplateEnrollmentFieldType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsTemplateEnrollmentFieldType: valid values are %v", v, AllowedCSSCMSCoreEnumsTemplateEnrollmentFieldTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsTemplateEnrollmentFieldType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsTemplateEnrollmentFieldTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.TemplateEnrollmentFieldType value +func (v CSSCMSCoreEnumsTemplateEnrollmentFieldType) Ptr() *CSSCMSCoreEnumsTemplateEnrollmentFieldType { + return &v +} + +type NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType struct { + value *CSSCMSCoreEnumsTemplateEnrollmentFieldType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) Get() *CSSCMSCoreEnumsTemplateEnrollmentFieldType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) Set(val *CSSCMSCoreEnumsTemplateEnrollmentFieldType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsTemplateEnrollmentFieldType(val *CSSCMSCoreEnumsTemplateEnrollmentFieldType) *NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType { + return &NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsTemplateEnrollmentFieldType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_core_permissions_web_console_area_permission.go b/v24/api/keyfactor/v1/model_css_cms_core_permissions_web_console_area_permission.go new file mode 100644 index 0000000..fc134ce --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_core_permissions_web_console_area_permission.go @@ -0,0 +1,276 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCorePermissionsWebConsoleAreaPermission the model 'CSSCMSCorePermissionsWebConsoleAreaPermission' +type CSSCMSCorePermissionsWebConsoleAreaPermission int32 + +// List of CSS.CMS.Core.Permissions.WebConsoleAreaPermission +const ( + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__1 CSSCMSCorePermissionsWebConsoleAreaPermission = 1 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__2 CSSCMSCorePermissionsWebConsoleAreaPermission = 2 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__3 CSSCMSCorePermissionsWebConsoleAreaPermission = 3 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__4 CSSCMSCorePermissionsWebConsoleAreaPermission = 4 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__5 CSSCMSCorePermissionsWebConsoleAreaPermission = 5 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__6 CSSCMSCorePermissionsWebConsoleAreaPermission = 6 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__7 CSSCMSCorePermissionsWebConsoleAreaPermission = 7 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__8 CSSCMSCorePermissionsWebConsoleAreaPermission = 8 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__10 CSSCMSCorePermissionsWebConsoleAreaPermission = 10 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__11 CSSCMSCorePermissionsWebConsoleAreaPermission = 11 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__12 CSSCMSCorePermissionsWebConsoleAreaPermission = 12 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__13 CSSCMSCorePermissionsWebConsoleAreaPermission = 13 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__14 CSSCMSCorePermissionsWebConsoleAreaPermission = 14 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__15 CSSCMSCorePermissionsWebConsoleAreaPermission = 15 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__16 CSSCMSCorePermissionsWebConsoleAreaPermission = 16 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__17 CSSCMSCorePermissionsWebConsoleAreaPermission = 17 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__18 CSSCMSCorePermissionsWebConsoleAreaPermission = 18 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__19 CSSCMSCorePermissionsWebConsoleAreaPermission = 19 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__20 CSSCMSCorePermissionsWebConsoleAreaPermission = 20 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__21 CSSCMSCorePermissionsWebConsoleAreaPermission = 21 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__22 CSSCMSCorePermissionsWebConsoleAreaPermission = 22 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__23 CSSCMSCorePermissionsWebConsoleAreaPermission = 23 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__24 CSSCMSCorePermissionsWebConsoleAreaPermission = 24 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__25 CSSCMSCorePermissionsWebConsoleAreaPermission = 25 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__28 CSSCMSCorePermissionsWebConsoleAreaPermission = 28 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__29 CSSCMSCorePermissionsWebConsoleAreaPermission = 29 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__30 CSSCMSCorePermissionsWebConsoleAreaPermission = 30 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__31 CSSCMSCorePermissionsWebConsoleAreaPermission = 31 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__32 CSSCMSCorePermissionsWebConsoleAreaPermission = 32 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__33 CSSCMSCorePermissionsWebConsoleAreaPermission = 33 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__34 CSSCMSCorePermissionsWebConsoleAreaPermission = 34 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__35 CSSCMSCorePermissionsWebConsoleAreaPermission = 35 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__36 CSSCMSCorePermissionsWebConsoleAreaPermission = 36 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__37 CSSCMSCorePermissionsWebConsoleAreaPermission = 37 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__39 CSSCMSCorePermissionsWebConsoleAreaPermission = 39 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__40 CSSCMSCorePermissionsWebConsoleAreaPermission = 40 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__41 CSSCMSCorePermissionsWebConsoleAreaPermission = 41 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__42 CSSCMSCorePermissionsWebConsoleAreaPermission = 42 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__43 CSSCMSCorePermissionsWebConsoleAreaPermission = 43 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__44 CSSCMSCorePermissionsWebConsoleAreaPermission = 44 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__45 CSSCMSCorePermissionsWebConsoleAreaPermission = 45 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__46 CSSCMSCorePermissionsWebConsoleAreaPermission = 46 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__47 CSSCMSCorePermissionsWebConsoleAreaPermission = 47 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__48 CSSCMSCorePermissionsWebConsoleAreaPermission = 48 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__49 CSSCMSCorePermissionsWebConsoleAreaPermission = 49 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__50 CSSCMSCorePermissionsWebConsoleAreaPermission = 50 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__51 CSSCMSCorePermissionsWebConsoleAreaPermission = 51 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__52 CSSCMSCorePermissionsWebConsoleAreaPermission = 52 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__53 CSSCMSCorePermissionsWebConsoleAreaPermission = 53 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__54 CSSCMSCorePermissionsWebConsoleAreaPermission = 54 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__55 CSSCMSCorePermissionsWebConsoleAreaPermission = 55 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__56 CSSCMSCorePermissionsWebConsoleAreaPermission = 56 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__57 CSSCMSCorePermissionsWebConsoleAreaPermission = 57 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__58 CSSCMSCorePermissionsWebConsoleAreaPermission = 58 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__59 CSSCMSCorePermissionsWebConsoleAreaPermission = 59 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__60 CSSCMSCorePermissionsWebConsoleAreaPermission = 60 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__61 CSSCMSCorePermissionsWebConsoleAreaPermission = 61 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__62 CSSCMSCorePermissionsWebConsoleAreaPermission = 62 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__63 CSSCMSCorePermissionsWebConsoleAreaPermission = 63 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__64 CSSCMSCorePermissionsWebConsoleAreaPermission = 64 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__65 CSSCMSCorePermissionsWebConsoleAreaPermission = 65 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__66 CSSCMSCorePermissionsWebConsoleAreaPermission = 66 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__67 CSSCMSCorePermissionsWebConsoleAreaPermission = 67 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__68 CSSCMSCorePermissionsWebConsoleAreaPermission = 68 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__69 CSSCMSCorePermissionsWebConsoleAreaPermission = 69 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__70 CSSCMSCorePermissionsWebConsoleAreaPermission = 70 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__71 CSSCMSCorePermissionsWebConsoleAreaPermission = 71 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__72 CSSCMSCorePermissionsWebConsoleAreaPermission = 72 + CSSCMSCOREPERMISSIONSWEBCONSOLEAREAPERMISSION__73 CSSCMSCorePermissionsWebConsoleAreaPermission = 73 +) + +func ParseCSSCMSCorePermissionsWebConsoleAreaPermission(s string) (*CSSCMSCorePermissionsWebConsoleAreaPermission, error) { + var claimType CSSCMSCorePermissionsWebConsoleAreaPermission + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCorePermissionsWebConsoleAreaPermission) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCorePermissionsWebConsoleAreaPermission{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCorePermissionsWebConsoleAreaPermission. Value: %s ", s)) +} + +// All allowed values of CSSCMSCorePermissionsWebConsoleAreaPermission enum +var AllowedCSSCMSCorePermissionsWebConsoleAreaPermissionEnumValues = []CSSCMSCorePermissionsWebConsoleAreaPermission{ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, +} + +func (v *CSSCMSCorePermissionsWebConsoleAreaPermission) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCorePermissionsWebConsoleAreaPermission(value) + for _, existing := range AllowedCSSCMSCorePermissionsWebConsoleAreaPermissionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCorePermissionsWebConsoleAreaPermission", value) +} + +// NewCSSCMSCorePermissionsWebConsoleAreaPermissionFromValue returns a pointer to a valid CSSCMSCorePermissionsWebConsoleAreaPermission +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCorePermissionsWebConsoleAreaPermissionFromValue(v int32) (*CSSCMSCorePermissionsWebConsoleAreaPermission, error) { + ev := CSSCMSCorePermissionsWebConsoleAreaPermission(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCorePermissionsWebConsoleAreaPermission: valid values are %v", v, AllowedCSSCMSCorePermissionsWebConsoleAreaPermissionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCorePermissionsWebConsoleAreaPermission) IsValid() bool { + for _, existing := range AllowedCSSCMSCorePermissionsWebConsoleAreaPermissionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Permissions.WebConsoleAreaPermission value +func (v CSSCMSCorePermissionsWebConsoleAreaPermission) Ptr() *CSSCMSCorePermissionsWebConsoleAreaPermission { + return &v +} + +type NullableCSSCMSCorePermissionsWebConsoleAreaPermission struct { + value *CSSCMSCorePermissionsWebConsoleAreaPermission + isSet bool +} + +func (v NullableCSSCMSCorePermissionsWebConsoleAreaPermission) Get() *CSSCMSCorePermissionsWebConsoleAreaPermission { + return v.value +} + +func (v *NullableCSSCMSCorePermissionsWebConsoleAreaPermission) Set(val *CSSCMSCorePermissionsWebConsoleAreaPermission) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCorePermissionsWebConsoleAreaPermission) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCorePermissionsWebConsoleAreaPermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCorePermissionsWebConsoleAreaPermission(val *CSSCMSCorePermissionsWebConsoleAreaPermission) *NullableCSSCMSCorePermissionsWebConsoleAreaPermission { + return &NullableCSSCMSCorePermissionsWebConsoleAreaPermission{value: val, isSet: true} +} + +func (v NullableCSSCMSCorePermissionsWebConsoleAreaPermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCorePermissionsWebConsoleAreaPermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_alert_build_result.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_alert_build_result.go new file mode 100644 index 0000000..42430e4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_alert_build_result.go @@ -0,0 +1,150 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsAlertBuildResult the model 'CSSCMSDataModelEnumsAlertBuildResult' +type CSSCMSDataModelEnumsAlertBuildResult int32 + +// List of CSS.CMS.Data.Model.Enums.AlertBuildResult +const ( + CSSCMSDATAMODELENUMSALERTBUILDRESULT__0 CSSCMSDataModelEnumsAlertBuildResult = 0 + CSSCMSDATAMODELENUMSALERTBUILDRESULT__1 CSSCMSDataModelEnumsAlertBuildResult = 1 + CSSCMSDATAMODELENUMSALERTBUILDRESULT__2 CSSCMSDataModelEnumsAlertBuildResult = 2 + CSSCMSDATAMODELENUMSALERTBUILDRESULT__3 CSSCMSDataModelEnumsAlertBuildResult = 3 + CSSCMSDATAMODELENUMSALERTBUILDRESULT__4 CSSCMSDataModelEnumsAlertBuildResult = 4 + CSSCMSDATAMODELENUMSALERTBUILDRESULT__5 CSSCMSDataModelEnumsAlertBuildResult = 5 +) + +func ParseCSSCMSDataModelEnumsAlertBuildResult(s string) (*CSSCMSDataModelEnumsAlertBuildResult, error) { + var claimType CSSCMSDataModelEnumsAlertBuildResult + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsAlertBuildResult) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsAlertBuildResult{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsAlertBuildResult. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsAlertBuildResult enum +var AllowedCSSCMSDataModelEnumsAlertBuildResultEnumValues = []CSSCMSDataModelEnumsAlertBuildResult{ + 0, + 1, + 2, + 3, + 4, + 5, +} + +func (v *CSSCMSDataModelEnumsAlertBuildResult) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsAlertBuildResult(value) + for _, existing := range AllowedCSSCMSDataModelEnumsAlertBuildResultEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsAlertBuildResult", value) +} + +// NewCSSCMSDataModelEnumsAlertBuildResultFromValue returns a pointer to a valid CSSCMSDataModelEnumsAlertBuildResult +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsAlertBuildResultFromValue(v int32) (*CSSCMSDataModelEnumsAlertBuildResult, error) { + ev := CSSCMSDataModelEnumsAlertBuildResult(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsAlertBuildResult: valid values are %v", v, AllowedCSSCMSDataModelEnumsAlertBuildResultEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsAlertBuildResult) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsAlertBuildResultEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.AlertBuildResult value +func (v CSSCMSDataModelEnumsAlertBuildResult) Ptr() *CSSCMSDataModelEnumsAlertBuildResult { + return &v +} + +type NullableCSSCMSDataModelEnumsAlertBuildResult struct { + value *CSSCMSDataModelEnumsAlertBuildResult + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsAlertBuildResult) Get() *CSSCMSDataModelEnumsAlertBuildResult { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsAlertBuildResult) Set(val *CSSCMSDataModelEnumsAlertBuildResult) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsAlertBuildResult) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsAlertBuildResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsAlertBuildResult(val *CSSCMSDataModelEnumsAlertBuildResult) *NullableCSSCMSDataModelEnumsAlertBuildResult { + return &NullableCSSCMSDataModelEnumsAlertBuildResult{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsAlertBuildResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsAlertBuildResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_cert_store_types_password_styles.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_cert_store_types_password_styles.go new file mode 100644 index 0000000..89a804f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_cert_store_types_password_styles.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsCertStoreTypesPasswordStyles the model 'CSSCMSDataModelEnumsCertStoreTypesPasswordStyles' +type CSSCMSDataModelEnumsCertStoreTypesPasswordStyles int32 + +// List of CSS.CMS.Data.Model.Enums.CertStoreTypesPasswordStyles +const ( + CSSCMSDATAMODELENUMSCERTSTORETYPESPASSWORDSTYLES__0 CSSCMSDataModelEnumsCertStoreTypesPasswordStyles = 0 + CSSCMSDATAMODELENUMSCERTSTORETYPESPASSWORDSTYLES__1 CSSCMSDataModelEnumsCertStoreTypesPasswordStyles = 1 +) + +func ParseCSSCMSDataModelEnumsCertStoreTypesPasswordStyles(s string) (*CSSCMSDataModelEnumsCertStoreTypesPasswordStyles, error) { + var claimType CSSCMSDataModelEnumsCertStoreTypesPasswordStyles + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsCertStoreTypesPasswordStyles{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsCertStoreTypesPasswordStyles. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsCertStoreTypesPasswordStyles enum +var AllowedCSSCMSDataModelEnumsCertStoreTypesPasswordStylesEnumValues = []CSSCMSDataModelEnumsCertStoreTypesPasswordStyles{ + 0, + 1, +} + +func (v *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsCertStoreTypesPasswordStyles(value) + for _, existing := range AllowedCSSCMSDataModelEnumsCertStoreTypesPasswordStylesEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsCertStoreTypesPasswordStyles", value) +} + +// NewCSSCMSDataModelEnumsCertStoreTypesPasswordStylesFromValue returns a pointer to a valid CSSCMSDataModelEnumsCertStoreTypesPasswordStyles +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsCertStoreTypesPasswordStylesFromValue(v int32) (*CSSCMSDataModelEnumsCertStoreTypesPasswordStyles, error) { + ev := CSSCMSDataModelEnumsCertStoreTypesPasswordStyles(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsCertStoreTypesPasswordStyles: valid values are %v", v, AllowedCSSCMSDataModelEnumsCertStoreTypesPasswordStylesEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsCertStoreTypesPasswordStylesEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.CertStoreTypesPasswordStyles value +func (v CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) Ptr() *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles { + return &v +} + +type NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles struct { + value *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) Get() *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) Set(val *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles(val *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) *NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles { + return &NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsCertStoreTypesPasswordStyles) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_import_job_status.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_import_job_status.go new file mode 100644 index 0000000..861df39 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_import_job_status.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsCertificateImportJobStatus the model 'CSSCMSDataModelEnumsCertificateImportJobStatus' +type CSSCMSDataModelEnumsCertificateImportJobStatus int32 + +// List of CSS.CMS.Data.Model.Enums.CertificateImportJobStatus +const ( + CSSCMSDATAMODELENUMSCERTIFICATEIMPORTJOBSTATUS__1 CSSCMSDataModelEnumsCertificateImportJobStatus = 1 + CSSCMSDATAMODELENUMSCERTIFICATEIMPORTJOBSTATUS__2 CSSCMSDataModelEnumsCertificateImportJobStatus = 2 + CSSCMSDATAMODELENUMSCERTIFICATEIMPORTJOBSTATUS__3 CSSCMSDataModelEnumsCertificateImportJobStatus = 3 +) + +func ParseCSSCMSDataModelEnumsCertificateImportJobStatus(s string) (*CSSCMSDataModelEnumsCertificateImportJobStatus, error) { + var claimType CSSCMSDataModelEnumsCertificateImportJobStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsCertificateImportJobStatus) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsCertificateImportJobStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsCertificateImportJobStatus. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsCertificateImportJobStatus enum +var AllowedCSSCMSDataModelEnumsCertificateImportJobStatusEnumValues = []CSSCMSDataModelEnumsCertificateImportJobStatus{ + 1, + 2, + 3, +} + +func (v *CSSCMSDataModelEnumsCertificateImportJobStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsCertificateImportJobStatus(value) + for _, existing := range AllowedCSSCMSDataModelEnumsCertificateImportJobStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsCertificateImportJobStatus", value) +} + +// NewCSSCMSDataModelEnumsCertificateImportJobStatusFromValue returns a pointer to a valid CSSCMSDataModelEnumsCertificateImportJobStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsCertificateImportJobStatusFromValue(v int32) (*CSSCMSDataModelEnumsCertificateImportJobStatus, error) { + ev := CSSCMSDataModelEnumsCertificateImportJobStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsCertificateImportJobStatus: valid values are %v", v, AllowedCSSCMSDataModelEnumsCertificateImportJobStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsCertificateImportJobStatus) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsCertificateImportJobStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.CertificateImportJobStatus value +func (v CSSCMSDataModelEnumsCertificateImportJobStatus) Ptr() *CSSCMSDataModelEnumsCertificateImportJobStatus { + return &v +} + +type NullableCSSCMSDataModelEnumsCertificateImportJobStatus struct { + value *CSSCMSDataModelEnumsCertificateImportJobStatus + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsCertificateImportJobStatus) Get() *CSSCMSDataModelEnumsCertificateImportJobStatus { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsCertificateImportJobStatus) Set(val *CSSCMSDataModelEnumsCertificateImportJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsCertificateImportJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsCertificateImportJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsCertificateImportJobStatus(val *CSSCMSDataModelEnumsCertificateImportJobStatus) *NullableCSSCMSDataModelEnumsCertificateImportJobStatus { + return &NullableCSSCMSDataModelEnumsCertificateImportJobStatus{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsCertificateImportJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsCertificateImportJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_saved_state.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_saved_state.go new file mode 100644 index 0000000..6db8b06 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_certificate_saved_state.go @@ -0,0 +1,166 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsCertificateSavedState the model 'CSSCMSDataModelEnumsCertificateSavedState' +type CSSCMSDataModelEnumsCertificateSavedState int32 + +// List of CSS.CMS.Data.Model.Enums.CertificateSavedState +const ( + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__0 CSSCMSDataModelEnumsCertificateSavedState = 0 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__1 CSSCMSDataModelEnumsCertificateSavedState = 1 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__2 CSSCMSDataModelEnumsCertificateSavedState = 2 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__4 CSSCMSDataModelEnumsCertificateSavedState = 4 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__8 CSSCMSDataModelEnumsCertificateSavedState = 8 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__16 CSSCMSDataModelEnumsCertificateSavedState = 16 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__32 CSSCMSDataModelEnumsCertificateSavedState = 32 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__64 CSSCMSDataModelEnumsCertificateSavedState = 64 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__128 CSSCMSDataModelEnumsCertificateSavedState = 128 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__256 CSSCMSDataModelEnumsCertificateSavedState = 256 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__512 CSSCMSDataModelEnumsCertificateSavedState = 512 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__1024 CSSCMSDataModelEnumsCertificateSavedState = 1024 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__2048 CSSCMSDataModelEnumsCertificateSavedState = 2048 + CSSCMSDATAMODELENUMSCERTIFICATESAVEDSTATE__4096 CSSCMSDataModelEnumsCertificateSavedState = 4096 +) + +func ParseCSSCMSDataModelEnumsCertificateSavedState(s string) (*CSSCMSDataModelEnumsCertificateSavedState, error) { + var claimType CSSCMSDataModelEnumsCertificateSavedState + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsCertificateSavedState) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsCertificateSavedState{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsCertificateSavedState. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsCertificateSavedState enum +var AllowedCSSCMSDataModelEnumsCertificateSavedStateEnumValues = []CSSCMSDataModelEnumsCertificateSavedState{ + 0, + 1, + 2, + 4, + 8, + 16, + 32, + 64, + 128, + 256, + 512, + 1024, + 2048, + 4096, +} + +func (v *CSSCMSDataModelEnumsCertificateSavedState) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsCertificateSavedState(value) + for _, existing := range AllowedCSSCMSDataModelEnumsCertificateSavedStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsCertificateSavedState", value) +} + +// NewCSSCMSDataModelEnumsCertificateSavedStateFromValue returns a pointer to a valid CSSCMSDataModelEnumsCertificateSavedState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsCertificateSavedStateFromValue(v int32) (*CSSCMSDataModelEnumsCertificateSavedState, error) { + ev := CSSCMSDataModelEnumsCertificateSavedState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsCertificateSavedState: valid values are %v", v, AllowedCSSCMSDataModelEnumsCertificateSavedStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsCertificateSavedState) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsCertificateSavedStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.CertificateSavedState value +func (v CSSCMSDataModelEnumsCertificateSavedState) Ptr() *CSSCMSDataModelEnumsCertificateSavedState { + return &v +} + +type NullableCSSCMSDataModelEnumsCertificateSavedState struct { + value *CSSCMSDataModelEnumsCertificateSavedState + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsCertificateSavedState) Get() *CSSCMSDataModelEnumsCertificateSavedState { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsCertificateSavedState) Set(val *CSSCMSDataModelEnumsCertificateSavedState) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsCertificateSavedState) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsCertificateSavedState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsCertificateSavedState(val *CSSCMSDataModelEnumsCertificateSavedState) *NullableCSSCMSDataModelEnumsCertificateSavedState { + return &NullableCSSCMSDataModelEnumsCertificateSavedState{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsCertificateSavedState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsCertificateSavedState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_data_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_data_type.go new file mode 100644 index 0000000..bf20b92 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_data_type.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsDataType the model 'CSSCMSDataModelEnumsDataType' +type CSSCMSDataModelEnumsDataType int32 + +// List of CSS.CMS.Data.Model.Enums.DataType +const ( + CSSCMSDATAMODELENUMSDATATYPE__1 CSSCMSDataModelEnumsDataType = 1 + CSSCMSDATAMODELENUMSDATATYPE__2 CSSCMSDataModelEnumsDataType = 2 + CSSCMSDATAMODELENUMSDATATYPE__3 CSSCMSDataModelEnumsDataType = 3 + CSSCMSDATAMODELENUMSDATATYPE__4 CSSCMSDataModelEnumsDataType = 4 + CSSCMSDATAMODELENUMSDATATYPE__5 CSSCMSDataModelEnumsDataType = 5 +) + +func ParseCSSCMSDataModelEnumsDataType(s string) (*CSSCMSDataModelEnumsDataType, error) { + var claimType CSSCMSDataModelEnumsDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsDataType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsDataType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsDataType enum +var AllowedCSSCMSDataModelEnumsDataTypeEnumValues = []CSSCMSDataModelEnumsDataType{ + 1, + 2, + 3, + 4, + 5, +} + +func (v *CSSCMSDataModelEnumsDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsDataType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsDataType", value) +} + +// NewCSSCMSDataModelEnumsDataTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsDataTypeFromValue(v int32) (*CSSCMSDataModelEnumsDataType, error) { + ev := CSSCMSDataModelEnumsDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsDataType: valid values are %v", v, AllowedCSSCMSDataModelEnumsDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsDataType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.DataType value +func (v CSSCMSDataModelEnumsDataType) Ptr() *CSSCMSDataModelEnumsDataType { + return &v +} + +type NullableCSSCMSDataModelEnumsDataType struct { + value *CSSCMSDataModelEnumsDataType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsDataType) Get() *CSSCMSDataModelEnumsDataType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsDataType) Set(val *CSSCMSDataModelEnumsDataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsDataType(val *CSSCMSDataModelEnumsDataType) *NullableCSSCMSDataModelEnumsDataType { + return &NullableCSSCMSDataModelEnumsDataType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_failure_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_failure_type.go new file mode 100644 index 0000000..2438b30 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_failure_type.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsFailureType the model 'CSSCMSDataModelEnumsFailureType' +type CSSCMSDataModelEnumsFailureType int32 + +// List of CSS.CMS.Data.Model.Enums.FailureType +const ( + CSSCMSDATAMODELENUMSFAILURETYPE__0 CSSCMSDataModelEnumsFailureType = 0 + CSSCMSDATAMODELENUMSFAILURETYPE__1 CSSCMSDataModelEnumsFailureType = 1 + CSSCMSDATAMODELENUMSFAILURETYPE__2 CSSCMSDataModelEnumsFailureType = 2 + CSSCMSDATAMODELENUMSFAILURETYPE__3 CSSCMSDataModelEnumsFailureType = 3 + CSSCMSDATAMODELENUMSFAILURETYPE__4 CSSCMSDataModelEnumsFailureType = 4 + CSSCMSDATAMODELENUMSFAILURETYPE__5 CSSCMSDataModelEnumsFailureType = 5 + CSSCMSDATAMODELENUMSFAILURETYPE__6 CSSCMSDataModelEnumsFailureType = 6 + CSSCMSDATAMODELENUMSFAILURETYPE__7 CSSCMSDataModelEnumsFailureType = 7 +) + +func ParseCSSCMSDataModelEnumsFailureType(s string) (*CSSCMSDataModelEnumsFailureType, error) { + var claimType CSSCMSDataModelEnumsFailureType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsFailureType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsFailureType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsFailureType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsFailureType enum +var AllowedCSSCMSDataModelEnumsFailureTypeEnumValues = []CSSCMSDataModelEnumsFailureType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, +} + +func (v *CSSCMSDataModelEnumsFailureType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsFailureType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsFailureTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsFailureType", value) +} + +// NewCSSCMSDataModelEnumsFailureTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsFailureType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsFailureTypeFromValue(v int32) (*CSSCMSDataModelEnumsFailureType, error) { + ev := CSSCMSDataModelEnumsFailureType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsFailureType: valid values are %v", v, AllowedCSSCMSDataModelEnumsFailureTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsFailureType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsFailureTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.FailureType value +func (v CSSCMSDataModelEnumsFailureType) Ptr() *CSSCMSDataModelEnumsFailureType { + return &v +} + +type NullableCSSCMSDataModelEnumsFailureType struct { + value *CSSCMSDataModelEnumsFailureType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsFailureType) Get() *CSSCMSDataModelEnumsFailureType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsFailureType) Set(val *CSSCMSDataModelEnumsFailureType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsFailureType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsFailureType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsFailureType(val *CSSCMSDataModelEnumsFailureType) *NullableCSSCMSDataModelEnumsFailureType { + return &NullableCSSCMSDataModelEnumsFailureType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsFailureType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsFailureType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_identity_provider_data_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_identity_provider_data_type.go new file mode 100644 index 0000000..6275aca --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_identity_provider_data_type.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsIdentityProviderDataType the model 'CSSCMSDataModelEnumsIdentityProviderDataType' +type CSSCMSDataModelEnumsIdentityProviderDataType int32 + +// List of CSS.CMS.Data.Model.Enums.IdentityProviderDataType +const ( + CSSCMSDATAMODELENUMSIDENTITYPROVIDERDATATYPE__1 CSSCMSDataModelEnumsIdentityProviderDataType = 1 + CSSCMSDATAMODELENUMSIDENTITYPROVIDERDATATYPE__2 CSSCMSDataModelEnumsIdentityProviderDataType = 2 + CSSCMSDATAMODELENUMSIDENTITYPROVIDERDATATYPE__3 CSSCMSDataModelEnumsIdentityProviderDataType = 3 +) + +func ParseCSSCMSDataModelEnumsIdentityProviderDataType(s string) (*CSSCMSDataModelEnumsIdentityProviderDataType, error) { + var claimType CSSCMSDataModelEnumsIdentityProviderDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsIdentityProviderDataType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsIdentityProviderDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsIdentityProviderDataType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsIdentityProviderDataType enum +var AllowedCSSCMSDataModelEnumsIdentityProviderDataTypeEnumValues = []CSSCMSDataModelEnumsIdentityProviderDataType{ + 1, + 2, + 3, +} + +func (v *CSSCMSDataModelEnumsIdentityProviderDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsIdentityProviderDataType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsIdentityProviderDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsIdentityProviderDataType", value) +} + +// NewCSSCMSDataModelEnumsIdentityProviderDataTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsIdentityProviderDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsIdentityProviderDataTypeFromValue(v int32) (*CSSCMSDataModelEnumsIdentityProviderDataType, error) { + ev := CSSCMSDataModelEnumsIdentityProviderDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsIdentityProviderDataType: valid values are %v", v, AllowedCSSCMSDataModelEnumsIdentityProviderDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsIdentityProviderDataType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsIdentityProviderDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.IdentityProviderDataType value +func (v CSSCMSDataModelEnumsIdentityProviderDataType) Ptr() *CSSCMSDataModelEnumsIdentityProviderDataType { + return &v +} + +type NullableCSSCMSDataModelEnumsIdentityProviderDataType struct { + value *CSSCMSDataModelEnumsIdentityProviderDataType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsIdentityProviderDataType) Get() *CSSCMSDataModelEnumsIdentityProviderDataType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsIdentityProviderDataType) Set(val *CSSCMSDataModelEnumsIdentityProviderDataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsIdentityProviderDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsIdentityProviderDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsIdentityProviderDataType(val *CSSCMSDataModelEnumsIdentityProviderDataType) *NullableCSSCMSDataModelEnumsIdentityProviderDataType { + return &NullableCSSCMSDataModelEnumsIdentityProviderDataType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsIdentityProviderDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsIdentityProviderDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_pam_parameter_data_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_pam_parameter_data_type.go new file mode 100644 index 0000000..dc618a6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_pam_parameter_data_type.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsPamParameterDataType the model 'CSSCMSDataModelEnumsPamParameterDataType' +type CSSCMSDataModelEnumsPamParameterDataType int32 + +// List of CSS.CMS.Data.Model.Enums.PamParameterDataType +const ( + CSSCMSDATAMODELENUMSPAMPARAMETERDATATYPE__1 CSSCMSDataModelEnumsPamParameterDataType = 1 + CSSCMSDATAMODELENUMSPAMPARAMETERDATATYPE__2 CSSCMSDataModelEnumsPamParameterDataType = 2 +) + +func ParseCSSCMSDataModelEnumsPamParameterDataType(s string) (*CSSCMSDataModelEnumsPamParameterDataType, error) { + var claimType CSSCMSDataModelEnumsPamParameterDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsPamParameterDataType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsPamParameterDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsPamParameterDataType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsPamParameterDataType enum +var AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues = []CSSCMSDataModelEnumsPamParameterDataType{ + 1, + 2, +} + +func (v *CSSCMSDataModelEnumsPamParameterDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsPamParameterDataType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsPamParameterDataType", value) +} + +// NewCSSCMSDataModelEnumsPamParameterDataTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsPamParameterDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsPamParameterDataTypeFromValue(v int32) (*CSSCMSDataModelEnumsPamParameterDataType, error) { + ev := CSSCMSDataModelEnumsPamParameterDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsPamParameterDataType: valid values are %v", v, AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsPamParameterDataType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.PamParameterDataType value +func (v CSSCMSDataModelEnumsPamParameterDataType) Ptr() *CSSCMSDataModelEnumsPamParameterDataType { + return &v +} + +type NullableCSSCMSDataModelEnumsPamParameterDataType struct { + value *CSSCMSDataModelEnumsPamParameterDataType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) Get() *CSSCMSDataModelEnumsPamParameterDataType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) Set(val *CSSCMSDataModelEnumsPamParameterDataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsPamParameterDataType(val *CSSCMSDataModelEnumsPamParameterDataType) *NullableCSSCMSDataModelEnumsPamParameterDataType { + return &NullableCSSCMSDataModelEnumsPamParameterDataType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_renewal_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_renewal_type.go new file mode 100644 index 0000000..8a2a4cd --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_renewal_type.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsRenewalType the model 'CSSCMSDataModelEnumsRenewalType' +type CSSCMSDataModelEnumsRenewalType int32 + +// List of CSS.CMS.Data.Model.Enums.RenewalType +const ( + CSSCMSDATAMODELENUMSRENEWALTYPE__0 CSSCMSDataModelEnumsRenewalType = 0 + CSSCMSDATAMODELENUMSRENEWALTYPE__1 CSSCMSDataModelEnumsRenewalType = 1 + CSSCMSDATAMODELENUMSRENEWALTYPE__2 CSSCMSDataModelEnumsRenewalType = 2 +) + +func ParseCSSCMSDataModelEnumsRenewalType(s string) (*CSSCMSDataModelEnumsRenewalType, error) { + var claimType CSSCMSDataModelEnumsRenewalType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsRenewalType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsRenewalType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsRenewalType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsRenewalType enum +var AllowedCSSCMSDataModelEnumsRenewalTypeEnumValues = []CSSCMSDataModelEnumsRenewalType{ + 0, + 1, + 2, +} + +func (v *CSSCMSDataModelEnumsRenewalType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsRenewalType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsRenewalTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsRenewalType", value) +} + +// NewCSSCMSDataModelEnumsRenewalTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsRenewalType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsRenewalTypeFromValue(v int32) (*CSSCMSDataModelEnumsRenewalType, error) { + ev := CSSCMSDataModelEnumsRenewalType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsRenewalType: valid values are %v", v, AllowedCSSCMSDataModelEnumsRenewalTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsRenewalType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsRenewalTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.RenewalType value +func (v CSSCMSDataModelEnumsRenewalType) Ptr() *CSSCMSDataModelEnumsRenewalType { + return &v +} + +type NullableCSSCMSDataModelEnumsRenewalType struct { + value *CSSCMSDataModelEnumsRenewalType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsRenewalType) Get() *CSSCMSDataModelEnumsRenewalType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsRenewalType) Set(val *CSSCMSDataModelEnumsRenewalType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsRenewalType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsRenewalType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsRenewalType(val *CSSCMSDataModelEnumsRenewalType) *NullableCSSCMSDataModelEnumsRenewalType { + return &NullableCSSCMSDataModelEnumsRenewalType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsRenewalType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsRenewalType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_script_categories.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_script_categories.go new file mode 100644 index 0000000..7440148 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_script_categories.go @@ -0,0 +1,150 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsScriptCategories the model 'CSSCMSDataModelEnumsScriptCategories' +type CSSCMSDataModelEnumsScriptCategories int32 + +// List of CSS.CMS.Data.Model.Enums.ScriptCategories +const ( + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__1 CSSCMSDataModelEnumsScriptCategories = 1 + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__2 CSSCMSDataModelEnumsScriptCategories = 2 + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__3 CSSCMSDataModelEnumsScriptCategories = 3 + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__4 CSSCMSDataModelEnumsScriptCategories = 4 + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__5 CSSCMSDataModelEnumsScriptCategories = 5 + CSSCMSDATAMODELENUMSSCRIPTCATEGORIES__6 CSSCMSDataModelEnumsScriptCategories = 6 +) + +func ParseCSSCMSDataModelEnumsScriptCategories(s string) (*CSSCMSDataModelEnumsScriptCategories, error) { + var claimType CSSCMSDataModelEnumsScriptCategories + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsScriptCategories) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsScriptCategories{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsScriptCategories. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsScriptCategories enum +var AllowedCSSCMSDataModelEnumsScriptCategoriesEnumValues = []CSSCMSDataModelEnumsScriptCategories{ + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *CSSCMSDataModelEnumsScriptCategories) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsScriptCategories(value) + for _, existing := range AllowedCSSCMSDataModelEnumsScriptCategoriesEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsScriptCategories", value) +} + +// NewCSSCMSDataModelEnumsScriptCategoriesFromValue returns a pointer to a valid CSSCMSDataModelEnumsScriptCategories +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsScriptCategoriesFromValue(v int32) (*CSSCMSDataModelEnumsScriptCategories, error) { + ev := CSSCMSDataModelEnumsScriptCategories(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsScriptCategories: valid values are %v", v, AllowedCSSCMSDataModelEnumsScriptCategoriesEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsScriptCategories) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsScriptCategoriesEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.ScriptCategories value +func (v CSSCMSDataModelEnumsScriptCategories) Ptr() *CSSCMSDataModelEnumsScriptCategories { + return &v +} + +type NullableCSSCMSDataModelEnumsScriptCategories struct { + value *CSSCMSDataModelEnumsScriptCategories + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsScriptCategories) Get() *CSSCMSDataModelEnumsScriptCategories { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsScriptCategories) Set(val *CSSCMSDataModelEnumsScriptCategories) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsScriptCategories) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsScriptCategories) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsScriptCategories(val *CSSCMSDataModelEnumsScriptCategories) *NullableCSSCMSDataModelEnumsScriptCategories { + return &NullableCSSCMSDataModelEnumsScriptCategories{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsScriptCategories) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsScriptCategories) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_enums_secret_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_secret_type.go new file mode 100644 index 0000000..59ed91c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_enums_secret_type.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsSecretType the model 'CSSCMSDataModelEnumsSecretType' +type CSSCMSDataModelEnumsSecretType int32 + +// List of CSS.CMS.Data.Model.Enums.SecretType +const ( + CSSCMSDATAMODELENUMSSECRETTYPE__0 CSSCMSDataModelEnumsSecretType = 0 + CSSCMSDATAMODELENUMSSECRETTYPE__1 CSSCMSDataModelEnumsSecretType = 1 + CSSCMSDATAMODELENUMSSECRETTYPE__2 CSSCMSDataModelEnumsSecretType = 2 + CSSCMSDATAMODELENUMSSECRETTYPE__3 CSSCMSDataModelEnumsSecretType = 3 + CSSCMSDATAMODELENUMSSECRETTYPE__4 CSSCMSDataModelEnumsSecretType = 4 +) + +func ParseCSSCMSDataModelEnumsSecretType(s string) (*CSSCMSDataModelEnumsSecretType, error) { + var claimType CSSCMSDataModelEnumsSecretType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsSecretType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsSecretType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsSecretType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsSecretType enum +var AllowedCSSCMSDataModelEnumsSecretTypeEnumValues = []CSSCMSDataModelEnumsSecretType{ + 0, + 1, + 2, + 3, + 4, +} + +func (v *CSSCMSDataModelEnumsSecretType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsSecretType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsSecretTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsSecretType", value) +} + +// NewCSSCMSDataModelEnumsSecretTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsSecretType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsSecretTypeFromValue(v int32) (*CSSCMSDataModelEnumsSecretType, error) { + ev := CSSCMSDataModelEnumsSecretType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsSecretType: valid values are %v", v, AllowedCSSCMSDataModelEnumsSecretTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsSecretType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsSecretTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.SecretType value +func (v CSSCMSDataModelEnumsSecretType) Ptr() *CSSCMSDataModelEnumsSecretType { + return &v +} + +type NullableCSSCMSDataModelEnumsSecretType struct { + value *CSSCMSDataModelEnumsSecretType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsSecretType) Get() *CSSCMSDataModelEnumsSecretType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsSecretType) Set(val *CSSCMSDataModelEnumsSecretType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsSecretType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsSecretType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsSecretType(val *CSSCMSDataModelEnumsSecretType) *NullableCSSCMSDataModelEnumsSecretType { + return &NullableCSSCMSDataModelEnumsSecretType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsSecretType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsSecretType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_container_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_container_request.go new file mode 100644 index 0000000..1a79426 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_container_request.go @@ -0,0 +1,326 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreContainerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreContainerRequest{} + +// CSSCMSDataModelModelsCertStoreContainerRequest struct for CSSCMSDataModelModelsCertStoreContainerRequest +type CSSCMSDataModelModelsCertStoreContainerRequest struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + OverwriteSchedules *bool `json:"OverwriteSchedules,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CertificateStores []CSSCMSDataModelModelsCertificateStore `json:"CertificateStores,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoreContainerRequest instantiates a new CSSCMSDataModelModelsCertStoreContainerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreContainerRequest() *CSSCMSDataModelModelsCertStoreContainerRequest { + this := CSSCMSDataModelModelsCertStoreContainerRequest{} + return &this +} + +// NewCSSCMSDataModelModelsCertStoreContainerRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreContainerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreContainerRequestWithDefaults() *CSSCMSDataModelModelsCertStoreContainerRequest { + this := CSSCMSDataModelModelsCertStoreContainerRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) UnsetName() { + o.Name.Unset() +} + +// GetOverwriteSchedules returns the OverwriteSchedules field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetOverwriteSchedules() bool { + if o == nil || isNil(o.OverwriteSchedules) { + var ret bool + return ret + } + return *o.OverwriteSchedules +} + +// GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetOverwriteSchedulesOk() (*bool, bool) { + if o == nil || isNil(o.OverwriteSchedules) { + return nil, false + } + return o.OverwriteSchedules, true +} + +// HasOverwriteSchedules returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasOverwriteSchedules() bool { + if o != nil && !isNil(o.OverwriteSchedules) { + return true + } + + return false +} + +// SetOverwriteSchedules gets a reference to the given bool and assigns it to the OverwriteSchedules field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetOverwriteSchedules(v bool) { + o.OverwriteSchedules = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCertificateStores returns the CertificateStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertificateStores() []CSSCMSDataModelModelsCertificateStore { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStore + return ret + } + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) GetCertificateStoresOk() ([]CSSCMSDataModelModelsCertificateStore, bool) { + if o == nil || isNil(o.CertificateStores) { + return nil, false + } + return o.CertificateStores, true +} + +// HasCertificateStores returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) HasCertificateStores() bool { + if o != nil && isNil(o.CertificateStores) { + return true + } + + return false +} + +// SetCertificateStores gets a reference to the given []CSSCMSDataModelModelsCertificateStore and assigns it to the CertificateStores field. +func (o *CSSCMSDataModelModelsCertStoreContainerRequest) SetCertificateStores(v []CSSCMSDataModelModelsCertificateStore) { + o.CertificateStores = v +} + +func (o CSSCMSDataModelModelsCertStoreContainerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreContainerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.OverwriteSchedules) { + toSerialize["OverwriteSchedules"] = o.OverwriteSchedules + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if o.CertificateStores != nil { + toSerialize["CertificateStores"] = o.CertificateStores + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreContainerRequest struct { + value *CSSCMSDataModelModelsCertStoreContainerRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreContainerRequest) Get() *CSSCMSDataModelModelsCertStoreContainerRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreContainerRequest) Set(val *CSSCMSDataModelModelsCertStoreContainerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreContainerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreContainerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreContainerRequest(val *CSSCMSDataModelModelsCertStoreContainerRequest) *NullableCSSCMSDataModelModelsCertStoreContainerRequest { + return &NullableCSSCMSDataModelModelsCertStoreContainerRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreContainerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreContainerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_locations_group.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_locations_group.go new file mode 100644 index 0000000..0207845 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_locations_group.go @@ -0,0 +1,250 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup{} + +// CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup struct for CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup +type CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup struct { + StoreType NullableString `json:"StoreType,omitempty"` + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + StoreCount *int32 `json:"StoreCount,omitempty"` + Locations []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail `json:"Locations,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup() *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup { + this := CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup{} + return &this +} + +// NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroupWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroupWithDefaults() *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup { + this := CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup{} + return &this +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreType() string { + if o == nil || isNil(o.StoreType.Get()) { + var ret string + return ret + } + return *o.StoreType.Get() +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StoreType.Get(), o.StoreType.IsSet() +} + +// HasStoreType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreType() bool { + if o != nil && o.StoreType.IsSet() { + return true + } + + return false +} + +// SetStoreType gets a reference to the given NullableString and assigns it to the StoreType field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreType(v string) { + o.StoreType.Set(&v) +} + +// SetStoreTypeNil sets the value for StoreType to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeNil() { + o.StoreType.Set(nil) +} + +// UnsetStoreType ensures that no value is present for StoreType, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) UnsetStoreType() { + o.StoreType.Unset() +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetStoreCount returns the StoreCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCount() int32 { + if o == nil || isNil(o.StoreCount) { + var ret int32 + return ret + } + return *o.StoreCount +} + +// GetStoreCountOk returns a tuple with the StoreCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCountOk() (*int32, bool) { + if o == nil || isNil(o.StoreCount) { + return nil, false + } + return o.StoreCount, true +} + +// HasStoreCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasStoreCount() bool { + if o != nil && !isNil(o.StoreCount) { + return true + } + + return false +} + +// SetStoreCount gets a reference to the given int32 and assigns it to the StoreCount field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetStoreCount(v int32) { + o.StoreCount = &v +} + +// GetLocations returns the Locations field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetLocations() []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail { + if o == nil { + var ret []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail + return ret + } + return o.Locations +} + +// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) GetLocationsOk() ([]CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail, bool) { + if o == nil || isNil(o.Locations) { + return nil, false + } + return o.Locations, true +} + +// HasLocations returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) HasLocations() bool { + if o != nil && isNil(o.Locations) { + return true + } + + return false +} + +// SetLocations gets a reference to the given []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail and assigns it to the Locations field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) SetLocations(v []CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) { + o.Locations = v +} + +func (o CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.StoreType.IsSet() { + toSerialize["StoreType"] = o.StoreType.Get() + } + // skip: StoreTypeId is readOnly + // skip: StoreCount is readOnly + if o.Locations != nil { + toSerialize["Locations"] = o.Locations + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup struct { + value *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) Get() *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) Set(val *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup(val *CSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup { + return &NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateLocationsGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_store_locations_detail.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_store_locations_detail.go new file mode 100644 index 0000000..e481a16 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_locations_certificate_store_locations_detail.go @@ -0,0 +1,499 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail{} + +// CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail struct for CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail +type CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail struct { + StoreId *string `json:"StoreId,omitempty"` + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` + AgentPool NullableString `json:"AgentPool,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + IPAddress NullableString `json:"IPAddress,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` + NetworkName NullableString `json:"NetworkName,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail() *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail { + this := CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail{} + return &this +} + +// NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults() *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail { + this := CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail{} + return &this +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreId() string { + if o == nil || isNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreIdOk() (*string, bool) { + if o == nil || isNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreId() bool { + if o != nil && !isNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreId(v string) { + o.StoreId = &v +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetAgentPool returns the AgentPool field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPool() string { + if o == nil || isNil(o.AgentPool.Get()) { + var ret string + return ret + } + return *o.AgentPool.Get() +} + +// GetAgentPoolOk returns a tuple with the AgentPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPoolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPool.Get(), o.AgentPool.IsSet() +} + +// HasAgentPool returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAgentPool() bool { + if o != nil && o.AgentPool.IsSet() { + return true + } + + return false +} + +// SetAgentPool gets a reference to the given NullableString and assigns it to the AgentPool field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPool(v string) { + o.AgentPool.Set(&v) +} + +// SetAgentPoolNil sets the value for AgentPool to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPoolNil() { + o.AgentPool.Set(nil) +} + +// UnsetAgentPool ensures that no value is present for AgentPool, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetAgentPool() { + o.AgentPool.Unset() +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetAlias() { + o.Alias.Unset() +} + +// GetIPAddress returns the IPAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddress() string { + if o == nil || isNil(o.IPAddress.Get()) { + var ret string + return ret + } + return *o.IPAddress.Get() +} + +// GetIPAddressOk returns a tuple with the IPAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IPAddress.Get(), o.IPAddress.IsSet() +} + +// HasIPAddress returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasIPAddress() bool { + if o != nil && o.IPAddress.IsSet() { + return true + } + + return false +} + +// SetIPAddress gets a reference to the given NullableString and assigns it to the IPAddress field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddress(v string) { + o.IPAddress.Set(&v) +} + +// SetIPAddressNil sets the value for IPAddress to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddressNil() { + o.IPAddress.Set(nil) +} + +// UnsetIPAddress ensures that no value is present for IPAddress, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetIPAddress() { + o.IPAddress.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetPort() { + o.Port.Unset() +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkName() string { + if o == nil || isNil(o.NetworkName.Get()) { + var ret string + return ret + } + return *o.NetworkName.Get() +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NetworkName.Get(), o.NetworkName.IsSet() +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) HasNetworkName() bool { + if o != nil && o.NetworkName.IsSet() { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given NullableString and assigns it to the NetworkName field. +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkName(v string) { + o.NetworkName.Set(&v) +} + +// SetNetworkNameNil sets the value for NetworkName to be an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkNameNil() { + o.NetworkName.Set(nil) +} + +// UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnsetNetworkName() { + o.NetworkName.Unset() +} + +func (o CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreId) { + toSerialize["StoreId"] = o.StoreId + } + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if o.AgentPool.IsSet() { + toSerialize["AgentPool"] = o.AgentPool.Get() + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if o.IPAddress.IsSet() { + toSerialize["IPAddress"] = o.IPAddress.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + if o.NetworkName.IsSet() { + toSerialize["NetworkName"] = o.NetworkName.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail struct { + value *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) Get() *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) Set(val *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail(val *CSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail { + return &NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreLocationsCertificateStoreLocationsDetail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_new_password_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_new_password_request.go new file mode 100644 index 0000000..7e3b17d --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_new_password_request.go @@ -0,0 +1,156 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreNewPasswordRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreNewPasswordRequest{} + +// CSSCMSDataModelModelsCertStoreNewPasswordRequest struct for CSSCMSDataModelModelsCertStoreNewPasswordRequest +type CSSCMSDataModelModelsCertStoreNewPasswordRequest struct { + CertStoreId string `json:"CertStoreId"` + NewPassword interface{} `json:"NewPassword"` +} + +// NewCSSCMSDataModelModelsCertStoreNewPasswordRequest instantiates a new CSSCMSDataModelModelsCertStoreNewPasswordRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreNewPasswordRequest(certStoreId string, newPassword interface{}) *CSSCMSDataModelModelsCertStoreNewPasswordRequest { + this := CSSCMSDataModelModelsCertStoreNewPasswordRequest{} + this.CertStoreId = certStoreId + this.NewPassword = newPassword + return &this +} + +// NewCSSCMSDataModelModelsCertStoreNewPasswordRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreNewPasswordRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreNewPasswordRequestWithDefaults() *CSSCMSDataModelModelsCertStoreNewPasswordRequest { + this := CSSCMSDataModelModelsCertStoreNewPasswordRequest{} + return &this +} + +// GetCertStoreId returns the CertStoreId field value +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetCertStoreId() string { + if o == nil { + var ret string + return ret + } + + return o.CertStoreId +} + +// GetCertStoreIdOk returns a tuple with the CertStoreId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetCertStoreIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertStoreId, true +} + +// SetCertStoreId sets field value +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) SetCertStoreId(v string) { + o.CertStoreId = v +} + +// GetNewPassword returns the NewPassword field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetNewPassword() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.NewPassword +} + +// GetNewPasswordOk returns a tuple with the NewPassword field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) GetNewPasswordOk() (*interface{}, bool) { + if o == nil || isNil(o.NewPassword) { + return nil, false + } + return &o.NewPassword, true +} + +// SetNewPassword sets field value +func (o *CSSCMSDataModelModelsCertStoreNewPasswordRequest) SetNewPassword(v interface{}) { + o.NewPassword = v +} + +func (o CSSCMSDataModelModelsCertStoreNewPasswordRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreNewPasswordRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertStoreId"] = o.CertStoreId + if o.NewPassword != nil { + toSerialize["NewPassword"] = o.NewPassword + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest struct { + value *CSSCMSDataModelModelsCertStoreNewPasswordRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) Get() *CSSCMSDataModelModelsCertStoreNewPasswordRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) Set(val *CSSCMSDataModelModelsCertStoreNewPasswordRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreNewPasswordRequest(val *CSSCMSDataModelModelsCertStoreNewPasswordRequest) *NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest { + return &NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreNewPasswordRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_password_options.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_password_options.go new file mode 100644 index 0000000..f5e11d4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_password_options.go @@ -0,0 +1,206 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreTypePasswordOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreTypePasswordOptions{} + +// CSSCMSDataModelModelsCertStoreTypePasswordOptions struct for CSSCMSDataModelModelsCertStoreTypePasswordOptions +type CSSCMSDataModelModelsCertStoreTypePasswordOptions struct { + EntrySupported *bool `json:"EntrySupported,omitempty"` + StoreRequired *bool `json:"StoreRequired,omitempty"` + Style *CSSCMSDataModelEnumsCertStoreTypesPasswordStyles `json:"Style,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoreTypePasswordOptions instantiates a new CSSCMSDataModelModelsCertStoreTypePasswordOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreTypePasswordOptions() *CSSCMSDataModelModelsCertStoreTypePasswordOptions { + this := CSSCMSDataModelModelsCertStoreTypePasswordOptions{} + return &this +} + +// NewCSSCMSDataModelModelsCertStoreTypePasswordOptionsWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreTypePasswordOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreTypePasswordOptionsWithDefaults() *CSSCMSDataModelModelsCertStoreTypePasswordOptions { + this := CSSCMSDataModelModelsCertStoreTypePasswordOptions{} + return &this +} + +// GetEntrySupported returns the EntrySupported field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetEntrySupported() bool { + if o == nil || isNil(o.EntrySupported) { + var ret bool + return ret + } + return *o.EntrySupported +} + +// GetEntrySupportedOk returns a tuple with the EntrySupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetEntrySupportedOk() (*bool, bool) { + if o == nil || isNil(o.EntrySupported) { + return nil, false + } + return o.EntrySupported, true +} + +// HasEntrySupported returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasEntrySupported() bool { + if o != nil && !isNil(o.EntrySupported) { + return true + } + + return false +} + +// SetEntrySupported gets a reference to the given bool and assigns it to the EntrySupported field. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetEntrySupported(v bool) { + o.EntrySupported = &v +} + +// GetStoreRequired returns the StoreRequired field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStoreRequired() bool { + if o == nil || isNil(o.StoreRequired) { + var ret bool + return ret + } + return *o.StoreRequired +} + +// GetStoreRequiredOk returns a tuple with the StoreRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStoreRequiredOk() (*bool, bool) { + if o == nil || isNil(o.StoreRequired) { + return nil, false + } + return o.StoreRequired, true +} + +// HasStoreRequired returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasStoreRequired() bool { + if o != nil && !isNil(o.StoreRequired) { + return true + } + + return false +} + +// SetStoreRequired gets a reference to the given bool and assigns it to the StoreRequired field. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetStoreRequired(v bool) { + o.StoreRequired = &v +} + +// GetStyle returns the Style field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStyle() CSSCMSDataModelEnumsCertStoreTypesPasswordStyles { + if o == nil || isNil(o.Style) { + var ret CSSCMSDataModelEnumsCertStoreTypesPasswordStyles + return ret + } + return *o.Style +} + +// GetStyleOk returns a tuple with the Style field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) GetStyleOk() (*CSSCMSDataModelEnumsCertStoreTypesPasswordStyles, bool) { + if o == nil || isNil(o.Style) { + return nil, false + } + return o.Style, true +} + +// HasStyle returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) HasStyle() bool { + if o != nil && !isNil(o.Style) { + return true + } + + return false +} + +// SetStyle gets a reference to the given CSSCMSDataModelEnumsCertStoreTypesPasswordStyles and assigns it to the Style field. +func (o *CSSCMSDataModelModelsCertStoreTypePasswordOptions) SetStyle(v CSSCMSDataModelEnumsCertStoreTypesPasswordStyles) { + o.Style = &v +} + +func (o CSSCMSDataModelModelsCertStoreTypePasswordOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreTypePasswordOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EntrySupported) { + toSerialize["EntrySupported"] = o.EntrySupported + } + if !isNil(o.StoreRequired) { + toSerialize["StoreRequired"] = o.StoreRequired + } + if !isNil(o.Style) { + toSerialize["Style"] = o.Style + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions struct { + value *CSSCMSDataModelModelsCertStoreTypePasswordOptions + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) Get() *CSSCMSDataModelModelsCertStoreTypePasswordOptions { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) Set(val *CSSCMSDataModelModelsCertStoreTypePasswordOptions) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreTypePasswordOptions(val *CSSCMSDataModelModelsCertStoreTypePasswordOptions) *NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions { + return &NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypePasswordOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_supported_operations.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_supported_operations.go new file mode 100644 index 0000000..4a508bb --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_store_type_supported_operations.go @@ -0,0 +1,278 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoreTypeSupportedOperations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoreTypeSupportedOperations{} + +// CSSCMSDataModelModelsCertStoreTypeSupportedOperations struct for CSSCMSDataModelModelsCertStoreTypeSupportedOperations +type CSSCMSDataModelModelsCertStoreTypeSupportedOperations struct { + Add *bool `json:"Add,omitempty"` + Create *bool `json:"Create,omitempty"` + Discovery *bool `json:"Discovery,omitempty"` + Enrollment *bool `json:"Enrollment,omitempty"` + Remove *bool `json:"Remove,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoreTypeSupportedOperations instantiates a new CSSCMSDataModelModelsCertStoreTypeSupportedOperations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoreTypeSupportedOperations() *CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + this := CSSCMSDataModelModelsCertStoreTypeSupportedOperations{} + return &this +} + +// NewCSSCMSDataModelModelsCertStoreTypeSupportedOperationsWithDefaults instantiates a new CSSCMSDataModelModelsCertStoreTypeSupportedOperations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoreTypeSupportedOperationsWithDefaults() *CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + this := CSSCMSDataModelModelsCertStoreTypeSupportedOperations{} + return &this +} + +// GetAdd returns the Add field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetAdd() bool { + if o == nil || isNil(o.Add) { + var ret bool + return ret + } + return *o.Add +} + +// GetAddOk returns a tuple with the Add field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetAddOk() (*bool, bool) { + if o == nil || isNil(o.Add) { + return nil, false + } + return o.Add, true +} + +// HasAdd returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasAdd() bool { + if o != nil && !isNil(o.Add) { + return true + } + + return false +} + +// SetAdd gets a reference to the given bool and assigns it to the Add field. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetAdd(v bool) { + o.Add = &v +} + +// GetCreate returns the Create field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetCreate() bool { + if o == nil || isNil(o.Create) { + var ret bool + return ret + } + return *o.Create +} + +// GetCreateOk returns a tuple with the Create field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetCreateOk() (*bool, bool) { + if o == nil || isNil(o.Create) { + return nil, false + } + return o.Create, true +} + +// HasCreate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasCreate() bool { + if o != nil && !isNil(o.Create) { + return true + } + + return false +} + +// SetCreate gets a reference to the given bool and assigns it to the Create field. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetCreate(v bool) { + o.Create = &v +} + +// GetDiscovery returns the Discovery field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetDiscovery() bool { + if o == nil || isNil(o.Discovery) { + var ret bool + return ret + } + return *o.Discovery +} + +// GetDiscoveryOk returns a tuple with the Discovery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetDiscoveryOk() (*bool, bool) { + if o == nil || isNil(o.Discovery) { + return nil, false + } + return o.Discovery, true +} + +// HasDiscovery returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasDiscovery() bool { + if o != nil && !isNil(o.Discovery) { + return true + } + + return false +} + +// SetDiscovery gets a reference to the given bool and assigns it to the Discovery field. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetDiscovery(v bool) { + o.Discovery = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetEnrollment() bool { + if o == nil || isNil(o.Enrollment) { + var ret bool + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given bool and assigns it to the Enrollment field. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetEnrollment(v bool) { + o.Enrollment = &v +} + +// GetRemove returns the Remove field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetRemove() bool { + if o == nil || isNil(o.Remove) { + var ret bool + return ret + } + return *o.Remove +} + +// GetRemoveOk returns a tuple with the Remove field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) GetRemoveOk() (*bool, bool) { + if o == nil || isNil(o.Remove) { + return nil, false + } + return o.Remove, true +} + +// HasRemove returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) HasRemove() bool { + if o != nil && !isNil(o.Remove) { + return true + } + + return false +} + +// SetRemove gets a reference to the given bool and assigns it to the Remove field. +func (o *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) SetRemove(v bool) { + o.Remove = &v +} + +func (o CSSCMSDataModelModelsCertStoreTypeSupportedOperations) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoreTypeSupportedOperations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Add) { + toSerialize["Add"] = o.Add + } + if !isNil(o.Create) { + toSerialize["Create"] = o.Create + } + if !isNil(o.Discovery) { + toSerialize["Discovery"] = o.Discovery + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Remove) { + toSerialize["Remove"] = o.Remove + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations struct { + value *CSSCMSDataModelModelsCertStoreTypeSupportedOperations + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) Get() *CSSCMSDataModelModelsCertStoreTypeSupportedOperations { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) Set(val *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations(val *CSSCMSDataModelModelsCertStoreTypeSupportedOperations) *NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations { + return &NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoreTypeSupportedOperations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_stores_schedule.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_stores_schedule.go new file mode 100644 index 0000000..8fdedee --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_cert_stores_schedule.go @@ -0,0 +1,161 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertStoresSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertStoresSchedule{} + +// CSSCMSDataModelModelsCertStoresSchedule struct for CSSCMSDataModelModelsCertStoresSchedule +type CSSCMSDataModelModelsCertStoresSchedule struct { + StoreIds []string `json:"StoreIds"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` +} + +// NewCSSCMSDataModelModelsCertStoresSchedule instantiates a new CSSCMSDataModelModelsCertStoresSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertStoresSchedule(storeIds []string) *CSSCMSDataModelModelsCertStoresSchedule { + this := CSSCMSDataModelModelsCertStoresSchedule{} + this.StoreIds = storeIds + return &this +} + +// NewCSSCMSDataModelModelsCertStoresScheduleWithDefaults instantiates a new CSSCMSDataModelModelsCertStoresSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertStoresScheduleWithDefaults() *CSSCMSDataModelModelsCertStoresSchedule { + this := CSSCMSDataModelModelsCertStoresSchedule{} + return &this +} + +// GetStoreIds returns the StoreIds field value +func (o *CSSCMSDataModelModelsCertStoresSchedule) GetStoreIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoresSchedule) GetStoreIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.StoreIds, true +} + +// SetStoreIds sets field value +func (o *CSSCMSDataModelModelsCertStoresSchedule) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertStoresSchedule) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertStoresSchedule) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertStoresSchedule) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsCertStoresSchedule) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o CSSCMSDataModelModelsCertStoresSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertStoresSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["StoreIds"] = o.StoreIds + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertStoresSchedule struct { + value *CSSCMSDataModelModelsCertStoresSchedule + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertStoresSchedule) Get() *CSSCMSDataModelModelsCertStoresSchedule { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertStoresSchedule) Set(val *CSSCMSDataModelModelsCertStoresSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertStoresSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertStoresSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertStoresSchedule(val *CSSCMSDataModelModelsCertStoresSchedule) *NullableCSSCMSDataModelModelsCertStoresSchedule { + return &NullableCSSCMSDataModelModelsCertStoresSchedule{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertStoresSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertStoresSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_auth_certificate.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_auth_certificate.go new file mode 100644 index 0000000..96f735d --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_auth_certificate.go @@ -0,0 +1,276 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + +// CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct for CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate +type CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct { + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + this := CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + this := CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + return &this +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate) { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ExpirationDate) { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasExpirationDate() bool { + if o != nil && !isNil(o.ExpirationDate) { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +func (o CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.ExpirationDate) { + toSerialize["ExpirationDate"] = o.ExpirationDate + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct { + value *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Get() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Set(val *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate(val *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + return &NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_test_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_test_request.go new file mode 100644 index 0000000..869e19c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_authorities_certificate_authority_test_request.go @@ -0,0 +1,892 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest{} + +// CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest struct for CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest +type CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest struct { + Id *int32 `json:"Id,omitempty"` + CAType *CSSCMSCoreEnumsCertificateAuthorityType `json:"CAType,omitempty"` + ExplicitCredentials *bool `json:"ExplicitCredentials,omitempty"` + ExplicitPassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ExplicitPassword,omitempty"` + ExplicitUser NullableString `json:"ExplicitUser,omitempty"` + AuthCertificatePassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"AuthCertificatePassword,omitempty"` + AuthCertificate *CSSCMSDataModelModelsKeyfactorAPISecret `json:"AuthCertificate,omitempty"` + LogicalName NullableString `json:"LogicalName,omitempty"` + HostName NullableString `json:"HostName,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` + ClientSecret *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret,omitempty"` + ClientId NullableString `json:"ClientId,omitempty"` + TokenURL NullableString `json:"TokenURL,omitempty"` + Scope NullableString `json:"Scope,omitempty"` + UseCAConnector *bool `json:"UseCAConnector,omitempty"` + ConnectorPool NullableString `json:"ConnectorPool,omitempty"` + Audience NullableString `json:"Audience,omitempty"` + Remote *bool `json:"Remote,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest { + this := CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequestWithDefaults() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest { + this := CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetId(v int32) { + o.Id = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetCAType() CSSCMSCoreEnumsCertificateAuthorityType { + if o == nil || isNil(o.CAType) { + var ret CSSCMSCoreEnumsCertificateAuthorityType + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetCATypeOk() (*CSSCMSCoreEnumsCertificateAuthorityType, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given CSSCMSCoreEnumsCertificateAuthorityType and assigns it to the CAType field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetCAType(v CSSCMSCoreEnumsCertificateAuthorityType) { + o.CAType = &v +} + +// GetExplicitCredentials returns the ExplicitCredentials field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitCredentials() bool { + if o == nil || isNil(o.ExplicitCredentials) { + var ret bool + return ret + } + return *o.ExplicitCredentials +} + +// GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitCredentialsOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitCredentials) { + return nil, false + } + return o.ExplicitCredentials, true +} + +// HasExplicitCredentials returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitCredentials() bool { + if o != nil && !isNil(o.ExplicitCredentials) { + return true + } + + return false +} + +// SetExplicitCredentials gets a reference to the given bool and assigns it to the ExplicitCredentials field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitCredentials(v bool) { + o.ExplicitCredentials = &v +} + +// GetExplicitPassword returns the ExplicitPassword field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ExplicitPassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ExplicitPassword +} + +// GetExplicitPasswordOk returns a tuple with the ExplicitPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ExplicitPassword) { + return nil, false + } + return o.ExplicitPassword, true +} + +// HasExplicitPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitPassword() bool { + if o != nil && !isNil(o.ExplicitPassword) { + return true + } + + return false +} + +// SetExplicitPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ExplicitPassword field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ExplicitPassword = &v +} + +// GetExplicitUser returns the ExplicitUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitUser() string { + if o == nil || isNil(o.ExplicitUser.Get()) { + var ret string + return ret + } + return *o.ExplicitUser.Get() +} + +// GetExplicitUserOk returns a tuple with the ExplicitUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetExplicitUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExplicitUser.Get(), o.ExplicitUser.IsSet() +} + +// HasExplicitUser returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasExplicitUser() bool { + if o != nil && o.ExplicitUser.IsSet() { + return true + } + + return false +} + +// SetExplicitUser gets a reference to the given NullableString and assigns it to the ExplicitUser field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitUser(v string) { + o.ExplicitUser.Set(&v) +} + +// SetExplicitUserNil sets the value for ExplicitUser to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetExplicitUserNil() { + o.ExplicitUser.Set(nil) +} + +// UnsetExplicitUser ensures that no value is present for ExplicitUser, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetExplicitUser() { + o.ExplicitUser.Unset() +} + +// GetAuthCertificatePassword returns the AuthCertificatePassword field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificatePassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificatePassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificatePassword +} + +// GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificatePasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificatePassword) { + return nil, false + } + return o.AuthCertificatePassword, true +} + +// HasAuthCertificatePassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAuthCertificatePassword() bool { + if o != nil && !isNil(o.AuthCertificatePassword) { + return true + } + + return false +} + +// SetAuthCertificatePassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the AuthCertificatePassword field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAuthCertificatePassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.AuthCertificatePassword = &v +} + +// GetAuthCertificate returns the AuthCertificate field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificate() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificate) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificate +} + +// GetAuthCertificateOk returns a tuple with the AuthCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAuthCertificateOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificate) { + return nil, false + } + return o.AuthCertificate, true +} + +// HasAuthCertificate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAuthCertificate() bool { + if o != nil && !isNil(o.AuthCertificate) { + return true + } + + return false +} + +// SetAuthCertificate gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the AuthCertificate field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAuthCertificate(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.AuthCertificate = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetLogicalName() string { + if o == nil || isNil(o.LogicalName.Get()) { + var ret string + return ret + } + return *o.LogicalName.Get() +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogicalName.Get(), o.LogicalName.IsSet() +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasLogicalName() bool { + if o != nil && o.LogicalName.IsSet() { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given NullableString and assigns it to the LogicalName field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetLogicalName(v string) { + o.LogicalName.Set(&v) +} + +// SetLogicalNameNil sets the value for LogicalName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetLogicalNameNil() { + o.LogicalName.Set(nil) +} + +// UnsetLogicalName ensures that no value is present for LogicalName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetLogicalName() { + o.LogicalName.Unset() +} + +// GetHostName returns the HostName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetHostName() string { + if o == nil || isNil(o.HostName.Get()) { + var ret string + return ret + } + return *o.HostName.Get() +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetHostNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.HostName.Get(), o.HostName.IsSet() +} + +// HasHostName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasHostName() bool { + if o != nil && o.HostName.IsSet() { + return true + } + + return false +} + +// SetHostName gets a reference to the given NullableString and assigns it to the HostName field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetHostName(v string) { + o.HostName.Set(&v) +} + +// SetHostNameNil sets the value for HostName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetHostNameNil() { + o.HostName.Set(nil) +} + +// UnsetHostName ensures that no value is present for HostName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetHostName() { + o.HostName.Unset() +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ClientSecret) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasClientSecret() bool { + if o != nil && !isNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ClientSecret field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientId() string { + if o == nil || isNil(o.ClientId.Get()) { + var ret string + return ret + } + return *o.ClientId.Get() +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientId.Get(), o.ClientId.IsSet() +} + +// HasClientId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasClientId() bool { + if o != nil && o.ClientId.IsSet() { + return true + } + + return false +} + +// SetClientId gets a reference to the given NullableString and assigns it to the ClientId field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientId(v string) { + o.ClientId.Set(&v) +} + +// SetClientIdNil sets the value for ClientId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetClientIdNil() { + o.ClientId.Set(nil) +} + +// UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetClientId() { + o.ClientId.Unset() +} + +// GetTokenURL returns the TokenURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetTokenURL() string { + if o == nil || isNil(o.TokenURL.Get()) { + var ret string + return ret + } + return *o.TokenURL.Get() +} + +// GetTokenURLOk returns a tuple with the TokenURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetTokenURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TokenURL.Get(), o.TokenURL.IsSet() +} + +// HasTokenURL returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasTokenURL() bool { + if o != nil && o.TokenURL.IsSet() { + return true + } + + return false +} + +// SetTokenURL gets a reference to the given NullableString and assigns it to the TokenURL field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetTokenURL(v string) { + o.TokenURL.Set(&v) +} + +// SetTokenURLNil sets the value for TokenURL to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetTokenURLNil() { + o.TokenURL.Set(nil) +} + +// UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetTokenURL() { + o.TokenURL.Unset() +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetScope() string { + if o == nil || isNil(o.Scope.Get()) { + var ret string + return ret + } + return *o.Scope.Get() +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Scope.Get(), o.Scope.IsSet() +} + +// HasScope returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasScope() bool { + if o != nil && o.Scope.IsSet() { + return true + } + + return false +} + +// SetScope gets a reference to the given NullableString and assigns it to the Scope field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetScope(v string) { + o.Scope.Set(&v) +} + +// SetScopeNil sets the value for Scope to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetScopeNil() { + o.Scope.Set(nil) +} + +// UnsetScope ensures that no value is present for Scope, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetScope() { + o.Scope.Unset() +} + +// GetUseCAConnector returns the UseCAConnector field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetUseCAConnector() bool { + if o == nil || isNil(o.UseCAConnector) { + var ret bool + return ret + } + return *o.UseCAConnector +} + +// GetUseCAConnectorOk returns a tuple with the UseCAConnector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetUseCAConnectorOk() (*bool, bool) { + if o == nil || isNil(o.UseCAConnector) { + return nil, false + } + return o.UseCAConnector, true +} + +// HasUseCAConnector returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasUseCAConnector() bool { + if o != nil && !isNil(o.UseCAConnector) { + return true + } + + return false +} + +// SetUseCAConnector gets a reference to the given bool and assigns it to the UseCAConnector field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetUseCAConnector(v bool) { + o.UseCAConnector = &v +} + +// GetConnectorPool returns the ConnectorPool field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConnectorPool() string { + if o == nil || isNil(o.ConnectorPool.Get()) { + var ret string + return ret + } + return *o.ConnectorPool.Get() +} + +// GetConnectorPoolOk returns a tuple with the ConnectorPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetConnectorPoolOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectorPool.Get(), o.ConnectorPool.IsSet() +} + +// HasConnectorPool returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasConnectorPool() bool { + if o != nil && o.ConnectorPool.IsSet() { + return true + } + + return false +} + +// SetConnectorPool gets a reference to the given NullableString and assigns it to the ConnectorPool field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConnectorPool(v string) { + o.ConnectorPool.Set(&v) +} + +// SetConnectorPoolNil sets the value for ConnectorPool to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetConnectorPoolNil() { + o.ConnectorPool.Set(nil) +} + +// UnsetConnectorPool ensures that no value is present for ConnectorPool, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetConnectorPool() { + o.ConnectorPool.Unset() +} + +// GetAudience returns the Audience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAudience() string { + if o == nil || isNil(o.Audience.Get()) { + var ret string + return ret + } + return *o.Audience.Get() +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Audience.Get(), o.Audience.IsSet() +} + +// HasAudience returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasAudience() bool { + if o != nil && o.Audience.IsSet() { + return true + } + + return false +} + +// SetAudience gets a reference to the given NullableString and assigns it to the Audience field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAudience(v string) { + o.Audience.Set(&v) +} + +// SetAudienceNil sets the value for Audience to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetAudienceNil() { + o.Audience.Set(nil) +} + +// UnsetAudience ensures that no value is present for Audience, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnsetAudience() { + o.Audience.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) SetRemote(v bool) { + o.Remote = &v +} + +func (o CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + if !isNil(o.ExplicitCredentials) { + toSerialize["ExplicitCredentials"] = o.ExplicitCredentials + } + if !isNil(o.ExplicitPassword) { + toSerialize["ExplicitPassword"] = o.ExplicitPassword + } + if o.ExplicitUser.IsSet() { + toSerialize["ExplicitUser"] = o.ExplicitUser.Get() + } + if !isNil(o.AuthCertificatePassword) { + toSerialize["AuthCertificatePassword"] = o.AuthCertificatePassword + } + if !isNil(o.AuthCertificate) { + toSerialize["AuthCertificate"] = o.AuthCertificate + } + if o.LogicalName.IsSet() { + toSerialize["LogicalName"] = o.LogicalName.Get() + } + if o.HostName.IsSet() { + toSerialize["HostName"] = o.HostName.Get() + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + if !isNil(o.ClientSecret) { + toSerialize["ClientSecret"] = o.ClientSecret + } + if o.ClientId.IsSet() { + toSerialize["ClientId"] = o.ClientId.Get() + } + if o.TokenURL.IsSet() { + toSerialize["TokenURL"] = o.TokenURL.Get() + } + if o.Scope.IsSet() { + toSerialize["Scope"] = o.Scope.Get() + } + if !isNil(o.UseCAConnector) { + toSerialize["UseCAConnector"] = o.UseCAConnector + } + if o.ConnectorPool.IsSet() { + toSerialize["ConnectorPool"] = o.ConnectorPool.Get() + } + if o.Audience.IsSet() { + toSerialize["Audience"] = o.Audience.Get() + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest struct { + value *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) Get() *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) Set(val *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest(val *CSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest { + return &NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateAuthoritiesCertificateAuthorityTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_collection_nav_item.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_collection_nav_item.go new file mode 100644 index 0000000..cd9e8d4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_collection_nav_item.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateCollectionNavItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateCollectionNavItem{} + +// CSSCMSDataModelModelsCertificateCollectionNavItem struct for CSSCMSDataModelModelsCertificateCollectionNavItem +type CSSCMSDataModelModelsCertificateCollectionNavItem struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateCollectionNavItem instantiates a new CSSCMSDataModelModelsCertificateCollectionNavItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateCollectionNavItem() *CSSCMSDataModelModelsCertificateCollectionNavItem { + this := CSSCMSDataModelModelsCertificateCollectionNavItem{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateCollectionNavItemWithDefaults instantiates a new CSSCMSDataModelModelsCertificateCollectionNavItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateCollectionNavItemWithDefaults() *CSSCMSDataModelModelsCertificateCollectionNavItem { + this := CSSCMSDataModelModelsCertificateCollectionNavItem{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateCollectionNavItem) UnsetName() { + o.Name.Unset() +} + +func (o CSSCMSDataModelModelsCertificateCollectionNavItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateCollectionNavItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateCollectionNavItem struct { + value *CSSCMSDataModelModelsCertificateCollectionNavItem + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateCollectionNavItem) Get() *CSSCMSDataModelModelsCertificateCollectionNavItem { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateCollectionNavItem) Set(val *CSSCMSDataModelModelsCertificateCollectionNavItem) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateCollectionNavItem) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateCollectionNavItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateCollectionNavItem(val *CSSCMSDataModelModelsCertificateCollectionNavItem) *NullableCSSCMSDataModelModelsCertificateCollectionNavItem { + return &NullableCSSCMSDataModelModelsCertificateCollectionNavItem{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateCollectionNavItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateCollectionNavItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_details.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_details.go new file mode 100644 index 0000000..1875e25 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_details.go @@ -0,0 +1,385 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsCertificateDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateDetails{} + +// CSSCMSDataModelModelsCertificateDetails struct for CSSCMSDataModelModelsCertificateDetails +type CSSCMSDataModelModelsCertificateDetails struct { + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` + IsEndEntity *bool `json:"IsEndEntity,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateDetails instantiates a new CSSCMSDataModelModelsCertificateDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateDetails() *CSSCMSDataModelModelsCertificateDetails { + this := CSSCMSDataModelModelsCertificateDetails{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateDetailsWithDefaults instantiates a new CSSCMSDataModelModelsCertificateDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateDetailsWithDefaults() *CSSCMSDataModelModelsCertificateDetails { + this := CSSCMSDataModelModelsCertificateDetails{} + return &this +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateDetails) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateDetails) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateDetails) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateDetails) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateDetails) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateDetails) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateDetails) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateDetails) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetMetadata(v map[string]string) { + o.Metadata = v +} + +// GetIsEndEntity returns the IsEndEntity field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateDetails) GetIsEndEntity() bool { + if o == nil || isNil(o.IsEndEntity) { + var ret bool + return ret + } + return *o.IsEndEntity +} + +// GetIsEndEntityOk returns a tuple with the IsEndEntity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) GetIsEndEntityOk() (*bool, bool) { + if o == nil || isNil(o.IsEndEntity) { + return nil, false + } + return o.IsEndEntity, true +} + +// HasIsEndEntity returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDetails) HasIsEndEntity() bool { + if o != nil && !isNil(o.IsEndEntity) { + return true + } + + return false +} + +// SetIsEndEntity gets a reference to the given bool and assigns it to the IsEndEntity field. +func (o *CSSCMSDataModelModelsCertificateDetails) SetIsEndEntity(v bool) { + o.IsEndEntity = &v +} + +func (o CSSCMSDataModelModelsCertificateDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.IsEndEntity) { + toSerialize["IsEndEntity"] = o.IsEndEntity + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateDetails struct { + value *CSSCMSDataModelModelsCertificateDetails + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateDetails) Get() *CSSCMSDataModelModelsCertificateDetails { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateDetails) Set(val *CSSCMSDataModelModelsCertificateDetails) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateDetails(val *CSSCMSDataModelModelsCertificateDetails) *NullableCSSCMSDataModelModelsCertificateDetails { + return &NullableCSSCMSDataModelModelsCertificateDetails{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_download_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_download_response.go new file mode 100644 index 0000000..ad1434c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_download_response.go @@ -0,0 +1,145 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateDownloadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateDownloadResponse{} + +// CSSCMSDataModelModelsCertificateDownloadResponse struct for CSSCMSDataModelModelsCertificateDownloadResponse +type CSSCMSDataModelModelsCertificateDownloadResponse struct { + Content NullableString `json:"Content,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateDownloadResponse instantiates a new CSSCMSDataModelModelsCertificateDownloadResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateDownloadResponse() *CSSCMSDataModelModelsCertificateDownloadResponse { + this := CSSCMSDataModelModelsCertificateDownloadResponse{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateDownloadResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateDownloadResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateDownloadResponseWithDefaults() *CSSCMSDataModelModelsCertificateDownloadResponse { + this := CSSCMSDataModelModelsCertificateDownloadResponse{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) GetContent() string { + if o == nil || isNil(o.Content.Get()) { + var ret string + return ret + } + return *o.Content.Get() +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Content.Get(), o.Content.IsSet() +} + +// HasContent returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) HasContent() bool { + if o != nil && o.Content.IsSet() { + return true + } + + return false +} + +// SetContent gets a reference to the given NullableString and assigns it to the Content field. +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) SetContent(v string) { + o.Content.Set(&v) +} + +// SetContentNil sets the value for Content to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) SetContentNil() { + o.Content.Set(nil) +} + +// UnsetContent ensures that no value is present for Content, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateDownloadResponse) UnsetContent() { + o.Content.Unset() +} + +func (o CSSCMSDataModelModelsCertificateDownloadResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateDownloadResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Content.IsSet() { + toSerialize["Content"] = o.Content.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateDownloadResponse struct { + value *CSSCMSDataModelModelsCertificateDownloadResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateDownloadResponse) Get() *CSSCMSDataModelModelsCertificateDownloadResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateDownloadResponse) Set(val *CSSCMSDataModelModelsCertificateDownloadResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateDownloadResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateDownloadResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateDownloadResponse(val *CSSCMSDataModelModelsCertificateDownloadResponse) *NullableCSSCMSDataModelModelsCertificateDownloadResponse { + return &NullableCSSCMSDataModelModelsCertificateDownloadResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateDownloadResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateDownloadResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_request_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_request_model.go new file mode 100644 index 0000000..17f31bd --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_request_model.go @@ -0,0 +1,425 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsCertificateImportRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateImportRequestModel{} + +// CSSCMSDataModelModelsCertificateImportRequestModel struct for CSSCMSDataModelModelsCertificateImportRequestModel +type CSSCMSDataModelModelsCertificateImportRequestModel struct { + Certificate string `json:"Certificate"` + Password NullableString `json:"Password,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` + StoreIds []string `json:"StoreIds,omitempty"` + StoreTypes []CSSCMSDataModelModelsEnrollmentManagementStoreType `json:"StoreTypes,omitempty"` + Schedule NullableTime `json:"Schedule,omitempty"` + OwnerRoleId NullableInt32 `json:"OwnerRoleId,omitempty"` + OwnerRoleName NullableString `json:"OwnerRoleName,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateImportRequestModel instantiates a new CSSCMSDataModelModelsCertificateImportRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateImportRequestModel(certificate string) *CSSCMSDataModelModelsCertificateImportRequestModel { + this := CSSCMSDataModelModelsCertificateImportRequestModel{} + this.Certificate = certificate + return &this +} + +// NewCSSCMSDataModelModelsCertificateImportRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsCertificateImportRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateImportRequestModelWithDefaults() *CSSCMSDataModelModelsCertificateImportRequestModel { + this := CSSCMSDataModelModelsCertificateImportRequestModel{} + return &this +} + +// GetCertificate returns the Certificate field value +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetCertificate() string { + if o == nil { + var ret string + return ret + } + + return o.Certificate +} + +// GetCertificateOk returns a tuple with the Certificate field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetCertificateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Certificate, true +} + +// SetCertificate sets field value +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetCertificate(v string) { + o.Certificate = v +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetPassword() { + o.Password.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetMetadata(v map[string]string) { + o.Metadata = v +} + +// GetStoreIds returns the StoreIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreIds() []string { + if o == nil { + var ret []string + return ret + } + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreIdsOk() ([]string, bool) { + if o == nil || isNil(o.StoreIds) { + return nil, false + } + return o.StoreIds, true +} + +// HasStoreIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasStoreIds() bool { + if o != nil && isNil(o.StoreIds) { + return true + } + + return false +} + +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetStoreTypes returns the StoreTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreTypes() []CSSCMSDataModelModelsEnrollmentManagementStoreType { + if o == nil { + var ret []CSSCMSDataModelModelsEnrollmentManagementStoreType + return ret + } + return o.StoreTypes +} + +// GetStoreTypesOk returns a tuple with the StoreTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetStoreTypesOk() ([]CSSCMSDataModelModelsEnrollmentManagementStoreType, bool) { + if o == nil || isNil(o.StoreTypes) { + return nil, false + } + return o.StoreTypes, true +} + +// HasStoreTypes returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasStoreTypes() bool { + if o != nil && isNil(o.StoreTypes) { + return true + } + + return false +} + +// SetStoreTypes gets a reference to the given []CSSCMSDataModelModelsEnrollmentManagementStoreType and assigns it to the StoreTypes field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetStoreTypes(v []CSSCMSDataModelModelsEnrollmentManagementStoreType) { + o.StoreTypes = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetSchedule() time.Time { + if o == nil || isNil(o.Schedule.Get()) { + var ret time.Time + return ret + } + return *o.Schedule.Get() +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetScheduleOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Schedule.Get(), o.Schedule.IsSet() +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasSchedule() bool { + if o != nil && o.Schedule.IsSet() { + return true + } + + return false +} + +// SetSchedule gets a reference to the given NullableTime and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetSchedule(v time.Time) { + o.Schedule.Set(&v) +} + +// SetScheduleNil sets the value for Schedule to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetScheduleNil() { + o.Schedule.Set(nil) +} + +// UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetSchedule() { + o.Schedule.Unset() +} + +// GetOwnerRoleId returns the OwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleId() int32 { + if o == nil || isNil(o.OwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.OwnerRoleId.Get() +} + +// GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleId.Get(), o.OwnerRoleId.IsSet() +} + +// HasOwnerRoleId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasOwnerRoleId() bool { + if o != nil && o.OwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the OwnerRoleId field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleId(v int32) { + o.OwnerRoleId.Set(&v) +} + +// SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleIdNil() { + o.OwnerRoleId.Set(nil) +} + +// UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetOwnerRoleId() { + o.OwnerRoleId.Unset() +} + +// GetOwnerRoleName returns the OwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleName() string { + if o == nil || isNil(o.OwnerRoleName.Get()) { + var ret string + return ret + } + return *o.OwnerRoleName.Get() +} + +// GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) GetOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleName.Get(), o.OwnerRoleName.IsSet() +} + +// HasOwnerRoleName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) HasOwnerRoleName() bool { + if o != nil && o.OwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleName gets a reference to the given NullableString and assigns it to the OwnerRoleName field. +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleName(v string) { + o.OwnerRoleName.Set(&v) +} + +// SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) SetOwnerRoleNameNil() { + o.OwnerRoleName.Set(nil) +} + +// UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportRequestModel) UnsetOwnerRoleName() { + o.OwnerRoleName.Unset() +} + +func (o CSSCMSDataModelModelsCertificateImportRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateImportRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Certificate"] = o.Certificate + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.StoreIds != nil { + toSerialize["StoreIds"] = o.StoreIds + } + if o.StoreTypes != nil { + toSerialize["StoreTypes"] = o.StoreTypes + } + if o.Schedule.IsSet() { + toSerialize["Schedule"] = o.Schedule.Get() + } + if o.OwnerRoleId.IsSet() { + toSerialize["OwnerRoleId"] = o.OwnerRoleId.Get() + } + if o.OwnerRoleName.IsSet() { + toSerialize["OwnerRoleName"] = o.OwnerRoleName.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateImportRequestModel struct { + value *CSSCMSDataModelModelsCertificateImportRequestModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateImportRequestModel) Get() *CSSCMSDataModelModelsCertificateImportRequestModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportRequestModel) Set(val *CSSCMSDataModelModelsCertificateImportRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateImportRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateImportRequestModel(val *CSSCMSDataModelModelsCertificateImportRequestModel) *NullableCSSCMSDataModelModelsCertificateImportRequestModel { + return &NullableCSSCMSDataModelModelsCertificateImportRequestModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateImportRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_response_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_response_model.go new file mode 100644 index 0000000..5e71f9a --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_import_response_model.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateImportResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateImportResponseModel{} + +// CSSCMSDataModelModelsCertificateImportResponseModel struct for CSSCMSDataModelModelsCertificateImportResponseModel +type CSSCMSDataModelModelsCertificateImportResponseModel struct { + ImportStatus *CSSCMSDataModelEnumsCertificateSavedState `json:"ImportStatus,omitempty"` + JobStatus *CSSCMSDataModelEnumsCertificateImportJobStatus `json:"JobStatus,omitempty"` + InvalidKeystores []CSSCMSDataModelModelsInvalidKeystore `json:"InvalidKeystores,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateImportResponseModel instantiates a new CSSCMSDataModelModelsCertificateImportResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateImportResponseModel() *CSSCMSDataModelModelsCertificateImportResponseModel { + this := CSSCMSDataModelModelsCertificateImportResponseModel{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateImportResponseModelWithDefaults instantiates a new CSSCMSDataModelModelsCertificateImportResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateImportResponseModelWithDefaults() *CSSCMSDataModelModelsCertificateImportResponseModel { + this := CSSCMSDataModelModelsCertificateImportResponseModel{} + return &this +} + +// GetImportStatus returns the ImportStatus field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetImportStatus() CSSCMSDataModelEnumsCertificateSavedState { + if o == nil || isNil(o.ImportStatus) { + var ret CSSCMSDataModelEnumsCertificateSavedState + return ret + } + return *o.ImportStatus +} + +// GetImportStatusOk returns a tuple with the ImportStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetImportStatusOk() (*CSSCMSDataModelEnumsCertificateSavedState, bool) { + if o == nil || isNil(o.ImportStatus) { + return nil, false + } + return o.ImportStatus, true +} + +// HasImportStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasImportStatus() bool { + if o != nil && !isNil(o.ImportStatus) { + return true + } + + return false +} + +// SetImportStatus gets a reference to the given CSSCMSDataModelEnumsCertificateSavedState and assigns it to the ImportStatus field. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetImportStatus(v CSSCMSDataModelEnumsCertificateSavedState) { + o.ImportStatus = &v +} + +// GetJobStatus returns the JobStatus field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetJobStatus() CSSCMSDataModelEnumsCertificateImportJobStatus { + if o == nil || isNil(o.JobStatus) { + var ret CSSCMSDataModelEnumsCertificateImportJobStatus + return ret + } + return *o.JobStatus +} + +// GetJobStatusOk returns a tuple with the JobStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetJobStatusOk() (*CSSCMSDataModelEnumsCertificateImportJobStatus, bool) { + if o == nil || isNil(o.JobStatus) { + return nil, false + } + return o.JobStatus, true +} + +// HasJobStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasJobStatus() bool { + if o != nil && !isNil(o.JobStatus) { + return true + } + + return false +} + +// SetJobStatus gets a reference to the given CSSCMSDataModelEnumsCertificateImportJobStatus and assigns it to the JobStatus field. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetJobStatus(v CSSCMSDataModelEnumsCertificateImportJobStatus) { + o.JobStatus = &v +} + +// GetInvalidKeystores returns the InvalidKeystores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetInvalidKeystores() []CSSCMSDataModelModelsInvalidKeystore { + if o == nil { + var ret []CSSCMSDataModelModelsInvalidKeystore + return ret + } + return o.InvalidKeystores +} + +// GetInvalidKeystoresOk returns a tuple with the InvalidKeystores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetInvalidKeystoresOk() ([]CSSCMSDataModelModelsInvalidKeystore, bool) { + if o == nil || isNil(o.InvalidKeystores) { + return nil, false + } + return o.InvalidKeystores, true +} + +// HasInvalidKeystores returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasInvalidKeystores() bool { + if o != nil && isNil(o.InvalidKeystores) { + return true + } + + return false +} + +// SetInvalidKeystores gets a reference to the given []CSSCMSDataModelModelsInvalidKeystore and assigns it to the InvalidKeystores field. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetInvalidKeystores(v []CSSCMSDataModelModelsInvalidKeystore) { + o.InvalidKeystores = v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateImportResponseModel) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +func (o CSSCMSDataModelModelsCertificateImportResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateImportResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ImportStatus) { + toSerialize["ImportStatus"] = o.ImportStatus + } + if !isNil(o.JobStatus) { + toSerialize["JobStatus"] = o.JobStatus + } + if o.InvalidKeystores != nil { + toSerialize["InvalidKeystores"] = o.InvalidKeystores + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateImportResponseModel struct { + value *CSSCMSDataModelModelsCertificateImportResponseModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateImportResponseModel) Get() *CSSCMSDataModelModelsCertificateImportResponseModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportResponseModel) Set(val *CSSCMSDataModelModelsCertificateImportResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateImportResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateImportResponseModel(val *CSSCMSDataModelModelsCertificateImportResponseModel) *NullableCSSCMSDataModelModelsCertificateImportResponseModel { + return &NullableCSSCMSDataModelModelsCertificateImportResponseModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateImportResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateImportResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_location_specifier.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_location_specifier.go new file mode 100644 index 0000000..9374015 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_location_specifier.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateLocationSpecifier type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateLocationSpecifier{} + +// CSSCMSDataModelModelsCertificateLocationSpecifier struct for CSSCMSDataModelModelsCertificateLocationSpecifier +type CSSCMSDataModelModelsCertificateLocationSpecifier struct { + Alias NullableString `json:"Alias,omitempty"` + CertificateStoreId *string `json:"CertificateStoreId,omitempty"` + JobFields map[string]interface{} `json:"JobFields,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateLocationSpecifier instantiates a new CSSCMSDataModelModelsCertificateLocationSpecifier object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateLocationSpecifier() *CSSCMSDataModelModelsCertificateLocationSpecifier { + this := CSSCMSDataModelModelsCertificateLocationSpecifier{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateLocationSpecifierWithDefaults instantiates a new CSSCMSDataModelModelsCertificateLocationSpecifier object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateLocationSpecifierWithDefaults() *CSSCMSDataModelModelsCertificateLocationSpecifier { + this := CSSCMSDataModelModelsCertificateLocationSpecifier{} + return &this +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) UnsetAlias() { + o.Alias.Unset() +} + +// GetCertificateStoreId returns the CertificateStoreId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetCertificateStoreId() string { + if o == nil || isNil(o.CertificateStoreId) { + var ret string + return ret + } + return *o.CertificateStoreId +} + +// GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetCertificateStoreIdOk() (*string, bool) { + if o == nil || isNil(o.CertificateStoreId) { + return nil, false + } + return o.CertificateStoreId, true +} + +// HasCertificateStoreId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasCertificateStoreId() bool { + if o != nil && !isNil(o.CertificateStoreId) { + return true + } + + return false +} + +// SetCertificateStoreId gets a reference to the given string and assigns it to the CertificateStoreId field. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetCertificateStoreId(v string) { + o.CertificateStoreId = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetJobFields() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) GetJobFieldsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.JobFields) { + return map[string]interface{}{}, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]interface{} and assigns it to the JobFields field. +func (o *CSSCMSDataModelModelsCertificateLocationSpecifier) SetJobFields(v map[string]interface{}) { + o.JobFields = v +} + +func (o CSSCMSDataModelModelsCertificateLocationSpecifier) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateLocationSpecifier) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.CertificateStoreId) { + toSerialize["CertificateStoreId"] = o.CertificateStoreId + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateLocationSpecifier struct { + value *CSSCMSDataModelModelsCertificateLocationSpecifier + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateLocationSpecifier) Get() *CSSCMSDataModelModelsCertificateLocationSpecifier { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateLocationSpecifier) Set(val *CSSCMSDataModelModelsCertificateLocationSpecifier) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateLocationSpecifier) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateLocationSpecifier) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateLocationSpecifier(val *CSSCMSDataModelModelsCertificateLocationSpecifier) *NullableCSSCMSDataModelModelsCertificateLocationSpecifier { + return &NullableCSSCMSDataModelModelsCertificateLocationSpecifier{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateLocationSpecifier) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateLocationSpecifier) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_query.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_query.go new file mode 100644 index 0000000..300d1a8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_query.go @@ -0,0 +1,503 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsCertificateQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateQuery{} + +// CSSCMSDataModelModelsCertificateQuery struct for CSSCMSDataModelModelsCertificateQuery +type CSSCMSDataModelModelsCertificateQuery struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + Automated *bool `json:"Automated,omitempty"` + Content NullableString `json:"Content,omitempty"` + DuplicationField *CSSCMSCoreEnumsDuplicateSubjectType `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + EstimatedCertCount *int32 `json:"EstimatedCertCount,omitempty"` + LastEstimated NullableTime `json:"LastEstimated,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateQuery instantiates a new CSSCMSDataModelModelsCertificateQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateQuery() *CSSCMSDataModelModelsCertificateQuery { + this := CSSCMSDataModelModelsCertificateQuery{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateQueryWithDefaults instantiates a new CSSCMSDataModelModelsCertificateQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateQueryWithDefaults() *CSSCMSDataModelModelsCertificateQuery { + this := CSSCMSDataModelModelsCertificateQuery{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateQuery) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateQuery) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateQuery) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateQuery) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) UnsetDescription() { + o.Description.Unset() +} + +// GetAutomated returns the Automated field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetAutomated() bool { + if o == nil || isNil(o.Automated) { + var ret bool + return ret + } + return *o.Automated +} + +// GetAutomatedOk returns a tuple with the Automated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetAutomatedOk() (*bool, bool) { + if o == nil || isNil(o.Automated) { + return nil, false + } + return o.Automated, true +} + +// HasAutomated returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasAutomated() bool { + if o != nil && !isNil(o.Automated) { + return true + } + + return false +} + +// SetAutomated gets a reference to the given bool and assigns it to the Automated field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetAutomated(v bool) { + o.Automated = &v +} + +// GetContent returns the Content field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateQuery) GetContent() string { + if o == nil || isNil(o.Content.Get()) { + var ret string + return ret + } + return *o.Content.Get() +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateQuery) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Content.Get(), o.Content.IsSet() +} + +// HasContent returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasContent() bool { + if o != nil && o.Content.IsSet() { + return true + } + + return false +} + +// SetContent gets a reference to the given NullableString and assigns it to the Content field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetContent(v string) { + o.Content.Set(&v) +} + +// SetContentNil sets the value for Content to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) SetContentNil() { + o.Content.Set(nil) +} + +// UnsetContent ensures that no value is present for Content, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) UnsetContent() { + o.Content.Unset() +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetDuplicationField() CSSCMSCoreEnumsDuplicateSubjectType { + if o == nil || isNil(o.DuplicationField) { + var ret CSSCMSCoreEnumsDuplicateSubjectType + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetDuplicationFieldOk() (*CSSCMSCoreEnumsDuplicateSubjectType, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given CSSCMSCoreEnumsDuplicateSubjectType and assigns it to the DuplicationField field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetDuplicationField(v CSSCMSCoreEnumsDuplicateSubjectType) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetEstimatedCertCount returns the EstimatedCertCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateQuery) GetEstimatedCertCount() int32 { + if o == nil || isNil(o.EstimatedCertCount) { + var ret int32 + return ret + } + return *o.EstimatedCertCount +} + +// GetEstimatedCertCountOk returns a tuple with the EstimatedCertCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) GetEstimatedCertCountOk() (*int32, bool) { + if o == nil || isNil(o.EstimatedCertCount) { + return nil, false + } + return o.EstimatedCertCount, true +} + +// HasEstimatedCertCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasEstimatedCertCount() bool { + if o != nil && !isNil(o.EstimatedCertCount) { + return true + } + + return false +} + +// SetEstimatedCertCount gets a reference to the given int32 and assigns it to the EstimatedCertCount field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetEstimatedCertCount(v int32) { + o.EstimatedCertCount = &v +} + +// GetLastEstimated returns the LastEstimated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateQuery) GetLastEstimated() time.Time { + if o == nil || isNil(o.LastEstimated.Get()) { + var ret time.Time + return ret + } + return *o.LastEstimated.Get() +} + +// GetLastEstimatedOk returns a tuple with the LastEstimated field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateQuery) GetLastEstimatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastEstimated.Get(), o.LastEstimated.IsSet() +} + +// HasLastEstimated returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateQuery) HasLastEstimated() bool { + if o != nil && o.LastEstimated.IsSet() { + return true + } + + return false +} + +// SetLastEstimated gets a reference to the given NullableTime and assigns it to the LastEstimated field. +func (o *CSSCMSDataModelModelsCertificateQuery) SetLastEstimated(v time.Time) { + o.LastEstimated.Set(&v) +} + +// SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) SetLastEstimatedNil() { + o.LastEstimated.Set(nil) +} + +// UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateQuery) UnsetLastEstimated() { + o.LastEstimated.Unset() +} + +func (o CSSCMSDataModelModelsCertificateQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.Automated) { + toSerialize["Automated"] = o.Automated + } + if o.Content.IsSet() { + toSerialize["Content"] = o.Content.Get() + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.EstimatedCertCount) { + toSerialize["EstimatedCertCount"] = o.EstimatedCertCount + } + if o.LastEstimated.IsSet() { + toSerialize["LastEstimated"] = o.LastEstimated.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateQuery struct { + value *CSSCMSDataModelModelsCertificateQuery + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateQuery) Get() *CSSCMSDataModelModelsCertificateQuery { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateQuery) Set(val *CSSCMSDataModelModelsCertificateQuery) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateQuery(val *CSSCMSDataModelModelsCertificateQuery) *NullableCSSCMSDataModelModelsCertificateQuery { + return &NullableCSSCMSDataModelModelsCertificateQuery{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store.go new file mode 100644 index 0000000..bb248d3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store.go @@ -0,0 +1,798 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStore{} + +// CSSCMSDataModelModelsCertificateStore struct for CSSCMSDataModelModelsCertificateStore +type CSSCMSDataModelModelsCertificateStore struct { + Id *string `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + ContainerId NullableInt32 `json:"ContainerId,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + Storepath NullableString `json:"Storepath,omitempty"` + CertStoreInventoryJobId NullableString `json:"CertStoreInventoryJobId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + Approved *bool `json:"Approved,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + AgentAssigned *bool `json:"AgentAssigned,omitempty"` + ContainerName NullableString `json:"ContainerName,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + ReenrollmentStatus *CSSCMSDataModelModelsReenrollmentStatus `json:"ReenrollmentStatus,omitempty"` + SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorSecret `json:"Password,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStore instantiates a new CSSCMSDataModelModelsCertificateStore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStore() *CSSCMSDataModelModelsCertificateStore { + this := CSSCMSDataModelModelsCertificateStore{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreWithDefaults() *CSSCMSDataModelModelsCertificateStore { + this := CSSCMSDataModelModelsCertificateStore{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateStore) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsCertificateStore) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId.Get()) { + var ret int32 + return ret + } + return *o.ContainerId.Get() +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetContainerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ContainerId.Get(), o.ContainerId.IsSet() +} + +// HasContainerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasContainerId() bool { + if o != nil && o.ContainerId.IsSet() { + return true + } + + return false +} + +// SetContainerId gets a reference to the given NullableInt32 and assigns it to the ContainerId field. +func (o *CSSCMSDataModelModelsCertificateStore) SetContainerId(v int32) { + o.ContainerId.Set(&v) +} + +// SetContainerIdNil sets the value for ContainerId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetContainerIdNil() { + o.ContainerId.Set(nil) +} + +// UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetContainerId() { + o.ContainerId.Unset() +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsCertificateStore) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorepath returns the Storepath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetStorepath() string { + if o == nil || isNil(o.Storepath.Get()) { + var ret string + return ret + } + return *o.Storepath.Get() +} + +// GetStorepathOk returns a tuple with the Storepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetStorepathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Storepath.Get(), o.Storepath.IsSet() +} + +// HasStorepath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasStorepath() bool { + if o != nil && o.Storepath.IsSet() { + return true + } + + return false +} + +// SetStorepath gets a reference to the given NullableString and assigns it to the Storepath field. +func (o *CSSCMSDataModelModelsCertificateStore) SetStorepath(v string) { + o.Storepath.Set(&v) +} + +// SetStorepathNil sets the value for Storepath to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetStorepathNil() { + o.Storepath.Set(nil) +} + +// UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetStorepath() { + o.Storepath.Unset() +} + +// GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreInventoryJobId() string { + if o == nil || isNil(o.CertStoreInventoryJobId.Get()) { + var ret string + return ret + } + return *o.CertStoreInventoryJobId.Get() +} + +// GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreInventoryJobIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStoreInventoryJobId.Get(), o.CertStoreInventoryJobId.IsSet() +} + +// HasCertStoreInventoryJobId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasCertStoreInventoryJobId() bool { + if o != nil && o.CertStoreInventoryJobId.IsSet() { + return true + } + + return false +} + +// SetCertStoreInventoryJobId gets a reference to the given NullableString and assigns it to the CertStoreInventoryJobId field. +func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreInventoryJobId(v string) { + o.CertStoreInventoryJobId.Set(&v) +} + +// SetCertStoreInventoryJobIdNil sets the value for CertStoreInventoryJobId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreInventoryJobIdNil() { + o.CertStoreInventoryJobId.Set(nil) +} + +// UnsetCertStoreInventoryJobId ensures that no value is present for CertStoreInventoryJobId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetCertStoreInventoryJobId() { + o.CertStoreInventoryJobId.Unset() +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CSSCMSDataModelModelsCertificateStore) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetApproved() bool { + if o == nil || isNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetApprovedOk() (*bool, bool) { + if o == nil || isNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasApproved() bool { + if o != nil && !isNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *CSSCMSDataModelModelsCertificateStore) SetApproved(v bool) { + o.Approved = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *CSSCMSDataModelModelsCertificateStore) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CSSCMSDataModelModelsCertificateStore) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetProperties() { + o.Properties.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsCertificateStore) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetAgentAssigned returns the AgentAssigned field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetAgentAssigned() bool { + if o == nil || isNil(o.AgentAssigned) { + var ret bool + return ret + } + return *o.AgentAssigned +} + +// GetAgentAssignedOk returns a tuple with the AgentAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetAgentAssignedOk() (*bool, bool) { + if o == nil || isNil(o.AgentAssigned) { + return nil, false + } + return o.AgentAssigned, true +} + +// HasAgentAssigned returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasAgentAssigned() bool { + if o != nil && !isNil(o.AgentAssigned) { + return true + } + + return false +} + +// SetAgentAssigned gets a reference to the given bool and assigns it to the AgentAssigned field. +func (o *CSSCMSDataModelModelsCertificateStore) SetAgentAssigned(v bool) { + o.AgentAssigned = &v +} + +// GetContainerName returns the ContainerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStore) GetContainerName() string { + if o == nil || isNil(o.ContainerName.Get()) { + var ret string + return ret + } + return *o.ContainerName.Get() +} + +// GetContainerNameOk returns a tuple with the ContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStore) GetContainerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ContainerName.Get(), o.ContainerName.IsSet() +} + +// HasContainerName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasContainerName() bool { + if o != nil && o.ContainerName.IsSet() { + return true + } + + return false +} + +// SetContainerName gets a reference to the given NullableString and assigns it to the ContainerName field. +func (o *CSSCMSDataModelModelsCertificateStore) SetContainerName(v string) { + o.ContainerName.Set(&v) +} + +// SetContainerNameNil sets the value for ContainerName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) SetContainerNameNil() { + o.ContainerName.Set(nil) +} + +// UnsetContainerName ensures that no value is present for ContainerName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStore) UnsetContainerName() { + o.ContainerName.Unset() +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *CSSCMSDataModelModelsCertificateStore) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetReenrollmentStatus returns the ReenrollmentStatus field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetReenrollmentStatus() CSSCMSDataModelModelsReenrollmentStatus { + if o == nil || isNil(o.ReenrollmentStatus) { + var ret CSSCMSDataModelModelsReenrollmentStatus + return ret + } + return *o.ReenrollmentStatus +} + +// GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetReenrollmentStatusOk() (*CSSCMSDataModelModelsReenrollmentStatus, bool) { + if o == nil || isNil(o.ReenrollmentStatus) { + return nil, false + } + return o.ReenrollmentStatus, true +} + +// HasReenrollmentStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasReenrollmentStatus() bool { + if o != nil && !isNil(o.ReenrollmentStatus) { + return true + } + + return false +} + +// SetReenrollmentStatus gets a reference to the given CSSCMSDataModelModelsReenrollmentStatus and assigns it to the ReenrollmentStatus field. +func (o *CSSCMSDataModelModelsCertificateStore) SetReenrollmentStatus(v CSSCMSDataModelModelsReenrollmentStatus) { + o.ReenrollmentStatus = &v +} + +// GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetSetNewPasswordAllowed() bool { + if o == nil || isNil(o.SetNewPasswordAllowed) { + var ret bool + return ret + } + return *o.SetNewPasswordAllowed +} + +// GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetSetNewPasswordAllowedOk() (*bool, bool) { + if o == nil || isNil(o.SetNewPasswordAllowed) { + return nil, false + } + return o.SetNewPasswordAllowed, true +} + +// HasSetNewPasswordAllowed returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasSetNewPasswordAllowed() bool { + if o != nil && !isNil(o.SetNewPasswordAllowed) { + return true + } + + return false +} + +// SetSetNewPasswordAllowed gets a reference to the given bool and assigns it to the SetNewPasswordAllowed field. +func (o *CSSCMSDataModelModelsCertificateStore) SetSetNewPasswordAllowed(v bool) { + o.SetNewPasswordAllowed = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStore) GetPassword() CSSCMSDataModelModelsKeyfactorSecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorSecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStore) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorSecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStore) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorSecret and assigns it to the Password field. +func (o *CSSCMSDataModelModelsCertificateStore) SetPassword(v CSSCMSDataModelModelsKeyfactorSecret) { + o.Password = &v +} + +func (o CSSCMSDataModelModelsCertificateStore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ContainerId.IsSet() { + toSerialize["ContainerId"] = o.ContainerId.Get() + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.Storepath.IsSet() { + toSerialize["Storepath"] = o.Storepath.Get() + } + if o.CertStoreInventoryJobId.IsSet() { + toSerialize["CertStoreInventoryJobId"] = o.CertStoreInventoryJobId.Get() + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.Approved) { + toSerialize["Approved"] = o.Approved + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if !isNil(o.AgentAssigned) { + toSerialize["AgentAssigned"] = o.AgentAssigned + } + if o.ContainerName.IsSet() { + toSerialize["ContainerName"] = o.ContainerName.Get() + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.ReenrollmentStatus) { + toSerialize["ReenrollmentStatus"] = o.ReenrollmentStatus + } + if !isNil(o.SetNewPasswordAllowed) { + toSerialize["SetNewPasswordAllowed"] = o.SetNewPasswordAllowed + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStore struct { + value *CSSCMSDataModelModelsCertificateStore + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStore) Get() *CSSCMSDataModelModelsCertificateStore { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStore) Set(val *CSSCMSDataModelModelsCertificateStore) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStore) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStore(val *CSSCMSDataModelModelsCertificateStore) *NullableCSSCMSDataModelModelsCertificateStore { + return &NullableCSSCMSDataModelModelsCertificateStore{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_list_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_list_response.go new file mode 100644 index 0000000..1c7f178 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_list_response.go @@ -0,0 +1,347 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoreContainerListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoreContainerListResponse{} + +// CSSCMSDataModelModelsCertificateStoreContainerListResponse struct for CSSCMSDataModelModelsCertificateStoreContainerListResponse +type CSSCMSDataModelModelsCertificateStoreContainerListResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + OverwriteSchedules *bool `json:"OverwriteSchedules,omitempty"` + Schedule NullableString `json:"Schedule,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + StoreCount NullableInt32 `json:"StoreCount,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoreContainerListResponse instantiates a new CSSCMSDataModelModelsCertificateStoreContainerListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoreContainerListResponse() *CSSCMSDataModelModelsCertificateStoreContainerListResponse { + this := CSSCMSDataModelModelsCertificateStoreContainerListResponse{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreContainerListResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreContainerListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreContainerListResponseWithDefaults() *CSSCMSDataModelModelsCertificateStoreContainerListResponse { + this := CSSCMSDataModelModelsCertificateStoreContainerListResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetName() { + o.Name.Unset() +} + +// GetOverwriteSchedules returns the OverwriteSchedules field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetOverwriteSchedules() bool { + if o == nil || isNil(o.OverwriteSchedules) { + var ret bool + return ret + } + return *o.OverwriteSchedules +} + +// GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetOverwriteSchedulesOk() (*bool, bool) { + if o == nil || isNil(o.OverwriteSchedules) { + return nil, false + } + return o.OverwriteSchedules, true +} + +// HasOverwriteSchedules returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasOverwriteSchedules() bool { + if o != nil && !isNil(o.OverwriteSchedules) { + return true + } + + return false +} + +// SetOverwriteSchedules gets a reference to the given bool and assigns it to the OverwriteSchedules field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetOverwriteSchedules(v bool) { + o.OverwriteSchedules = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetSchedule() string { + if o == nil || isNil(o.Schedule.Get()) { + var ret string + return ret + } + return *o.Schedule.Get() +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetScheduleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Schedule.Get(), o.Schedule.IsSet() +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasSchedule() bool { + if o != nil && o.Schedule.IsSet() { + return true + } + + return false +} + +// SetSchedule gets a reference to the given NullableString and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetSchedule(v string) { + o.Schedule.Set(&v) +} + +// SetScheduleNil sets the value for Schedule to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetScheduleNil() { + o.Schedule.Set(nil) +} + +// UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetSchedule() { + o.Schedule.Unset() +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetStoreCount returns the StoreCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetStoreCount() int32 { + if o == nil || isNil(o.StoreCount.Get()) { + var ret int32 + return ret + } + return *o.StoreCount.Get() +} + +// GetStoreCountOk returns a tuple with the StoreCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) GetStoreCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StoreCount.Get(), o.StoreCount.IsSet() +} + +// HasStoreCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) HasStoreCount() bool { + if o != nil && o.StoreCount.IsSet() { + return true + } + + return false +} + +// SetStoreCount gets a reference to the given NullableInt32 and assigns it to the StoreCount field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetStoreCount(v int32) { + o.StoreCount.Set(&v) +} + +// SetStoreCountNil sets the value for StoreCount to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) SetStoreCountNil() { + o.StoreCount.Set(nil) +} + +// UnsetStoreCount ensures that no value is present for StoreCount, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerListResponse) UnsetStoreCount() { + o.StoreCount.Unset() +} + +func (o CSSCMSDataModelModelsCertificateStoreContainerListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoreContainerListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.OverwriteSchedules) { + toSerialize["OverwriteSchedules"] = o.OverwriteSchedules + } + if o.Schedule.IsSet() { + toSerialize["Schedule"] = o.Schedule.Get() + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if o.StoreCount.IsSet() { + toSerialize["StoreCount"] = o.StoreCount.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse struct { + value *CSSCMSDataModelModelsCertificateStoreContainerListResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) Get() *CSSCMSDataModelModelsCertificateStoreContainerListResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) Set(val *CSSCMSDataModelModelsCertificateStoreContainerListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoreContainerListResponse(val *CSSCMSDataModelModelsCertificateStoreContainerListResponse) *NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse { + return &NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_permissions.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_permissions.go new file mode 100644 index 0000000..e902d69 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_container_permissions.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoreContainerPermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoreContainerPermissions{} + +// CSSCMSDataModelModelsCertificateStoreContainerPermissions struct for CSSCMSDataModelModelsCertificateStoreContainerPermissions +type CSSCMSDataModelModelsCertificateStoreContainerPermissions struct { + SecurityRoleId *int32 `json:"SecurityRoleId,omitempty"` + Name NullableString `json:"Name,omitempty"` + Permissions []string `json:"Permissions,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoreContainerPermissions instantiates a new CSSCMSDataModelModelsCertificateStoreContainerPermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoreContainerPermissions() *CSSCMSDataModelModelsCertificateStoreContainerPermissions { + this := CSSCMSDataModelModelsCertificateStoreContainerPermissions{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreContainerPermissionsWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreContainerPermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreContainerPermissionsWithDefaults() *CSSCMSDataModelModelsCertificateStoreContainerPermissions { + this := CSSCMSDataModelModelsCertificateStoreContainerPermissions{} + return &this +} + +// GetSecurityRoleId returns the SecurityRoleId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetSecurityRoleId() int32 { + if o == nil || isNil(o.SecurityRoleId) { + var ret int32 + return ret + } + return *o.SecurityRoleId +} + +// GetSecurityRoleIdOk returns a tuple with the SecurityRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetSecurityRoleIdOk() (*int32, bool) { + if o == nil || isNil(o.SecurityRoleId) { + return nil, false + } + return o.SecurityRoleId, true +} + +// HasSecurityRoleId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasSecurityRoleId() bool { + if o != nil && !isNil(o.SecurityRoleId) { + return true + } + + return false +} + +// SetSecurityRoleId gets a reference to the given int32 and assigns it to the SecurityRoleId field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetSecurityRoleId(v int32) { + o.SecurityRoleId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *CSSCMSDataModelModelsCertificateStoreContainerPermissions) SetPermissions(v []string) { + o.Permissions = v +} + +func (o CSSCMSDataModelModelsCertificateStoreContainerPermissions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoreContainerPermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SecurityRoleId) { + toSerialize["SecurityRoleId"] = o.SecurityRoleId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions struct { + value *CSSCMSDataModelModelsCertificateStoreContainerPermissions + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) Get() *CSSCMSDataModelModelsCertificateStoreContainerPermissions { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) Set(val *CSSCMSDataModelModelsCertificateStoreContainerPermissions) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoreContainerPermissions(val *CSSCMSDataModelModelsCertificateStoreContainerPermissions) *NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions { + return &NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreContainerPermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_entry.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_entry.go new file mode 100644 index 0000000..efbc08f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_entry.go @@ -0,0 +1,364 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoreEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoreEntry{} + +// CSSCMSDataModelModelsCertificateStoreEntry struct for CSSCMSDataModelModelsCertificateStoreEntry +type CSSCMSDataModelModelsCertificateStoreEntry struct { + CertificateStoreId string `json:"CertificateStoreId"` + Alias NullableString `json:"Alias,omitempty"` + JobFields map[string]interface{} `json:"JobFields,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + EntryPassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"EntryPassword,omitempty"` + PfxPassword NullableString `json:"PfxPassword,omitempty"` + IncludePrivateKey *bool `json:"IncludePrivateKey,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoreEntry instantiates a new CSSCMSDataModelModelsCertificateStoreEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoreEntry(certificateStoreId string) *CSSCMSDataModelModelsCertificateStoreEntry { + this := CSSCMSDataModelModelsCertificateStoreEntry{} + this.CertificateStoreId = certificateStoreId + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreEntryWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreEntryWithDefaults() *CSSCMSDataModelModelsCertificateStoreEntry { + this := CSSCMSDataModelModelsCertificateStoreEntry{} + return &this +} + +// GetCertificateStoreId returns the CertificateStoreId field value +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetCertificateStoreId() string { + if o == nil { + var ret string + return ret + } + + return o.CertificateStoreId +} + +// GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetCertificateStoreIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertificateStoreId, true +} + +// SetCertificateStoreId sets field value +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetCertificateStoreId(v string) { + o.CertificateStoreId = v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreEntry) UnsetAlias() { + o.Alias.Unset() +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetJobFields() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetJobFieldsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.JobFields) { + return map[string]interface{}{}, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]interface{} and assigns it to the JobFields field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetJobFields(v map[string]interface{}) { + o.JobFields = v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetEntryPassword returns the EntryPassword field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetEntryPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.EntryPassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.EntryPassword +} + +// GetEntryPasswordOk returns a tuple with the EntryPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetEntryPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.EntryPassword) { + return nil, false + } + return o.EntryPassword, true +} + +// HasEntryPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasEntryPassword() bool { + if o != nil && !isNil(o.EntryPassword) { + return true + } + + return false +} + +// SetEntryPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the EntryPassword field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetEntryPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.EntryPassword = &v +} + +// GetPfxPassword returns the PfxPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetPfxPassword() string { + if o == nil || isNil(o.PfxPassword.Get()) { + var ret string + return ret + } + return *o.PfxPassword.Get() +} + +// GetPfxPasswordOk returns a tuple with the PfxPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetPfxPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PfxPassword.Get(), o.PfxPassword.IsSet() +} + +// HasPfxPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasPfxPassword() bool { + if o != nil && o.PfxPassword.IsSet() { + return true + } + + return false +} + +// SetPfxPassword gets a reference to the given NullableString and assigns it to the PfxPassword field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetPfxPassword(v string) { + o.PfxPassword.Set(&v) +} + +// SetPfxPasswordNil sets the value for PfxPassword to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetPfxPasswordNil() { + o.PfxPassword.Set(nil) +} + +// UnsetPfxPassword ensures that no value is present for PfxPassword, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreEntry) UnsetPfxPassword() { + o.PfxPassword.Unset() +} + +// GetIncludePrivateKey returns the IncludePrivateKey field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetIncludePrivateKey() bool { + if o == nil || isNil(o.IncludePrivateKey) { + var ret bool + return ret + } + return *o.IncludePrivateKey +} + +// GetIncludePrivateKeyOk returns a tuple with the IncludePrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) GetIncludePrivateKeyOk() (*bool, bool) { + if o == nil || isNil(o.IncludePrivateKey) { + return nil, false + } + return o.IncludePrivateKey, true +} + +// HasIncludePrivateKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) HasIncludePrivateKey() bool { + if o != nil && !isNil(o.IncludePrivateKey) { + return true + } + + return false +} + +// SetIncludePrivateKey gets a reference to the given bool and assigns it to the IncludePrivateKey field. +func (o *CSSCMSDataModelModelsCertificateStoreEntry) SetIncludePrivateKey(v bool) { + o.IncludePrivateKey = &v +} + +func (o CSSCMSDataModelModelsCertificateStoreEntry) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoreEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateStoreId"] = o.CertificateStoreId + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.EntryPassword) { + toSerialize["EntryPassword"] = o.EntryPassword + } + if o.PfxPassword.IsSet() { + toSerialize["PfxPassword"] = o.PfxPassword.Get() + } + if !isNil(o.IncludePrivateKey) { + toSerialize["IncludePrivateKey"] = o.IncludePrivateKey + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoreEntry struct { + value *CSSCMSDataModelModelsCertificateStoreEntry + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreEntry) Get() *CSSCMSDataModelModelsCertificateStoreEntry { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreEntry) Set(val *CSSCMSDataModelModelsCertificateStoreEntry) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoreEntry(val *CSSCMSDataModelModelsCertificateStoreEntry) *NullableCSSCMSDataModelModelsCertificateStoreEntry { + return &NullableCSSCMSDataModelModelsCertificateStoreEntry{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_type_property.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_type_property.go new file mode 100644 index 0000000..d0e05d5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_type_property.go @@ -0,0 +1,430 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoreTypeProperty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoreTypeProperty{} + +// CSSCMSDataModelModelsCertificateStoreTypeProperty struct for CSSCMSDataModelModelsCertificateStoreTypeProperty +type CSSCMSDataModelModelsCertificateStoreTypeProperty struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Type *CSSCMSCoreEnumsCertificateStoreTypePropertyType `json:"Type,omitempty"` + DependsOn NullableString `json:"DependsOn,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` + Id *int32 `json:"Id,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoreTypeProperty instantiates a new CSSCMSDataModelModelsCertificateStoreTypeProperty object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoreTypeProperty() *CSSCMSDataModelModelsCertificateStoreTypeProperty { + this := CSSCMSDataModelModelsCertificateStoreTypeProperty{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreTypePropertyWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreTypeProperty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreTypePropertyWithDefaults() *CSSCMSDataModelModelsCertificateStoreTypeProperty { + this := CSSCMSDataModelModelsCertificateStoreTypeProperty{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetType() CSSCMSCoreEnumsCertificateStoreTypePropertyType { + if o == nil || isNil(o.Type) { + var ret CSSCMSCoreEnumsCertificateStoreTypePropertyType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetTypeOk() (*CSSCMSCoreEnumsCertificateStoreTypePropertyType, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CSSCMSCoreEnumsCertificateStoreTypePropertyType and assigns it to the Type field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetType(v CSSCMSCoreEnumsCertificateStoreTypePropertyType) { + o.Type = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDependsOn() string { + if o == nil || isNil(o.DependsOn.Get()) { + var ret string + return ret + } + return *o.DependsOn.Get() +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDependsOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DependsOn.Get(), o.DependsOn.IsSet() +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDependsOn() bool { + if o != nil && o.DependsOn.IsSet() { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given NullableString and assigns it to the DependsOn field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDependsOn(v string) { + o.DependsOn.Set(&v) +} + +// SetDependsOnNil sets the value for DependsOn to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDependsOnNil() { + o.DependsOn.Set(nil) +} + +// UnsetDependsOn ensures that no value is present for DependsOn, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDependsOn() { + o.DependsOn.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetRequired(v bool) { + o.Required = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateStoreTypeProperty) SetId(v int32) { + o.Id = &v +} + +func (o CSSCMSDataModelModelsCertificateStoreTypeProperty) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoreTypeProperty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if o.DependsOn.IsSet() { + toSerialize["DependsOn"] = o.DependsOn.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoreTypeProperty struct { + value *CSSCMSDataModelModelsCertificateStoreTypeProperty + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) Get() *CSSCMSDataModelModelsCertificateStoreTypeProperty { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) Set(val *CSSCMSDataModelModelsCertificateStoreTypeProperty) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoreTypeProperty(val *CSSCMSDataModelModelsCertificateStoreTypeProperty) *NullableCSSCMSDataModelModelsCertificateStoreTypeProperty { + return &NullableCSSCMSDataModelModelsCertificateStoreTypeProperty{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypeProperty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_types_certificate_store_type_entry_parameter.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_types_certificate_store_type_entry_parameter.go new file mode 100644 index 0000000..50dc5d3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_store_types_certificate_store_type_entry_parameter.go @@ -0,0 +1,477 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + +// CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct for CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter +type CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Type *CSSCMSCoreEnumsCertStoreEntryParameterType `json:"Type,omitempty"` + RequiredWhen *CSSCMSCoreEnumsEntryParameterUsageFlags `json:"RequiredWhen,omitempty"` + DependsOn NullableString `json:"DependsOn,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + Options NullableString `json:"Options,omitempty"` + Id *int32 `json:"Id,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter instantiates a new CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter() *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + this := CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults() *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + this := CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetType() CSSCMSCoreEnumsCertStoreEntryParameterType { + if o == nil || isNil(o.Type) { + var ret CSSCMSCoreEnumsCertStoreEntryParameterType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetTypeOk() (*CSSCMSCoreEnumsCertStoreEntryParameterType, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CSSCMSCoreEnumsCertStoreEntryParameterType and assigns it to the Type field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetType(v CSSCMSCoreEnumsCertStoreEntryParameterType) { + o.Type = &v +} + +// GetRequiredWhen returns the RequiredWhen field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhen() CSSCMSCoreEnumsEntryParameterUsageFlags { + if o == nil || isNil(o.RequiredWhen) { + var ret CSSCMSCoreEnumsEntryParameterUsageFlags + return ret + } + return *o.RequiredWhen +} + +// GetRequiredWhenOk returns a tuple with the RequiredWhen field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhenOk() (*CSSCMSCoreEnumsEntryParameterUsageFlags, bool) { + if o == nil || isNil(o.RequiredWhen) { + return nil, false + } + return o.RequiredWhen, true +} + +// HasRequiredWhen returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasRequiredWhen() bool { + if o != nil && !isNil(o.RequiredWhen) { + return true + } + + return false +} + +// SetRequiredWhen gets a reference to the given CSSCMSCoreEnumsEntryParameterUsageFlags and assigns it to the RequiredWhen field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetRequiredWhen(v CSSCMSCoreEnumsEntryParameterUsageFlags) { + o.RequiredWhen = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOn() string { + if o == nil || isNil(o.DependsOn.Get()) { + var ret string + return ret + } + return *o.DependsOn.Get() +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DependsOn.Get(), o.DependsOn.IsSet() +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDependsOn() bool { + if o != nil && o.DependsOn.IsSet() { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given NullableString and assigns it to the DependsOn field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOn(v string) { + o.DependsOn.Set(&v) +} + +// SetDependsOnNil sets the value for DependsOn to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOnNil() { + o.DependsOn.Set(nil) +} + +// UnsetDependsOn ensures that no value is present for DependsOn, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDependsOn() { + o.DependsOn.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptions() string { + if o == nil || isNil(o.Options.Get()) { + var ret string + return ret + } + return *o.Options.Get() +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Options.Get(), o.Options.IsSet() +} + +// HasOptions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasOptions() bool { + if o != nil && o.Options.IsSet() { + return true + } + + return false +} + +// SetOptions gets a reference to the given NullableString and assigns it to the Options field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptions(v string) { + o.Options.Set(&v) +} + +// SetOptionsNil sets the value for Options to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptionsNil() { + o.Options.Set(nil) +} + +// UnsetOptions ensures that no value is present for Options, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnsetOptions() { + o.Options.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetId(v int32) { + o.Id = &v +} + +func (o CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.RequiredWhen) { + toSerialize["RequiredWhen"] = o.RequiredWhen + } + if o.DependsOn.IsSet() { + toSerialize["DependsOn"] = o.DependsOn.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if o.Options.IsSet() { + toSerialize["Options"] = o.Options.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct { + value *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Get() *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Set(val *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter(val *CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) *NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + return &NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_create_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_create_request.go new file mode 100644 index 0000000..c69531b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_create_request.go @@ -0,0 +1,513 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest{} + +// CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest struct for CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest +type CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest struct { + ContainerId NullableInt32 `json:"ContainerId,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + Storepath NullableString `json:"Storepath,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + AgentAssigned *bool `json:"AgentAssigned,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorAPISecret `json:"Password,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest() *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest { + this := CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequestWithDefaults() *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest { + this := CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId.Get()) { + var ret int32 + return ret + } + return *o.ContainerId.Get() +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetContainerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ContainerId.Get(), o.ContainerId.IsSet() +} + +// HasContainerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasContainerId() bool { + if o != nil && o.ContainerId.IsSet() { + return true + } + + return false +} + +// SetContainerId gets a reference to the given NullableInt32 and assigns it to the ContainerId field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetContainerId(v int32) { + o.ContainerId.Set(&v) +} + +// SetContainerIdNil sets the value for ContainerId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetContainerIdNil() { + o.ContainerId.Set(nil) +} + +// UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetContainerId() { + o.ContainerId.Unset() +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorepath returns the Storepath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetStorepath() string { + if o == nil || isNil(o.Storepath.Get()) { + var ret string + return ret + } + return *o.Storepath.Get() +} + +// GetStorepathOk returns a tuple with the Storepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetStorepathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Storepath.Get(), o.Storepath.IsSet() +} + +// HasStorepath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasStorepath() bool { + if o != nil && o.Storepath.IsSet() { + return true + } + + return false +} + +// SetStorepath gets a reference to the given NullableString and assigns it to the Storepath field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetStorepath(v string) { + o.Storepath.Set(&v) +} + +// SetStorepathNil sets the value for Storepath to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetStorepathNil() { + o.Storepath.Set(nil) +} + +// UnsetStorepath ensures that no value is present for Storepath, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetStorepath() { + o.Storepath.Unset() +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetProperties() { + o.Properties.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetAgentAssigned returns the AgentAssigned field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssigned() bool { + if o == nil || isNil(o.AgentAssigned) { + var ret bool + return ret + } + return *o.AgentAssigned +} + +// GetAgentAssignedOk returns a tuple with the AgentAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssignedOk() (*bool, bool) { + if o == nil || isNil(o.AgentAssigned) { + return nil, false + } + return o.AgentAssigned, true +} + +// HasAgentAssigned returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasAgentAssigned() bool { + if o != nil && !isNil(o.AgentAssigned) { + return true + } + + return false +} + +// SetAgentAssigned gets a reference to the given bool and assigns it to the AgentAssigned field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetAgentAssigned(v bool) { + o.AgentAssigned = &v +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ContainerId.IsSet() { + toSerialize["ContainerId"] = o.ContainerId.Get() + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.Storepath.IsSet() { + toSerialize["Storepath"] = o.Storepath.Get() + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if !isNil(o.AgentAssigned) { + toSerialize["AgentAssigned"] = o.AgentAssigned + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest struct { + value *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) Get() *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) Set(val *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest(val *CSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest { + return &NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_update_request.go new file mode 100644 index 0000000..0ab0bd5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_stores_certificate_store_update_request.go @@ -0,0 +1,383 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest{} + +// CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest struct for CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest +type CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest struct { + Id *string `json:"Id,omitempty"` + ContainerId NullableInt32 `json:"ContainerId,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties NullableString `json:"Properties,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorAPISecret `json:"Password,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest() *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest { + this := CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults() *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest { + this := CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetId(v string) { + o.Id = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId.Get()) { + var ret int32 + return ret + } + return *o.ContainerId.Get() +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ContainerId.Get(), o.ContainerId.IsSet() +} + +// HasContainerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasContainerId() bool { + if o != nil && o.ContainerId.IsSet() { + return true + } + + return false +} + +// SetContainerId gets a reference to the given NullableInt32 and assigns it to the ContainerId field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerId(v int32) { + o.ContainerId.Set(&v) +} + +// SetContainerIdNil sets the value for ContainerId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerIdNil() { + o.ContainerId.Set(nil) +} + +// UnsetContainerId ensures that no value is present for ContainerId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetContainerId() { + o.ContainerId.Unset() +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetProperties() { + o.Properties.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ContainerId.IsSet() { + toSerialize["ContainerId"] = o.ContainerId.Get() + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest struct { + value *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) Get() *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) Set(val *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest(val *CSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest { + return &NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateStoresCertificateStoreUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_validation_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_validation_response.go new file mode 100644 index 0000000..4d80234 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_certificate_validation_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCertificateValidationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCertificateValidationResponse{} + +// CSSCMSDataModelModelsCertificateValidationResponse struct for CSSCMSDataModelModelsCertificateValidationResponse +type CSSCMSDataModelModelsCertificateValidationResponse struct { + Valid *bool `json:"Valid,omitempty"` + Results map[string]string `json:"Results,omitempty"` +} + +// NewCSSCMSDataModelModelsCertificateValidationResponse instantiates a new CSSCMSDataModelModelsCertificateValidationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCertificateValidationResponse() *CSSCMSDataModelModelsCertificateValidationResponse { + this := CSSCMSDataModelModelsCertificateValidationResponse{} + return &this +} + +// NewCSSCMSDataModelModelsCertificateValidationResponseWithDefaults instantiates a new CSSCMSDataModelModelsCertificateValidationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCertificateValidationResponseWithDefaults() *CSSCMSDataModelModelsCertificateValidationResponse { + this := CSSCMSDataModelModelsCertificateValidationResponse{} + return &this +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetValid() bool { + if o == nil || isNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetValidOk() (*bool, bool) { + if o == nil || isNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) HasValid() bool { + if o != nil && !isNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) SetValid(v bool) { + o.Valid = &v +} + +// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetResults() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCertificateValidationResponse) GetResultsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Results) { + return nil, false + } + return &o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) HasResults() bool { + if o != nil && isNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given map[string]string and assigns it to the Results field. +func (o *CSSCMSDataModelModelsCertificateValidationResponse) SetResults(v map[string]string) { + o.Results = v +} + +func (o CSSCMSDataModelModelsCertificateValidationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCertificateValidationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Valid) { + toSerialize["Valid"] = o.Valid + } + if o.Results != nil { + toSerialize["Results"] = o.Results + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCertificateValidationResponse struct { + value *CSSCMSDataModelModelsCertificateValidationResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCertificateValidationResponse) Get() *CSSCMSDataModelModelsCertificateValidationResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCertificateValidationResponse) Set(val *CSSCMSDataModelModelsCertificateValidationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCertificateValidationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCertificateValidationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCertificateValidationResponse(val *CSSCMSDataModelModelsCertificateValidationResponse) *NullableCSSCMSDataModelModelsCertificateValidationResponse { + return &NullableCSSCMSDataModelModelsCertificateValidationResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCertificateValidationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCertificateValidationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_container_assignment.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_container_assignment.go new file mode 100644 index 0000000..29cdeba --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_container_assignment.go @@ -0,0 +1,244 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsContainerAssignment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsContainerAssignment{} + +// CSSCMSDataModelModelsContainerAssignment struct for CSSCMSDataModelModelsContainerAssignment +type CSSCMSDataModelModelsContainerAssignment struct { + CertStoreContainerId *int32 `json:"CertStoreContainerId,omitempty"` + NewContainerName NullableString `json:"NewContainerName,omitempty"` + NewContainerType *int32 `json:"NewContainerType,omitempty"` + KeystoreIds []string `json:"KeystoreIds"` +} + +// NewCSSCMSDataModelModelsContainerAssignment instantiates a new CSSCMSDataModelModelsContainerAssignment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsContainerAssignment(keystoreIds []string) *CSSCMSDataModelModelsContainerAssignment { + this := CSSCMSDataModelModelsContainerAssignment{} + this.KeystoreIds = keystoreIds + return &this +} + +// NewCSSCMSDataModelModelsContainerAssignmentWithDefaults instantiates a new CSSCMSDataModelModelsContainerAssignment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsContainerAssignmentWithDefaults() *CSSCMSDataModelModelsContainerAssignment { + this := CSSCMSDataModelModelsContainerAssignment{} + return &this +} + +// GetCertStoreContainerId returns the CertStoreContainerId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsContainerAssignment) GetCertStoreContainerId() int32 { + if o == nil || isNil(o.CertStoreContainerId) { + var ret int32 + return ret + } + return *o.CertStoreContainerId +} + +// GetCertStoreContainerIdOk returns a tuple with the CertStoreContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) GetCertStoreContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreContainerId) { + return nil, false + } + return o.CertStoreContainerId, true +} + +// HasCertStoreContainerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) HasCertStoreContainerId() bool { + if o != nil && !isNil(o.CertStoreContainerId) { + return true + } + + return false +} + +// SetCertStoreContainerId gets a reference to the given int32 and assigns it to the CertStoreContainerId field. +func (o *CSSCMSDataModelModelsContainerAssignment) SetCertStoreContainerId(v int32) { + o.CertStoreContainerId = &v +} + +// GetNewContainerName returns the NewContainerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerName() string { + if o == nil || isNil(o.NewContainerName.Get()) { + var ret string + return ret + } + return *o.NewContainerName.Get() +} + +// GetNewContainerNameOk returns a tuple with the NewContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NewContainerName.Get(), o.NewContainerName.IsSet() +} + +// HasNewContainerName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) HasNewContainerName() bool { + if o != nil && o.NewContainerName.IsSet() { + return true + } + + return false +} + +// SetNewContainerName gets a reference to the given NullableString and assigns it to the NewContainerName field. +func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerName(v string) { + o.NewContainerName.Set(&v) +} + +// SetNewContainerNameNil sets the value for NewContainerName to be an explicit nil +func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerNameNil() { + o.NewContainerName.Set(nil) +} + +// UnsetNewContainerName ensures that no value is present for NewContainerName, not even an explicit nil +func (o *CSSCMSDataModelModelsContainerAssignment) UnsetNewContainerName() { + o.NewContainerName.Unset() +} + +// GetNewContainerType returns the NewContainerType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerType() int32 { + if o == nil || isNil(o.NewContainerType) { + var ret int32 + return ret + } + return *o.NewContainerType +} + +// GetNewContainerTypeOk returns a tuple with the NewContainerType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) GetNewContainerTypeOk() (*int32, bool) { + if o == nil || isNil(o.NewContainerType) { + return nil, false + } + return o.NewContainerType, true +} + +// HasNewContainerType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) HasNewContainerType() bool { + if o != nil && !isNil(o.NewContainerType) { + return true + } + + return false +} + +// SetNewContainerType gets a reference to the given int32 and assigns it to the NewContainerType field. +func (o *CSSCMSDataModelModelsContainerAssignment) SetNewContainerType(v int32) { + o.NewContainerType = &v +} + +// GetKeystoreIds returns the KeystoreIds field value +func (o *CSSCMSDataModelModelsContainerAssignment) GetKeystoreIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.KeystoreIds +} + +// GetKeystoreIdsOk returns a tuple with the KeystoreIds field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsContainerAssignment) GetKeystoreIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.KeystoreIds, true +} + +// SetKeystoreIds sets field value +func (o *CSSCMSDataModelModelsContainerAssignment) SetKeystoreIds(v []string) { + o.KeystoreIds = v +} + +func (o CSSCMSDataModelModelsContainerAssignment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsContainerAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertStoreContainerId) { + toSerialize["CertStoreContainerId"] = o.CertStoreContainerId + } + if o.NewContainerName.IsSet() { + toSerialize["NewContainerName"] = o.NewContainerName.Get() + } + if !isNil(o.NewContainerType) { + toSerialize["NewContainerType"] = o.NewContainerType + } + toSerialize["KeystoreIds"] = o.KeystoreIds + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsContainerAssignment struct { + value *CSSCMSDataModelModelsContainerAssignment + isSet bool +} + +func (v NullableCSSCMSDataModelModelsContainerAssignment) Get() *CSSCMSDataModelModelsContainerAssignment { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsContainerAssignment) Set(val *CSSCMSDataModelModelsContainerAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsContainerAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsContainerAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsContainerAssignment(val *CSSCMSDataModelModelsContainerAssignment) *NullableCSSCMSDataModelModelsContainerAssignment { + return &NullableCSSCMSDataModelModelsContainerAssignment{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsContainerAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsContainerAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_crl_request_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_crl_request_model.go new file mode 100644 index 0000000..27d2f3b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_crl_request_model.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCRLRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCRLRequestModel{} + +// CSSCMSDataModelModelsCRLRequestModel struct for CSSCMSDataModelModelsCRLRequestModel +type CSSCMSDataModelModelsCRLRequestModel struct { + CertificateAuthorityLogicalName string `json:"CertificateAuthorityLogicalName"` + CertificateAuthorityHostName NullableString `json:"CertificateAuthorityHostName,omitempty"` +} + +// NewCSSCMSDataModelModelsCRLRequestModel instantiates a new CSSCMSDataModelModelsCRLRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCRLRequestModel(certificateAuthorityLogicalName string) *CSSCMSDataModelModelsCRLRequestModel { + this := CSSCMSDataModelModelsCRLRequestModel{} + this.CertificateAuthorityLogicalName = certificateAuthorityLogicalName + return &this +} + +// NewCSSCMSDataModelModelsCRLRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsCRLRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCRLRequestModelWithDefaults() *CSSCMSDataModelModelsCRLRequestModel { + this := CSSCMSDataModelModelsCRLRequestModel{} + return &this +} + +// GetCertificateAuthorityLogicalName returns the CertificateAuthorityLogicalName field value +func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityLogicalName() string { + if o == nil { + var ret string + return ret + } + + return o.CertificateAuthorityLogicalName +} + +// GetCertificateAuthorityLogicalNameOk returns a tuple with the CertificateAuthorityLogicalName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertificateAuthorityLogicalName, true +} + +// SetCertificateAuthorityLogicalName sets field value +func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityLogicalName(v string) { + o.CertificateAuthorityLogicalName = v +} + +// GetCertificateAuthorityHostName returns the CertificateAuthorityHostName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityHostName() string { + if o == nil || isNil(o.CertificateAuthorityHostName.Get()) { + var ret string + return ret + } + return *o.CertificateAuthorityHostName.Get() +} + +// GetCertificateAuthorityHostNameOk returns a tuple with the CertificateAuthorityHostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCRLRequestModel) GetCertificateAuthorityHostNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthorityHostName.Get(), o.CertificateAuthorityHostName.IsSet() +} + +// HasCertificateAuthorityHostName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCRLRequestModel) HasCertificateAuthorityHostName() bool { + if o != nil && o.CertificateAuthorityHostName.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthorityHostName gets a reference to the given NullableString and assigns it to the CertificateAuthorityHostName field. +func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityHostName(v string) { + o.CertificateAuthorityHostName.Set(&v) +} + +// SetCertificateAuthorityHostNameNil sets the value for CertificateAuthorityHostName to be an explicit nil +func (o *CSSCMSDataModelModelsCRLRequestModel) SetCertificateAuthorityHostNameNil() { + o.CertificateAuthorityHostName.Set(nil) +} + +// UnsetCertificateAuthorityHostName ensures that no value is present for CertificateAuthorityHostName, not even an explicit nil +func (o *CSSCMSDataModelModelsCRLRequestModel) UnsetCertificateAuthorityHostName() { + o.CertificateAuthorityHostName.Unset() +} + +func (o CSSCMSDataModelModelsCRLRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCRLRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateAuthorityLogicalName"] = o.CertificateAuthorityLogicalName + if o.CertificateAuthorityHostName.IsSet() { + toSerialize["CertificateAuthorityHostName"] = o.CertificateAuthorityHostName.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCRLRequestModel struct { + value *CSSCMSDataModelModelsCRLRequestModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCRLRequestModel) Get() *CSSCMSDataModelModelsCRLRequestModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCRLRequestModel) Set(val *CSSCMSDataModelModelsCRLRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCRLRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCRLRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCRLRequestModel(val *CSSCMSDataModelModelsCRLRequestModel) *NullableCSSCMSDataModelModelsCRLRequestModel { + return &NullableCSSCMSDataModelModelsCRLRequestModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCRLRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCRLRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_contents.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_contents.go new file mode 100644 index 0000000..24a21e8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_contents.go @@ -0,0 +1,125 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCSRContents type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCSRContents{} + +// CSSCMSDataModelModelsCSRContents struct for CSSCMSDataModelModelsCSRContents +type CSSCMSDataModelModelsCSRContents struct { + CSR string `json:"CSR"` +} + +// NewCSSCMSDataModelModelsCSRContents instantiates a new CSSCMSDataModelModelsCSRContents object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCSRContents(cSR string) *CSSCMSDataModelModelsCSRContents { + this := CSSCMSDataModelModelsCSRContents{} + this.CSR = cSR + return &this +} + +// NewCSSCMSDataModelModelsCSRContentsWithDefaults instantiates a new CSSCMSDataModelModelsCSRContents object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCSRContentsWithDefaults() *CSSCMSDataModelModelsCSRContents { + this := CSSCMSDataModelModelsCSRContents{} + return &this +} + +// GetCSR returns the CSR field value +func (o *CSSCMSDataModelModelsCSRContents) GetCSR() string { + if o == nil { + var ret string + return ret + } + + return o.CSR +} + +// GetCSROk returns a tuple with the CSR field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsCSRContents) GetCSROk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CSR, true +} + +// SetCSR sets field value +func (o *CSSCMSDataModelModelsCSRContents) SetCSR(v string) { + o.CSR = v +} + +func (o CSSCMSDataModelModelsCSRContents) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCSRContents) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CSR"] = o.CSR + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCSRContents struct { + value *CSSCMSDataModelModelsCSRContents + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCSRContents) Get() *CSSCMSDataModelModelsCSRContents { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCSRContents) Set(val *CSSCMSDataModelModelsCSRContents) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCSRContents) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCSRContents) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCSRContents(val *CSSCMSDataModelModelsCSRContents) *NullableCSSCMSDataModelModelsCSRContents { + return &NullableCSSCMSDataModelModelsCSRContents{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCSRContents) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCSRContents) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_generation_response_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_generation_response_model.go new file mode 100644 index 0000000..46b9b73 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_csr_generation_response_model.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsCSRGenerationResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsCSRGenerationResponseModel{} + +// CSSCMSDataModelModelsCSRGenerationResponseModel struct for CSSCMSDataModelModelsCSRGenerationResponseModel +type CSSCMSDataModelModelsCSRGenerationResponseModel struct { + CSRFilePath NullableString `json:"CSRFilePath,omitempty"` + CSRText NullableString `json:"CSRText,omitempty"` +} + +// NewCSSCMSDataModelModelsCSRGenerationResponseModel instantiates a new CSSCMSDataModelModelsCSRGenerationResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsCSRGenerationResponseModel() *CSSCMSDataModelModelsCSRGenerationResponseModel { + this := CSSCMSDataModelModelsCSRGenerationResponseModel{} + return &this +} + +// NewCSSCMSDataModelModelsCSRGenerationResponseModelWithDefaults instantiates a new CSSCMSDataModelModelsCSRGenerationResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsCSRGenerationResponseModelWithDefaults() *CSSCMSDataModelModelsCSRGenerationResponseModel { + this := CSSCMSDataModelModelsCSRGenerationResponseModel{} + return &this +} + +// GetCSRFilePath returns the CSRFilePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRFilePath() string { + if o == nil || isNil(o.CSRFilePath.Get()) { + var ret string + return ret + } + return *o.CSRFilePath.Get() +} + +// GetCSRFilePathOk returns a tuple with the CSRFilePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRFilePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CSRFilePath.Get(), o.CSRFilePath.IsSet() +} + +// HasCSRFilePath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) HasCSRFilePath() bool { + if o != nil && o.CSRFilePath.IsSet() { + return true + } + + return false +} + +// SetCSRFilePath gets a reference to the given NullableString and assigns it to the CSRFilePath field. +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRFilePath(v string) { + o.CSRFilePath.Set(&v) +} + +// SetCSRFilePathNil sets the value for CSRFilePath to be an explicit nil +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRFilePathNil() { + o.CSRFilePath.Set(nil) +} + +// UnsetCSRFilePath ensures that no value is present for CSRFilePath, not even an explicit nil +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) UnsetCSRFilePath() { + o.CSRFilePath.Unset() +} + +// GetCSRText returns the CSRText field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRText() string { + if o == nil || isNil(o.CSRText.Get()) { + var ret string + return ret + } + return *o.CSRText.Get() +} + +// GetCSRTextOk returns a tuple with the CSRText field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) GetCSRTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CSRText.Get(), o.CSRText.IsSet() +} + +// HasCSRText returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) HasCSRText() bool { + if o != nil && o.CSRText.IsSet() { + return true + } + + return false +} + +// SetCSRText gets a reference to the given NullableString and assigns it to the CSRText field. +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRText(v string) { + o.CSRText.Set(&v) +} + +// SetCSRTextNil sets the value for CSRText to be an explicit nil +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) SetCSRTextNil() { + o.CSRText.Set(nil) +} + +// UnsetCSRText ensures that no value is present for CSRText, not even an explicit nil +func (o *CSSCMSDataModelModelsCSRGenerationResponseModel) UnsetCSRText() { + o.CSRText.Unset() +} + +func (o CSSCMSDataModelModelsCSRGenerationResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsCSRGenerationResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CSRFilePath.IsSet() { + toSerialize["CSRFilePath"] = o.CSRFilePath.Get() + } + if o.CSRText.IsSet() { + toSerialize["CSRText"] = o.CSRText.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsCSRGenerationResponseModel struct { + value *CSSCMSDataModelModelsCSRGenerationResponseModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsCSRGenerationResponseModel) Get() *CSSCMSDataModelModelsCSRGenerationResponseModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsCSRGenerationResponseModel) Set(val *CSSCMSDataModelModelsCSRGenerationResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsCSRGenerationResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsCSRGenerationResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsCSRGenerationResponseModel(val *CSSCMSDataModelModelsCSRGenerationResponseModel) *NullableCSSCMSDataModelModelsCSRGenerationResponseModel { + return &NullableCSSCMSDataModelModelsCSRGenerationResponseModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsCSRGenerationResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsCSRGenerationResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_discovery_job_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_discovery_job_request.go new file mode 100644 index 0000000..74c3221 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_discovery_job_request.go @@ -0,0 +1,635 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsDiscoveryJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsDiscoveryJobRequest{} + +// CSSCMSDataModelModelsDiscoveryJobRequest struct for CSSCMSDataModelModelsDiscoveryJobRequest +type CSSCMSDataModelModelsDiscoveryJobRequest struct { + ClientMachine NullableString `json:"ClientMachine,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + Type int32 `json:"Type"` + JobExecutionTimestamp NullableTime `json:"JobExecutionTimestamp,omitempty"` + Dirs NullableString `json:"Dirs,omitempty"` + IgnoredDirs NullableString `json:"IgnoredDirs,omitempty"` + Extensions NullableString `json:"Extensions,omitempty"` + NamePatterns NullableString `json:"NamePatterns,omitempty"` + SymLinks *bool `json:"SymLinks,omitempty"` + Compatibility *bool `json:"Compatibility,omitempty"` + ServerUsername *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ServerUsername,omitempty"` + ServerPassword *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ServerPassword,omitempty"` + ServerUseSsl *bool `json:"ServerUseSsl,omitempty"` +} + +// NewCSSCMSDataModelModelsDiscoveryJobRequest instantiates a new CSSCMSDataModelModelsDiscoveryJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsDiscoveryJobRequest(type_ int32) *CSSCMSDataModelModelsDiscoveryJobRequest { + this := CSSCMSDataModelModelsDiscoveryJobRequest{} + this.Type = type_ + return &this +} + +// NewCSSCMSDataModelModelsDiscoveryJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsDiscoveryJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsDiscoveryJobRequestWithDefaults() *CSSCMSDataModelModelsDiscoveryJobRequest { + this := CSSCMSDataModelModelsDiscoveryJobRequest{} + return &this +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetType returns the Type field value +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetType(v int32) { + o.Type = v +} + +// GetJobExecutionTimestamp returns the JobExecutionTimestamp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetJobExecutionTimestamp() time.Time { + if o == nil || isNil(o.JobExecutionTimestamp.Get()) { + var ret time.Time + return ret + } + return *o.JobExecutionTimestamp.Get() +} + +// GetJobExecutionTimestampOk returns a tuple with the JobExecutionTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetJobExecutionTimestampOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.JobExecutionTimestamp.Get(), o.JobExecutionTimestamp.IsSet() +} + +// HasJobExecutionTimestamp returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasJobExecutionTimestamp() bool { + if o != nil && o.JobExecutionTimestamp.IsSet() { + return true + } + + return false +} + +// SetJobExecutionTimestamp gets a reference to the given NullableTime and assigns it to the JobExecutionTimestamp field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetJobExecutionTimestamp(v time.Time) { + o.JobExecutionTimestamp.Set(&v) +} + +// SetJobExecutionTimestampNil sets the value for JobExecutionTimestamp to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetJobExecutionTimestampNil() { + o.JobExecutionTimestamp.Set(nil) +} + +// UnsetJobExecutionTimestamp ensures that no value is present for JobExecutionTimestamp, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetJobExecutionTimestamp() { + o.JobExecutionTimestamp.Unset() +} + +// GetDirs returns the Dirs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetDirs() string { + if o == nil || isNil(o.Dirs.Get()) { + var ret string + return ret + } + return *o.Dirs.Get() +} + +// GetDirsOk returns a tuple with the Dirs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetDirsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Dirs.Get(), o.Dirs.IsSet() +} + +// HasDirs returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasDirs() bool { + if o != nil && o.Dirs.IsSet() { + return true + } + + return false +} + +// SetDirs gets a reference to the given NullableString and assigns it to the Dirs field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetDirs(v string) { + o.Dirs.Set(&v) +} + +// SetDirsNil sets the value for Dirs to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetDirsNil() { + o.Dirs.Set(nil) +} + +// UnsetDirs ensures that no value is present for Dirs, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetDirs() { + o.Dirs.Unset() +} + +// GetIgnoredDirs returns the IgnoredDirs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetIgnoredDirs() string { + if o == nil || isNil(o.IgnoredDirs.Get()) { + var ret string + return ret + } + return *o.IgnoredDirs.Get() +} + +// GetIgnoredDirsOk returns a tuple with the IgnoredDirs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetIgnoredDirsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IgnoredDirs.Get(), o.IgnoredDirs.IsSet() +} + +// HasIgnoredDirs returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasIgnoredDirs() bool { + if o != nil && o.IgnoredDirs.IsSet() { + return true + } + + return false +} + +// SetIgnoredDirs gets a reference to the given NullableString and assigns it to the IgnoredDirs field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetIgnoredDirs(v string) { + o.IgnoredDirs.Set(&v) +} + +// SetIgnoredDirsNil sets the value for IgnoredDirs to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetIgnoredDirsNil() { + o.IgnoredDirs.Set(nil) +} + +// UnsetIgnoredDirs ensures that no value is present for IgnoredDirs, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetIgnoredDirs() { + o.IgnoredDirs.Unset() +} + +// GetExtensions returns the Extensions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetExtensions() string { + if o == nil || isNil(o.Extensions.Get()) { + var ret string + return ret + } + return *o.Extensions.Get() +} + +// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetExtensionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Extensions.Get(), o.Extensions.IsSet() +} + +// HasExtensions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasExtensions() bool { + if o != nil && o.Extensions.IsSet() { + return true + } + + return false +} + +// SetExtensions gets a reference to the given NullableString and assigns it to the Extensions field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetExtensions(v string) { + o.Extensions.Set(&v) +} + +// SetExtensionsNil sets the value for Extensions to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetExtensionsNil() { + o.Extensions.Set(nil) +} + +// UnsetExtensions ensures that no value is present for Extensions, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetExtensions() { + o.Extensions.Unset() +} + +// GetNamePatterns returns the NamePatterns field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetNamePatterns() string { + if o == nil || isNil(o.NamePatterns.Get()) { + var ret string + return ret + } + return *o.NamePatterns.Get() +} + +// GetNamePatternsOk returns a tuple with the NamePatterns field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetNamePatternsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NamePatterns.Get(), o.NamePatterns.IsSet() +} + +// HasNamePatterns returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasNamePatterns() bool { + if o != nil && o.NamePatterns.IsSet() { + return true + } + + return false +} + +// SetNamePatterns gets a reference to the given NullableString and assigns it to the NamePatterns field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetNamePatterns(v string) { + o.NamePatterns.Set(&v) +} + +// SetNamePatternsNil sets the value for NamePatterns to be an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetNamePatternsNil() { + o.NamePatterns.Set(nil) +} + +// UnsetNamePatterns ensures that no value is present for NamePatterns, not even an explicit nil +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) UnsetNamePatterns() { + o.NamePatterns.Unset() +} + +// GetSymLinks returns the SymLinks field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetSymLinks() bool { + if o == nil || isNil(o.SymLinks) { + var ret bool + return ret + } + return *o.SymLinks +} + +// GetSymLinksOk returns a tuple with the SymLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetSymLinksOk() (*bool, bool) { + if o == nil || isNil(o.SymLinks) { + return nil, false + } + return o.SymLinks, true +} + +// HasSymLinks returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasSymLinks() bool { + if o != nil && !isNil(o.SymLinks) { + return true + } + + return false +} + +// SetSymLinks gets a reference to the given bool and assigns it to the SymLinks field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetSymLinks(v bool) { + o.SymLinks = &v +} + +// GetCompatibility returns the Compatibility field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetCompatibility() bool { + if o == nil || isNil(o.Compatibility) { + var ret bool + return ret + } + return *o.Compatibility +} + +// GetCompatibilityOk returns a tuple with the Compatibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetCompatibilityOk() (*bool, bool) { + if o == nil || isNil(o.Compatibility) { + return nil, false + } + return o.Compatibility, true +} + +// HasCompatibility returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasCompatibility() bool { + if o != nil && !isNil(o.Compatibility) { + return true + } + + return false +} + +// SetCompatibility gets a reference to the given bool and assigns it to the Compatibility field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetCompatibility(v bool) { + o.Compatibility = &v +} + +// GetServerUsername returns the ServerUsername field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUsername() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ServerUsername) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ServerUsername +} + +// GetServerUsernameOk returns a tuple with the ServerUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUsernameOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ServerUsername) { + return nil, false + } + return o.ServerUsername, true +} + +// HasServerUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerUsername() bool { + if o != nil && !isNil(o.ServerUsername) { + return true + } + + return false +} + +// SetServerUsername gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ServerUsername field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerUsername(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ServerUsername = &v +} + +// GetServerPassword returns the ServerPassword field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ServerPassword) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ServerPassword +} + +// GetServerPasswordOk returns a tuple with the ServerPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ServerPassword) { + return nil, false + } + return o.ServerPassword, true +} + +// HasServerPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerPassword() bool { + if o != nil && !isNil(o.ServerPassword) { + return true + } + + return false +} + +// SetServerPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ServerPassword field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ServerPassword = &v +} + +// GetServerUseSsl returns the ServerUseSsl field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUseSsl() bool { + if o == nil || isNil(o.ServerUseSsl) { + var ret bool + return ret + } + return *o.ServerUseSsl +} + +// GetServerUseSslOk returns a tuple with the ServerUseSsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) GetServerUseSslOk() (*bool, bool) { + if o == nil || isNil(o.ServerUseSsl) { + return nil, false + } + return o.ServerUseSsl, true +} + +// HasServerUseSsl returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) HasServerUseSsl() bool { + if o != nil && !isNil(o.ServerUseSsl) { + return true + } + + return false +} + +// SetServerUseSsl gets a reference to the given bool and assigns it to the ServerUseSsl field. +func (o *CSSCMSDataModelModelsDiscoveryJobRequest) SetServerUseSsl(v bool) { + o.ServerUseSsl = &v +} + +func (o CSSCMSDataModelModelsDiscoveryJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsDiscoveryJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + toSerialize["Type"] = o.Type + if o.JobExecutionTimestamp.IsSet() { + toSerialize["JobExecutionTimestamp"] = o.JobExecutionTimestamp.Get() + } + if o.Dirs.IsSet() { + toSerialize["Dirs"] = o.Dirs.Get() + } + if o.IgnoredDirs.IsSet() { + toSerialize["IgnoredDirs"] = o.IgnoredDirs.Get() + } + if o.Extensions.IsSet() { + toSerialize["Extensions"] = o.Extensions.Get() + } + if o.NamePatterns.IsSet() { + toSerialize["NamePatterns"] = o.NamePatterns.Get() + } + if !isNil(o.SymLinks) { + toSerialize["SymLinks"] = o.SymLinks + } + if !isNil(o.Compatibility) { + toSerialize["Compatibility"] = o.Compatibility + } + if !isNil(o.ServerUsername) { + toSerialize["ServerUsername"] = o.ServerUsername + } + if !isNil(o.ServerPassword) { + toSerialize["ServerPassword"] = o.ServerPassword + } + if !isNil(o.ServerUseSsl) { + toSerialize["ServerUseSsl"] = o.ServerUseSsl + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsDiscoveryJobRequest struct { + value *CSSCMSDataModelModelsDiscoveryJobRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsDiscoveryJobRequest) Get() *CSSCMSDataModelModelsDiscoveryJobRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsDiscoveryJobRequest) Set(val *CSSCMSDataModelModelsDiscoveryJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsDiscoveryJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsDiscoveryJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsDiscoveryJobRequest(val *CSSCMSDataModelModelsDiscoveryJobRequest) *NullableCSSCMSDataModelModelsDiscoveryJobRequest { + return &NullableCSSCMSDataModelModelsDiscoveryJobRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsDiscoveryJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsDiscoveryJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_available_renewal.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_available_renewal.go new file mode 100644 index 0000000..7701cc9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_available_renewal.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsEnrollmentAvailableRenewal type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentAvailableRenewal{} + +// CSSCMSDataModelModelsEnrollmentAvailableRenewal struct for CSSCMSDataModelModelsEnrollmentAvailableRenewal +type CSSCMSDataModelModelsEnrollmentAvailableRenewal struct { + AvailableRenewalType *CSSCMSDataModelEnumsRenewalType `json:"AvailableRenewalType,omitempty"` + Message NullableString `json:"Message,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentAvailableRenewal instantiates a new CSSCMSDataModelModelsEnrollmentAvailableRenewal object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentAvailableRenewal() *CSSCMSDataModelModelsEnrollmentAvailableRenewal { + this := CSSCMSDataModelModelsEnrollmentAvailableRenewal{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentAvailableRenewalWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentAvailableRenewal object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentAvailableRenewalWithDefaults() *CSSCMSDataModelModelsEnrollmentAvailableRenewal { + this := CSSCMSDataModelModelsEnrollmentAvailableRenewal{} + return &this +} + +// GetAvailableRenewalType returns the AvailableRenewalType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetAvailableRenewalType() CSSCMSDataModelEnumsRenewalType { + if o == nil || isNil(o.AvailableRenewalType) { + var ret CSSCMSDataModelEnumsRenewalType + return ret + } + return *o.AvailableRenewalType +} + +// GetAvailableRenewalTypeOk returns a tuple with the AvailableRenewalType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetAvailableRenewalTypeOk() (*CSSCMSDataModelEnumsRenewalType, bool) { + if o == nil || isNil(o.AvailableRenewalType) { + return nil, false + } + return o.AvailableRenewalType, true +} + +// HasAvailableRenewalType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) HasAvailableRenewalType() bool { + if o != nil && !isNil(o.AvailableRenewalType) { + return true + } + + return false +} + +// SetAvailableRenewalType gets a reference to the given CSSCMSDataModelEnumsRenewalType and assigns it to the AvailableRenewalType field. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetAvailableRenewalType(v CSSCMSDataModelEnumsRenewalType) { + o.AvailableRenewalType = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentAvailableRenewal) UnsetMessage() { + o.Message.Unset() +} + +func (o CSSCMSDataModelModelsEnrollmentAvailableRenewal) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentAvailableRenewal) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AvailableRenewalType) { + toSerialize["AvailableRenewalType"] = o.AvailableRenewalType + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal struct { + value *CSSCMSDataModelModelsEnrollmentAvailableRenewal + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) Get() *CSSCMSDataModelModelsEnrollmentAvailableRenewal { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) Set(val *CSSCMSDataModelModelsEnrollmentAvailableRenewal) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentAvailableRenewal(val *CSSCMSDataModelModelsEnrollmentAvailableRenewal) *NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal { + return &NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentAvailableRenewal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_csr_enrollment_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_csr_enrollment_response.go new file mode 100644 index 0000000..148c7a7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_csr_enrollment_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse{} + +// CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse struct for CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse +type CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse struct { + CertificateInformation *CSSCMSDataModelModelsPkcs10CertificateResponse `json:"CertificateInformation,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse instantiates a new CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse() *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse { + this := CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponseWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentCSREnrollmentResponseWithDefaults() *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse { + this := CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse{} + return &this +} + +// GetCertificateInformation returns the CertificateInformation field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs10CertificateResponse { + if o == nil || isNil(o.CertificateInformation) { + var ret CSSCMSDataModelModelsPkcs10CertificateResponse + return ret + } + return *o.CertificateInformation +} + +// GetCertificateInformationOk returns a tuple with the CertificateInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs10CertificateResponse, bool) { + if o == nil || isNil(o.CertificateInformation) { + return nil, false + } + return o.CertificateInformation, true +} + +// HasCertificateInformation returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) HasCertificateInformation() bool { + if o != nil && !isNil(o.CertificateInformation) { + return true + } + + return false +} + +// SetCertificateInformation gets a reference to the given CSSCMSDataModelModelsPkcs10CertificateResponse and assigns it to the CertificateInformation field. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs10CertificateResponse) { + o.CertificateInformation = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateInformation) { + toSerialize["CertificateInformation"] = o.CertificateInformation + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse struct { + value *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) Get() *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) Set(val *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse(val *CSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) *NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse { + return &NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentCSREnrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_existing_enrollment_management_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_existing_enrollment_management_request.go new file mode 100644 index 0000000..2c44ffa --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_existing_enrollment_management_request.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest{} + +// CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest struct for CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest +type CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest struct { + ExistingCertificateId *int32 `json:"ExistingCertificateId,omitempty"` + CertificateId *int32 `json:"CertificateId,omitempty"` + RequestId *int32 `json:"RequestId,omitempty"` + Password NullableString `json:"Password,omitempty"` + JobTime *time.Time `json:"JobTime,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest instantiates a new CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest() *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest { + this := CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults() *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest { + this := CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest{} + return &this +} + +// GetExistingCertificateId returns the ExistingCertificateId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateId() int32 { + if o == nil || isNil(o.ExistingCertificateId) { + var ret int32 + return ret + } + return *o.ExistingCertificateId +} + +// GetExistingCertificateIdOk returns a tuple with the ExistingCertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.ExistingCertificateId) { + return nil, false + } + return o.ExistingCertificateId, true +} + +// HasExistingCertificateId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasExistingCertificateId() bool { + if o != nil && !isNil(o.ExistingCertificateId) { + return true + } + + return false +} + +// SetExistingCertificateId gets a reference to the given int32 and assigns it to the ExistingCertificateId field. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetExistingCertificateId(v int32) { + o.ExistingCertificateId = &v +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId) { + var ret int32 + return ret + } + return *o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateId) { + return nil, false + } + return o.CertificateId, true +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasCertificateId() bool { + if o != nil && !isNil(o.CertificateId) { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given int32 and assigns it to the CertificateId field. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetCertificateId(v int32) { + o.CertificateId = &v +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestId() int32 { + if o == nil || isNil(o.RequestId) { + var ret int32 + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasRequestId() bool { + if o != nil && !isNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given int32 and assigns it to the RequestId field. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetRequestId(v int32) { + o.RequestId = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) UnsetPassword() { + o.Password.Unset() +} + +// GetJobTime returns the JobTime field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTime() time.Time { + if o == nil || isNil(o.JobTime) { + var ret time.Time + return ret + } + return *o.JobTime +} + +// GetJobTimeOk returns a tuple with the JobTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.JobTime) { + return nil, false + } + return o.JobTime, true +} + +// HasJobTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) HasJobTime() bool { + if o != nil && !isNil(o.JobTime) { + return true + } + + return false +} + +// SetJobTime gets a reference to the given time.Time and assigns it to the JobTime field. +func (o *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) SetJobTime(v time.Time) { + o.JobTime = &v +} + +func (o CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ExistingCertificateId) { + toSerialize["ExistingCertificateId"] = o.ExistingCertificateId + } + if !isNil(o.CertificateId) { + toSerialize["CertificateId"] = o.CertificateId + } + if !isNil(o.RequestId) { + toSerialize["RequestId"] = o.RequestId + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if !isNil(o.JobTime) { + toSerialize["JobTime"] = o.JobTime + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest struct { + value *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) Get() *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) Set(val *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest(val *CSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) *NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest { + return &NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentExistingEnrollmentManagementRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_management_store_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_management_store_type.go new file mode 100644 index 0000000..5858730 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_management_store_type.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsEnrollmentManagementStoreType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentManagementStoreType{} + +// CSSCMSDataModelModelsEnrollmentManagementStoreType struct for CSSCMSDataModelModelsEnrollmentManagementStoreType +type CSSCMSDataModelModelsEnrollmentManagementStoreType struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties []interface{} `json:"Properties,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentManagementStoreType instantiates a new CSSCMSDataModelModelsEnrollmentManagementStoreType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentManagementStoreType() *CSSCMSDataModelModelsEnrollmentManagementStoreType { + this := CSSCMSDataModelModelsEnrollmentManagementStoreType{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentManagementStoreTypeWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentManagementStoreType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentManagementStoreTypeWithDefaults() *CSSCMSDataModelModelsEnrollmentManagementStoreType { + this := CSSCMSDataModelModelsEnrollmentManagementStoreType{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) UnsetAlias() { + o.Alias.Unset() +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetProperties() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) GetPropertiesOk() ([]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []interface{} and assigns it to the Properties field. +func (o *CSSCMSDataModelModelsEnrollmentManagementStoreType) SetProperties(v []interface{}) { + o.Properties = v +} + +func (o CSSCMSDataModelModelsEnrollmentManagementStoreType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentManagementStoreType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentManagementStoreType struct { + value *CSSCMSDataModelModelsEnrollmentManagementStoreType + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) Get() *CSSCMSDataModelModelsEnrollmentManagementStoreType { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) Set(val *CSSCMSDataModelModelsEnrollmentManagementStoreType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentManagementStoreType(val *CSSCMSDataModelModelsEnrollmentManagementStoreType) *NullableCSSCMSDataModelModelsEnrollmentManagementStoreType { + return &NullableCSSCMSDataModelModelsEnrollmentManagementStoreType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentManagementStoreType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_pfx_enrollment_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_pfx_enrollment_response.go new file mode 100644 index 0000000..d358f3a --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_pfx_enrollment_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse{} + +// CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse struct for CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse +type CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse struct { + CertificateInformation *CSSCMSDataModelModelsPkcs12CertificateResponse `json:"CertificateInformation,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse instantiates a new CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse() *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse { + this := CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponseWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponseWithDefaults() *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse { + this := CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse{} + return &this +} + +// GetCertificateInformation returns the CertificateInformation field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs12CertificateResponse { + if o == nil || isNil(o.CertificateInformation) { + var ret CSSCMSDataModelModelsPkcs12CertificateResponse + return ret + } + return *o.CertificateInformation +} + +// GetCertificateInformationOk returns a tuple with the CertificateInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs12CertificateResponse, bool) { + if o == nil || isNil(o.CertificateInformation) { + return nil, false + } + return o.CertificateInformation, true +} + +// HasCertificateInformation returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) HasCertificateInformation() bool { + if o != nil && !isNil(o.CertificateInformation) { + return true + } + + return false +} + +// SetCertificateInformation gets a reference to the given CSSCMSDataModelModelsPkcs12CertificateResponse and assigns it to the CertificateInformation field. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs12CertificateResponse) { + o.CertificateInformation = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateInformation) { + toSerialize["CertificateInformation"] = o.CertificateInformation + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse struct { + value *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) Get() *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) Set(val *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse(val *CSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) *NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse { + return &NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentPFXEnrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_renewal_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_renewal_request.go new file mode 100644 index 0000000..4ec0ba7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_enrollment_renewal_request.go @@ -0,0 +1,323 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsEnrollmentRenewalRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsEnrollmentRenewalRequest{} + +// CSSCMSDataModelModelsEnrollmentRenewalRequest struct for CSSCMSDataModelModelsEnrollmentRenewalRequest +type CSSCMSDataModelModelsEnrollmentRenewalRequest struct { + CertificateId NullableInt32 `json:"CertificateId,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + Template NullableString `json:"Template,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` +} + +// NewCSSCMSDataModelModelsEnrollmentRenewalRequest instantiates a new CSSCMSDataModelModelsEnrollmentRenewalRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsEnrollmentRenewalRequest() *CSSCMSDataModelModelsEnrollmentRenewalRequest { + this := CSSCMSDataModelModelsEnrollmentRenewalRequest{} + return &this +} + +// NewCSSCMSDataModelModelsEnrollmentRenewalRequestWithDefaults instantiates a new CSSCMSDataModelModelsEnrollmentRenewalRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsEnrollmentRenewalRequestWithDefaults() *CSSCMSDataModelModelsEnrollmentRenewalRequest { + this := CSSCMSDataModelModelsEnrollmentRenewalRequest{} + return &this +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId.Get()) { + var ret int32 + return ret + } + return *o.CertificateId.Get() +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateId.Get(), o.CertificateId.IsSet() +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasCertificateId() bool { + if o != nil && o.CertificateId.IsSet() { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given NullableInt32 and assigns it to the CertificateId field. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateId(v int32) { + o.CertificateId.Set(&v) +} + +// SetCertificateIdNil sets the value for CertificateId to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateIdNil() { + o.CertificateId.Set(nil) +} + +// UnsetCertificateId ensures that no value is present for CertificateId, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetCertificateId() { + o.CertificateId.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) UnsetTemplate() { + o.Template.Unset() +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *CSSCMSDataModelModelsEnrollmentRenewalRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +func (o CSSCMSDataModelModelsEnrollmentRenewalRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsEnrollmentRenewalRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CertificateId.IsSet() { + toSerialize["CertificateId"] = o.CertificateId.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsEnrollmentRenewalRequest struct { + value *CSSCMSDataModelModelsEnrollmentRenewalRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) Get() *CSSCMSDataModelModelsEnrollmentRenewalRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) Set(val *CSSCMSDataModelModelsEnrollmentRenewalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsEnrollmentRenewalRequest(val *CSSCMSDataModelModelsEnrollmentRenewalRequest) *NullableCSSCMSDataModelModelsEnrollmentRenewalRequest { + return &NullableCSSCMSDataModelModelsEnrollmentRenewalRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsEnrollmentRenewalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_extended_key_usage.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_extended_key_usage.go new file mode 100644 index 0000000..e6caa29 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_extended_key_usage.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsExtendedKeyUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsExtendedKeyUsage{} + +// CSSCMSDataModelModelsExtendedKeyUsage struct for CSSCMSDataModelModelsExtendedKeyUsage +type CSSCMSDataModelModelsExtendedKeyUsage struct { + Id *int32 `json:"Id,omitempty"` + Oid NullableString `json:"Oid,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` +} + +// NewCSSCMSDataModelModelsExtendedKeyUsage instantiates a new CSSCMSDataModelModelsExtendedKeyUsage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsExtendedKeyUsage() *CSSCMSDataModelModelsExtendedKeyUsage { + this := CSSCMSDataModelModelsExtendedKeyUsage{} + return &this +} + +// NewCSSCMSDataModelModelsExtendedKeyUsageWithDefaults instantiates a new CSSCMSDataModelModelsExtendedKeyUsage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsExtendedKeyUsageWithDefaults() *CSSCMSDataModelModelsExtendedKeyUsage { + this := CSSCMSDataModelModelsExtendedKeyUsage{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetOid() string { + if o == nil || isNil(o.Oid.Get()) { + var ret string + return ret + } + return *o.Oid.Get() +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetOidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oid.Get(), o.Oid.IsSet() +} + +// HasOid returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasOid() bool { + if o != nil && o.Oid.IsSet() { + return true + } + + return false +} + +// SetOid gets a reference to the given NullableString and assigns it to the Oid field. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetOid(v string) { + o.Oid.Set(&v) +} + +// SetOidNil sets the value for Oid to be an explicit nil +func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetOidNil() { + o.Oid.Set(nil) +} + +// UnsetOid ensures that no value is present for Oid, not even an explicit nil +func (o *CSSCMSDataModelModelsExtendedKeyUsage) UnsetOid() { + o.Oid.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsExtendedKeyUsage) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsExtendedKeyUsage) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsExtendedKeyUsage) UnsetDisplayName() { + o.DisplayName.Unset() +} + +func (o CSSCMSDataModelModelsExtendedKeyUsage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsExtendedKeyUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Oid.IsSet() { + toSerialize["Oid"] = o.Oid.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsExtendedKeyUsage struct { + value *CSSCMSDataModelModelsExtendedKeyUsage + isSet bool +} + +func (v NullableCSSCMSDataModelModelsExtendedKeyUsage) Get() *CSSCMSDataModelModelsExtendedKeyUsage { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsExtendedKeyUsage) Set(val *CSSCMSDataModelModelsExtendedKeyUsage) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsExtendedKeyUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsExtendedKeyUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsExtendedKeyUsage(val *CSSCMSDataModelModelsExtendedKeyUsage) *NullableCSSCMSDataModelModelsExtendedKeyUsage { + return &NullableCSSCMSDataModelModelsExtendedKeyUsage{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsExtendedKeyUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsExtendedKeyUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_invalid_keystore.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_invalid_keystore.go new file mode 100644 index 0000000..c48dea9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_invalid_keystore.go @@ -0,0 +1,358 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsInvalidKeystore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsInvalidKeystore{} + +// CSSCMSDataModelModelsInvalidKeystore struct for CSSCMSDataModelModelsInvalidKeystore +type CSSCMSDataModelModelsInvalidKeystore struct { + KeystoreId *string `json:"KeystoreId,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + Reason *CSSCMSDataModelEnumsFailureType `json:"Reason,omitempty"` + Explanation NullableString `json:"Explanation,omitempty"` +} + +// NewCSSCMSDataModelModelsInvalidKeystore instantiates a new CSSCMSDataModelModelsInvalidKeystore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsInvalidKeystore() *CSSCMSDataModelModelsInvalidKeystore { + this := CSSCMSDataModelModelsInvalidKeystore{} + return &this +} + +// NewCSSCMSDataModelModelsInvalidKeystoreWithDefaults instantiates a new CSSCMSDataModelModelsInvalidKeystore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsInvalidKeystoreWithDefaults() *CSSCMSDataModelModelsInvalidKeystore { + this := CSSCMSDataModelModelsInvalidKeystore{} + return &this +} + +// GetKeystoreId returns the KeystoreId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsInvalidKeystore) GetKeystoreId() string { + if o == nil || isNil(o.KeystoreId) { + var ret string + return ret + } + return *o.KeystoreId +} + +// GetKeystoreIdOk returns a tuple with the KeystoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) GetKeystoreIdOk() (*string, bool) { + if o == nil || isNil(o.KeystoreId) { + return nil, false + } + return o.KeystoreId, true +} + +// HasKeystoreId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasKeystoreId() bool { + if o != nil && !isNil(o.KeystoreId) { + return true + } + + return false +} + +// SetKeystoreId gets a reference to the given string and assigns it to the KeystoreId field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetKeystoreId(v string) { + o.KeystoreId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsInvalidKeystore) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsInvalidKeystore) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsInvalidKeystore) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsInvalidKeystore) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsInvalidKeystore) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsInvalidKeystore) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetAlias() { + o.Alias.Unset() +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsInvalidKeystore) GetReason() CSSCMSDataModelEnumsFailureType { + if o == nil || isNil(o.Reason) { + var ret CSSCMSDataModelEnumsFailureType + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) GetReasonOk() (*CSSCMSDataModelEnumsFailureType, bool) { + if o == nil || isNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasReason() bool { + if o != nil && !isNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given CSSCMSDataModelEnumsFailureType and assigns it to the Reason field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetReason(v CSSCMSDataModelEnumsFailureType) { + o.Reason = &v +} + +// GetExplanation returns the Explanation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsInvalidKeystore) GetExplanation() string { + if o == nil || isNil(o.Explanation.Get()) { + var ret string + return ret + } + return *o.Explanation.Get() +} + +// GetExplanationOk returns a tuple with the Explanation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsInvalidKeystore) GetExplanationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Explanation.Get(), o.Explanation.IsSet() +} + +// HasExplanation returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsInvalidKeystore) HasExplanation() bool { + if o != nil && o.Explanation.IsSet() { + return true + } + + return false +} + +// SetExplanation gets a reference to the given NullableString and assigns it to the Explanation field. +func (o *CSSCMSDataModelModelsInvalidKeystore) SetExplanation(v string) { + o.Explanation.Set(&v) +} + +// SetExplanationNil sets the value for Explanation to be an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) SetExplanationNil() { + o.Explanation.Set(nil) +} + +// UnsetExplanation ensures that no value is present for Explanation, not even an explicit nil +func (o *CSSCMSDataModelModelsInvalidKeystore) UnsetExplanation() { + o.Explanation.Unset() +} + +func (o CSSCMSDataModelModelsInvalidKeystore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsInvalidKeystore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeystoreId) { + toSerialize["KeystoreId"] = o.KeystoreId + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.Reason) { + toSerialize["Reason"] = o.Reason + } + if o.Explanation.IsSet() { + toSerialize["Explanation"] = o.Explanation.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsInvalidKeystore struct { + value *CSSCMSDataModelModelsInvalidKeystore + isSet bool +} + +func (v NullableCSSCMSDataModelModelsInvalidKeystore) Get() *CSSCMSDataModelModelsInvalidKeystore { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsInvalidKeystore) Set(val *CSSCMSDataModelModelsInvalidKeystore) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsInvalidKeystore) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsInvalidKeystore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsInvalidKeystore(val *CSSCMSDataModelModelsInvalidKeystore) *NullableCSSCMSDataModelModelsInvalidKeystore { + return &NullableCSSCMSDataModelModelsInvalidKeystore{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsInvalidKeystore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsInvalidKeystore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_api_secret.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_api_secret.go new file mode 100644 index 0000000..c2ab526 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_api_secret.go @@ -0,0 +1,229 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsKeyfactorAPISecret type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsKeyfactorAPISecret{} + +// CSSCMSDataModelModelsKeyfactorAPISecret struct for CSSCMSDataModelModelsKeyfactorAPISecret +type CSSCMSDataModelModelsKeyfactorAPISecret struct { + SecretValue NullableString `json:"SecretValue,omitempty"` + Parameters map[string]string `json:"Parameters,omitempty"` + Provider NullableInt32 `json:"Provider,omitempty"` +} + +// NewCSSCMSDataModelModelsKeyfactorAPISecret instantiates a new CSSCMSDataModelModelsKeyfactorAPISecret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsKeyfactorAPISecret() *CSSCMSDataModelModelsKeyfactorAPISecret { + this := CSSCMSDataModelModelsKeyfactorAPISecret{} + return &this +} + +// NewCSSCMSDataModelModelsKeyfactorAPISecretWithDefaults instantiates a new CSSCMSDataModelModelsKeyfactorAPISecret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsKeyfactorAPISecretWithDefaults() *CSSCMSDataModelModelsKeyfactorAPISecret { + this := CSSCMSDataModelModelsKeyfactorAPISecret{} + return &this +} + +// GetSecretValue returns the SecretValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetSecretValue() string { + if o == nil || isNil(o.SecretValue.Get()) { + var ret string + return ret + } + return *o.SecretValue.Get() +} + +// GetSecretValueOk returns a tuple with the SecretValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetSecretValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecretValue.Get(), o.SecretValue.IsSet() +} + +// HasSecretValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasSecretValue() bool { + if o != nil && o.SecretValue.IsSet() { + return true + } + + return false +} + +// SetSecretValue gets a reference to the given NullableString and assigns it to the SecretValue field. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetSecretValue(v string) { + o.SecretValue.Set(&v) +} + +// SetSecretValueNil sets the value for SecretValue to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetSecretValueNil() { + o.SecretValue.Set(nil) +} + +// UnsetSecretValue ensures that no value is present for SecretValue, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) UnsetSecretValue() { + o.SecretValue.Unset() +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetParameters() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetParametersOk() (*map[string]string, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetParameters(v map[string]string) { + o.Parameters = v +} + +// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetProvider() int32 { + if o == nil || isNil(o.Provider.Get()) { + var ret int32 + return ret + } + return *o.Provider.Get() +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) GetProviderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Provider.Get(), o.Provider.IsSet() +} + +// HasProvider returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) HasProvider() bool { + if o != nil && o.Provider.IsSet() { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullableInt32 and assigns it to the Provider field. +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetProvider(v int32) { + o.Provider.Set(&v) +} + +// SetProviderNil sets the value for Provider to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) SetProviderNil() { + o.Provider.Set(nil) +} + +// UnsetProvider ensures that no value is present for Provider, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorAPISecret) UnsetProvider() { + o.Provider.Unset() +} + +func (o CSSCMSDataModelModelsKeyfactorAPISecret) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsKeyfactorAPISecret) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SecretValue.IsSet() { + toSerialize["SecretValue"] = o.SecretValue.Get() + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + if o.Provider.IsSet() { + toSerialize["Provider"] = o.Provider.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsKeyfactorAPISecret struct { + value *CSSCMSDataModelModelsKeyfactorAPISecret + isSet bool +} + +func (v NullableCSSCMSDataModelModelsKeyfactorAPISecret) Get() *CSSCMSDataModelModelsKeyfactorAPISecret { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorAPISecret) Set(val *CSSCMSDataModelModelsKeyfactorAPISecret) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsKeyfactorAPISecret) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorAPISecret) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsKeyfactorAPISecret(val *CSSCMSDataModelModelsKeyfactorAPISecret) *NullableCSSCMSDataModelModelsKeyfactorAPISecret { + return &NullableCSSCMSDataModelModelsKeyfactorAPISecret{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsKeyfactorAPISecret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorAPISecret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_secret.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_secret.go new file mode 100644 index 0000000..2692bb5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_keyfactor_secret.go @@ -0,0 +1,500 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsKeyfactorSecret type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsKeyfactorSecret{} + +// CSSCMSDataModelModelsKeyfactorSecret struct for CSSCMSDataModelModelsKeyfactorSecret +type CSSCMSDataModelModelsKeyfactorSecret struct { + Value interface{} `json:"Value,omitempty"` + SecretTypeGuid *string `json:"SecretTypeGuid,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + ProviderTypeParameterValues []CSSCMSDataModelModelsPamProviderTypeParamValue `json:"ProviderTypeParameterValues,omitempty"` + ProviderId NullableInt32 `json:"ProviderId,omitempty"` + IsManaged *bool `json:"IsManaged,omitempty"` + SecretType *CSSCMSDataModelEnumsSecretType `json:"SecretType,omitempty"` + RemoteProviderName NullableString `json:"RemoteProviderName,omitempty"` + DoesHaveValue *bool `json:"HasValue,omitempty"` +} + +// NewCSSCMSDataModelModelsKeyfactorSecret instantiates a new CSSCMSDataModelModelsKeyfactorSecret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsKeyfactorSecret() *CSSCMSDataModelModelsKeyfactorSecret { + this := CSSCMSDataModelModelsKeyfactorSecret{} + return &this +} + +// NewCSSCMSDataModelModelsKeyfactorSecretWithDefaults instantiates a new CSSCMSDataModelModelsKeyfactorSecret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsKeyfactorSecretWithDefaults() *CSSCMSDataModelModelsKeyfactorSecret { + this := CSSCMSDataModelModelsKeyfactorSecret{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetValue() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetValueOk() (*interface{}, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return &o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasValue() bool { + if o != nil && isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given interface{} and assigns it to the Value field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetValue(v interface{}) { + o.Value = v +} + +// GetSecretTypeGuid returns the SecretTypeGuid field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeGuid() string { + if o == nil || isNil(o.SecretTypeGuid) { + var ret string + return ret + } + return *o.SecretTypeGuid +} + +// GetSecretTypeGuidOk returns a tuple with the SecretTypeGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeGuidOk() (*string, bool) { + if o == nil || isNil(o.SecretTypeGuid) { + return nil, false + } + return o.SecretTypeGuid, true +} + +// HasSecretTypeGuid returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasSecretTypeGuid() bool { + if o != nil && !isNil(o.SecretTypeGuid) { + return true + } + + return false +} + +// SetSecretTypeGuid gets a reference to the given string and assigns it to the SecretTypeGuid field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetSecretTypeGuid(v string) { + o.SecretTypeGuid = &v +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProviderTypeParameterValues returns the ProviderTypeParameterValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderTypeParameterValues() []CSSCMSDataModelModelsPamProviderTypeParamValue { + if o == nil { + var ret []CSSCMSDataModelModelsPamProviderTypeParamValue + return ret + } + return o.ProviderTypeParameterValues +} + +// GetProviderTypeParameterValuesOk returns a tuple with the ProviderTypeParameterValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderTypeParameterValuesOk() ([]CSSCMSDataModelModelsPamProviderTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParameterValues) { + return nil, false + } + return o.ProviderTypeParameterValues, true +} + +// HasProviderTypeParameterValues returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasProviderTypeParameterValues() bool { + if o != nil && isNil(o.ProviderTypeParameterValues) { + return true + } + + return false +} + +// SetProviderTypeParameterValues gets a reference to the given []CSSCMSDataModelModelsPamProviderTypeParamValue and assigns it to the ProviderTypeParameterValues field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderTypeParameterValues(v []CSSCMSDataModelModelsPamProviderTypeParamValue) { + o.ProviderTypeParameterValues = v +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderId() int32 { + if o == nil || isNil(o.ProviderId.Get()) { + var ret int32 + return ret + } + return *o.ProviderId.Get() +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetProviderIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ProviderId.Get(), o.ProviderId.IsSet() +} + +// HasProviderId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasProviderId() bool { + if o != nil && o.ProviderId.IsSet() { + return true + } + + return false +} + +// SetProviderId gets a reference to the given NullableInt32 and assigns it to the ProviderId field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderId(v int32) { + o.ProviderId.Set(&v) +} + +// SetProviderIdNil sets the value for ProviderId to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetProviderIdNil() { + o.ProviderId.Set(nil) +} + +// UnsetProviderId ensures that no value is present for ProviderId, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetProviderId() { + o.ProviderId.Unset() +} + +// GetIsManaged returns the IsManaged field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetIsManaged() bool { + if o == nil || isNil(o.IsManaged) { + var ret bool + return ret + } + return *o.IsManaged +} + +// GetIsManagedOk returns a tuple with the IsManaged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetIsManagedOk() (*bool, bool) { + if o == nil || isNil(o.IsManaged) { + return nil, false + } + return o.IsManaged, true +} + +// HasIsManaged returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasIsManaged() bool { + if o != nil && !isNil(o.IsManaged) { + return true + } + + return false +} + +// SetIsManaged gets a reference to the given bool and assigns it to the IsManaged field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetIsManaged(v bool) { + o.IsManaged = &v +} + +// GetSecretType returns the SecretType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretType() CSSCMSDataModelEnumsSecretType { + if o == nil || isNil(o.SecretType) { + var ret CSSCMSDataModelEnumsSecretType + return ret + } + return *o.SecretType +} + +// GetSecretTypeOk returns a tuple with the SecretType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetSecretTypeOk() (*CSSCMSDataModelEnumsSecretType, bool) { + if o == nil || isNil(o.SecretType) { + return nil, false + } + return o.SecretType, true +} + +// HasSecretType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasSecretType() bool { + if o != nil && !isNil(o.SecretType) { + return true + } + + return false +} + +// SetSecretType gets a reference to the given CSSCMSDataModelEnumsSecretType and assigns it to the SecretType field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetSecretType(v CSSCMSDataModelEnumsSecretType) { + o.SecretType = &v +} + +// GetRemoteProviderName returns the RemoteProviderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetRemoteProviderName() string { + if o == nil || isNil(o.RemoteProviderName.Get()) { + var ret string + return ret + } + return *o.RemoteProviderName.Get() +} + +// GetRemoteProviderNameOk returns a tuple with the RemoteProviderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetRemoteProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RemoteProviderName.Get(), o.RemoteProviderName.IsSet() +} + +// HasRemoteProviderName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasRemoteProviderName() bool { + if o != nil && o.RemoteProviderName.IsSet() { + return true + } + + return false +} + +// SetRemoteProviderName gets a reference to the given NullableString and assigns it to the RemoteProviderName field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetRemoteProviderName(v string) { + o.RemoteProviderName.Set(&v) +} + +// SetRemoteProviderNameNil sets the value for RemoteProviderName to be an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetRemoteProviderNameNil() { + o.RemoteProviderName.Set(nil) +} + +// UnsetRemoteProviderName ensures that no value is present for RemoteProviderName, not even an explicit nil +func (o *CSSCMSDataModelModelsKeyfactorSecret) UnsetRemoteProviderName() { + o.RemoteProviderName.Unset() +} + +// GetDoesHaveValue returns the DoesHaveValue field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetDoesHaveValue() bool { + if o == nil || isNil(o.DoesHaveValue) { + var ret bool + return ret + } + return *o.DoesHaveValue +} + +// GetDoesHaveValueOk returns a tuple with the DoesHaveValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) GetDoesHaveValueOk() (*bool, bool) { + if o == nil || isNil(o.DoesHaveValue) { + return nil, false + } + return o.DoesHaveValue, true +} + +// HasDoesHaveValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsKeyfactorSecret) HasDoesHaveValue() bool { + if o != nil && !isNil(o.DoesHaveValue) { + return true + } + + return false +} + +// SetDoesHaveValue gets a reference to the given bool and assigns it to the DoesHaveValue field. +func (o *CSSCMSDataModelModelsKeyfactorSecret) SetDoesHaveValue(v bool) { + o.DoesHaveValue = &v +} + +func (o CSSCMSDataModelModelsKeyfactorSecret) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsKeyfactorSecret) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Value != nil { + toSerialize["Value"] = o.Value + } + if !isNil(o.SecretTypeGuid) { + toSerialize["SecretTypeGuid"] = o.SecretTypeGuid + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if o.ProviderTypeParameterValues != nil { + toSerialize["ProviderTypeParameterValues"] = o.ProviderTypeParameterValues + } + if o.ProviderId.IsSet() { + toSerialize["ProviderId"] = o.ProviderId.Get() + } + // skip: IsManaged is readOnly + if !isNil(o.SecretType) { + toSerialize["SecretType"] = o.SecretType + } + if o.RemoteProviderName.IsSet() { + toSerialize["RemoteProviderName"] = o.RemoteProviderName.Get() + } + // skip: HasValue is readOnly + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsKeyfactorSecret struct { + value *CSSCMSDataModelModelsKeyfactorSecret + isSet bool +} + +func (v NullableCSSCMSDataModelModelsKeyfactorSecret) Get() *CSSCMSDataModelModelsKeyfactorSecret { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorSecret) Set(val *CSSCMSDataModelModelsKeyfactorSecret) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsKeyfactorSecret) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorSecret) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsKeyfactorSecret(val *CSSCMSDataModelModelsKeyfactorSecret) *NullableCSSCMSDataModelModelsKeyfactorSecret { + return &NullableCSSCMSDataModelModelsKeyfactorSecret{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsKeyfactorSecret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsKeyfactorSecret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_all_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_all_update_request.go new file mode 100644 index 0000000..ce6d892 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_all_update_request.go @@ -0,0 +1,209 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMetadataAllUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMetadataAllUpdateRequest{} + +// CSSCMSDataModelModelsMetadataAllUpdateRequest struct for CSSCMSDataModelModelsMetadataAllUpdateRequest +type CSSCMSDataModelModelsMetadataAllUpdateRequest struct { + Query NullableString `json:"Query,omitempty"` + CertificateIds []int32 `json:"CertificateIds,omitempty"` + Metadata []CSSCMSDataModelModelsMetadataSingleUpdateRequest `json:"Metadata"` +} + +// NewCSSCMSDataModelModelsMetadataAllUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataAllUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMetadataAllUpdateRequest(metadata []CSSCMSDataModelModelsMetadataSingleUpdateRequest) *CSSCMSDataModelModelsMetadataAllUpdateRequest { + this := CSSCMSDataModelModelsMetadataAllUpdateRequest{} + this.Metadata = metadata + return &this +} + +// NewCSSCMSDataModelModelsMetadataAllUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataAllUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMetadataAllUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataAllUpdateRequest { + this := CSSCMSDataModelModelsMetadataAllUpdateRequest{} + return &this +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) UnsetQuery() { + o.Query.Unset() +} + +// GetCertificateIds returns the CertificateIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetCertificateIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.CertificateIds +} + +// GetCertificateIdsOk returns a tuple with the CertificateIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetCertificateIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateIds) { + return nil, false + } + return o.CertificateIds, true +} + +// HasCertificateIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) HasCertificateIds() bool { + if o != nil && isNil(o.CertificateIds) { + return true + } + + return false +} + +// SetCertificateIds gets a reference to the given []int32 and assigns it to the CertificateIds field. +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetCertificateIds(v []int32) { + o.CertificateIds = v +} + +// GetMetadata returns the Metadata field value +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetMetadata() []CSSCMSDataModelModelsMetadataSingleUpdateRequest { + if o == nil { + var ret []CSSCMSDataModelModelsMetadataSingleUpdateRequest + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) GetMetadataOk() ([]CSSCMSDataModelModelsMetadataSingleUpdateRequest, bool) { + if o == nil { + return nil, false + } + return o.Metadata, true +} + +// SetMetadata sets field value +func (o *CSSCMSDataModelModelsMetadataAllUpdateRequest) SetMetadata(v []CSSCMSDataModelModelsMetadataSingleUpdateRequest) { + o.Metadata = v +} + +func (o CSSCMSDataModelModelsMetadataAllUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMetadataAllUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + if o.CertificateIds != nil { + toSerialize["CertificateIds"] = o.CertificateIds + } + toSerialize["Metadata"] = o.Metadata + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMetadataAllUpdateRequest struct { + value *CSSCMSDataModelModelsMetadataAllUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) Get() *CSSCMSDataModelModelsMetadataAllUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) Set(val *CSSCMSDataModelModelsMetadataAllUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMetadataAllUpdateRequest(val *CSSCMSDataModelModelsMetadataAllUpdateRequest) *NullableCSSCMSDataModelModelsMetadataAllUpdateRequest { + return &NullableCSSCMSDataModelModelsMetadataAllUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMetadataAllUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_single_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_single_update_request.go new file mode 100644 index 0000000..c8ce47e --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_single_update_request.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMetadataSingleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMetadataSingleUpdateRequest{} + +// CSSCMSDataModelModelsMetadataSingleUpdateRequest struct for CSSCMSDataModelModelsMetadataSingleUpdateRequest +type CSSCMSDataModelModelsMetadataSingleUpdateRequest struct { + MetadataName NullableString `json:"MetadataName,omitempty"` + Value NullableString `json:"Value,omitempty"` + OverwriteExisting *bool `json:"OverwriteExisting,omitempty"` +} + +// NewCSSCMSDataModelModelsMetadataSingleUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataSingleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMetadataSingleUpdateRequest() *CSSCMSDataModelModelsMetadataSingleUpdateRequest { + this := CSSCMSDataModelModelsMetadataSingleUpdateRequest{} + return &this +} + +// NewCSSCMSDataModelModelsMetadataSingleUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataSingleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMetadataSingleUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataSingleUpdateRequest { + this := CSSCMSDataModelModelsMetadataSingleUpdateRequest{} + return &this +} + +// GetMetadataName returns the MetadataName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetMetadataName() string { + if o == nil || isNil(o.MetadataName.Get()) { + var ret string + return ret + } + return *o.MetadataName.Get() +} + +// GetMetadataNameOk returns a tuple with the MetadataName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetMetadataNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MetadataName.Get(), o.MetadataName.IsSet() +} + +// HasMetadataName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasMetadataName() bool { + if o != nil && o.MetadataName.IsSet() { + return true + } + + return false +} + +// SetMetadataName gets a reference to the given NullableString and assigns it to the MetadataName field. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetMetadataName(v string) { + o.MetadataName.Set(&v) +} + +// SetMetadataNameNil sets the value for MetadataName to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetMetadataNameNil() { + o.MetadataName.Set(nil) +} + +// UnsetMetadataName ensures that no value is present for MetadataName, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) UnsetMetadataName() { + o.MetadataName.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) UnsetValue() { + o.Value.Unset() +} + +// GetOverwriteExisting returns the OverwriteExisting field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetOverwriteExisting() bool { + if o == nil || isNil(o.OverwriteExisting) { + var ret bool + return ret + } + return *o.OverwriteExisting +} + +// GetOverwriteExistingOk returns a tuple with the OverwriteExisting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) GetOverwriteExistingOk() (*bool, bool) { + if o == nil || isNil(o.OverwriteExisting) { + return nil, false + } + return o.OverwriteExisting, true +} + +// HasOverwriteExisting returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) HasOverwriteExisting() bool { + if o != nil && !isNil(o.OverwriteExisting) { + return true + } + + return false +} + +// SetOverwriteExisting gets a reference to the given bool and assigns it to the OverwriteExisting field. +func (o *CSSCMSDataModelModelsMetadataSingleUpdateRequest) SetOverwriteExisting(v bool) { + o.OverwriteExisting = &v +} + +func (o CSSCMSDataModelModelsMetadataSingleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMetadataSingleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.MetadataName.IsSet() { + toSerialize["MetadataName"] = o.MetadataName.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if !isNil(o.OverwriteExisting) { + toSerialize["OverwriteExisting"] = o.OverwriteExisting + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest struct { + value *CSSCMSDataModelModelsMetadataSingleUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) Get() *CSSCMSDataModelModelsMetadataSingleUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) Set(val *CSSCMSDataModelModelsMetadataSingleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMetadataSingleUpdateRequest(val *CSSCMSDataModelModelsMetadataSingleUpdateRequest) *NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest { + return &NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMetadataSingleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_type.go new file mode 100644 index 0000000..1c1d4a0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_type.go @@ -0,0 +1,734 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMetadataType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMetadataType{} + +// CSSCMSDataModelModelsMetadataType struct for CSSCMSDataModelModelsMetadataType +type CSSCMSDataModelModelsMetadataType struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + DataType *CSSCMSCoreEnumsMetadataDataType `json:"DataType,omitempty"` + Hint NullableString `json:"Hint,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` + Message NullableString `json:"Message,omitempty"` + Options NullableString `json:"Options,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + // Deprecated + AllowAPI *bool `json:"AllowAPI,omitempty"` + // Deprecated + ExplicitUpdate *bool `json:"ExplicitUpdate,omitempty"` + DisplayOrder NullableInt32 `json:"DisplayOrder,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + ExemptFromActionedCount *bool `json:"ExemptFromActionedCount,omitempty"` +} + +// NewCSSCMSDataModelModelsMetadataType instantiates a new CSSCMSDataModelModelsMetadataType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMetadataType() *CSSCMSDataModelModelsMetadataType { + this := CSSCMSDataModelModelsMetadataType{} + return &this +} + +// NewCSSCMSDataModelModelsMetadataTypeWithDefaults instantiates a new CSSCMSDataModelModelsMetadataType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMetadataTypeWithDefaults() *CSSCMSDataModelModelsMetadataType { + this := CSSCMSDataModelModelsMetadataType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataType) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataType) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsMetadataType) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsMetadataType) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsMetadataType) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetDescription() { + o.Description.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataType) GetDataType() CSSCMSCoreEnumsMetadataDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSCoreEnumsMetadataDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataType) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSCoreEnumsMetadataDataType and assigns it to the DataType field. +func (o *CSSCMSDataModelModelsMetadataType) SetDataType(v CSSCMSCoreEnumsMetadataDataType) { + o.DataType = &v +} + +// GetHint returns the Hint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetHint() string { + if o == nil || isNil(o.Hint.Get()) { + var ret string + return ret + } + return *o.Hint.Get() +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetHintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hint.Get(), o.Hint.IsSet() +} + +// HasHint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasHint() bool { + if o != nil && o.Hint.IsSet() { + return true + } + + return false +} + +// SetHint gets a reference to the given NullableString and assigns it to the Hint field. +func (o *CSSCMSDataModelModelsMetadataType) SetHint(v string) { + o.Hint.Set(&v) +} + +// SetHintNil sets the value for Hint to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetHintNil() { + o.Hint.Set(nil) +} + +// UnsetHint ensures that no value is present for Hint, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetHint() { + o.Hint.Unset() +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *CSSCMSDataModelModelsMetadataType) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetValidation() { + o.Validation.Unset() +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataType) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataType) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *CSSCMSDataModelModelsMetadataType) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsMetadataType) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetMessage() { + o.Message.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetOptions() string { + if o == nil || isNil(o.Options.Get()) { + var ret string + return ret + } + return *o.Options.Get() +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetOptionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Options.Get(), o.Options.IsSet() +} + +// HasOptions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasOptions() bool { + if o != nil && o.Options.IsSet() { + return true + } + + return false +} + +// SetOptions gets a reference to the given NullableString and assigns it to the Options field. +func (o *CSSCMSDataModelModelsMetadataType) SetOptions(v string) { + o.Options.Set(&v) +} + +// SetOptionsNil sets the value for Options to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetOptionsNil() { + o.Options.Set(nil) +} + +// UnsetOptions ensures that no value is present for Options, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetOptions() { + o.Options.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsMetadataType) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetAllowAPI returns the AllowAPI field value if set, zero value otherwise. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) GetAllowAPI() bool { + if o == nil || isNil(o.AllowAPI) { + var ret bool + return ret + } + return *o.AllowAPI +} + +// GetAllowAPIOk returns a tuple with the AllowAPI field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) GetAllowAPIOk() (*bool, bool) { + if o == nil || isNil(o.AllowAPI) { + return nil, false + } + return o.AllowAPI, true +} + +// HasAllowAPI returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasAllowAPI() bool { + if o != nil && !isNil(o.AllowAPI) { + return true + } + + return false +} + +// SetAllowAPI gets a reference to the given bool and assigns it to the AllowAPI field. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) SetAllowAPI(v bool) { + o.AllowAPI = &v +} + +// GetExplicitUpdate returns the ExplicitUpdate field value if set, zero value otherwise. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) GetExplicitUpdate() bool { + if o == nil || isNil(o.ExplicitUpdate) { + var ret bool + return ret + } + return *o.ExplicitUpdate +} + +// GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) GetExplicitUpdateOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitUpdate) { + return nil, false + } + return o.ExplicitUpdate, true +} + +// HasExplicitUpdate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasExplicitUpdate() bool { + if o != nil && !isNil(o.ExplicitUpdate) { + return true + } + + return false +} + +// SetExplicitUpdate gets a reference to the given bool and assigns it to the ExplicitUpdate field. +// Deprecated +func (o *CSSCMSDataModelModelsMetadataType) SetExplicitUpdate(v bool) { + o.ExplicitUpdate = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMetadataType) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder.Get()) { + var ret int32 + return ret + } + return *o.DisplayOrder.Get() +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMetadataType) GetDisplayOrderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DisplayOrder.Get(), o.DisplayOrder.IsSet() +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasDisplayOrder() bool { + if o != nil && o.DisplayOrder.IsSet() { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given NullableInt32 and assigns it to the DisplayOrder field. +func (o *CSSCMSDataModelModelsMetadataType) SetDisplayOrder(v int32) { + o.DisplayOrder.Set(&v) +} + +// SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) SetDisplayOrderNil() { + o.DisplayOrder.Set(nil) +} + +// UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +func (o *CSSCMSDataModelModelsMetadataType) UnsetDisplayOrder() { + o.DisplayOrder.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataType) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataType) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *CSSCMSDataModelModelsMetadataType) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetExemptFromActionedCount returns the ExemptFromActionedCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataType) GetExemptFromActionedCount() bool { + if o == nil || isNil(o.ExemptFromActionedCount) { + var ret bool + return ret + } + return *o.ExemptFromActionedCount +} + +// GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataType) GetExemptFromActionedCountOk() (*bool, bool) { + if o == nil || isNil(o.ExemptFromActionedCount) { + return nil, false + } + return o.ExemptFromActionedCount, true +} + +// HasExemptFromActionedCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataType) HasExemptFromActionedCount() bool { + if o != nil && !isNil(o.ExemptFromActionedCount) { + return true + } + + return false +} + +// SetExemptFromActionedCount gets a reference to the given bool and assigns it to the ExemptFromActionedCount field. +func (o *CSSCMSDataModelModelsMetadataType) SetExemptFromActionedCount(v bool) { + o.ExemptFromActionedCount = &v +} + +func (o CSSCMSDataModelModelsMetadataType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMetadataType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if o.Hint.IsSet() { + toSerialize["Hint"] = o.Hint.Get() + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Options.IsSet() { + toSerialize["Options"] = o.Options.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.AllowAPI) { + toSerialize["AllowAPI"] = o.AllowAPI + } + if !isNil(o.ExplicitUpdate) { + toSerialize["ExplicitUpdate"] = o.ExplicitUpdate + } + if o.DisplayOrder.IsSet() { + toSerialize["DisplayOrder"] = o.DisplayOrder.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.ExemptFromActionedCount) { + toSerialize["ExemptFromActionedCount"] = o.ExemptFromActionedCount + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMetadataType struct { + value *CSSCMSDataModelModelsMetadataType + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMetadataType) Get() *CSSCMSDataModelModelsMetadataType { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMetadataType) Set(val *CSSCMSDataModelModelsMetadataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMetadataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMetadataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMetadataType(val *CSSCMSDataModelModelsMetadataType) *NullableCSSCMSDataModelModelsMetadataType { + return &NullableCSSCMSDataModelModelsMetadataType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMetadataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMetadataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_update_request.go new file mode 100644 index 0000000..062a7e7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_metadata_update_request.go @@ -0,0 +1,161 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMetadataUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMetadataUpdateRequest{} + +// CSSCMSDataModelModelsMetadataUpdateRequest struct for CSSCMSDataModelModelsMetadataUpdateRequest +type CSSCMSDataModelModelsMetadataUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + Metadata map[string]string `json:"Metadata"` +} + +// NewCSSCMSDataModelModelsMetadataUpdateRequest instantiates a new CSSCMSDataModelModelsMetadataUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMetadataUpdateRequest(metadata map[string]string) *CSSCMSDataModelModelsMetadataUpdateRequest { + this := CSSCMSDataModelModelsMetadataUpdateRequest{} + this.Metadata = metadata + return &this +} + +// NewCSSCMSDataModelModelsMetadataUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsMetadataUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMetadataUpdateRequestWithDefaults() *CSSCMSDataModelModelsMetadataUpdateRequest { + this := CSSCMSDataModelModelsMetadataUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetMetadata returns the Metadata field value +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) GetMetadataOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *CSSCMSDataModelModelsMetadataUpdateRequest) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o CSSCMSDataModelModelsMetadataUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMetadataUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Metadata"] = o.Metadata + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMetadataUpdateRequest struct { + value *CSSCMSDataModelModelsMetadataUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMetadataUpdateRequest) Get() *CSSCMSDataModelModelsMetadataUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMetadataUpdateRequest) Set(val *CSSCMSDataModelModelsMetadataUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMetadataUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMetadataUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMetadataUpdateRequest(val *CSSCMSDataModelModelsMetadataUpdateRequest) *NullableCSSCMSDataModelModelsMetadataUpdateRequest { + return &NullableCSSCMSDataModelModelsMetadataUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMetadataUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMetadataUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_request.go new file mode 100644 index 0000000..35e6bd9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_request.go @@ -0,0 +1,145 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMonitoringCRLTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMonitoringCRLTestRequest{} + +// CSSCMSDataModelModelsMonitoringCRLTestRequest struct for CSSCMSDataModelModelsMonitoringCRLTestRequest +type CSSCMSDataModelModelsMonitoringCRLTestRequest struct { + Url NullableString `json:"Url,omitempty"` +} + +// NewCSSCMSDataModelModelsMonitoringCRLTestRequest instantiates a new CSSCMSDataModelModelsMonitoringCRLTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMonitoringCRLTestRequest() *CSSCMSDataModelModelsMonitoringCRLTestRequest { + this := CSSCMSDataModelModelsMonitoringCRLTestRequest{} + return &this +} + +// NewCSSCMSDataModelModelsMonitoringCRLTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringCRLTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMonitoringCRLTestRequestWithDefaults() *CSSCMSDataModelModelsMonitoringCRLTestRequest { + this := CSSCMSDataModelModelsMonitoringCRLTestRequest{} + return &this +} + +// GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) GetUrl() string { + if o == nil || isNil(o.Url.Get()) { + var ret string + return ret + } + return *o.Url.Get() +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Url.Get(), o.Url.IsSet() +} + +// HasUrl returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) HasUrl() bool { + if o != nil && o.Url.IsSet() { + return true + } + + return false +} + +// SetUrl gets a reference to the given NullableString and assigns it to the Url field. +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) SetUrl(v string) { + o.Url.Set(&v) +} + +// SetUrlNil sets the value for Url to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) SetUrlNil() { + o.Url.Set(nil) +} + +// UnsetUrl ensures that no value is present for Url, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringCRLTestRequest) UnsetUrl() { + o.Url.Unset() +} + +func (o CSSCMSDataModelModelsMonitoringCRLTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMonitoringCRLTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Url.IsSet() { + toSerialize["Url"] = o.Url.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMonitoringCRLTestRequest struct { + value *CSSCMSDataModelModelsMonitoringCRLTestRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) Get() *CSSCMSDataModelModelsMonitoringCRLTestRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) Set(val *CSSCMSDataModelModelsMonitoringCRLTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMonitoringCRLTestRequest(val *CSSCMSDataModelModelsMonitoringCRLTestRequest) *NullableCSSCMSDataModelModelsMonitoringCRLTestRequest { + return &NullableCSSCMSDataModelModelsMonitoringCRLTestRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_response.go new file mode 100644 index 0000000..f75c25d --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_crl_test_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMonitoringCRLTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMonitoringCRLTestResponse{} + +// CSSCMSDataModelModelsMonitoringCRLTestResponse struct for CSSCMSDataModelModelsMonitoringCRLTestResponse +type CSSCMSDataModelModelsMonitoringCRLTestResponse struct { + Success *bool `json:"Success,omitempty"` + Message NullableString `json:"Message,omitempty"` +} + +// NewCSSCMSDataModelModelsMonitoringCRLTestResponse instantiates a new CSSCMSDataModelModelsMonitoringCRLTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMonitoringCRLTestResponse() *CSSCMSDataModelModelsMonitoringCRLTestResponse { + this := CSSCMSDataModelModelsMonitoringCRLTestResponse{} + return &this +} + +// NewCSSCMSDataModelModelsMonitoringCRLTestResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringCRLTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMonitoringCRLTestResponseWithDefaults() *CSSCMSDataModelModelsMonitoringCRLTestResponse { + this := CSSCMSDataModelModelsMonitoringCRLTestResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetSuccess() bool { + if o == nil || isNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetSuccessOk() (*bool, bool) { + if o == nil || isNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringCRLTestResponse) UnsetMessage() { + o.Message.Unset() +} + +func (o CSSCMSDataModelModelsMonitoringCRLTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMonitoringCRLTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["Success"] = o.Success + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMonitoringCRLTestResponse struct { + value *CSSCMSDataModelModelsMonitoringCRLTestResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) Get() *CSSCMSDataModelModelsMonitoringCRLTestResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) Set(val *CSSCMSDataModelModelsMonitoringCRLTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMonitoringCRLTestResponse(val *CSSCMSDataModelModelsMonitoringCRLTestResponse) *NullableCSSCMSDataModelModelsMonitoringCRLTestResponse { + return &NullableCSSCMSDataModelModelsMonitoringCRLTestResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMonitoringCRLTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_request.go new file mode 100644 index 0000000..f82874c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_request.go @@ -0,0 +1,333 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMonitoringOCSPTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMonitoringOCSPTestRequest{} + +// CSSCMSDataModelModelsMonitoringOCSPTestRequest struct for CSSCMSDataModelModelsMonitoringOCSPTestRequest +type CSSCMSDataModelModelsMonitoringOCSPTestRequest struct { + AuthorityName NullableString `json:"AuthorityName,omitempty"` + AuthorityNameId NullableString `json:"AuthorityNameId,omitempty"` + AuthorityKeyId NullableString `json:"AuthorityKeyId,omitempty"` + SampleSerialNumber NullableString `json:"SampleSerialNumber,omitempty"` + Url NullableString `json:"Url,omitempty"` +} + +// NewCSSCMSDataModelModelsMonitoringOCSPTestRequest instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMonitoringOCSPTestRequest() *CSSCMSDataModelModelsMonitoringOCSPTestRequest { + this := CSSCMSDataModelModelsMonitoringOCSPTestRequest{} + return &this +} + +// NewCSSCMSDataModelModelsMonitoringOCSPTestRequestWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMonitoringOCSPTestRequestWithDefaults() *CSSCMSDataModelModelsMonitoringOCSPTestRequest { + this := CSSCMSDataModelModelsMonitoringOCSPTestRequest{} + return &this +} + +// GetAuthorityName returns the AuthorityName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityName() string { + if o == nil || isNil(o.AuthorityName.Get()) { + var ret string + return ret + } + return *o.AuthorityName.Get() +} + +// GetAuthorityNameOk returns a tuple with the AuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityName.Get(), o.AuthorityName.IsSet() +} + +// HasAuthorityName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityName() bool { + if o != nil && o.AuthorityName.IsSet() { + return true + } + + return false +} + +// SetAuthorityName gets a reference to the given NullableString and assigns it to the AuthorityName field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityName(v string) { + o.AuthorityName.Set(&v) +} + +// SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameNil() { + o.AuthorityName.Set(nil) +} + +// UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityName() { + o.AuthorityName.Unset() +} + +// GetAuthorityNameId returns the AuthorityNameId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameId() string { + if o == nil || isNil(o.AuthorityNameId.Get()) { + var ret string + return ret + } + return *o.AuthorityNameId.Get() +} + +// GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityNameIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityNameId.Get(), o.AuthorityNameId.IsSet() +} + +// HasAuthorityNameId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityNameId() bool { + if o != nil && o.AuthorityNameId.IsSet() { + return true + } + + return false +} + +// SetAuthorityNameId gets a reference to the given NullableString and assigns it to the AuthorityNameId field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameId(v string) { + o.AuthorityNameId.Set(&v) +} + +// SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityNameIdNil() { + o.AuthorityNameId.Set(nil) +} + +// UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityNameId() { + o.AuthorityNameId.Unset() +} + +// GetAuthorityKeyId returns the AuthorityKeyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityKeyId() string { + if o == nil || isNil(o.AuthorityKeyId.Get()) { + var ret string + return ret + } + return *o.AuthorityKeyId.Get() +} + +// GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetAuthorityKeyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityKeyId.Get(), o.AuthorityKeyId.IsSet() +} + +// HasAuthorityKeyId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasAuthorityKeyId() bool { + if o != nil && o.AuthorityKeyId.IsSet() { + return true + } + + return false +} + +// SetAuthorityKeyId gets a reference to the given NullableString and assigns it to the AuthorityKeyId field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityKeyId(v string) { + o.AuthorityKeyId.Set(&v) +} + +// SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetAuthorityKeyIdNil() { + o.AuthorityKeyId.Set(nil) +} + +// UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetAuthorityKeyId() { + o.AuthorityKeyId.Unset() +} + +// GetSampleSerialNumber returns the SampleSerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetSampleSerialNumber() string { + if o == nil || isNil(o.SampleSerialNumber.Get()) { + var ret string + return ret + } + return *o.SampleSerialNumber.Get() +} + +// GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetSampleSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SampleSerialNumber.Get(), o.SampleSerialNumber.IsSet() +} + +// HasSampleSerialNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasSampleSerialNumber() bool { + if o != nil && o.SampleSerialNumber.IsSet() { + return true + } + + return false +} + +// SetSampleSerialNumber gets a reference to the given NullableString and assigns it to the SampleSerialNumber field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetSampleSerialNumber(v string) { + o.SampleSerialNumber.Set(&v) +} + +// SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetSampleSerialNumberNil() { + o.SampleSerialNumber.Set(nil) +} + +// UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetSampleSerialNumber() { + o.SampleSerialNumber.Unset() +} + +// GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetUrl() string { + if o == nil || isNil(o.Url.Get()) { + var ret string + return ret + } + return *o.Url.Get() +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Url.Get(), o.Url.IsSet() +} + +// HasUrl returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) HasUrl() bool { + if o != nil && o.Url.IsSet() { + return true + } + + return false +} + +// SetUrl gets a reference to the given NullableString and assigns it to the Url field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetUrl(v string) { + o.Url.Set(&v) +} + +// SetUrlNil sets the value for Url to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) SetUrlNil() { + o.Url.Set(nil) +} + +// UnsetUrl ensures that no value is present for Url, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestRequest) UnsetUrl() { + o.Url.Unset() +} + +func (o CSSCMSDataModelModelsMonitoringOCSPTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMonitoringOCSPTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.AuthorityName.IsSet() { + toSerialize["AuthorityName"] = o.AuthorityName.Get() + } + if o.AuthorityNameId.IsSet() { + toSerialize["AuthorityNameId"] = o.AuthorityNameId.Get() + } + if o.AuthorityKeyId.IsSet() { + toSerialize["AuthorityKeyId"] = o.AuthorityKeyId.Get() + } + if o.SampleSerialNumber.IsSet() { + toSerialize["SampleSerialNumber"] = o.SampleSerialNumber.Get() + } + if o.Url.IsSet() { + toSerialize["Url"] = o.Url.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest struct { + value *CSSCMSDataModelModelsMonitoringOCSPTestRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) Get() *CSSCMSDataModelModelsMonitoringOCSPTestRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) Set(val *CSSCMSDataModelModelsMonitoringOCSPTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMonitoringOCSPTestRequest(val *CSSCMSDataModelModelsMonitoringOCSPTestRequest) *NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest { + return &NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_response.go new file mode 100644 index 0000000..d21ab9f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_ocsp_test_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMonitoringOCSPTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMonitoringOCSPTestResponse{} + +// CSSCMSDataModelModelsMonitoringOCSPTestResponse struct for CSSCMSDataModelModelsMonitoringOCSPTestResponse +type CSSCMSDataModelModelsMonitoringOCSPTestResponse struct { + Success *bool `json:"Success,omitempty"` + Message NullableString `json:"Message,omitempty"` +} + +// NewCSSCMSDataModelModelsMonitoringOCSPTestResponse instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMonitoringOCSPTestResponse() *CSSCMSDataModelModelsMonitoringOCSPTestResponse { + this := CSSCMSDataModelModelsMonitoringOCSPTestResponse{} + return &this +} + +// NewCSSCMSDataModelModelsMonitoringOCSPTestResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringOCSPTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMonitoringOCSPTestResponseWithDefaults() *CSSCMSDataModelModelsMonitoringOCSPTestResponse { + this := CSSCMSDataModelModelsMonitoringOCSPTestResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetSuccess() bool { + if o == nil || isNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetSuccessOk() (*bool, bool) { + if o == nil || isNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringOCSPTestResponse) UnsetMessage() { + o.Message.Unset() +} + +func (o CSSCMSDataModelModelsMonitoringOCSPTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMonitoringOCSPTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["Success"] = o.Success + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse struct { + value *CSSCMSDataModelModelsMonitoringOCSPTestResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) Get() *CSSCMSDataModelModelsMonitoringOCSPTestResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) Set(val *CSSCMSDataModelModelsMonitoringOCSPTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMonitoringOCSPTestResponse(val *CSSCMSDataModelModelsMonitoringOCSPTestResponse) *NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse { + return &NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMonitoringOCSPTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_revocation_monitoring_alert_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_revocation_monitoring_alert_response.go new file mode 100644 index 0000000..a4f4a15 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_monitoring_revocation_monitoring_alert_response.go @@ -0,0 +1,229 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse{} + +// CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse struct for CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse +type CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse struct { + Subject NullableString `json:"Subject,omitempty"` + Message NullableString `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` +} + +// NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse instantiates a new CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse() *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse { + this := CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse{} + return &this +} + +// NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponseWithDefaults instantiates a new CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponseWithDefaults() *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse { + this := CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +func (o CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse struct { + value *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) Get() *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) Set(val *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse(val *CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) *NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse { + return &NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go new file mode 100644 index 0000000..49a5e2f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go @@ -0,0 +1,170 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair{} + +// CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair struct for CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair +type CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair struct { + JobId *string `json:"JobId,omitempty"` + OrchestratorId *string `json:"OrchestratorId,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair instantiates a new CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair() *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair { + this := CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair{} + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair { + this := CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair{} + return &this +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) SetJobId(v string) { + o.JobId = &v +} + +// GetOrchestratorId returns the OrchestratorId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorId() string { + if o == nil || isNil(o.OrchestratorId) { + var ret string + return ret + } + return *o.OrchestratorId +} + +// GetOrchestratorIdOk returns a tuple with the OrchestratorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorIdOk() (*string, bool) { + if o == nil || isNil(o.OrchestratorId) { + return nil, false + } + return o.OrchestratorId, true +} + +// HasOrchestratorId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) HasOrchestratorId() bool { + if o != nil && !isNil(o.OrchestratorId) { + return true + } + + return false +} + +// SetOrchestratorId gets a reference to the given string and assigns it to the OrchestratorId field. +func (o *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) SetOrchestratorId(v string) { + o.OrchestratorId = &v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.OrchestratorId) { + toSerialize["OrchestratorId"] = o.OrchestratorId + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair struct { + value *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) Get() *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) Set(val *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair(val *CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) *NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair { + return &NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job.go new file mode 100644 index 0000000..6629919 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job.go @@ -0,0 +1,358 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsJob type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsJob{} + +// CSSCMSDataModelModelsOrchestratorJobsJob struct for CSSCMSDataModelModelsOrchestratorJobsJob +type CSSCMSDataModelModelsOrchestratorJobsJob struct { + Id *string `json:"Id,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + Target NullableString `json:"Target,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + Requested NullableString `json:"Requested,omitempty"` + JobType NullableString `json:"JobType,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJob instantiates a new CSSCMSDataModelModelsOrchestratorJobsJob object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsJob() *CSSCMSDataModelModelsOrchestratorJobsJob { + this := CSSCMSDataModelModelsOrchestratorJobsJob{} + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJob object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsJobWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJob { + this := CSSCMSDataModelModelsOrchestratorJobsJob{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetId(v string) { + o.Id = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetTarget returns the Target field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetTarget() string { + if o == nil || isNil(o.Target.Get()) { + var ret string + return ret + } + return *o.Target.Get() +} + +// GetTargetOk returns a tuple with the Target field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetTargetOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Target.Get(), o.Target.IsSet() +} + +// HasTarget returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasTarget() bool { + if o != nil && o.Target.IsSet() { + return true + } + + return false +} + +// SetTarget gets a reference to the given NullableString and assigns it to the Target field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetTarget(v string) { + o.Target.Set(&v) +} + +// SetTargetNil sets the value for Target to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetTargetNil() { + o.Target.Set(nil) +} + +// UnsetTarget ensures that no value is present for Target, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetTarget() { + o.Target.Unset() +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetRequested returns the Requested field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetRequested() string { + if o == nil || isNil(o.Requested.Get()) { + var ret string + return ret + } + return *o.Requested.Get() +} + +// GetRequestedOk returns a tuple with the Requested field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetRequestedOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Requested.Get(), o.Requested.IsSet() +} + +// HasRequested returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasRequested() bool { + if o != nil && o.Requested.IsSet() { + return true + } + + return false +} + +// SetRequested gets a reference to the given NullableString and assigns it to the Requested field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetRequested(v string) { + o.Requested.Set(&v) +} + +// SetRequestedNil sets the value for Requested to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetRequestedNil() { + o.Requested.Set(nil) +} + +// UnsetRequested ensures that no value is present for Requested, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetRequested() { + o.Requested.Unset() +} + +// GetJobType returns the JobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetJobType() string { + if o == nil || isNil(o.JobType.Get()) { + var ret string + return ret + } + return *o.JobType.Get() +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) GetJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobType.Get(), o.JobType.IsSet() +} + +// HasJobType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) HasJobType() bool { + if o != nil && o.JobType.IsSet() { + return true + } + + return false +} + +// SetJobType gets a reference to the given NullableString and assigns it to the JobType field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetJobType(v string) { + o.JobType.Set(&v) +} + +// SetJobTypeNil sets the value for JobType to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) SetJobTypeNil() { + o.JobType.Set(nil) +} + +// UnsetJobType ensures that no value is present for JobType, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJob) UnsetJobType() { + o.JobType.Unset() +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJob) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJob) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.Target.IsSet() { + toSerialize["Target"] = o.Target.Get() + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.Requested.IsSet() { + toSerialize["Requested"] = o.Requested.Get() + } + if o.JobType.IsSet() { + toSerialize["JobType"] = o.JobType.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsJob struct { + value *CSSCMSDataModelModelsOrchestratorJobsJob + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJob) Get() *CSSCMSDataModelModelsOrchestratorJobsJob { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJob) Set(val *CSSCMSDataModelModelsOrchestratorJobsJob) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJob) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsJob(val *CSSCMSDataModelModelsOrchestratorJobsJob) *NullableCSSCMSDataModelModelsOrchestratorJobsJob { + return &NullableCSSCMSDataModelModelsOrchestratorJobsJob{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_create_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_create_request.go new file mode 100644 index 0000000..0ac4a77 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_create_request.go @@ -0,0 +1,209 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest{} + +// CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest struct for CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest +type CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest struct { + JobTypeName string `json:"JobTypeName"` + Description NullableString `json:"Description,omitempty"` + JobTypeFields []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest `json:"JobTypeFields,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(jobTypeName string) *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest{} + this.JobTypeName = jobTypeName + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest{} + return &this +} + +// GetJobTypeName returns the JobTypeName field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFields() []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + if o == nil { + var ret []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFieldsOk() ([]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) HasJobTypeFields() bool { + if o != nil && isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest and assigns it to the JobTypeFields field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeFields(v []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) { + o.JobTypeFields = v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["JobTypeName"] = o.JobTypeName + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.JobTypeFields != nil { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest struct { + value *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) Get() *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) Set(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest { + return &NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_field_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_field_request.go new file mode 100644 index 0000000..0a3f9a2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_field_request.go @@ -0,0 +1,235 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest{} + +// CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest struct for CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest +type CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest struct { + Name string `json:"Name"` + Type CSSCMSDataModelEnumsDataType `json:"Type"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest(name string, type_ CSSCMSDataModelEnumsDataType) *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest{} + this.Name = name + this.Type = type_ + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetName(v string) { + o.Name = v +} + +// GetType returns the Type field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetType() CSSCMSDataModelEnumsDataType { + if o == nil { + var ret CSSCMSDataModelEnumsDataType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetTypeOk() (*CSSCMSDataModelEnumsDataType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetType(v CSSCMSDataModelEnumsDataType) { + o.Type = v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) SetRequired(v bool) { + o.Required = &v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Type"] = o.Type + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest struct { + value *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) Get() *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) Set(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + return &NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_update_request.go new file mode 100644 index 0000000..03bf4ac --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_job_type_update_request.go @@ -0,0 +1,236 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest{} + +// CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest struct for CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest +type CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest struct { + Id string `json:"Id"` + JobTypeName string `json:"JobTypeName"` + Description NullableString `json:"Description,omitempty"` + JobTypeFields []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest `json:"JobTypeFields,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(id string, jobTypeName string) *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest{} + this.Id = id + this.JobTypeName = jobTypeName + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest { + this := CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetId(v string) { + o.Id = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFields() []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest { + if o == nil { + var ret []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFieldsOk() ([]CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) HasJobTypeFields() bool { + if o != nil && isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest and assigns it to the JobTypeFields field. +func (o *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeFields(v []CSSCMSDataModelModelsOrchestratorJobsJobTypeFieldRequest) { + o.JobTypeFields = v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["JobTypeName"] = o.JobTypeName + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.JobTypeFields != nil { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest struct { + value *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) Get() *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) Set(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest(val *CSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest { + return &NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsJobTypeUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_bulk_job_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_bulk_job_request.go new file mode 100644 index 0000000..a788149 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_bulk_job_request.go @@ -0,0 +1,225 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest{} + +// CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest struct for CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest +type CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest struct { + OrchestratorIds []string `json:"OrchestratorIds"` + JobTypeName string `json:"JobTypeName"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields map[string]string `json:"JobFields,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(orchestratorIds []string, jobTypeName string) *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest { + this := CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest{} + this.OrchestratorIds = orchestratorIds + this.JobTypeName = jobTypeName + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest { + this := CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest{} + return &this +} + +// GetOrchestratorIds returns the OrchestratorIds field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrchestratorIds +} + +// GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrchestratorIds, true +} + +// SetOrchestratorIds sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetOrchestratorIds(v []string) { + o.OrchestratorIds = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFields() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFieldsOk() (*map[string]string, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return &o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]string and assigns it to the JobFields field. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) SetJobFields(v map[string]string) { + o.JobFields = v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["OrchestratorIds"] = o.OrchestratorIds + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest struct { + value *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) Get() *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) Set(val *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest(val *CSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest { + return &NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleBulkJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_job_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_job_request.go new file mode 100644 index 0000000..1257d4f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_orchestrator_jobs_schedule_job_request.go @@ -0,0 +1,225 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest{} + +// CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest struct for CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest +type CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest struct { + AgentId string `json:"AgentId"` + JobTypeName string `json:"JobTypeName"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields map[string]string `json:"JobFields,omitempty"` +} + +// NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(agentId string, jobTypeName string) *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest { + this := CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest{} + this.AgentId = agentId + this.JobTypeName = jobTypeName + return &this +} + +// NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequestWithDefaults instantiates a new CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequestWithDefaults() *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest { + this := CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest{} + return &this +} + +// GetAgentId returns the AgentId field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetAgentId(v string) { + o.AgentId = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobFields() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) GetJobFieldsOk() (*map[string]string, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return &o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]string and assigns it to the JobFields field. +func (o *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) SetJobFields(v map[string]string) { + o.JobFields = v +} + +func (o CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AgentId"] = o.AgentId + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest struct { + value *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) Get() *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) Set(val *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest(val *CSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest { + return &NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsOrchestratorJobsScheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_pam_provider_type_param_value.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pam_provider_type_param_value.go new file mode 100644 index 0000000..8d4cbf3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pam_provider_type_param_value.go @@ -0,0 +1,383 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsPamProviderTypeParamValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPamProviderTypeParamValue{} + +// CSSCMSDataModelModelsPamProviderTypeParamValue struct for CSSCMSDataModelModelsPamProviderTypeParamValue +type CSSCMSDataModelModelsPamProviderTypeParamValue struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + ParameterId *int32 `json:"ParameterId,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + Provider *CSSCMSDataModelModelsProvider `json:"Provider,omitempty"` + ProviderTypeParam *CSSCMSDataModelModelsProviderTypeParam `json:"ProviderTypeParam,omitempty"` +} + +// NewCSSCMSDataModelModelsPamProviderTypeParamValue instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPamProviderTypeParamValue() *CSSCMSDataModelModelsPamProviderTypeParamValue { + this := CSSCMSDataModelModelsPamProviderTypeParamValue{} + return &this +} + +// NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults() *CSSCMSDataModelModelsPamProviderTypeParamValue { + this := CSSCMSDataModelModelsPamProviderTypeParamValue{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetValue() { + o.Value.Unset() +} + +// GetParameterId returns the ParameterId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetParameterId() int32 { + if o == nil || isNil(o.ParameterId) { + var ret int32 + return ret + } + return *o.ParameterId +} + +// GetParameterIdOk returns a tuple with the ParameterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetParameterIdOk() (*int32, bool) { + if o == nil || isNil(o.ParameterId) { + return nil, false + } + return o.ParameterId, true +} + +// HasParameterId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasParameterId() bool { + if o != nil && !isNil(o.ParameterId) { + return true + } + + return false +} + +// SetParameterId gets a reference to the given int32 and assigns it to the ParameterId field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetParameterId(v int32) { + o.ParameterId = &v +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProvider() CSSCMSDataModelModelsProvider { + if o == nil || isNil(o.Provider) { + var ret CSSCMSDataModelModelsProvider + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderOk() (*CSSCMSDataModelModelsProvider, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given CSSCMSDataModelModelsProvider and assigns it to the Provider field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProvider(v CSSCMSDataModelModelsProvider) { + o.Provider = &v +} + +// GetProviderTypeParam returns the ProviderTypeParam field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParam() CSSCMSDataModelModelsProviderTypeParam { + if o == nil || isNil(o.ProviderTypeParam) { + var ret CSSCMSDataModelModelsProviderTypeParam + return ret + } + return *o.ProviderTypeParam +} + +// GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParamOk() (*CSSCMSDataModelModelsProviderTypeParam, bool) { + if o == nil || isNil(o.ProviderTypeParam) { + return nil, false + } + return o.ProviderTypeParam, true +} + +// HasProviderTypeParam returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProviderTypeParam() bool { + if o != nil && !isNil(o.ProviderTypeParam) { + return true + } + + return false +} + +// SetProviderTypeParam gets a reference to the given CSSCMSDataModelModelsProviderTypeParam and assigns it to the ProviderTypeParam field. +func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProviderTypeParam(v CSSCMSDataModelModelsProviderTypeParam) { + o.ProviderTypeParam = &v +} + +func (o CSSCMSDataModelModelsPamProviderTypeParamValue) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPamProviderTypeParamValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if !isNil(o.ParameterId) { + toSerialize["ParameterId"] = o.ParameterId + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + if !isNil(o.ProviderTypeParam) { + toSerialize["ProviderTypeParam"] = o.ProviderTypeParam + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPamProviderTypeParamValue struct { + value *CSSCMSDataModelModelsPamProviderTypeParamValue + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPamProviderTypeParamValue) Get() *CSSCMSDataModelModelsPamProviderTypeParamValue { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPamProviderTypeParamValue) Set(val *CSSCMSDataModelModelsPamProviderTypeParamValue) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPamProviderTypeParamValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPamProviderTypeParamValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPamProviderTypeParamValue(val *CSSCMSDataModelModelsPamProviderTypeParamValue) *NullableCSSCMSDataModelModelsPamProviderTypeParamValue { + return &NullableCSSCMSDataModelModelsPamProviderTypeParamValue{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPamProviderTypeParamValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPamProviderTypeParamValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_pending_csr_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pending_csr_response.go new file mode 100644 index 0000000..c622477 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pending_csr_response.go @@ -0,0 +1,255 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsPendingCSRResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPendingCSRResponse{} + +// CSSCMSDataModelModelsPendingCSRResponse struct for CSSCMSDataModelModelsPendingCSRResponse +type CSSCMSDataModelModelsPendingCSRResponse struct { + Id *int32 `json:"Id,omitempty"` + CSR NullableString `json:"CSR,omitempty"` + RequestTime *time.Time `json:"RequestTime,omitempty"` + Subject []string `json:"Subject,omitempty"` +} + +// NewCSSCMSDataModelModelsPendingCSRResponse instantiates a new CSSCMSDataModelModelsPendingCSRResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPendingCSRResponse() *CSSCMSDataModelModelsPendingCSRResponse { + this := CSSCMSDataModelModelsPendingCSRResponse{} + return &this +} + +// NewCSSCMSDataModelModelsPendingCSRResponseWithDefaults instantiates a new CSSCMSDataModelModelsPendingCSRResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPendingCSRResponseWithDefaults() *CSSCMSDataModelModelsPendingCSRResponse { + this := CSSCMSDataModelModelsPendingCSRResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsPendingCSRResponse) SetId(v int32) { + o.Id = &v +} + +// GetCSR returns the CSR field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetCSR() string { + if o == nil || isNil(o.CSR.Get()) { + var ret string + return ret + } + return *o.CSR.Get() +} + +// GetCSROk returns a tuple with the CSR field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetCSROk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CSR.Get(), o.CSR.IsSet() +} + +// HasCSR returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) HasCSR() bool { + if o != nil && o.CSR.IsSet() { + return true + } + + return false +} + +// SetCSR gets a reference to the given NullableString and assigns it to the CSR field. +func (o *CSSCMSDataModelModelsPendingCSRResponse) SetCSR(v string) { + o.CSR.Set(&v) +} + +// SetCSRNil sets the value for CSR to be an explicit nil +func (o *CSSCMSDataModelModelsPendingCSRResponse) SetCSRNil() { + o.CSR.Set(nil) +} + +// UnsetCSR ensures that no value is present for CSR, not even an explicit nil +func (o *CSSCMSDataModelModelsPendingCSRResponse) UnsetCSR() { + o.CSR.Unset() +} + +// GetRequestTime returns the RequestTime field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetRequestTime() time.Time { + if o == nil || isNil(o.RequestTime) { + var ret time.Time + return ret + } + return *o.RequestTime +} + +// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetRequestTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTime) { + return nil, false + } + return o.RequestTime, true +} + +// HasRequestTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) HasRequestTime() bool { + if o != nil && !isNil(o.RequestTime) { + return true + } + + return false +} + +// SetRequestTime gets a reference to the given time.Time and assigns it to the RequestTime field. +func (o *CSSCMSDataModelModelsPendingCSRResponse) SetRequestTime(v time.Time) { + o.RequestTime = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetSubject() []string { + if o == nil { + var ret []string + return ret + } + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPendingCSRResponse) GetSubjectOk() ([]string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPendingCSRResponse) HasSubject() bool { + if o != nil && isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given []string and assigns it to the Subject field. +func (o *CSSCMSDataModelModelsPendingCSRResponse) SetSubject(v []string) { + o.Subject = v +} + +func (o CSSCMSDataModelModelsPendingCSRResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPendingCSRResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.CSR.IsSet() { + toSerialize["CSR"] = o.CSR.Get() + } + if !isNil(o.RequestTime) { + toSerialize["RequestTime"] = o.RequestTime + } + if o.Subject != nil { + toSerialize["Subject"] = o.Subject + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPendingCSRResponse struct { + value *CSSCMSDataModelModelsPendingCSRResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPendingCSRResponse) Get() *CSSCMSDataModelModelsPendingCSRResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPendingCSRResponse) Set(val *CSSCMSDataModelModelsPendingCSRResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPendingCSRResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPendingCSRResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPendingCSRResponse(val *CSSCMSDataModelModelsPendingCSRResponse) *NullableCSSCMSDataModelModelsPendingCSRResponse { + return &NullableCSSCMSDataModelModelsPendingCSRResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPendingCSRResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPendingCSRResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs10_certificate_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs10_certificate_response.go new file mode 100644 index 0000000..bc66cb3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs10_certificate_response.go @@ -0,0 +1,551 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsPkcs10CertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPkcs10CertificateResponse{} + +// CSSCMSDataModelModelsPkcs10CertificateResponse struct for CSSCMSDataModelModelsPkcs10CertificateResponse +type CSSCMSDataModelModelsPkcs10CertificateResponse struct { + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + KeyfactorID *int32 `json:"KeyfactorID,omitempty"` + Certificates []string `json:"Certificates,omitempty"` + WorkflowInstanceId *string `json:"WorkflowInstanceId,omitempty"` + WorkflowReferenceId *int64 `json:"WorkflowReferenceId,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + RequestDisposition NullableString `json:"RequestDisposition,omitempty"` + DispositionMessage NullableString `json:"DispositionMessage,omitempty"` + EnrollmentContext map[string]string `json:"EnrollmentContext,omitempty"` +} + +// NewCSSCMSDataModelModelsPkcs10CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs10CertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPkcs10CertificateResponse() *CSSCMSDataModelModelsPkcs10CertificateResponse { + this := CSSCMSDataModelModelsPkcs10CertificateResponse{} + return &this +} + +// NewCSSCMSDataModelModelsPkcs10CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs10CertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPkcs10CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs10CertificateResponse { + this := CSSCMSDataModelModelsPkcs10CertificateResponse{} + return &this +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetKeyfactorID returns the KeyfactorID field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorID() int32 { + if o == nil || isNil(o.KeyfactorID) { + var ret int32 + return ret + } + return *o.KeyfactorID +} + +// GetKeyfactorIDOk returns a tuple with the KeyfactorID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorIDOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorID) { + return nil, false + } + return o.KeyfactorID, true +} + +// HasKeyfactorID returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasKeyfactorID() bool { + if o != nil && !isNil(o.KeyfactorID) { + return true + } + + return false +} + +// SetKeyfactorID gets a reference to the given int32 and assigns it to the KeyfactorID field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetKeyfactorID(v int32) { + o.KeyfactorID = &v +} + +// GetCertificates returns the Certificates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetCertificates() []string { + if o == nil { + var ret []string + return ret + } + return o.Certificates +} + +// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetCertificatesOk() ([]string, bool) { + if o == nil || isNil(o.Certificates) { + return nil, false + } + return o.Certificates, true +} + +// HasCertificates returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasCertificates() bool { + if o != nil && isNil(o.Certificates) { + return true + } + + return false +} + +// SetCertificates gets a reference to the given []string and assigns it to the Certificates field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetCertificates(v []string) { + o.Certificates = v +} + +// GetWorkflowInstanceId returns the WorkflowInstanceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowInstanceId() string { + if o == nil || isNil(o.WorkflowInstanceId) { + var ret string + return ret + } + return *o.WorkflowInstanceId +} + +// GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool) { + if o == nil || isNil(o.WorkflowInstanceId) { + return nil, false + } + return o.WorkflowInstanceId, true +} + +// HasWorkflowInstanceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasWorkflowInstanceId() bool { + if o != nil && !isNil(o.WorkflowInstanceId) { + return true + } + + return false +} + +// SetWorkflowInstanceId gets a reference to the given string and assigns it to the WorkflowInstanceId field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetWorkflowInstanceId(v string) { + o.WorkflowInstanceId = &v +} + +// GetWorkflowReferenceId returns the WorkflowReferenceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowReferenceId() int64 { + if o == nil || isNil(o.WorkflowReferenceId) { + var ret int64 + return ret + } + return *o.WorkflowReferenceId +} + +// GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.WorkflowReferenceId) { + return nil, false + } + return o.WorkflowReferenceId, true +} + +// HasWorkflowReferenceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasWorkflowReferenceId() bool { + if o != nil && !isNil(o.WorkflowReferenceId) { + return true + } + + return false +} + +// SetWorkflowReferenceId gets a reference to the given int64 and assigns it to the WorkflowReferenceId field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetWorkflowReferenceId(v int64) { + o.WorkflowReferenceId = &v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition.Get()) { + var ret string + return ret + } + return *o.RequestDisposition.Get() +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestDisposition.Get(), o.RequestDisposition.IsSet() +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasRequestDisposition() bool { + if o != nil && o.RequestDisposition.IsSet() { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given NullableString and assigns it to the RequestDisposition field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetRequestDisposition(v string) { + o.RequestDisposition.Set(&v) +} + +// SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetRequestDispositionNil() { + o.RequestDisposition.Set(nil) +} + +// UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetRequestDisposition() { + o.RequestDisposition.Unset() +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage.Get()) { + var ret string + return ret + } + return *o.DispositionMessage.Get() +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DispositionMessage.Get(), o.DispositionMessage.IsSet() +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasDispositionMessage() bool { + if o != nil && o.DispositionMessage.IsSet() { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given NullableString and assigns it to the DispositionMessage field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetDispositionMessage(v string) { + o.DispositionMessage.Set(&v) +} + +// SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetDispositionMessageNil() { + o.DispositionMessage.Set(nil) +} + +// UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) UnsetDispositionMessage() { + o.DispositionMessage.Unset() +} + +// GetEnrollmentContext returns the EnrollmentContext field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetEnrollmentContext() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.EnrollmentContext +} + +// GetEnrollmentContextOk returns a tuple with the EnrollmentContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool) { + if o == nil || isNil(o.EnrollmentContext) { + return nil, false + } + return &o.EnrollmentContext, true +} + +// HasEnrollmentContext returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) HasEnrollmentContext() bool { + if o != nil && isNil(o.EnrollmentContext) { + return true + } + + return false +} + +// SetEnrollmentContext gets a reference to the given map[string]string and assigns it to the EnrollmentContext field. +func (o *CSSCMSDataModelModelsPkcs10CertificateResponse) SetEnrollmentContext(v map[string]string) { + o.EnrollmentContext = v +} + +func (o CSSCMSDataModelModelsPkcs10CertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPkcs10CertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.KeyfactorID) { + toSerialize["KeyfactorID"] = o.KeyfactorID + } + if o.Certificates != nil { + toSerialize["Certificates"] = o.Certificates + } + if !isNil(o.WorkflowInstanceId) { + toSerialize["WorkflowInstanceId"] = o.WorkflowInstanceId + } + if !isNil(o.WorkflowReferenceId) { + toSerialize["WorkflowReferenceId"] = o.WorkflowReferenceId + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if o.RequestDisposition.IsSet() { + toSerialize["RequestDisposition"] = o.RequestDisposition.Get() + } + if o.DispositionMessage.IsSet() { + toSerialize["DispositionMessage"] = o.DispositionMessage.Get() + } + if o.EnrollmentContext != nil { + toSerialize["EnrollmentContext"] = o.EnrollmentContext + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPkcs10CertificateResponse struct { + value *CSSCMSDataModelModelsPkcs10CertificateResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPkcs10CertificateResponse) Get() *CSSCMSDataModelModelsPkcs10CertificateResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPkcs10CertificateResponse) Set(val *CSSCMSDataModelModelsPkcs10CertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPkcs10CertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPkcs10CertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPkcs10CertificateResponse(val *CSSCMSDataModelModelsPkcs10CertificateResponse) *NullableCSSCMSDataModelModelsPkcs10CertificateResponse { + return &NullableCSSCMSDataModelModelsPkcs10CertificateResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPkcs10CertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPkcs10CertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs12_certificate_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs12_certificate_response.go new file mode 100644 index 0000000..56c623b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pkcs12_certificate_response.go @@ -0,0 +1,645 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsPkcs12CertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPkcs12CertificateResponse{} + +// CSSCMSDataModelModelsPkcs12CertificateResponse struct for CSSCMSDataModelModelsPkcs12CertificateResponse +type CSSCMSDataModelModelsPkcs12CertificateResponse struct { + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + KeyfactorId *int32 `json:"KeyfactorId,omitempty"` + Pkcs12Blob NullableString `json:"Pkcs12Blob,omitempty"` + Password NullableString `json:"Password,omitempty"` + WorkflowInstanceId *string `json:"WorkflowInstanceId,omitempty"` + WorkflowReferenceId *int64 `json:"WorkflowReferenceId,omitempty"` + StoreIdsInvalidForRenewal []string `json:"StoreIdsInvalidForRenewal,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + RequestDisposition NullableString `json:"RequestDisposition,omitempty"` + DispositionMessage NullableString `json:"DispositionMessage,omitempty"` + EnrollmentContext map[string]string `json:"EnrollmentContext,omitempty"` +} + +// NewCSSCMSDataModelModelsPkcs12CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPkcs12CertificateResponse() *CSSCMSDataModelModelsPkcs12CertificateResponse { + this := CSSCMSDataModelModelsPkcs12CertificateResponse{} + return &this +} + +// NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs12CertificateResponse { + this := CSSCMSDataModelModelsPkcs12CertificateResponse{} + return &this +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetKeyfactorId returns the KeyfactorId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorId() int32 { + if o == nil || isNil(o.KeyfactorId) { + var ret int32 + return ret + } + return *o.KeyfactorId +} + +// GetKeyfactorIdOk returns a tuple with the KeyfactorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorId) { + return nil, false + } + return o.KeyfactorId, true +} + +// HasKeyfactorId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorId() bool { + if o != nil && !isNil(o.KeyfactorId) { + return true + } + + return false +} + +// SetKeyfactorId gets a reference to the given int32 and assigns it to the KeyfactorId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorId(v int32) { + o.KeyfactorId = &v +} + +// GetPkcs12Blob returns the Pkcs12Blob field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12Blob() string { + if o == nil || isNil(o.Pkcs12Blob.Get()) { + var ret string + return ret + } + return *o.Pkcs12Blob.Get() +} + +// GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Pkcs12Blob.Get(), o.Pkcs12Blob.IsSet() +} + +// HasPkcs12Blob returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPkcs12Blob() bool { + if o != nil && o.Pkcs12Blob.IsSet() { + return true + } + + return false +} + +// SetPkcs12Blob gets a reference to the given NullableString and assigns it to the Pkcs12Blob field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12Blob(v string) { + o.Pkcs12Blob.Set(&v) +} + +// SetPkcs12BlobNil sets the value for Pkcs12Blob to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12BlobNil() { + o.Pkcs12Blob.Set(nil) +} + +// UnsetPkcs12Blob ensures that no value is present for Pkcs12Blob, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPkcs12Blob() { + o.Pkcs12Blob.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPassword() { + o.Password.Unset() +} + +// GetWorkflowInstanceId returns the WorkflowInstanceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceId() string { + if o == nil || isNil(o.WorkflowInstanceId) { + var ret string + return ret + } + return *o.WorkflowInstanceId +} + +// GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool) { + if o == nil || isNil(o.WorkflowInstanceId) { + return nil, false + } + return o.WorkflowInstanceId, true +} + +// HasWorkflowInstanceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowInstanceId() bool { + if o != nil && !isNil(o.WorkflowInstanceId) { + return true + } + + return false +} + +// SetWorkflowInstanceId gets a reference to the given string and assigns it to the WorkflowInstanceId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowInstanceId(v string) { + o.WorkflowInstanceId = &v +} + +// GetWorkflowReferenceId returns the WorkflowReferenceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceId() int64 { + if o == nil || isNil(o.WorkflowReferenceId) { + var ret int64 + return ret + } + return *o.WorkflowReferenceId +} + +// GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.WorkflowReferenceId) { + return nil, false + } + return o.WorkflowReferenceId, true +} + +// HasWorkflowReferenceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowReferenceId() bool { + if o != nil && !isNil(o.WorkflowReferenceId) { + return true + } + + return false +} + +// SetWorkflowReferenceId gets a reference to the given int64 and assigns it to the WorkflowReferenceId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowReferenceId(v int64) { + o.WorkflowReferenceId = &v +} + +// GetStoreIdsInvalidForRenewal returns the StoreIdsInvalidForRenewal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewal() []string { + if o == nil { + var ret []string + return ret + } + return o.StoreIdsInvalidForRenewal +} + +// GetStoreIdsInvalidForRenewalOk returns a tuple with the StoreIdsInvalidForRenewal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewalOk() ([]string, bool) { + if o == nil || isNil(o.StoreIdsInvalidForRenewal) { + return nil, false + } + return o.StoreIdsInvalidForRenewal, true +} + +// HasStoreIdsInvalidForRenewal returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasStoreIdsInvalidForRenewal() bool { + if o != nil && isNil(o.StoreIdsInvalidForRenewal) { + return true + } + + return false +} + +// SetStoreIdsInvalidForRenewal gets a reference to the given []string and assigns it to the StoreIdsInvalidForRenewal field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewal(v []string) { + o.StoreIdsInvalidForRenewal = v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition.Get()) { + var ret string + return ret + } + return *o.RequestDisposition.Get() +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestDisposition.Get(), o.RequestDisposition.IsSet() +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasRequestDisposition() bool { + if o != nil && o.RequestDisposition.IsSet() { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given NullableString and assigns it to the RequestDisposition field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDisposition(v string) { + o.RequestDisposition.Set(&v) +} + +// SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDispositionNil() { + o.RequestDisposition.Set(nil) +} + +// UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetRequestDisposition() { + o.RequestDisposition.Unset() +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage.Get()) { + var ret string + return ret + } + return *o.DispositionMessage.Get() +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DispositionMessage.Get(), o.DispositionMessage.IsSet() +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasDispositionMessage() bool { + if o != nil && o.DispositionMessage.IsSet() { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given NullableString and assigns it to the DispositionMessage field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessage(v string) { + o.DispositionMessage.Set(&v) +} + +// SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessageNil() { + o.DispositionMessage.Set(nil) +} + +// UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetDispositionMessage() { + o.DispositionMessage.Unset() +} + +// GetEnrollmentContext returns the EnrollmentContext field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.EnrollmentContext +} + +// GetEnrollmentContextOk returns a tuple with the EnrollmentContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool) { + if o == nil || isNil(o.EnrollmentContext) { + return nil, false + } + return &o.EnrollmentContext, true +} + +// HasEnrollmentContext returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasEnrollmentContext() bool { + if o != nil && isNil(o.EnrollmentContext) { + return true + } + + return false +} + +// SetEnrollmentContext gets a reference to the given map[string]string and assigns it to the EnrollmentContext field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string) { + o.EnrollmentContext = v +} + +func (o CSSCMSDataModelModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPkcs12CertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.KeyfactorId) { + toSerialize["KeyfactorId"] = o.KeyfactorId + } + if o.Pkcs12Blob.IsSet() { + toSerialize["Pkcs12Blob"] = o.Pkcs12Blob.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if !isNil(o.WorkflowInstanceId) { + toSerialize["WorkflowInstanceId"] = o.WorkflowInstanceId + } + if !isNil(o.WorkflowReferenceId) { + toSerialize["WorkflowReferenceId"] = o.WorkflowReferenceId + } + if o.StoreIdsInvalidForRenewal != nil { + toSerialize["StoreIdsInvalidForRenewal"] = o.StoreIdsInvalidForRenewal + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if o.RequestDisposition.IsSet() { + toSerialize["RequestDisposition"] = o.RequestDisposition.Get() + } + if o.DispositionMessage.IsSet() { + toSerialize["DispositionMessage"] = o.DispositionMessage.Get() + } + if o.EnrollmentContext != nil { + toSerialize["EnrollmentContext"] = o.EnrollmentContext + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPkcs12CertificateResponse struct { + value *CSSCMSDataModelModelsPkcs12CertificateResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Get() *CSSCMSDataModelModelsPkcs12CertificateResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Set(val *CSSCMSDataModelModelsPkcs12CertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPkcs12CertificateResponse(val *CSSCMSDataModelModelsPkcs12CertificateResponse) *NullableCSSCMSDataModelModelsPkcs12CertificateResponse { + return &NullableCSSCMSDataModelModelsPkcs12CertificateResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_pki_certificate_operation.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pki_certificate_operation.go new file mode 100644 index 0000000..8b828f9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_pki_certificate_operation.go @@ -0,0 +1,370 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsPKICertificateOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPKICertificateOperation{} + +// CSSCMSDataModelModelsPKICertificateOperation struct for CSSCMSDataModelModelsPKICertificateOperation +type CSSCMSDataModelModelsPKICertificateOperation struct { + Id *int64 `json:"Id,omitempty"` + OperationStart NullableTime `json:"OperationStart,omitempty"` + OperationEnd NullableTime `json:"OperationEnd,omitempty"` + Username NullableString `json:"Username,omitempty"` + Comment NullableString `json:"Comment,omitempty"` + Action NullableString `json:"Action,omitempty"` +} + +// NewCSSCMSDataModelModelsPKICertificateOperation instantiates a new CSSCMSDataModelModelsPKICertificateOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPKICertificateOperation() *CSSCMSDataModelModelsPKICertificateOperation { + this := CSSCMSDataModelModelsPKICertificateOperation{} + return &this +} + +// NewCSSCMSDataModelModelsPKICertificateOperationWithDefaults instantiates a new CSSCMSDataModelModelsPKICertificateOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPKICertificateOperationWithDefaults() *CSSCMSDataModelModelsPKICertificateOperation { + this := CSSCMSDataModelModelsPKICertificateOperation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetId() int64 { + if o == nil || isNil(o.Id) { + var ret int64 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetIdOk() (*int64, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int64 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetId(v int64) { + o.Id = &v +} + +// GetOperationStart returns the OperationStart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationStart() time.Time { + if o == nil || isNil(o.OperationStart.Get()) { + var ret time.Time + return ret + } + return *o.OperationStart.Get() +} + +// GetOperationStartOk returns a tuple with the OperationStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationStartOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.OperationStart.Get(), o.OperationStart.IsSet() +} + +// HasOperationStart returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasOperationStart() bool { + if o != nil && o.OperationStart.IsSet() { + return true + } + + return false +} + +// SetOperationStart gets a reference to the given NullableTime and assigns it to the OperationStart field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationStart(v time.Time) { + o.OperationStart.Set(&v) +} + +// SetOperationStartNil sets the value for OperationStart to be an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationStartNil() { + o.OperationStart.Set(nil) +} + +// UnsetOperationStart ensures that no value is present for OperationStart, not even an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetOperationStart() { + o.OperationStart.Unset() +} + +// GetOperationEnd returns the OperationEnd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationEnd() time.Time { + if o == nil || isNil(o.OperationEnd.Get()) { + var ret time.Time + return ret + } + return *o.OperationEnd.Get() +} + +// GetOperationEndOk returns a tuple with the OperationEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetOperationEndOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.OperationEnd.Get(), o.OperationEnd.IsSet() +} + +// HasOperationEnd returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasOperationEnd() bool { + if o != nil && o.OperationEnd.IsSet() { + return true + } + + return false +} + +// SetOperationEnd gets a reference to the given NullableTime and assigns it to the OperationEnd field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationEnd(v time.Time) { + o.OperationEnd.Set(&v) +} + +// SetOperationEndNil sets the value for OperationEnd to be an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetOperationEndNil() { + o.OperationEnd.Set(nil) +} + +// UnsetOperationEnd ensures that no value is present for OperationEnd, not even an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetOperationEnd() { + o.OperationEnd.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetUsername() { + o.Username.Unset() +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetComment() { + o.Comment.Unset() +} + +// GetAction returns the Action field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetAction() string { + if o == nil || isNil(o.Action.Get()) { + var ret string + return ret + } + return *o.Action.Get() +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPKICertificateOperation) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Action.Get(), o.Action.IsSet() +} + +// HasAction returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPKICertificateOperation) HasAction() bool { + if o != nil && o.Action.IsSet() { + return true + } + + return false +} + +// SetAction gets a reference to the given NullableString and assigns it to the Action field. +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetAction(v string) { + o.Action.Set(&v) +} + +// SetActionNil sets the value for Action to be an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) SetActionNil() { + o.Action.Set(nil) +} + +// UnsetAction ensures that no value is present for Action, not even an explicit nil +func (o *CSSCMSDataModelModelsPKICertificateOperation) UnsetAction() { + o.Action.Unset() +} + +func (o CSSCMSDataModelModelsPKICertificateOperation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPKICertificateOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.OperationStart.IsSet() { + toSerialize["OperationStart"] = o.OperationStart.Get() + } + if o.OperationEnd.IsSet() { + toSerialize["OperationEnd"] = o.OperationEnd.Get() + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + if o.Action.IsSet() { + toSerialize["Action"] = o.Action.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPKICertificateOperation struct { + value *CSSCMSDataModelModelsPKICertificateOperation + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPKICertificateOperation) Get() *CSSCMSDataModelModelsPKICertificateOperation { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPKICertificateOperation) Set(val *CSSCMSDataModelModelsPKICertificateOperation) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPKICertificateOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPKICertificateOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPKICertificateOperation(val *CSSCMSDataModelModelsPKICertificateOperation) *NullableCSSCMSDataModelModelsPKICertificateOperation { + return &NullableCSSCMSDataModelModelsPKICertificateOperation{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPKICertificateOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPKICertificateOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider.go new file mode 100644 index 0000000..f6646f1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider.go @@ -0,0 +1,412 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsProvider{} + +// CSSCMSDataModelModelsProvider struct for CSSCMSDataModelModelsProvider +type CSSCMSDataModelModelsProvider struct { + Id *int32 `json:"Id,omitempty"` + Name string `json:"Name"` + Area *int32 `json:"Area,omitempty"` + ProviderType CSSCMSDataModelModelsProviderType `json:"ProviderType"` + ProviderTypeParamValues []CSSCMSDataModelModelsPamProviderTypeParamValue `json:"ProviderTypeParamValues,omitempty"` + SecuredAreaId NullableInt32 `json:"SecuredAreaId,omitempty"` + Remote *bool `json:"Remote,omitempty"` + IsInUse *bool `json:"IsInUse,omitempty"` + IsLocalDB *bool `json:"IsLocalDB,omitempty"` +} + +// NewCSSCMSDataModelModelsProvider instantiates a new CSSCMSDataModelModelsProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsProvider(name string, providerType CSSCMSDataModelModelsProviderType) *CSSCMSDataModelModelsProvider { + this := CSSCMSDataModelModelsProvider{} + this.Name = name + this.ProviderType = providerType + return &this +} + +// NewCSSCMSDataModelModelsProviderWithDefaults instantiates a new CSSCMSDataModelModelsProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsProviderWithDefaults() *CSSCMSDataModelModelsProvider { + this := CSSCMSDataModelModelsProvider{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProvider) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsProvider) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value +func (o *CSSCMSDataModelModelsProvider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CSSCMSDataModelModelsProvider) SetName(v string) { + o.Name = v +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProvider) GetArea() int32 { + if o == nil || isNil(o.Area) { + var ret int32 + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetAreaOk() (*int32, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given int32 and assigns it to the Area field. +func (o *CSSCMSDataModelModelsProvider) SetArea(v int32) { + o.Area = &v +} + +// GetProviderType returns the ProviderType field value +func (o *CSSCMSDataModelModelsProvider) GetProviderType() CSSCMSDataModelModelsProviderType { + if o == nil { + var ret CSSCMSDataModelModelsProviderType + return ret + } + + return o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool) { + if o == nil { + return nil, false + } + return &o.ProviderType, true +} + +// SetProviderType sets field value +func (o *CSSCMSDataModelModelsProvider) SetProviderType(v CSSCMSDataModelModelsProviderType) { + o.ProviderType = v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValues() []CSSCMSDataModelModelsPamProviderTypeParamValue { + if o == nil { + var ret []CSSCMSDataModelModelsPamProviderTypeParamValue + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValuesOk() ([]CSSCMSDataModelModelsPamProviderTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []CSSCMSDataModelModelsPamProviderTypeParamValue and assigns it to the ProviderTypeParamValues field. +func (o *CSSCMSDataModelModelsProvider) SetProviderTypeParamValues(v []CSSCMSDataModelModelsPamProviderTypeParamValue) { + o.ProviderTypeParamValues = v +} + +// GetSecuredAreaId returns the SecuredAreaId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaId() int32 { + if o == nil || isNil(o.SecuredAreaId.Get()) { + var ret int32 + return ret + } + return *o.SecuredAreaId.Get() +} + +// GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SecuredAreaId.Get(), o.SecuredAreaId.IsSet() +} + +// HasSecuredAreaId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasSecuredAreaId() bool { + if o != nil && o.SecuredAreaId.IsSet() { + return true + } + + return false +} + +// SetSecuredAreaId gets a reference to the given NullableInt32 and assigns it to the SecuredAreaId field. +func (o *CSSCMSDataModelModelsProvider) SetSecuredAreaId(v int32) { + o.SecuredAreaId.Set(&v) +} + +// SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil +func (o *CSSCMSDataModelModelsProvider) SetSecuredAreaIdNil() { + o.SecuredAreaId.Set(nil) +} + +// UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +func (o *CSSCMSDataModelModelsProvider) UnsetSecuredAreaId() { + o.SecuredAreaId.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProvider) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *CSSCMSDataModelModelsProvider) SetRemote(v bool) { + o.Remote = &v +} + +// GetIsInUse returns the IsInUse field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProvider) GetIsInUse() bool { + if o == nil || isNil(o.IsInUse) { + var ret bool + return ret + } + return *o.IsInUse +} + +// GetIsInUseOk returns a tuple with the IsInUse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetIsInUseOk() (*bool, bool) { + if o == nil || isNil(o.IsInUse) { + return nil, false + } + return o.IsInUse, true +} + +// HasIsInUse returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasIsInUse() bool { + if o != nil && !isNil(o.IsInUse) { + return true + } + + return false +} + +// SetIsInUse gets a reference to the given bool and assigns it to the IsInUse field. +func (o *CSSCMSDataModelModelsProvider) SetIsInUse(v bool) { + o.IsInUse = &v +} + +// GetIsLocalDB returns the IsLocalDB field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProvider) GetIsLocalDB() bool { + if o == nil || isNil(o.IsLocalDB) { + var ret bool + return ret + } + return *o.IsLocalDB +} + +// GetIsLocalDBOk returns a tuple with the IsLocalDB field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProvider) GetIsLocalDBOk() (*bool, bool) { + if o == nil || isNil(o.IsLocalDB) { + return nil, false + } + return o.IsLocalDB, true +} + +// HasIsLocalDB returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProvider) HasIsLocalDB() bool { + if o != nil && !isNil(o.IsLocalDB) { + return true + } + + return false +} + +// SetIsLocalDB gets a reference to the given bool and assigns it to the IsLocalDB field. +func (o *CSSCMSDataModelModelsProvider) SetIsLocalDB(v bool) { + o.IsLocalDB = &v +} + +func (o CSSCMSDataModelModelsProvider) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Name"] = o.Name + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + toSerialize["ProviderType"] = o.ProviderType + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if o.SecuredAreaId.IsSet() { + toSerialize["SecuredAreaId"] = o.SecuredAreaId.Get() + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + // skip: IsInUse is readOnly + // skip: IsLocalDB is readOnly + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsProvider struct { + value *CSSCMSDataModelModelsProvider + isSet bool +} + +func (v NullableCSSCMSDataModelModelsProvider) Get() *CSSCMSDataModelModelsProvider { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsProvider) Set(val *CSSCMSDataModelModelsProvider) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsProvider(val *CSSCMSDataModelModelsProvider) *NullableCSSCMSDataModelModelsProvider { + return &NullableCSSCMSDataModelModelsProvider{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type.go new file mode 100644 index 0000000..9540b88 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsProviderType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsProviderType{} + +// CSSCMSDataModelModelsProviderType struct for CSSCMSDataModelModelsProviderType +type CSSCMSDataModelModelsProviderType struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + ProviderTypeParams []CSSCMSDataModelModelsProviderTypeParam `json:"ProviderTypeParams,omitempty"` +} + +// NewCSSCMSDataModelModelsProviderType instantiates a new CSSCMSDataModelModelsProviderType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsProviderType() *CSSCMSDataModelModelsProviderType { + this := CSSCMSDataModelModelsProviderType{} + return &this +} + +// NewCSSCMSDataModelModelsProviderTypeWithDefaults instantiates a new CSSCMSDataModelModelsProviderType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsProviderTypeWithDefaults() *CSSCMSDataModelModelsProviderType { + this := CSSCMSDataModelModelsProviderType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderType) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderType) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsProviderType) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderType) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsProviderType) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsProviderType) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderType) UnsetName() { + o.Name.Unset() +} + +// GetProviderTypeParams returns the ProviderTypeParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParams() []CSSCMSDataModelModelsProviderTypeParam { + if o == nil { + var ret []CSSCMSDataModelModelsProviderTypeParam + return ret + } + return o.ProviderTypeParams +} + +// GetProviderTypeParamsOk returns a tuple with the ProviderTypeParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParamsOk() ([]CSSCMSDataModelModelsProviderTypeParam, bool) { + if o == nil || isNil(o.ProviderTypeParams) { + return nil, false + } + return o.ProviderTypeParams, true +} + +// HasProviderTypeParams returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasProviderTypeParams() bool { + if o != nil && isNil(o.ProviderTypeParams) { + return true + } + + return false +} + +// SetProviderTypeParams gets a reference to the given []CSSCMSDataModelModelsProviderTypeParam and assigns it to the ProviderTypeParams field. +func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParams(v []CSSCMSDataModelModelsProviderTypeParam) { + o.ProviderTypeParams = v +} + +func (o CSSCMSDataModelModelsProviderType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsProviderType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.ProviderTypeParams != nil { + toSerialize["ProviderTypeParams"] = o.ProviderTypeParams + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsProviderType struct { + value *CSSCMSDataModelModelsProviderType + isSet bool +} + +func (v NullableCSSCMSDataModelModelsProviderType) Get() *CSSCMSDataModelModelsProviderType { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsProviderType) Set(val *CSSCMSDataModelModelsProviderType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsProviderType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsProviderType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsProviderType(val *CSSCMSDataModelModelsProviderType) *NullableCSSCMSDataModelModelsProviderType { + return &NullableCSSCMSDataModelModelsProviderType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsProviderType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsProviderType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type_param.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type_param.go new file mode 100644 index 0000000..39a08f8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_provider_type_param.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsProviderTypeParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsProviderTypeParam{} + +// CSSCMSDataModelModelsProviderTypeParam struct for CSSCMSDataModelModelsProviderTypeParam +type CSSCMSDataModelModelsProviderTypeParam struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` + ProviderType *CSSCMSDataModelModelsProviderType `json:"ProviderType,omitempty"` +} + +// NewCSSCMSDataModelModelsProviderTypeParam instantiates a new CSSCMSDataModelModelsProviderTypeParam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsProviderTypeParam() *CSSCMSDataModelModelsProviderTypeParam { + this := CSSCMSDataModelModelsProviderTypeParam{} + return &this +} + +// NewCSSCMSDataModelModelsProviderTypeParamWithDefaults instantiates a new CSSCMSDataModelModelsProviderTypeParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsProviderTypeParamWithDefaults() *CSSCMSDataModelModelsProviderTypeParam { + this := CSSCMSDataModelModelsProviderTypeParam{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderTypeParam) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderTypeParam) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderType() CSSCMSDataModelModelsProviderType { + if o == nil || isNil(o.ProviderType) { + var ret CSSCMSDataModelModelsProviderType + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool) { + if o == nil || isNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasProviderType() bool { + if o != nil && !isNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given CSSCMSDataModelModelsProviderType and assigns it to the ProviderType field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetProviderType(v CSSCMSDataModelModelsProviderType) { + o.ProviderType = &v +} + +func (o CSSCMSDataModelModelsProviderTypeParam) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsProviderTypeParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + if !isNil(o.ProviderType) { + toSerialize["ProviderType"] = o.ProviderType + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsProviderTypeParam struct { + value *CSSCMSDataModelModelsProviderTypeParam + isSet bool +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) Get() *CSSCMSDataModelModelsProviderTypeParam { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) Set(val *CSSCMSDataModelModelsProviderTypeParam) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsProviderTypeParam(val *CSSCMSDataModelModelsProviderTypeParam) *NullableCSSCMSDataModelModelsProviderTypeParam { + return &NullableCSSCMSDataModelModelsProviderTypeParam{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_recovery_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_recovery_response.go new file mode 100644 index 0000000..1bb8dd9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_recovery_response.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsRecoveryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsRecoveryResponse{} + +// CSSCMSDataModelModelsRecoveryResponse struct for CSSCMSDataModelModelsRecoveryResponse +type CSSCMSDataModelModelsRecoveryResponse struct { + PFX NullableString `json:"PFX,omitempty"` + FileName NullableString `json:"FileName,omitempty"` +} + +// NewCSSCMSDataModelModelsRecoveryResponse instantiates a new CSSCMSDataModelModelsRecoveryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsRecoveryResponse() *CSSCMSDataModelModelsRecoveryResponse { + this := CSSCMSDataModelModelsRecoveryResponse{} + return &this +} + +// NewCSSCMSDataModelModelsRecoveryResponseWithDefaults instantiates a new CSSCMSDataModelModelsRecoveryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsRecoveryResponseWithDefaults() *CSSCMSDataModelModelsRecoveryResponse { + this := CSSCMSDataModelModelsRecoveryResponse{} + return &this +} + +// GetPFX returns the PFX field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsRecoveryResponse) GetPFX() string { + if o == nil || isNil(o.PFX.Get()) { + var ret string + return ret + } + return *o.PFX.Get() +} + +// GetPFXOk returns a tuple with the PFX field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsRecoveryResponse) GetPFXOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PFX.Get(), o.PFX.IsSet() +} + +// HasPFX returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsRecoveryResponse) HasPFX() bool { + if o != nil && o.PFX.IsSet() { + return true + } + + return false +} + +// SetPFX gets a reference to the given NullableString and assigns it to the PFX field. +func (o *CSSCMSDataModelModelsRecoveryResponse) SetPFX(v string) { + o.PFX.Set(&v) +} + +// SetPFXNil sets the value for PFX to be an explicit nil +func (o *CSSCMSDataModelModelsRecoveryResponse) SetPFXNil() { + o.PFX.Set(nil) +} + +// UnsetPFX ensures that no value is present for PFX, not even an explicit nil +func (o *CSSCMSDataModelModelsRecoveryResponse) UnsetPFX() { + o.PFX.Unset() +} + +// GetFileName returns the FileName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsRecoveryResponse) GetFileName() string { + if o == nil || isNil(o.FileName.Get()) { + var ret string + return ret + } + return *o.FileName.Get() +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsRecoveryResponse) GetFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FileName.Get(), o.FileName.IsSet() +} + +// HasFileName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsRecoveryResponse) HasFileName() bool { + if o != nil && o.FileName.IsSet() { + return true + } + + return false +} + +// SetFileName gets a reference to the given NullableString and assigns it to the FileName field. +func (o *CSSCMSDataModelModelsRecoveryResponse) SetFileName(v string) { + o.FileName.Set(&v) +} + +// SetFileNameNil sets the value for FileName to be an explicit nil +func (o *CSSCMSDataModelModelsRecoveryResponse) SetFileNameNil() { + o.FileName.Set(nil) +} + +// UnsetFileName ensures that no value is present for FileName, not even an explicit nil +func (o *CSSCMSDataModelModelsRecoveryResponse) UnsetFileName() { + o.FileName.Unset() +} + +func (o CSSCMSDataModelModelsRecoveryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsRecoveryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.PFX.IsSet() { + toSerialize["PFX"] = o.PFX.Get() + } + if o.FileName.IsSet() { + toSerialize["FileName"] = o.FileName.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsRecoveryResponse struct { + value *CSSCMSDataModelModelsRecoveryResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsRecoveryResponse) Get() *CSSCMSDataModelModelsRecoveryResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsRecoveryResponse) Set(val *CSSCMSDataModelModelsRecoveryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsRecoveryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsRecoveryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsRecoveryResponse(val *CSSCMSDataModelModelsRecoveryResponse) *NullableCSSCMSDataModelModelsRecoveryResponse { + return &NullableCSSCMSDataModelModelsRecoveryResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsRecoveryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsRecoveryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_reenrollment_status.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_reenrollment_status.go new file mode 100644 index 0000000..e599a50 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_reenrollment_status.go @@ -0,0 +1,348 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReenrollmentStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReenrollmentStatus{} + +// CSSCMSDataModelModelsReenrollmentStatus struct for CSSCMSDataModelModelsReenrollmentStatus +type CSSCMSDataModelModelsReenrollmentStatus struct { + Data *bool `json:"Data,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + Message NullableString `json:"Message,omitempty"` + JobProperties NullableString `json:"JobProperties,omitempty"` + CustomAliasAllowed *int32 `json:"CustomAliasAllowed,omitempty"` + EntryParameters []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` +} + +// NewCSSCMSDataModelModelsReenrollmentStatus instantiates a new CSSCMSDataModelModelsReenrollmentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReenrollmentStatus() *CSSCMSDataModelModelsReenrollmentStatus { + this := CSSCMSDataModelModelsReenrollmentStatus{} + return &this +} + +// NewCSSCMSDataModelModelsReenrollmentStatusWithDefaults instantiates a new CSSCMSDataModelModelsReenrollmentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReenrollmentStatusWithDefaults() *CSSCMSDataModelModelsReenrollmentStatus { + this := CSSCMSDataModelModelsReenrollmentStatus{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetData() bool { + if o == nil || isNil(o.Data) { + var ret bool + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetDataOk() (*bool, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasData() bool { + if o != nil && !isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given bool and assigns it to the Data field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetData(v bool) { + o.Data = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetMessage() { + o.Message.Unset() +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetJobProperties() string { + if o == nil || isNil(o.JobProperties.Get()) { + var ret string + return ret + } + return *o.JobProperties.Get() +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetJobPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobProperties.Get(), o.JobProperties.IsSet() +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasJobProperties() bool { + if o != nil && o.JobProperties.IsSet() { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given NullableString and assigns it to the JobProperties field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetJobProperties(v string) { + o.JobProperties.Set(&v) +} + +// SetJobPropertiesNil sets the value for JobProperties to be an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetJobPropertiesNil() { + o.JobProperties.Set(nil) +} + +// UnsetJobProperties ensures that no value is present for JobProperties, not even an explicit nil +func (o *CSSCMSDataModelModelsReenrollmentStatus) UnsetJobProperties() { + o.JobProperties.Unset() +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetCustomAliasAllowed() int32 { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret int32 + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetCustomAliasAllowedOk() (*int32, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given int32 and assigns it to the CustomAliasAllowed field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetCustomAliasAllowed(v int32) { + o.CustomAliasAllowed = &v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetEntryParameters() []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil { + var ret []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReenrollmentStatus) GetEntryParametersOk() ([]CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReenrollmentStatus) HasEntryParameters() bool { + if o != nil && isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *CSSCMSDataModelModelsReenrollmentStatus) SetEntryParameters(v []CSSCMSDataModelModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o CSSCMSDataModelModelsReenrollmentStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReenrollmentStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Data) { + toSerialize["Data"] = o.Data + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.JobProperties.IsSet() { + toSerialize["JobProperties"] = o.JobProperties.Get() + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if o.EntryParameters != nil { + toSerialize["EntryParameters"] = o.EntryParameters + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReenrollmentStatus struct { + value *CSSCMSDataModelModelsReenrollmentStatus + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReenrollmentStatus) Get() *CSSCMSDataModelModelsReenrollmentStatus { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReenrollmentStatus) Set(val *CSSCMSDataModelModelsReenrollmentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReenrollmentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReenrollmentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReenrollmentStatus(val *CSSCMSDataModelModelsReenrollmentStatus) *NullableCSSCMSDataModelModelsReenrollmentStatus { + return &NullableCSSCMSDataModelModelsReenrollmentStatus{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReenrollmentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReenrollmentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_report.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report.go new file mode 100644 index 0000000..422fa2a --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report.go @@ -0,0 +1,718 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReport type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReport{} + +// CSSCMSDataModelModelsReport struct for CSSCMSDataModelModelsReport +type CSSCMSDataModelModelsReport struct { + Id *int32 `json:"Id,omitempty"` + Scheduled NullableInt32 `json:"Scheduled,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + ReportPath NullableString `json:"ReportPath,omitempty"` + VersionNumber NullableString `json:"VersionNumber,omitempty"` + Categories NullableString `json:"Categories,omitempty"` + ShortName NullableString `json:"ShortName,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + RemoveDuplicates *bool `json:"RemoveDuplicates,omitempty"` + UsesCollection *bool `json:"UsesCollection,omitempty"` + ReportParameter []CSSCMSDataModelModelsReportParameters `json:"ReportParameter,omitempty"` + Schedules []CSSCMSDataModelModelsReportSchedule `json:"Schedules,omitempty"` + AcceptedScheduleFormats []string `json:"AcceptedScheduleFormats,omitempty"` +} + +// NewCSSCMSDataModelModelsReport instantiates a new CSSCMSDataModelModelsReport object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReport() *CSSCMSDataModelModelsReport { + this := CSSCMSDataModelModelsReport{} + return &this +} + +// NewCSSCMSDataModelModelsReportWithDefaults instantiates a new CSSCMSDataModelModelsReport object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReportWithDefaults() *CSSCMSDataModelModelsReport { + this := CSSCMSDataModelModelsReport{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReport) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReport) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsReport) SetId(v int32) { + o.Id = &v +} + +// GetScheduled returns the Scheduled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetScheduled() int32 { + if o == nil || isNil(o.Scheduled.Get()) { + var ret int32 + return ret + } + return *o.Scheduled.Get() +} + +// GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetScheduledOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Scheduled.Get(), o.Scheduled.IsSet() +} + +// HasScheduled returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasScheduled() bool { + if o != nil && o.Scheduled.IsSet() { + return true + } + + return false +} + +// SetScheduled gets a reference to the given NullableInt32 and assigns it to the Scheduled field. +func (o *CSSCMSDataModelModelsReport) SetScheduled(v int32) { + o.Scheduled.Set(&v) +} + +// SetScheduledNil sets the value for Scheduled to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetScheduledNil() { + o.Scheduled.Set(nil) +} + +// UnsetScheduled ensures that no value is present for Scheduled, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetScheduled() { + o.Scheduled.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsReport) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsReport) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetDescription() { + o.Description.Unset() +} + +// GetReportPath returns the ReportPath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetReportPath() string { + if o == nil || isNil(o.ReportPath.Get()) { + var ret string + return ret + } + return *o.ReportPath.Get() +} + +// GetReportPathOk returns a tuple with the ReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetReportPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReportPath.Get(), o.ReportPath.IsSet() +} + +// HasReportPath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasReportPath() bool { + if o != nil && o.ReportPath.IsSet() { + return true + } + + return false +} + +// SetReportPath gets a reference to the given NullableString and assigns it to the ReportPath field. +func (o *CSSCMSDataModelModelsReport) SetReportPath(v string) { + o.ReportPath.Set(&v) +} + +// SetReportPathNil sets the value for ReportPath to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetReportPathNil() { + o.ReportPath.Set(nil) +} + +// UnsetReportPath ensures that no value is present for ReportPath, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetReportPath() { + o.ReportPath.Unset() +} + +// GetVersionNumber returns the VersionNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetVersionNumber() string { + if o == nil || isNil(o.VersionNumber.Get()) { + var ret string + return ret + } + return *o.VersionNumber.Get() +} + +// GetVersionNumberOk returns a tuple with the VersionNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetVersionNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.VersionNumber.Get(), o.VersionNumber.IsSet() +} + +// HasVersionNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasVersionNumber() bool { + if o != nil && o.VersionNumber.IsSet() { + return true + } + + return false +} + +// SetVersionNumber gets a reference to the given NullableString and assigns it to the VersionNumber field. +func (o *CSSCMSDataModelModelsReport) SetVersionNumber(v string) { + o.VersionNumber.Set(&v) +} + +// SetVersionNumberNil sets the value for VersionNumber to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetVersionNumberNil() { + o.VersionNumber.Set(nil) +} + +// UnsetVersionNumber ensures that no value is present for VersionNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetVersionNumber() { + o.VersionNumber.Unset() +} + +// GetCategories returns the Categories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetCategories() string { + if o == nil || isNil(o.Categories.Get()) { + var ret string + return ret + } + return *o.Categories.Get() +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetCategoriesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Categories.Get(), o.Categories.IsSet() +} + +// HasCategories returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasCategories() bool { + if o != nil && o.Categories.IsSet() { + return true + } + + return false +} + +// SetCategories gets a reference to the given NullableString and assigns it to the Categories field. +func (o *CSSCMSDataModelModelsReport) SetCategories(v string) { + o.Categories.Set(&v) +} + +// SetCategoriesNil sets the value for Categories to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetCategoriesNil() { + o.Categories.Set(nil) +} + +// UnsetCategories ensures that no value is present for Categories, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetCategories() { + o.Categories.Unset() +} + +// GetShortName returns the ShortName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetShortName() string { + if o == nil || isNil(o.ShortName.Get()) { + var ret string + return ret + } + return *o.ShortName.Get() +} + +// GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ShortName.Get(), o.ShortName.IsSet() +} + +// HasShortName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasShortName() bool { + if o != nil && o.ShortName.IsSet() { + return true + } + + return false +} + +// SetShortName gets a reference to the given NullableString and assigns it to the ShortName field. +func (o *CSSCMSDataModelModelsReport) SetShortName(v string) { + o.ShortName.Set(&v) +} + +// SetShortNameNil sets the value for ShortName to be an explicit nil +func (o *CSSCMSDataModelModelsReport) SetShortNameNil() { + o.ShortName.Set(nil) +} + +// UnsetShortName ensures that no value is present for ShortName, not even an explicit nil +func (o *CSSCMSDataModelModelsReport) UnsetShortName() { + o.ShortName.Unset() +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReport) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReport) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *CSSCMSDataModelModelsReport) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReport) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReport) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *CSSCMSDataModelModelsReport) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetRemoveDuplicates returns the RemoveDuplicates field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReport) GetRemoveDuplicates() bool { + if o == nil || isNil(o.RemoveDuplicates) { + var ret bool + return ret + } + return *o.RemoveDuplicates +} + +// GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReport) GetRemoveDuplicatesOk() (*bool, bool) { + if o == nil || isNil(o.RemoveDuplicates) { + return nil, false + } + return o.RemoveDuplicates, true +} + +// HasRemoveDuplicates returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasRemoveDuplicates() bool { + if o != nil && !isNil(o.RemoveDuplicates) { + return true + } + + return false +} + +// SetRemoveDuplicates gets a reference to the given bool and assigns it to the RemoveDuplicates field. +func (o *CSSCMSDataModelModelsReport) SetRemoveDuplicates(v bool) { + o.RemoveDuplicates = &v +} + +// GetUsesCollection returns the UsesCollection field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReport) GetUsesCollection() bool { + if o == nil || isNil(o.UsesCollection) { + var ret bool + return ret + } + return *o.UsesCollection +} + +// GetUsesCollectionOk returns a tuple with the UsesCollection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReport) GetUsesCollectionOk() (*bool, bool) { + if o == nil || isNil(o.UsesCollection) { + return nil, false + } + return o.UsesCollection, true +} + +// HasUsesCollection returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasUsesCollection() bool { + if o != nil && !isNil(o.UsesCollection) { + return true + } + + return false +} + +// SetUsesCollection gets a reference to the given bool and assigns it to the UsesCollection field. +func (o *CSSCMSDataModelModelsReport) SetUsesCollection(v bool) { + o.UsesCollection = &v +} + +// GetReportParameter returns the ReportParameter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetReportParameter() []CSSCMSDataModelModelsReportParameters { + if o == nil { + var ret []CSSCMSDataModelModelsReportParameters + return ret + } + return o.ReportParameter +} + +// GetReportParameterOk returns a tuple with the ReportParameter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetReportParameterOk() ([]CSSCMSDataModelModelsReportParameters, bool) { + if o == nil || isNil(o.ReportParameter) { + return nil, false + } + return o.ReportParameter, true +} + +// HasReportParameter returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasReportParameter() bool { + if o != nil && isNil(o.ReportParameter) { + return true + } + + return false +} + +// SetReportParameter gets a reference to the given []CSSCMSDataModelModelsReportParameters and assigns it to the ReportParameter field. +func (o *CSSCMSDataModelModelsReport) SetReportParameter(v []CSSCMSDataModelModelsReportParameters) { + o.ReportParameter = v +} + +// GetSchedules returns the Schedules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetSchedules() []CSSCMSDataModelModelsReportSchedule { + if o == nil { + var ret []CSSCMSDataModelModelsReportSchedule + return ret + } + return o.Schedules +} + +// GetSchedulesOk returns a tuple with the Schedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetSchedulesOk() ([]CSSCMSDataModelModelsReportSchedule, bool) { + if o == nil || isNil(o.Schedules) { + return nil, false + } + return o.Schedules, true +} + +// HasSchedules returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasSchedules() bool { + if o != nil && isNil(o.Schedules) { + return true + } + + return false +} + +// SetSchedules gets a reference to the given []CSSCMSDataModelModelsReportSchedule and assigns it to the Schedules field. +func (o *CSSCMSDataModelModelsReport) SetSchedules(v []CSSCMSDataModelModelsReportSchedule) { + o.Schedules = v +} + +// GetAcceptedScheduleFormats returns the AcceptedScheduleFormats field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReport) GetAcceptedScheduleFormats() []string { + if o == nil { + var ret []string + return ret + } + return o.AcceptedScheduleFormats +} + +// GetAcceptedScheduleFormatsOk returns a tuple with the AcceptedScheduleFormats field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReport) GetAcceptedScheduleFormatsOk() ([]string, bool) { + if o == nil || isNil(o.AcceptedScheduleFormats) { + return nil, false + } + return o.AcceptedScheduleFormats, true +} + +// HasAcceptedScheduleFormats returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReport) HasAcceptedScheduleFormats() bool { + if o != nil && isNil(o.AcceptedScheduleFormats) { + return true + } + + return false +} + +// SetAcceptedScheduleFormats gets a reference to the given []string and assigns it to the AcceptedScheduleFormats field. +func (o *CSSCMSDataModelModelsReport) SetAcceptedScheduleFormats(v []string) { + o.AcceptedScheduleFormats = v +} + +func (o CSSCMSDataModelModelsReport) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReport) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Scheduled.IsSet() { + toSerialize["Scheduled"] = o.Scheduled.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.ReportPath.IsSet() { + toSerialize["ReportPath"] = o.ReportPath.Get() + } + if o.VersionNumber.IsSet() { + toSerialize["VersionNumber"] = o.VersionNumber.Get() + } + if o.Categories.IsSet() { + toSerialize["Categories"] = o.Categories.Get() + } + if o.ShortName.IsSet() { + toSerialize["ShortName"] = o.ShortName.Get() + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.RemoveDuplicates) { + toSerialize["RemoveDuplicates"] = o.RemoveDuplicates + } + if !isNil(o.UsesCollection) { + toSerialize["UsesCollection"] = o.UsesCollection + } + if o.ReportParameter != nil { + toSerialize["ReportParameter"] = o.ReportParameter + } + if o.Schedules != nil { + toSerialize["Schedules"] = o.Schedules + } + if o.AcceptedScheduleFormats != nil { + toSerialize["AcceptedScheduleFormats"] = o.AcceptedScheduleFormats + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReport struct { + value *CSSCMSDataModelModelsReport + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReport) Get() *CSSCMSDataModelModelsReport { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReport) Set(val *CSSCMSDataModelModelsReport) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReport) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReport) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReport(val *CSSCMSDataModelModelsReport) *NullableCSSCMSDataModelModelsReport { + return &NullableCSSCMSDataModelModelsReport{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReport) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReport) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters.go new file mode 100644 index 0000000..a0fdd85 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters.go @@ -0,0 +1,430 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReportParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReportParameters{} + +// CSSCMSDataModelModelsReportParameters struct for CSSCMSDataModelModelsReportParameters +type CSSCMSDataModelModelsReportParameters struct { + Id *int32 `json:"Id,omitempty"` + ParameterName NullableString `json:"ParameterName,omitempty"` + ParameterType *CSSCMSCoreEnumsReportParameterType `json:"ParameterType,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + ParameterVisibility *CSSCMSCoreEnumsReportParameterVisibility `json:"ParameterVisibility,omitempty"` +} + +// NewCSSCMSDataModelModelsReportParameters instantiates a new CSSCMSDataModelModelsReportParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReportParameters() *CSSCMSDataModelModelsReportParameters { + this := CSSCMSDataModelModelsReportParameters{} + return &this +} + +// NewCSSCMSDataModelModelsReportParametersWithDefaults instantiates a new CSSCMSDataModelModelsReportParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReportParametersWithDefaults() *CSSCMSDataModelModelsReportParameters { + this := CSSCMSDataModelModelsReportParameters{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportParameters) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportParameters) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsReportParameters) SetId(v int32) { + o.Id = &v +} + +// GetParameterName returns the ParameterName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParameters) GetParameterName() string { + if o == nil || isNil(o.ParameterName.Get()) { + var ret string + return ret + } + return *o.ParameterName.Get() +} + +// GetParameterNameOk returns a tuple with the ParameterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParameters) GetParameterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParameterName.Get(), o.ParameterName.IsSet() +} + +// HasParameterName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasParameterName() bool { + if o != nil && o.ParameterName.IsSet() { + return true + } + + return false +} + +// SetParameterName gets a reference to the given NullableString and assigns it to the ParameterName field. +func (o *CSSCMSDataModelModelsReportParameters) SetParameterName(v string) { + o.ParameterName.Set(&v) +} + +// SetParameterNameNil sets the value for ParameterName to be an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) SetParameterNameNil() { + o.ParameterName.Set(nil) +} + +// UnsetParameterName ensures that no value is present for ParameterName, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) UnsetParameterName() { + o.ParameterName.Unset() +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportParameters) GetParameterType() CSSCMSCoreEnumsReportParameterType { + if o == nil || isNil(o.ParameterType) { + var ret CSSCMSCoreEnumsReportParameterType + return ret + } + return *o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportParameters) GetParameterTypeOk() (*CSSCMSCoreEnumsReportParameterType, bool) { + if o == nil || isNil(o.ParameterType) { + return nil, false + } + return o.ParameterType, true +} + +// HasParameterType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasParameterType() bool { + if o != nil && !isNil(o.ParameterType) { + return true + } + + return false +} + +// SetParameterType gets a reference to the given CSSCMSCoreEnumsReportParameterType and assigns it to the ParameterType field. +func (o *CSSCMSDataModelModelsReportParameters) SetParameterType(v CSSCMSCoreEnumsReportParameterType) { + o.ParameterType = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParameters) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParameters) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsReportParameters) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParameters) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParameters) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsReportParameters) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) UnsetDescription() { + o.Description.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParameters) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParameters) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsReportParameters) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParameters) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportParameters) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportParameters) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *CSSCMSDataModelModelsReportParameters) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +// GetParameterVisibility returns the ParameterVisibility field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportParameters) GetParameterVisibility() CSSCMSCoreEnumsReportParameterVisibility { + if o == nil || isNil(o.ParameterVisibility) { + var ret CSSCMSCoreEnumsReportParameterVisibility + return ret + } + return *o.ParameterVisibility +} + +// GetParameterVisibilityOk returns a tuple with the ParameterVisibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportParameters) GetParameterVisibilityOk() (*CSSCMSCoreEnumsReportParameterVisibility, bool) { + if o == nil || isNil(o.ParameterVisibility) { + return nil, false + } + return o.ParameterVisibility, true +} + +// HasParameterVisibility returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParameters) HasParameterVisibility() bool { + if o != nil && !isNil(o.ParameterVisibility) { + return true + } + + return false +} + +// SetParameterVisibility gets a reference to the given CSSCMSCoreEnumsReportParameterVisibility and assigns it to the ParameterVisibility field. +func (o *CSSCMSDataModelModelsReportParameters) SetParameterVisibility(v CSSCMSCoreEnumsReportParameterVisibility) { + o.ParameterVisibility = &v +} + +func (o CSSCMSDataModelModelsReportParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReportParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ParameterName.IsSet() { + toSerialize["ParameterName"] = o.ParameterName.Get() + } + if !isNil(o.ParameterType) { + toSerialize["ParameterType"] = o.ParameterType + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + if !isNil(o.ParameterVisibility) { + toSerialize["ParameterVisibility"] = o.ParameterVisibility + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReportParameters struct { + value *CSSCMSDataModelModelsReportParameters + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReportParameters) Get() *CSSCMSDataModelModelsReportParameters { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReportParameters) Set(val *CSSCMSDataModelModelsReportParameters) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReportParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReportParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReportParameters(val *CSSCMSDataModelModelsReportParameters) *NullableCSSCMSDataModelModelsReportParameters { + return &NullableCSSCMSDataModelModelsReportParameters{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReportParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReportParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters_request.go new file mode 100644 index 0000000..365f0f2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_parameters_request.go @@ -0,0 +1,275 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReportParametersRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReportParametersRequest{} + +// CSSCMSDataModelModelsReportParametersRequest struct for CSSCMSDataModelModelsReportParametersRequest +type CSSCMSDataModelModelsReportParametersRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` +} + +// NewCSSCMSDataModelModelsReportParametersRequest instantiates a new CSSCMSDataModelModelsReportParametersRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReportParametersRequest() *CSSCMSDataModelModelsReportParametersRequest { + this := CSSCMSDataModelModelsReportParametersRequest{} + return &this +} + +// NewCSSCMSDataModelModelsReportParametersRequestWithDefaults instantiates a new CSSCMSDataModelModelsReportParametersRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReportParametersRequestWithDefaults() *CSSCMSDataModelModelsReportParametersRequest { + this := CSSCMSDataModelModelsReportParametersRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportParametersRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportParametersRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParametersRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsReportParametersRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParametersRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParametersRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportParametersRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportParametersRequest) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsReportParametersRequest) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +func (o CSSCMSDataModelModelsReportParametersRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReportParametersRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReportParametersRequest struct { + value *CSSCMSDataModelModelsReportParametersRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReportParametersRequest) Get() *CSSCMSDataModelModelsReportParametersRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReportParametersRequest) Set(val *CSSCMSDataModelModelsReportParametersRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReportParametersRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReportParametersRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReportParametersRequest(val *CSSCMSDataModelModelsReportParametersRequest) *NullableCSSCMSDataModelModelsReportParametersRequest { + return &NullableCSSCMSDataModelModelsReportParametersRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReportParametersRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReportParametersRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_request_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_request_model.go new file mode 100644 index 0000000..d039f31 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_request_model.go @@ -0,0 +1,286 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReportRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReportRequestModel{} + +// CSSCMSDataModelModelsReportRequestModel struct for CSSCMSDataModelModelsReportRequestModel +type CSSCMSDataModelModelsReportRequestModel struct { + Id NullableInt32 `json:"Id,omitempty"` + InNavigator NullableBool `json:"InNavigator,omitempty"` + Favorite NullableBool `json:"Favorite,omitempty"` + RemoveDuplicates NullableBool `json:"RemoveDuplicates,omitempty"` +} + +// NewCSSCMSDataModelModelsReportRequestModel instantiates a new CSSCMSDataModelModelsReportRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReportRequestModel() *CSSCMSDataModelModelsReportRequestModel { + this := CSSCMSDataModelModelsReportRequestModel{} + return &this +} + +// NewCSSCMSDataModelModelsReportRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsReportRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReportRequestModelWithDefaults() *CSSCMSDataModelModelsReportRequestModel { + this := CSSCMSDataModelModelsReportRequestModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportRequestModel) GetId() int32 { + if o == nil || isNil(o.Id.Get()) { + var ret int32 + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportRequestModel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportRequestModel) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableInt32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsReportRequestModel) SetId(v int32) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) UnsetId() { + o.Id.Unset() +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportRequestModel) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator.Get()) { + var ret bool + return ret + } + return *o.InNavigator.Get() +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportRequestModel) GetInNavigatorOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.InNavigator.Get(), o.InNavigator.IsSet() +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportRequestModel) HasInNavigator() bool { + if o != nil && o.InNavigator.IsSet() { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given NullableBool and assigns it to the InNavigator field. +func (o *CSSCMSDataModelModelsReportRequestModel) SetInNavigator(v bool) { + o.InNavigator.Set(&v) +} + +// SetInNavigatorNil sets the value for InNavigator to be an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) SetInNavigatorNil() { + o.InNavigator.Set(nil) +} + +// UnsetInNavigator ensures that no value is present for InNavigator, not even an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) UnsetInNavigator() { + o.InNavigator.Unset() +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportRequestModel) GetFavorite() bool { + if o == nil || isNil(o.Favorite.Get()) { + var ret bool + return ret + } + return *o.Favorite.Get() +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportRequestModel) GetFavoriteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Favorite.Get(), o.Favorite.IsSet() +} + +// HasFavorite returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportRequestModel) HasFavorite() bool { + if o != nil && o.Favorite.IsSet() { + return true + } + + return false +} + +// SetFavorite gets a reference to the given NullableBool and assigns it to the Favorite field. +func (o *CSSCMSDataModelModelsReportRequestModel) SetFavorite(v bool) { + o.Favorite.Set(&v) +} + +// SetFavoriteNil sets the value for Favorite to be an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) SetFavoriteNil() { + o.Favorite.Set(nil) +} + +// UnsetFavorite ensures that no value is present for Favorite, not even an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) UnsetFavorite() { + o.Favorite.Unset() +} + +// GetRemoveDuplicates returns the RemoveDuplicates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportRequestModel) GetRemoveDuplicates() bool { + if o == nil || isNil(o.RemoveDuplicates.Get()) { + var ret bool + return ret + } + return *o.RemoveDuplicates.Get() +} + +// GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportRequestModel) GetRemoveDuplicatesOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.RemoveDuplicates.Get(), o.RemoveDuplicates.IsSet() +} + +// HasRemoveDuplicates returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportRequestModel) HasRemoveDuplicates() bool { + if o != nil && o.RemoveDuplicates.IsSet() { + return true + } + + return false +} + +// SetRemoveDuplicates gets a reference to the given NullableBool and assigns it to the RemoveDuplicates field. +func (o *CSSCMSDataModelModelsReportRequestModel) SetRemoveDuplicates(v bool) { + o.RemoveDuplicates.Set(&v) +} + +// SetRemoveDuplicatesNil sets the value for RemoveDuplicates to be an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) SetRemoveDuplicatesNil() { + o.RemoveDuplicates.Set(nil) +} + +// UnsetRemoveDuplicates ensures that no value is present for RemoveDuplicates, not even an explicit nil +func (o *CSSCMSDataModelModelsReportRequestModel) UnsetRemoveDuplicates() { + o.RemoveDuplicates.Unset() +} + +func (o CSSCMSDataModelModelsReportRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReportRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + if o.InNavigator.IsSet() { + toSerialize["InNavigator"] = o.InNavigator.Get() + } + if o.Favorite.IsSet() { + toSerialize["Favorite"] = o.Favorite.Get() + } + if o.RemoveDuplicates.IsSet() { + toSerialize["RemoveDuplicates"] = o.RemoveDuplicates.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReportRequestModel struct { + value *CSSCMSDataModelModelsReportRequestModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReportRequestModel) Get() *CSSCMSDataModelModelsReportRequestModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReportRequestModel) Set(val *CSSCMSDataModelModelsReportRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReportRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReportRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReportRequestModel(val *CSSCMSDataModelModelsReportRequestModel) *NullableCSSCMSDataModelModelsReportRequestModel { + return &NullableCSSCMSDataModelModelsReportRequestModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReportRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReportRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_schedule.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_schedule.go new file mode 100644 index 0000000..c0fc5ac --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_report_schedule.go @@ -0,0 +1,457 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsReportSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsReportSchedule{} + +// CSSCMSDataModelModelsReportSchedule struct for CSSCMSDataModelModelsReportSchedule +type CSSCMSDataModelModelsReportSchedule struct { + Id *int32 `json:"Id,omitempty"` + SendReport *bool `json:"SendReport,omitempty"` + SaveReport *bool `json:"SaveReport,omitempty"` + SaveReportPath NullableString `json:"SaveReportPath,omitempty"` + ReportFormat NullableString `json:"ReportFormat,omitempty"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + CertificateCollectionId NullableInt32 `json:"CertificateCollectionId,omitempty"` + EmailRecipients []string `json:"EmailRecipients,omitempty"` + RuntimeParameters map[string]string `json:"RuntimeParameters,omitempty"` +} + +// NewCSSCMSDataModelModelsReportSchedule instantiates a new CSSCMSDataModelModelsReportSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsReportSchedule() *CSSCMSDataModelModelsReportSchedule { + this := CSSCMSDataModelModelsReportSchedule{} + return &this +} + +// NewCSSCMSDataModelModelsReportScheduleWithDefaults instantiates a new CSSCMSDataModelModelsReportSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsReportScheduleWithDefaults() *CSSCMSDataModelModelsReportSchedule { + this := CSSCMSDataModelModelsReportSchedule{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportSchedule) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportSchedule) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsReportSchedule) SetId(v int32) { + o.Id = &v +} + +// GetSendReport returns the SendReport field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportSchedule) GetSendReport() bool { + if o == nil || isNil(o.SendReport) { + var ret bool + return ret + } + return *o.SendReport +} + +// GetSendReportOk returns a tuple with the SendReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportSchedule) GetSendReportOk() (*bool, bool) { + if o == nil || isNil(o.SendReport) { + return nil, false + } + return o.SendReport, true +} + +// HasSendReport returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasSendReport() bool { + if o != nil && !isNil(o.SendReport) { + return true + } + + return false +} + +// SetSendReport gets a reference to the given bool and assigns it to the SendReport field. +func (o *CSSCMSDataModelModelsReportSchedule) SetSendReport(v bool) { + o.SendReport = &v +} + +// GetSaveReport returns the SaveReport field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReport() bool { + if o == nil || isNil(o.SaveReport) { + var ret bool + return ret + } + return *o.SaveReport +} + +// GetSaveReportOk returns a tuple with the SaveReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportOk() (*bool, bool) { + if o == nil || isNil(o.SaveReport) { + return nil, false + } + return o.SaveReport, true +} + +// HasSaveReport returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasSaveReport() bool { + if o != nil && !isNil(o.SaveReport) { + return true + } + + return false +} + +// SetSaveReport gets a reference to the given bool and assigns it to the SaveReport field. +func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReport(v bool) { + o.SaveReport = &v +} + +// GetSaveReportPath returns the SaveReportPath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportPath() string { + if o == nil || isNil(o.SaveReportPath.Get()) { + var ret string + return ret + } + return *o.SaveReportPath.Get() +} + +// GetSaveReportPathOk returns a tuple with the SaveReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportSchedule) GetSaveReportPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SaveReportPath.Get(), o.SaveReportPath.IsSet() +} + +// HasSaveReportPath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasSaveReportPath() bool { + if o != nil && o.SaveReportPath.IsSet() { + return true + } + + return false +} + +// SetSaveReportPath gets a reference to the given NullableString and assigns it to the SaveReportPath field. +func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReportPath(v string) { + o.SaveReportPath.Set(&v) +} + +// SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) SetSaveReportPathNil() { + o.SaveReportPath.Set(nil) +} + +// UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) UnsetSaveReportPath() { + o.SaveReportPath.Unset() +} + +// GetReportFormat returns the ReportFormat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportSchedule) GetReportFormat() string { + if o == nil || isNil(o.ReportFormat.Get()) { + var ret string + return ret + } + return *o.ReportFormat.Get() +} + +// GetReportFormatOk returns a tuple with the ReportFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportSchedule) GetReportFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReportFormat.Get(), o.ReportFormat.IsSet() +} + +// HasReportFormat returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasReportFormat() bool { + if o != nil && o.ReportFormat.IsSet() { + return true + } + + return false +} + +// SetReportFormat gets a reference to the given NullableString and assigns it to the ReportFormat field. +func (o *CSSCMSDataModelModelsReportSchedule) SetReportFormat(v string) { + o.ReportFormat.Set(&v) +} + +// SetReportFormatNil sets the value for ReportFormat to be an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) SetReportFormatNil() { + o.ReportFormat.Set(nil) +} + +// UnsetReportFormat ensures that no value is present for ReportFormat, not even an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) UnsetReportFormat() { + o.ReportFormat.Unset() +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsReportSchedule) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsReportSchedule) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *CSSCMSDataModelModelsReportSchedule) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetCertificateCollectionId returns the CertificateCollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportSchedule) GetCertificateCollectionId() int32 { + if o == nil || isNil(o.CertificateCollectionId.Get()) { + var ret int32 + return ret + } + return *o.CertificateCollectionId.Get() +} + +// GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportSchedule) GetCertificateCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateCollectionId.Get(), o.CertificateCollectionId.IsSet() +} + +// HasCertificateCollectionId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasCertificateCollectionId() bool { + if o != nil && o.CertificateCollectionId.IsSet() { + return true + } + + return false +} + +// SetCertificateCollectionId gets a reference to the given NullableInt32 and assigns it to the CertificateCollectionId field. +func (o *CSSCMSDataModelModelsReportSchedule) SetCertificateCollectionId(v int32) { + o.CertificateCollectionId.Set(&v) +} + +// SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) SetCertificateCollectionIdNil() { + o.CertificateCollectionId.Set(nil) +} + +// UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +func (o *CSSCMSDataModelModelsReportSchedule) UnsetCertificateCollectionId() { + o.CertificateCollectionId.Unset() +} + +// GetEmailRecipients returns the EmailRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportSchedule) GetEmailRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.EmailRecipients +} + +// GetEmailRecipientsOk returns a tuple with the EmailRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportSchedule) GetEmailRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.EmailRecipients) { + return nil, false + } + return o.EmailRecipients, true +} + +// HasEmailRecipients returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasEmailRecipients() bool { + if o != nil && isNil(o.EmailRecipients) { + return true + } + + return false +} + +// SetEmailRecipients gets a reference to the given []string and assigns it to the EmailRecipients field. +func (o *CSSCMSDataModelModelsReportSchedule) SetEmailRecipients(v []string) { + o.EmailRecipients = v +} + +// GetRuntimeParameters returns the RuntimeParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsReportSchedule) GetRuntimeParameters() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.RuntimeParameters +} + +// GetRuntimeParametersOk returns a tuple with the RuntimeParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsReportSchedule) GetRuntimeParametersOk() (*map[string]string, bool) { + if o == nil || isNil(o.RuntimeParameters) { + return nil, false + } + return &o.RuntimeParameters, true +} + +// HasRuntimeParameters returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsReportSchedule) HasRuntimeParameters() bool { + if o != nil && isNil(o.RuntimeParameters) { + return true + } + + return false +} + +// SetRuntimeParameters gets a reference to the given map[string]string and assigns it to the RuntimeParameters field. +func (o *CSSCMSDataModelModelsReportSchedule) SetRuntimeParameters(v map[string]string) { + o.RuntimeParameters = v +} + +func (o CSSCMSDataModelModelsReportSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsReportSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.SendReport) { + toSerialize["SendReport"] = o.SendReport + } + if !isNil(o.SaveReport) { + toSerialize["SaveReport"] = o.SaveReport + } + if o.SaveReportPath.IsSet() { + toSerialize["SaveReportPath"] = o.SaveReportPath.Get() + } + if o.ReportFormat.IsSet() { + toSerialize["ReportFormat"] = o.ReportFormat.Get() + } + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if o.CertificateCollectionId.IsSet() { + toSerialize["CertificateCollectionId"] = o.CertificateCollectionId.Get() + } + if o.EmailRecipients != nil { + toSerialize["EmailRecipients"] = o.EmailRecipients + } + if o.RuntimeParameters != nil { + toSerialize["RuntimeParameters"] = o.RuntimeParameters + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsReportSchedule struct { + value *CSSCMSDataModelModelsReportSchedule + isSet bool +} + +func (v NullableCSSCMSDataModelModelsReportSchedule) Get() *CSSCMSDataModelModelsReportSchedule { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsReportSchedule) Set(val *CSSCMSDataModelModelsReportSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsReportSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsReportSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsReportSchedule(val *CSSCMSDataModelModelsReportSchedule) *NullableCSSCMSDataModelModelsReportSchedule { + return &NullableCSSCMSDataModelModelsReportSchedule{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsReportSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsReportSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_certificate_permissions.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_certificate_permissions.go new file mode 100644 index 0000000..8294465 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_certificate_permissions.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSecurityCertificatePermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSecurityCertificatePermissions{} + +// CSSCMSDataModelModelsSecurityCertificatePermissions struct for CSSCMSDataModelModelsSecurityCertificatePermissions +type CSSCMSDataModelModelsSecurityCertificatePermissions struct { + Roles []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase `json:"Roles,omitempty"` +} + +// NewCSSCMSDataModelModelsSecurityCertificatePermissions instantiates a new CSSCMSDataModelModelsSecurityCertificatePermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSecurityCertificatePermissions() *CSSCMSDataModelModelsSecurityCertificatePermissions { + this := CSSCMSDataModelModelsSecurityCertificatePermissions{} + return &this +} + +// NewCSSCMSDataModelModelsSecurityCertificatePermissionsWithDefaults instantiates a new CSSCMSDataModelModelsSecurityCertificatePermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSecurityCertificatePermissionsWithDefaults() *CSSCMSDataModelModelsSecurityCertificatePermissions { + this := CSSCMSDataModelModelsSecurityCertificatePermissions{} + return &this +} + +// GetRoles returns the Roles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) GetRoles() []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase { + if o == nil { + var ret []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase + return ret + } + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) GetRolesOk() ([]CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase, bool) { + if o == nil || isNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) HasRoles() bool { + if o != nil && isNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase and assigns it to the Roles field. +func (o *CSSCMSDataModelModelsSecurityCertificatePermissions) SetRoles(v []CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) { + o.Roles = v +} + +func (o CSSCMSDataModelModelsSecurityCertificatePermissions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSecurityCertificatePermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Roles != nil { + toSerialize["Roles"] = o.Roles + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSecurityCertificatePermissions struct { + value *CSSCMSDataModelModelsSecurityCertificatePermissions + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSecurityCertificatePermissions) Get() *CSSCMSDataModelModelsSecurityCertificatePermissions { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSecurityCertificatePermissions) Set(val *CSSCMSDataModelModelsSecurityCertificatePermissions) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSecurityCertificatePermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSecurityCertificatePermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSecurityCertificatePermissions(val *CSSCMSDataModelModelsSecurityCertificatePermissions) *NullableCSSCMSDataModelModelsSecurityCertificatePermissions { + return &NullableCSSCMSDataModelModelsSecurityCertificatePermissions{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSecurityCertificatePermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSecurityCertificatePermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_identities_security_identity_identifier.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_identities_security_identity_identifier.go new file mode 100644 index 0000000..0efbada --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_identities_security_identity_identifier.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier{} + +// CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier struct for CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier +type CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier struct { + AccountName NullableString `json:"AccountName,omitempty"` + SID NullableString `json:"SID,omitempty"` +} + +// NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier instantiates a new CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier() *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + this := CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier{} + return &this +} + +// NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults instantiates a new CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults() *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + this := CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountName() string { + if o == nil || isNil(o.AccountName.Get()) { + var ret string + return ret + } + return *o.AccountName.Get() +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountName.Get(), o.AccountName.IsSet() +} + +// HasAccountName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) HasAccountName() bool { + if o != nil && o.AccountName.IsSet() { + return true + } + + return false +} + +// SetAccountName gets a reference to the given NullableString and assigns it to the AccountName field. +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountName(v string) { + o.AccountName.Set(&v) +} + +// SetAccountNameNil sets the value for AccountName to be an explicit nil +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountNameNil() { + o.AccountName.Set(nil) +} + +// UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) UnsetAccountName() { + o.AccountName.Unset() +} + +// GetSID returns the SID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSID() string { + if o == nil || isNil(o.SID.Get()) { + var ret string + return ret + } + return *o.SID.Get() +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SID.Get(), o.SID.IsSet() +} + +// HasSID returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) HasSID() bool { + if o != nil && o.SID.IsSet() { + return true + } + + return false +} + +// SetSID gets a reference to the given NullableString and assigns it to the SID field. +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSID(v string) { + o.SID.Set(&v) +} + +// SetSIDNil sets the value for SID to be an explicit nil +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSIDNil() { + o.SID.Set(nil) +} + +// UnsetSID ensures that no value is present for SID, not even an explicit nil +func (o *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) UnsetSID() { + o.SID.Unset() +} + +func (o CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.AccountName.IsSet() { + toSerialize["AccountName"] = o.AccountName.Get() + } + if o.SID.IsSet() { + toSerialize["SID"] = o.SID.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier struct { + value *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) Get() *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) Set(val *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier(val *CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) *NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + return &NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_permission_set.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_permission_set.go new file mode 100644 index 0000000..2c500ed --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_permission_set.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSecurityPermissionSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSecurityPermissionSet{} + +// CSSCMSDataModelModelsSecurityPermissionSet struct for CSSCMSDataModelModelsSecurityPermissionSet +type CSSCMSDataModelModelsSecurityPermissionSet struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Permissions []string `json:"Permissions,omitempty"` +} + +// NewCSSCMSDataModelModelsSecurityPermissionSet instantiates a new CSSCMSDataModelModelsSecurityPermissionSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSecurityPermissionSet() *CSSCMSDataModelModelsSecurityPermissionSet { + this := CSSCMSDataModelModelsSecurityPermissionSet{} + return &this +} + +// NewCSSCMSDataModelModelsSecurityPermissionSetWithDefaults instantiates a new CSSCMSDataModelModelsSecurityPermissionSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSecurityPermissionSetWithDefaults() *CSSCMSDataModelModelsSecurityPermissionSet { + this := CSSCMSDataModelModelsSecurityPermissionSet{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsSecurityPermissionSet) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecurityPermissionSet) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *CSSCMSDataModelModelsSecurityPermissionSet) SetPermissions(v []string) { + o.Permissions = v +} + +func (o CSSCMSDataModelModelsSecurityPermissionSet) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSecurityPermissionSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSecurityPermissionSet struct { + value *CSSCMSDataModelModelsSecurityPermissionSet + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSecurityPermissionSet) Get() *CSSCMSDataModelModelsSecurityPermissionSet { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSecurityPermissionSet) Set(val *CSSCMSDataModelModelsSecurityPermissionSet) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSecurityPermissionSet) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSecurityPermissionSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSecurityPermissionSet(val *CSSCMSDataModelModelsSecurityPermissionSet) *NullableCSSCMSDataModelModelsSecurityPermissionSet { + return &NullableCSSCMSDataModelModelsSecurityPermissionSet{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSecurityPermissionSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSecurityPermissionSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_security_roles_security_role_response_base.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_security_roles_security_role_response_base.go new file mode 100644 index 0000000..5c0f743 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_security_security_roles_security_role_response_base.go @@ -0,0 +1,182 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase{} + +// CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase struct for CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase +type CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase struct { + Name NullableString `json:"Name,omitempty"` + Permissions []string `json:"Permissions,omitempty"` +} + +// NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase instantiates a new CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase() *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase { + this := CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase{} + return &this +} + +// NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults instantiates a new CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults() *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase { + this := CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) SetPermissions(v []string) { + o.Permissions = v +} + +func (o CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase struct { + value *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) Get() *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) Set(val *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase(val *CSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) *NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase { + return &NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSecuritySecurityRolesSecurityRoleResponseBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_request.go new file mode 100644 index 0000000..46869ee --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_request.go @@ -0,0 +1,182 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{} + +// CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest struct for CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest +type CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest struct { + LogonName NullableString `json:"LogonName,omitempty"` + Users []string `json:"Users,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest() *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + this := CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{} + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + this := CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{} + return &this +} + +// GetLogonName returns the LogonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetLogonName() string { + if o == nil || isNil(o.LogonName.Get()) { + var ret string + return ret + } + return *o.LogonName.Get() +} + +// GetLogonNameOk returns a tuple with the LogonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetLogonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogonName.Get(), o.LogonName.IsSet() +} + +// HasLogonName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) HasLogonName() bool { + if o != nil && o.LogonName.IsSet() { + return true + } + + return false +} + +// SetLogonName gets a reference to the given NullableString and assigns it to the LogonName field. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetLogonName(v string) { + o.LogonName.Set(&v) +} + +// SetLogonNameNil sets the value for LogonName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetLogonNameNil() { + o.LogonName.Set(nil) +} + +// UnsetLogonName ensures that no value is present for LogonName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) UnsetLogonName() { + o.LogonName.Unset() +} + +// GetUsers returns the Users field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetUsers() []string { + if o == nil { + var ret []string + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) GetUsersOk() ([]string, bool) { + if o == nil || isNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) HasUsers() bool { + if o != nil && isNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []string and assigns it to the Users field. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) SetUsers(v []string) { + o.Users = v +} + +func (o CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LogonName.IsSet() { + toSerialize["LogonName"] = o.LogonName.Get() + } + if o.Users != nil { + toSerialize["Users"] = o.Users + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest struct { + value *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) Get() *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) Set(val *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest(val *CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + return &NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_response.go new file mode 100644 index 0000000..d450705 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_logon_user_access_response.go @@ -0,0 +1,229 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse{} + +// CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse struct for CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse +type CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse struct { + LogonId NullableInt32 `json:"LogonId,omitempty"` + LogonName NullableString `json:"LogonName,omitempty"` + Users []CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Users,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse() *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + this := CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessLogonUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + this := CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse{} + return &this +} + +// GetLogonId returns the LogonId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonId() int32 { + if o == nil || isNil(o.LogonId.Get()) { + var ret int32 + return ret + } + return *o.LogonId.Get() +} + +// GetLogonIdOk returns a tuple with the LogonId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LogonId.Get(), o.LogonId.IsSet() +} + +// HasLogonId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasLogonId() bool { + if o != nil && o.LogonId.IsSet() { + return true + } + + return false +} + +// SetLogonId gets a reference to the given NullableInt32 and assigns it to the LogonId field. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonId(v int32) { + o.LogonId.Set(&v) +} + +// SetLogonIdNil sets the value for LogonId to be an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonIdNil() { + o.LogonId.Set(nil) +} + +// UnsetLogonId ensures that no value is present for LogonId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnsetLogonId() { + o.LogonId.Unset() +} + +// GetLogonName returns the LogonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonName() string { + if o == nil || isNil(o.LogonName.Get()) { + var ret string + return ret + } + return *o.LogonName.Get() +} + +// GetLogonNameOk returns a tuple with the LogonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetLogonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LogonName.Get(), o.LogonName.IsSet() +} + +// HasLogonName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasLogonName() bool { + if o != nil && o.LogonName.IsSet() { + return true + } + + return false +} + +// SetLogonName gets a reference to the given NullableString and assigns it to the LogonName field. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonName(v string) { + o.LogonName.Set(&v) +} + +// SetLogonNameNil sets the value for LogonName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetLogonNameNil() { + o.LogonName.Set(nil) +} + +// UnsetLogonName ensures that no value is present for LogonName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnsetLogonName() { + o.LogonName.Unset() +} + +// GetUsers returns the Users field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetUsers() []CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) GetUsersOk() ([]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) HasUsers() bool { + if o != nil && isNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Users field. +func (o *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) SetUsers(v []CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Users = v +} + +func (o CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LogonId.IsSet() { + toSerialize["LogonId"] = o.LogonId.Get() + } + if o.LogonName.IsSet() { + toSerialize["LogonName"] = o.LogonName.Get() + } + if o.Users != nil { + toSerialize["Users"] = o.Users + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse struct { + value *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) Get() *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) Set(val *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse(val *CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + return &NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_request.go new file mode 100644 index 0000000..58769f7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessServerAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessServerAccessRequest{} + +// CSSCMSDataModelModelsSSHAccessServerAccessRequest struct for CSSCMSDataModelModelsSSHAccessServerAccessRequest +type CSSCMSDataModelModelsSSHAccessServerAccessRequest struct { + ServerId int32 `json:"ServerId"` + LogonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest `json:"LogonUsers"` +} + +// NewCSSCMSDataModelModelsSSHAccessServerAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessServerAccessRequest(serverId int32, logonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) *CSSCMSDataModelModelsSSHAccessServerAccessRequest { + this := CSSCMSDataModelModelsSSHAccessServerAccessRequest{} + this.ServerId = serverId + this.LogonUsers = logonUsers + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessServerAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessServerAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessServerAccessRequest { + this := CSSCMSDataModelModelsSSHAccessServerAccessRequest{} + return &this +} + +// GetServerId returns the ServerId field value +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetServerId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetServerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ServerId, true +} + +// SetServerId sets field value +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) SetServerId(v int32) { + o.ServerId = v +} + +// GetLogonUsers returns the LogonUsers field value +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + if o == nil { + var ret []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest + return ret + } + + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) GetLogonUsersOk() ([]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, bool) { + if o == nil { + return nil, false + } + return o.LogonUsers, true +} + +// SetLogonUsers sets field value +func (o *CSSCMSDataModelModelsSSHAccessServerAccessRequest) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) { + o.LogonUsers = v +} + +func (o CSSCMSDataModelModelsSSHAccessServerAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessServerAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ServerId"] = o.ServerId + toSerialize["LogonUsers"] = o.LogonUsers + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest struct { + value *CSSCMSDataModelModelsSSHAccessServerAccessRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) Get() *CSSCMSDataModelModelsSSHAccessServerAccessRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) Set(val *CSSCMSDataModelModelsSSHAccessServerAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessServerAccessRequest(val *CSSCMSDataModelModelsSSHAccessServerAccessRequest) *NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest { + return &NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_response.go new file mode 100644 index 0000000..ec6241e --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_access_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessServerAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessServerAccessResponse{} + +// CSSCMSDataModelModelsSSHAccessServerAccessResponse struct for CSSCMSDataModelModelsSSHAccessServerAccessResponse +type CSSCMSDataModelModelsSSHAccessServerAccessResponse struct { + ServerId *int32 `json:"ServerId,omitempty"` + LogonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse `json:"LogonUsers,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHAccessServerAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessServerAccessResponse() *CSSCMSDataModelModelsSSHAccessServerAccessResponse { + this := CSSCMSDataModelModelsSSHAccessServerAccessResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessServerAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessServerAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessServerAccessResponse { + this := CSSCMSDataModelModelsSSHAccessServerAccessResponse{} + return &this +} + +// GetServerId returns the ServerId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetServerId() int32 { + if o == nil || isNil(o.ServerId) { + var ret int32 + return ret + } + return *o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetServerIdOk() (*int32, bool) { + if o == nil || isNil(o.ServerId) { + return nil, false + } + return o.ServerId, true +} + +// HasServerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) HasServerId() bool { + if o != nil && !isNil(o.ServerId) { + return true + } + + return false +} + +// SetServerId gets a reference to the given int32 and assigns it to the ServerId field. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) SetServerId(v int32) { + o.ServerId = &v +} + +// GetLogonUsers returns the LogonUsers field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + return ret + } + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) GetLogonUsersOk() ([]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, bool) { + if o == nil || isNil(o.LogonUsers) { + return nil, false + } + return o.LogonUsers, true +} + +// HasLogonUsers returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) HasLogonUsers() bool { + if o != nil && isNil(o.LogonUsers) { + return true + } + + return false +} + +// SetLogonUsers gets a reference to the given []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse and assigns it to the LogonUsers field. +func (o *CSSCMSDataModelModelsSSHAccessServerAccessResponse) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) { + o.LogonUsers = v +} + +func (o CSSCMSDataModelModelsSSHAccessServerAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessServerAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServerId) { + toSerialize["ServerId"] = o.ServerId + } + if o.LogonUsers != nil { + toSerialize["LogonUsers"] = o.LogonUsers + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse struct { + value *CSSCMSDataModelModelsSSHAccessServerAccessResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) Get() *CSSCMSDataModelModelsSSHAccessServerAccessResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) Set(val *CSSCMSDataModelModelsSSHAccessServerAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessServerAccessResponse(val *CSSCMSDataModelModelsSSHAccessServerAccessResponse) *NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse { + return &NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_request.go new file mode 100644 index 0000000..3db301c --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest{} + +// CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest struct for CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest +type CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest struct { + ServerGroupId string `json:"ServerGroupId"` + LogonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest `json:"LogonUsers"` +} + +// NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(serverGroupId string, logonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest { + this := CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest{} + this.ServerGroupId = serverGroupId + this.LogonUsers = logonUsers + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest { + this := CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest{} + return &this +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +// GetLogonUsers returns the LogonUsers field value +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest { + if o == nil { + var ret []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest + return ret + } + + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) GetLogonUsersOk() ([]CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest, bool) { + if o == nil { + return nil, false + } + return o.LogonUsers, true +} + +// SetLogonUsers sets field value +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessRequest) { + o.LogonUsers = v +} + +func (o CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ServerGroupId"] = o.ServerGroupId + toSerialize["LogonUsers"] = o.LogonUsers + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest struct { + value *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) Get() *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) Set(val *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest(val *CSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest { + return &NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_response.go new file mode 100644 index 0000000..9c6a728 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_access_server_group_access_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse{} + +// CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse struct for CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse +type CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse struct { + ServerGroupId *string `json:"ServerGroupId,omitempty"` + LogonUsers []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse `json:"LogonUsers,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse() *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse { + this := CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHAccessServerGroupAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse { + this := CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse{} + return &this +} + +// GetServerGroupId returns the ServerGroupId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetServerGroupId() string { + if o == nil || isNil(o.ServerGroupId) { + var ret string + return ret + } + return *o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetServerGroupIdOk() (*string, bool) { + if o == nil || isNil(o.ServerGroupId) { + return nil, false + } + return o.ServerGroupId, true +} + +// HasServerGroupId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) HasServerGroupId() bool { + if o != nil && !isNil(o.ServerGroupId) { + return true + } + + return false +} + +// SetServerGroupId gets a reference to the given string and assigns it to the ServerGroupId field. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) SetServerGroupId(v string) { + o.ServerGroupId = &v +} + +// GetLogonUsers returns the LogonUsers field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetLogonUsers() []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse + return ret + } + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) GetLogonUsersOk() ([]CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse, bool) { + if o == nil || isNil(o.LogonUsers) { + return nil, false + } + return o.LogonUsers, true +} + +// HasLogonUsers returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) HasLogonUsers() bool { + if o != nil && isNil(o.LogonUsers) { + return true + } + + return false +} + +// SetLogonUsers gets a reference to the given []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse and assigns it to the LogonUsers field. +func (o *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) SetLogonUsers(v []CSSCMSDataModelModelsSSHAccessLogonUserAccessResponse) { + o.LogonUsers = v +} + +func (o CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServerGroupId) { + toSerialize["ServerGroupId"] = o.ServerGroupId + } + if o.LogonUsers != nil { + toSerialize["LogonUsers"] = o.LogonUsers + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse struct { + value *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) Get() *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) Set(val *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse(val *CSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse { + return &NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHAccessServerGroupAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_generation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_generation_request.go new file mode 100644 index 0000000..1470dfb --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_generation_request.go @@ -0,0 +1,280 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHKeysKeyGenerationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHKeysKeyGenerationRequest{} + +// CSSCMSDataModelModelsSSHKeysKeyGenerationRequest struct for CSSCMSDataModelModelsSSHKeysKeyGenerationRequest +type CSSCMSDataModelModelsSSHKeysKeyGenerationRequest struct { + KeyType string `json:"KeyType"` + PrivateKeyFormat string `json:"PrivateKeyFormat"` + KeyLength int32 `json:"KeyLength"` + Email string `json:"Email"` + Password string `json:"Password"` + Comment NullableString `json:"Comment,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest instantiates a new CSSCMSDataModelModelsSSHKeysKeyGenerationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequest(keyType string, privateKeyFormat string, keyLength int32, email string, password string) *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest { + this := CSSCMSDataModelModelsSSHKeysKeyGenerationRequest{} + this.KeyType = keyType + this.PrivateKeyFormat = privateKeyFormat + this.KeyLength = keyLength + this.Email = email + this.Password = password + return &this +} + +// NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyGenerationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHKeysKeyGenerationRequestWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest { + this := CSSCMSDataModelModelsSSHKeysKeyGenerationRequest{} + return &this +} + +// GetKeyType returns the KeyType field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyType() string { + if o == nil { + var ret string + return ret + } + + return o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyType, true +} + +// SetKeyType sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetKeyType(v string) { + o.KeyType = v +} + +// GetPrivateKeyFormat returns the PrivateKeyFormat field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormat() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKeyFormat +} + +// GetPrivateKeyFormatOk returns a tuple with the PrivateKeyFormat field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKeyFormat, true +} + +// SetPrivateKeyFormat sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetPrivateKeyFormat(v string) { + o.PrivateKeyFormat = v +} + +// GetKeyLength returns the KeyLength field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyLength() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.KeyLength, true +} + +// SetKeyLength sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetKeyLength(v int32) { + o.KeyLength = v +} + +// GetEmail returns the Email field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetEmail(v string) { + o.Email = v +} + +// GetPassword returns the Password field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetPassword(v string) { + o.Password = v +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) UnsetComment() { + o.Comment.Unset() +} + +func (o CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyType"] = o.KeyType + toSerialize["PrivateKeyFormat"] = o.PrivateKeyFormat + toSerialize["KeyLength"] = o.KeyLength + toSerialize["Email"] = o.Email + toSerialize["Password"] = o.Password + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest struct { + value *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) Get() *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) Set(val *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest(val *CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) *NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest { + return &NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyGenerationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_response.go new file mode 100644 index 0000000..80035d1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_response.go @@ -0,0 +1,573 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHKeysKeyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHKeysKeyResponse{} + +// CSSCMSDataModelModelsSSHKeysKeyResponse struct for CSSCMSDataModelModelsSSHKeysKeyResponse +type CSSCMSDataModelModelsSSHKeysKeyResponse struct { + Id *int32 `json:"Id,omitempty"` + Fingerprint NullableString `json:"Fingerprint,omitempty"` + PublicKey NullableString `json:"PublicKey,omitempty"` + PrivateKey NullableString `json:"PrivateKey,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + CreationDate NullableTime `json:"CreationDate,omitempty"` + StaleDate NullableTime `json:"StaleDate,omitempty"` + Email NullableString `json:"Email,omitempty"` + Comments []string `json:"Comments,omitempty"` + LogonCount *int32 `json:"LogonCount,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHKeysKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHKeysKeyResponse() *CSSCMSDataModelModelsSSHKeysKeyResponse { + this := CSSCMSDataModelModelsSSHKeysKeyResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyResponse { + this := CSSCMSDataModelModelsSSHKeysKeyResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetId(v int32) { + o.Id = &v +} + +// GetFingerprint returns the Fingerprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprint() string { + if o == nil || isNil(o.Fingerprint.Get()) { + var ret string + return ret + } + return *o.Fingerprint.Get() +} + +// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Fingerprint.Get(), o.Fingerprint.IsSet() +} + +// HasFingerprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasFingerprint() bool { + if o != nil && o.Fingerprint.IsSet() { + return true + } + + return false +} + +// SetFingerprint gets a reference to the given NullableString and assigns it to the Fingerprint field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprint(v string) { + o.Fingerprint.Set(&v) +} + +// SetFingerprintNil sets the value for Fingerprint to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprintNil() { + o.Fingerprint.Set(nil) +} + +// UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetFingerprint() { + o.Fingerprint.Unset() +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKey() string { + if o == nil || isNil(o.PublicKey.Get()) { + var ret string + return ret + } + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPublicKey() bool { + if o != nil && o.PublicKey.IsSet() { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// SetPublicKeyNil sets the value for PublicKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKeyNil() { + o.PublicKey.Set(nil) +} + +// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPublicKey() { + o.PublicKey.Unset() +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey.Get()) { + var ret string + return ret + } + return *o.PrivateKey.Get() +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrivateKey.Get(), o.PrivateKey.IsSet() +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPrivateKey() bool { + if o != nil && o.PrivateKey.IsSet() { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given NullableString and assigns it to the PrivateKey field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKey(v string) { + o.PrivateKey.Set(&v) +} + +// SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKeyNil() { + o.PrivateKey.Set(nil) +} + +// UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPrivateKey() { + o.PrivateKey.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCreationDate returns the CreationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDate() time.Time { + if o == nil || isNil(o.CreationDate.Get()) { + var ret time.Time + return ret + } + return *o.CreationDate.Get() +} + +// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CreationDate.Get(), o.CreationDate.IsSet() +} + +// HasCreationDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasCreationDate() bool { + if o != nil && o.CreationDate.IsSet() { + return true + } + + return false +} + +// SetCreationDate gets a reference to the given NullableTime and assigns it to the CreationDate field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDate(v time.Time) { + o.CreationDate.Set(&v) +} + +// SetCreationDateNil sets the value for CreationDate to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDateNil() { + o.CreationDate.Set(nil) +} + +// UnsetCreationDate ensures that no value is present for CreationDate, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetCreationDate() { + o.CreationDate.Unset() +} + +// GetStaleDate returns the StaleDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDate() time.Time { + if o == nil || isNil(o.StaleDate.Get()) { + var ret time.Time + return ret + } + return *o.StaleDate.Get() +} + +// GetStaleDateOk returns a tuple with the StaleDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.StaleDate.Get(), o.StaleDate.IsSet() +} + +// HasStaleDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasStaleDate() bool { + if o != nil && o.StaleDate.IsSet() { + return true + } + + return false +} + +// SetStaleDate gets a reference to the given NullableTime and assigns it to the StaleDate field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDate(v time.Time) { + o.StaleDate.Set(&v) +} + +// SetStaleDateNil sets the value for StaleDate to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDateNil() { + o.StaleDate.Set(nil) +} + +// UnsetStaleDate ensures that no value is present for StaleDate, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetStaleDate() { + o.StaleDate.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmail() string { + if o == nil || isNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmail(v string) { + o.Email.Set(&v) +} + +// SetEmailNil sets the value for Email to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetEmail() { + o.Email.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetComments() []string { + if o == nil { + var ret []string + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCommentsOk() ([]string, bool) { + if o == nil || isNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasComments() bool { + if o != nil && isNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []string and assigns it to the Comments field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetComments(v []string) { + o.Comments = v +} + +// GetLogonCount returns the LogonCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCount() int32 { + if o == nil || isNil(o.LogonCount) { + var ret int32 + return ret + } + return *o.LogonCount +} + +// GetLogonCountOk returns a tuple with the LogonCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool) { + if o == nil || isNil(o.LogonCount) { + return nil, false + } + return o.LogonCount, true +} + +// HasLogonCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasLogonCount() bool { + if o != nil && !isNil(o.LogonCount) { + return true + } + + return false +} + +// SetLogonCount gets a reference to the given int32 and assigns it to the LogonCount field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetLogonCount(v int32) { + o.LogonCount = &v +} + +func (o CSSCMSDataModelModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHKeysKeyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Fingerprint.IsSet() { + toSerialize["Fingerprint"] = o.Fingerprint.Get() + } + if o.PublicKey.IsSet() { + toSerialize["PublicKey"] = o.PublicKey.Get() + } + if o.PrivateKey.IsSet() { + toSerialize["PrivateKey"] = o.PrivateKey.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.CreationDate.IsSet() { + toSerialize["CreationDate"] = o.CreationDate.Get() + } + if o.StaleDate.IsSet() { + toSerialize["StaleDate"] = o.StaleDate.Get() + } + if o.Email.IsSet() { + toSerialize["Email"] = o.Email.Get() + } + if o.Comments != nil { + toSerialize["Comments"] = o.Comments + } + if !isNil(o.LogonCount) { + toSerialize["LogonCount"] = o.LogonCount + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHKeysKeyResponse struct { + value *CSSCMSDataModelModelsSSHKeysKeyResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Get() *CSSCMSDataModelModelsSSHKeysKeyResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Set(val *CSSCMSDataModelModelsSSHKeysKeyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHKeysKeyResponse(val *CSSCMSDataModelModelsSSHKeysKeyResponse) *NullableCSSCMSDataModelModelsSSHKeysKeyResponse { + return &NullableCSSCMSDataModelModelsSSHKeysKeyResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_update_request.go new file mode 100644 index 0000000..8d1494e --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_key_update_request.go @@ -0,0 +1,199 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHKeysKeyUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHKeysKeyUpdateRequest{} + +// CSSCMSDataModelModelsSSHKeysKeyUpdateRequest struct for CSSCMSDataModelModelsSSHKeysKeyUpdateRequest +type CSSCMSDataModelModelsSSHKeysKeyUpdateRequest struct { + Id int32 `json:"Id"` + Email string `json:"Email"` + Comment NullableString `json:"Comment,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest instantiates a new CSSCMSDataModelModelsSSHKeysKeyUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequest(id int32, email string) *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest { + this := CSSCMSDataModelModelsSSHKeysKeyUpdateRequest{} + this.Id = id + this.Email = email + return &this +} + +// NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHKeysKeyUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest { + this := CSSCMSDataModelModelsSSHKeysKeyUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetEmail returns the Email field value +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetEmail(v string) { + o.Email = v +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) UnsetComment() { + o.Comment.Unset() +} + +func (o CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Email"] = o.Email + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest struct { + value *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) Get() *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) Set(val *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest(val *CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) *NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest { + return &NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_unmanaged_key_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_unmanaged_key_response.go new file mode 100644 index 0000000..cb2e75f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_keys_unmanaged_key_response.go @@ -0,0 +1,573 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse{} + +// CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse struct for CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse +type CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse struct { + Id *int32 `json:"Id,omitempty"` + Fingerprint NullableString `json:"Fingerprint,omitempty"` + PublicKey NullableString `json:"PublicKey,omitempty"` + PrivateKey NullableString `json:"PrivateKey,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + DiscoveredDate NullableTime `json:"DiscoveredDate,omitempty"` + Email NullableString `json:"Email,omitempty"` + Comments []string `json:"Comments,omitempty"` + Username NullableString `json:"Username,omitempty"` + LogonCount *int32 `json:"LogonCount,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse() *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse { + this := CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse { + this := CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetId(v int32) { + o.Id = &v +} + +// GetFingerprint returns the Fingerprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetFingerprint() string { + if o == nil || isNil(o.Fingerprint.Get()) { + var ret string + return ret + } + return *o.Fingerprint.Get() +} + +// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetFingerprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Fingerprint.Get(), o.Fingerprint.IsSet() +} + +// HasFingerprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasFingerprint() bool { + if o != nil && o.Fingerprint.IsSet() { + return true + } + + return false +} + +// SetFingerprint gets a reference to the given NullableString and assigns it to the Fingerprint field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetFingerprint(v string) { + o.Fingerprint.Set(&v) +} + +// SetFingerprintNil sets the value for Fingerprint to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetFingerprintNil() { + o.Fingerprint.Set(nil) +} + +// UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetFingerprint() { + o.Fingerprint.Unset() +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPublicKey() string { + if o == nil || isNil(o.PublicKey.Get()) { + var ret string + return ret + } + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasPublicKey() bool { + if o != nil && o.PublicKey.IsSet() { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// SetPublicKeyNil sets the value for PublicKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPublicKeyNil() { + o.PublicKey.Set(nil) +} + +// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetPublicKey() { + o.PublicKey.Unset() +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey.Get()) { + var ret string + return ret + } + return *o.PrivateKey.Get() +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrivateKey.Get(), o.PrivateKey.IsSet() +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasPrivateKey() bool { + if o != nil && o.PrivateKey.IsSet() { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given NullableString and assigns it to the PrivateKey field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPrivateKey(v string) { + o.PrivateKey.Set(&v) +} + +// SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetPrivateKeyNil() { + o.PrivateKey.Set(nil) +} + +// UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetPrivateKey() { + o.PrivateKey.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetDiscoveredDate returns the DiscoveredDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDate() time.Time { + if o == nil || isNil(o.DiscoveredDate.Get()) { + var ret time.Time + return ret + } + return *o.DiscoveredDate.Get() +} + +// GetDiscoveredDateOk returns a tuple with the DiscoveredDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DiscoveredDate.Get(), o.DiscoveredDate.IsSet() +} + +// HasDiscoveredDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasDiscoveredDate() bool { + if o != nil && o.DiscoveredDate.IsSet() { + return true + } + + return false +} + +// SetDiscoveredDate gets a reference to the given NullableTime and assigns it to the DiscoveredDate field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDate(v time.Time) { + o.DiscoveredDate.Set(&v) +} + +// SetDiscoveredDateNil sets the value for DiscoveredDate to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDateNil() { + o.DiscoveredDate.Set(nil) +} + +// UnsetDiscoveredDate ensures that no value is present for DiscoveredDate, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetDiscoveredDate() { + o.DiscoveredDate.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetEmail() string { + if o == nil || isNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetEmail(v string) { + o.Email.Set(&v) +} + +// SetEmailNil sets the value for Email to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetEmail() { + o.Email.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetComments() []string { + if o == nil { + var ret []string + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetCommentsOk() ([]string, bool) { + if o == nil || isNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasComments() bool { + if o != nil && isNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []string and assigns it to the Comments field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetComments(v []string) { + o.Comments = v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLogonCount returns the LogonCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetLogonCount() int32 { + if o == nil || isNil(o.LogonCount) { + var ret int32 + return ret + } + return *o.LogonCount +} + +// GetLogonCountOk returns a tuple with the LogonCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) GetLogonCountOk() (*int32, bool) { + if o == nil || isNil(o.LogonCount) { + return nil, false + } + return o.LogonCount, true +} + +// HasLogonCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) HasLogonCount() bool { + if o != nil && !isNil(o.LogonCount) { + return true + } + + return false +} + +// SetLogonCount gets a reference to the given int32 and assigns it to the LogonCount field. +func (o *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) SetLogonCount(v int32) { + o.LogonCount = &v +} + +func (o CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Fingerprint.IsSet() { + toSerialize["Fingerprint"] = o.Fingerprint.Get() + } + if o.PublicKey.IsSet() { + toSerialize["PublicKey"] = o.PublicKey.Get() + } + if o.PrivateKey.IsSet() { + toSerialize["PrivateKey"] = o.PrivateKey.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.DiscoveredDate.IsSet() { + toSerialize["DiscoveredDate"] = o.DiscoveredDate.Get() + } + if o.Email.IsSet() { + toSerialize["Email"] = o.Email.Get() + } + if o.Comments != nil { + toSerialize["Comments"] = o.Comments + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if !isNil(o.LogonCount) { + toSerialize["LogonCount"] = o.LogonCount + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse struct { + value *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) Get() *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) Set(val *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse(val *CSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) *NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse { + return &NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysUnmanagedKeyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_access_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_access_request.go new file mode 100644 index 0000000..2f35bc7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_access_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHLogonsLogonAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHLogonsLogonAccessRequest{} + +// CSSCMSDataModelModelsSSHLogonsLogonAccessRequest struct for CSSCMSDataModelModelsSSHLogonsLogonAccessRequest +type CSSCMSDataModelModelsSSHLogonsLogonAccessRequest struct { + LogonId int32 `json:"LogonId"` + UserIds []int32 `json:"UserIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest instantiates a new CSSCMSDataModelModelsSSHLogonsLogonAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequest(logonId int32) *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest { + this := CSSCMSDataModelModelsSSHLogonsLogonAccessRequest{} + this.LogonId = logonId + return &this +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHLogonsLogonAccessRequestWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest { + this := CSSCMSDataModelModelsSSHLogonsLogonAccessRequest{} + return &this +} + +// GetLogonId returns the LogonId field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetLogonId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogonId +} + +// GetLogonIdOk returns a tuple with the LogonId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetLogonIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogonId, true +} + +// SetLogonId sets field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) SetLogonId(v int32) { + o.LogonId = v +} + +// GetUserIds returns the UserIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetUserIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.UserIds +} + +// GetUserIdsOk returns a tuple with the UserIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) GetUserIdsOk() ([]int32, bool) { + if o == nil || isNil(o.UserIds) { + return nil, false + } + return o.UserIds, true +} + +// HasUserIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) HasUserIds() bool { + if o != nil && isNil(o.UserIds) { + return true + } + + return false +} + +// SetUserIds gets a reference to the given []int32 and assigns it to the UserIds field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) SetUserIds(v []int32) { + o.UserIds = v +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["LogonId"] = o.LogonId + if o.UserIds != nil { + toSerialize["UserIds"] = o.UserIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest struct { + value *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) Get() *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) Set(val *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest(val *CSSCMSDataModelModelsSSHLogonsLogonAccessRequest) *NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest { + return &NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_creation_request.go new file mode 100644 index 0000000..120f5c1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_creation_request.go @@ -0,0 +1,189 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHLogonsLogonCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHLogonsLogonCreationRequest{} + +// CSSCMSDataModelModelsSSHLogonsLogonCreationRequest struct for CSSCMSDataModelModelsSSHLogonsLogonCreationRequest +type CSSCMSDataModelModelsSSHLogonsLogonCreationRequest struct { + Username string `json:"Username"` + ServerId int32 `json:"ServerId"` + UserIds []int32 `json:"UserIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest instantiates a new CSSCMSDataModelModelsSSHLogonsLogonCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequest(username string, serverId int32) *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest { + this := CSSCMSDataModelModelsSSHLogonsLogonCreationRequest{} + this.Username = username + this.ServerId = serverId + return &this +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHLogonsLogonCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest { + this := CSSCMSDataModelModelsSSHLogonsLogonCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetServerId returns the ServerId field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetServerId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetServerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ServerId, true +} + +// SetServerId sets field value +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetServerId(v int32) { + o.ServerId = v +} + +// GetUserIds returns the UserIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUserIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.UserIds +} + +// GetUserIdsOk returns a tuple with the UserIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) GetUserIdsOk() ([]int32, bool) { + if o == nil || isNil(o.UserIds) { + return nil, false + } + return o.UserIds, true +} + +// HasUserIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) HasUserIds() bool { + if o != nil && isNil(o.UserIds) { + return true + } + + return false +} + +// SetUserIds gets a reference to the given []int32 and assigns it to the UserIds field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) SetUserIds(v []int32) { + o.UserIds = v +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + toSerialize["ServerId"] = o.ServerId + if o.UserIds != nil { + toSerialize["UserIds"] = o.UserIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest struct { + value *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) Get() *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) Set(val *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest(val *CSSCMSDataModelModelsSSHLogonsLogonCreationRequest) *NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest { + return &NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_query_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_query_response.go new file mode 100644 index 0000000..c31bc42 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_query_response.go @@ -0,0 +1,431 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHLogonsLogonQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHLogonsLogonQueryResponse{} + +// CSSCMSDataModelModelsSSHLogonsLogonQueryResponse struct for CSSCMSDataModelModelsSSHLogonsLogonQueryResponse +type CSSCMSDataModelModelsSSHLogonsLogonQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Username NullableString `json:"Username,omitempty"` + LastLogon NullableTime `json:"LastLogon,omitempty"` + ServerId *int32 `json:"ServerId,omitempty"` + ServerName NullableString `json:"ServerName,omitempty"` + GroupName NullableString `json:"GroupName,omitempty"` + KeyCount *int32 `json:"KeyCount,omitempty"` + ServerUnderManagement *bool `json:"ServerUnderManagement,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponse() *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonQueryResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHLogonsLogonQueryResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLastLogon returns the LastLogon field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetLastLogon() time.Time { + if o == nil || isNil(o.LastLogon.Get()) { + var ret time.Time + return ret + } + return *o.LastLogon.Get() +} + +// GetLastLogonOk returns a tuple with the LastLogon field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetLastLogonOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogon.Get(), o.LastLogon.IsSet() +} + +// HasLastLogon returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasLastLogon() bool { + if o != nil && o.LastLogon.IsSet() { + return true + } + + return false +} + +// SetLastLogon gets a reference to the given NullableTime and assigns it to the LastLogon field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetLastLogon(v time.Time) { + o.LastLogon.Set(&v) +} + +// SetLastLogonNil sets the value for LastLogon to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetLastLogonNil() { + o.LastLogon.Set(nil) +} + +// UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetLastLogon() { + o.LastLogon.Unset() +} + +// GetServerId returns the ServerId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerId() int32 { + if o == nil || isNil(o.ServerId) { + var ret int32 + return ret + } + return *o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerIdOk() (*int32, bool) { + if o == nil || isNil(o.ServerId) { + return nil, false + } + return o.ServerId, true +} + +// HasServerId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerId() bool { + if o != nil && !isNil(o.ServerId) { + return true + } + + return false +} + +// SetServerId gets a reference to the given int32 and assigns it to the ServerId field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerId(v int32) { + o.ServerId = &v +} + +// GetServerName returns the ServerName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerName() string { + if o == nil || isNil(o.ServerName.Get()) { + var ret string + return ret + } + return *o.ServerName.Get() +} + +// GetServerNameOk returns a tuple with the ServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ServerName.Get(), o.ServerName.IsSet() +} + +// HasServerName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerName() bool { + if o != nil && o.ServerName.IsSet() { + return true + } + + return false +} + +// SetServerName gets a reference to the given NullableString and assigns it to the ServerName field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerName(v string) { + o.ServerName.Set(&v) +} + +// SetServerNameNil sets the value for ServerName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerNameNil() { + o.ServerName.Set(nil) +} + +// UnsetServerName ensures that no value is present for ServerName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetServerName() { + o.ServerName.Unset() +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName.Get()) { + var ret string + return ret + } + return *o.GroupName.Get() +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GroupName.Get(), o.GroupName.IsSet() +} + +// HasGroupName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasGroupName() bool { + if o != nil && o.GroupName.IsSet() { + return true + } + + return false +} + +// SetGroupName gets a reference to the given NullableString and assigns it to the GroupName field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetGroupName(v string) { + o.GroupName.Set(&v) +} + +// SetGroupNameNil sets the value for GroupName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetGroupNameNil() { + o.GroupName.Set(nil) +} + +// UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnsetGroupName() { + o.GroupName.Unset() +} + +// GetKeyCount returns the KeyCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetKeyCount() int32 { + if o == nil || isNil(o.KeyCount) { + var ret int32 + return ret + } + return *o.KeyCount +} + +// GetKeyCountOk returns a tuple with the KeyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetKeyCountOk() (*int32, bool) { + if o == nil || isNil(o.KeyCount) { + return nil, false + } + return o.KeyCount, true +} + +// HasKeyCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasKeyCount() bool { + if o != nil && !isNil(o.KeyCount) { + return true + } + + return false +} + +// SetKeyCount gets a reference to the given int32 and assigns it to the KeyCount field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetKeyCount(v int32) { + o.KeyCount = &v +} + +// GetServerUnderManagement returns the ServerUnderManagement field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerUnderManagement() bool { + if o == nil || isNil(o.ServerUnderManagement) { + var ret bool + return ret + } + return *o.ServerUnderManagement +} + +// GetServerUnderManagementOk returns a tuple with the ServerUnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) GetServerUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.ServerUnderManagement) { + return nil, false + } + return o.ServerUnderManagement, true +} + +// HasServerUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) HasServerUnderManagement() bool { + if o != nil && !isNil(o.ServerUnderManagement) { + return true + } + + return false +} + +// SetServerUnderManagement gets a reference to the given bool and assigns it to the ServerUnderManagement field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) SetServerUnderManagement(v bool) { + o.ServerUnderManagement = &v +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.LastLogon.IsSet() { + toSerialize["LastLogon"] = o.LastLogon.Get() + } + if !isNil(o.ServerId) { + toSerialize["ServerId"] = o.ServerId + } + if o.ServerName.IsSet() { + toSerialize["ServerName"] = o.ServerName.Get() + } + if o.GroupName.IsSet() { + toSerialize["GroupName"] = o.GroupName.Get() + } + if !isNil(o.KeyCount) { + toSerialize["KeyCount"] = o.KeyCount + } + if !isNil(o.ServerUnderManagement) { + toSerialize["ServerUnderManagement"] = o.ServerUnderManagement + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse struct { + value *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) Get() *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) Set(val *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse(val *CSSCMSDataModelModelsSSHLogonsLogonQueryResponse) *NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse { + return &NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_response.go new file mode 100644 index 0000000..506db5b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_logons_logon_response.go @@ -0,0 +1,338 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHLogonsLogonResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHLogonsLogonResponse{} + +// CSSCMSDataModelModelsSSHLogonsLogonResponse struct for CSSCMSDataModelModelsSSHLogonsLogonResponse +type CSSCMSDataModelModelsSSHLogonsLogonResponse struct { + Id *int32 `json:"Id,omitempty"` + Username NullableString `json:"Username,omitempty"` + LastLogon NullableTime `json:"LastLogon,omitempty"` + Server *CSSCMSDataModelModelsSSHServersServerResponse `json:"Server,omitempty"` + KeyCount *int32 `json:"KeyCount,omitempty"` + Access []CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Access,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHLogonsLogonResponse() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetId(v int32) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLastLogon returns the LastLogon field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogon() time.Time { + if o == nil || isNil(o.LastLogon.Get()) { + var ret time.Time + return ret + } + return *o.LastLogon.Get() +} + +// GetLastLogonOk returns a tuple with the LastLogon field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogon.Get(), o.LastLogon.IsSet() +} + +// HasLastLogon returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasLastLogon() bool { + if o != nil && o.LastLogon.IsSet() { + return true + } + + return false +} + +// SetLastLogon gets a reference to the given NullableTime and assigns it to the LastLogon field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time) { + o.LastLogon.Set(&v) +} + +// SetLastLogonNil sets the value for LastLogon to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogonNil() { + o.LastLogon.Set(nil) +} + +// UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetLastLogon() { + o.LastLogon.Unset() +} + +// GetServer returns the Server field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServer() CSSCMSDataModelModelsSSHServersServerResponse { + if o == nil || isNil(o.Server) { + var ret CSSCMSDataModelModelsSSHServersServerResponse + return ret + } + return *o.Server +} + +// GetServerOk returns a tuple with the Server field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServerOk() (*CSSCMSDataModelModelsSSHServersServerResponse, bool) { + if o == nil || isNil(o.Server) { + return nil, false + } + return o.Server, true +} + +// HasServer returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasServer() bool { + if o != nil && !isNil(o.Server) { + return true + } + + return false +} + +// SetServer gets a reference to the given CSSCMSDataModelModelsSSHServersServerResponse and assigns it to the Server field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetServer(v CSSCMSDataModelModelsSSHServersServerResponse) { + o.Server = &v +} + +// GetKeyCount returns the KeyCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCount() int32 { + if o == nil || isNil(o.KeyCount) { + var ret int32 + return ret + } + return *o.KeyCount +} + +// GetKeyCountOk returns a tuple with the KeyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool) { + if o == nil || isNil(o.KeyCount) { + return nil, false + } + return o.KeyCount, true +} + +// HasKeyCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasKeyCount() bool { + if o != nil && !isNil(o.KeyCount) { + return true + } + + return false +} + +// SetKeyCount gets a reference to the given int32 and assigns it to the KeyCount field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetKeyCount(v int32) { + o.KeyCount = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccess() []CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccessOk() ([]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasAccess() bool { + if o != nil && isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Access field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccess(v []CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Access = v +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.LastLogon.IsSet() { + toSerialize["LastLogon"] = o.LastLogon.Get() + } + if !isNil(o.Server) { + toSerialize["Server"] = o.Server + } + if !isNil(o.KeyCount) { + toSerialize["KeyCount"] = o.KeyCount + } + if o.Access != nil { + toSerialize["Access"] = o.Access + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHLogonsLogonResponse struct { + value *CSSCMSDataModelModelsSSHLogonsLogonResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Get() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Set(val *CSSCMSDataModelModelsSSHLogonsLogonResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHLogonsLogonResponse(val *CSSCMSDataModelModelsSSHLogonsLogonResponse) *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse { + return &NullableCSSCMSDataModelModelsSSHLogonsLogonResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_creation_request.go new file mode 100644 index 0000000..cfddff4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_creation_request.go @@ -0,0 +1,224 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest{} + +// CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest struct for CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest +type CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest struct { + OwnerName string `json:"OwnerName"` + GroupName string `json:"GroupName"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(ownerName string, groupName string) *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest{} + this.OwnerName = ownerName + this.GroupName = groupName + return &this +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest{} + return &this +} + +// GetOwnerName returns the OwnerName field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerName() string { + if o == nil { + var ret string + return ret + } + + return o.OwnerName +} + +// GetOwnerNameOk returns a tuple with the OwnerName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OwnerName, true +} + +// SetOwnerName sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetOwnerName(v string) { + o.OwnerName = v +} + +// GetGroupName returns the GroupName field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetGroupName(v string) { + o.GroupName = v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["OwnerName"] = o.OwnerName + toSerialize["GroupName"] = o.GroupName + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest struct { + value *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) Get() *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) Set(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest { + return &NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_response.go new file mode 100644 index 0000000..a15204f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_response.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse{} + +// CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse struct for CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse +type CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse struct { + Id *string `json:"Id,omitempty"` + Owner *CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Owner,omitempty"` + GroupName NullableString `json:"GroupName,omitempty"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + ServerCount NullableInt32 `json:"ServerCount,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse() *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupResponseWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetId(v string) { + o.Id = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Owner) { + var ret CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Owner field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Owner = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName.Get()) { + var ret string + return ret + } + return *o.GroupName.Get() +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GroupName.Get(), o.GroupName.IsSet() +} + +// HasGroupName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasGroupName() bool { + if o != nil && o.GroupName.IsSet() { + return true + } + + return false +} + +// SetGroupName gets a reference to the given NullableString and assigns it to the GroupName field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetGroupName(v string) { + o.GroupName.Set(&v) +} + +// SetGroupNameNil sets the value for GroupName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetGroupNameNil() { + o.GroupName.Set(nil) +} + +// UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) UnsetGroupName() { + o.GroupName.Unset() +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetServerCount returns the ServerCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetServerCount() int32 { + if o == nil || isNil(o.ServerCount.Get()) { + var ret int32 + return ret + } + return *o.ServerCount.Get() +} + +// GetServerCountOk returns a tuple with the ServerCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) GetServerCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ServerCount.Get(), o.ServerCount.IsSet() +} + +// HasServerCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) HasServerCount() bool { + if o != nil && o.ServerCount.IsSet() { + return true + } + + return false +} + +// SetServerCount gets a reference to the given NullableInt32 and assigns it to the ServerCount field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetServerCount(v int32) { + o.ServerCount.Set(&v) +} + +// SetServerCountNil sets the value for ServerCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) SetServerCountNil() { + o.ServerCount.Set(nil) +} + +// UnsetServerCount ensures that no value is present for ServerCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) UnsetServerCount() { + o.ServerCount.Unset() +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Owner) { + toSerialize["Owner"] = o.Owner + } + if o.GroupName.IsSet() { + toSerialize["GroupName"] = o.GroupName.Get() + } + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if o.ServerCount.IsSet() { + toSerialize["ServerCount"] = o.ServerCount.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse struct { + value *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) Get() *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) Set(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse { + return &NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_update_request.go new file mode 100644 index 0000000..6d9c214 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_server_groups_server_group_update_request.go @@ -0,0 +1,242 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest{} + +// CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest struct for CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest +type CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest struct { + Id string `json:"Id"` + OwnerName string `json:"OwnerName"` + GroupName string `json:"GroupName"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement bool `json:"UnderManagement"` +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(id string, ownerName string, groupName string, underManagement bool) *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest{} + this.Id = id + this.OwnerName = ownerName + this.GroupName = groupName + this.UnderManagement = underManagement + return &this +} + +// NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest { + this := CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetId(v string) { + o.Id = v +} + +// GetOwnerName returns the OwnerName field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerName() string { + if o == nil { + var ret string + return ret + } + + return o.OwnerName +} + +// GetOwnerNameOk returns a tuple with the OwnerName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OwnerName, true +} + +// SetOwnerName sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetOwnerName(v string) { + o.OwnerName = v +} + +// GetGroupName returns the GroupName field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetGroupName(v string) { + o.GroupName = v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagement() bool { + if o == nil { + var ret bool + return ret + } + + return o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UnderManagement, true +} + +// SetUnderManagement sets field value +func (o *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) SetUnderManagement(v bool) { + o.UnderManagement = v +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["OwnerName"] = o.OwnerName + toSerialize["GroupName"] = o.GroupName + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + toSerialize["UnderManagement"] = o.UnderManagement + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest struct { + value *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) Get() *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) Set(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest(val *CSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest { + return &NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServerGroupsServerGroupUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_creation_request.go new file mode 100644 index 0000000..6582897 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_creation_request.go @@ -0,0 +1,273 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServersServerCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServersServerCreationRequest{} + +// CSSCMSDataModelModelsSSHServersServerCreationRequest struct for CSSCMSDataModelModelsSSHServersServerCreationRequest +type CSSCMSDataModelModelsSSHServersServerCreationRequest struct { + AgentId string `json:"AgentId"` + Hostname string `json:"Hostname"` + ServerGroupId string `json:"ServerGroupId"` + UnderManagement NullableBool `json:"UnderManagement,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServersServerCreationRequest instantiates a new CSSCMSDataModelModelsSSHServersServerCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServersServerCreationRequest(agentId string, hostname string, serverGroupId string) *CSSCMSDataModelModelsSSHServersServerCreationRequest { + this := CSSCMSDataModelModelsSSHServersServerCreationRequest{} + this.AgentId = agentId + this.Hostname = hostname + this.ServerGroupId = serverGroupId + return &this +} + +// NewCSSCMSDataModelModelsSSHServersServerCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServersServerCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServersServerCreationRequest { + this := CSSCMSDataModelModelsSSHServersServerCreationRequest{} + return &this +} + +// GetAgentId returns the AgentId field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetAgentId(v string) { + o.AgentId = v +} + +// GetHostname returns the Hostname field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetHostname() string { + if o == nil { + var ret string + return ret + } + + return o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hostname, true +} + +// SetHostname sets field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetHostname(v string) { + o.Hostname = v +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement.Get()) { + var ret bool + return ret + } + return *o.UnderManagement.Get() +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.UnderManagement.Get(), o.UnderManagement.IsSet() +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) HasUnderManagement() bool { + if o != nil && o.UnderManagement.IsSet() { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given NullableBool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetUnderManagement(v bool) { + o.UnderManagement.Set(&v) +} + +// SetUnderManagementNil sets the value for UnderManagement to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetUnderManagementNil() { + o.UnderManagement.Set(nil) +} + +// UnsetUnderManagement ensures that no value is present for UnderManagement, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) UnsetUnderManagement() { + o.UnderManagement.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerCreationRequest) UnsetPort() { + o.Port.Unset() +} + +func (o CSSCMSDataModelModelsSSHServersServerCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServersServerCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AgentId"] = o.AgentId + toSerialize["Hostname"] = o.Hostname + toSerialize["ServerGroupId"] = o.ServerGroupId + if o.UnderManagement.IsSet() { + toSerialize["UnderManagement"] = o.UnderManagement.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServersServerCreationRequest struct { + value *CSSCMSDataModelModelsSSHServersServerCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) Get() *CSSCMSDataModelModelsSSHServersServerCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) Set(val *CSSCMSDataModelModelsSSHServersServerCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServersServerCreationRequest(val *CSSCMSDataModelModelsSSHServersServerCreationRequest) *NullableCSSCMSDataModelModelsSSHServersServerCreationRequest { + return &NullableCSSCMSDataModelModelsSSHServersServerCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_response.go new file mode 100644 index 0000000..ed75f67 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_response.go @@ -0,0 +1,535 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServersServerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServersServerResponse{} + +// CSSCMSDataModelModelsSSHServersServerResponse struct for CSSCMSDataModelModelsSSHServersServerResponse +type CSSCMSDataModelModelsSSHServersServerResponse struct { + Id NullableInt32 `json:"Id,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + Hostname NullableString `json:"Hostname,omitempty"` + ServerGroupId NullableString `json:"ServerGroupId,omitempty"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + Owner *CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Owner,omitempty"` + GroupName NullableString `json:"GroupName,omitempty"` + Orchestrator NullableString `json:"Orchestrator,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServersServerResponse instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServersServerResponse() *CSSCMSDataModelModelsSSHServersServerResponse { + this := CSSCMSDataModelModelsSSHServersServerResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults() *CSSCMSDataModelModelsSSHServersServerResponse { + this := CSSCMSDataModelModelsSSHServersServerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetId() int32 { + if o == nil || isNil(o.Id.Get()) { + var ret int32 + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableInt32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetId(v int32) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetId() { + o.Id.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetHostname returns the Hostname field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostname() string { + if o == nil || isNil(o.Hostname.Get()) { + var ret string + return ret + } + return *o.Hostname.Get() +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hostname.Get(), o.Hostname.IsSet() +} + +// HasHostname returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasHostname() bool { + if o != nil && o.Hostname.IsSet() { + return true + } + + return false +} + +// SetHostname gets a reference to the given NullableString and assigns it to the Hostname field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostname(v string) { + o.Hostname.Set(&v) +} + +// SetHostnameNil sets the value for Hostname to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostnameNil() { + o.Hostname.Set(nil) +} + +// UnsetHostname ensures that no value is present for Hostname, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetHostname() { + o.Hostname.Unset() +} + +// GetServerGroupId returns the ServerGroupId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupId() string { + if o == nil || isNil(o.ServerGroupId.Get()) { + var ret string + return ret + } + return *o.ServerGroupId.Get() +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ServerGroupId.Get(), o.ServerGroupId.IsSet() +} + +// HasServerGroupId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasServerGroupId() bool { + if o != nil && o.ServerGroupId.IsSet() { + return true + } + + return false +} + +// SetServerGroupId gets a reference to the given NullableString and assigns it to the ServerGroupId field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupId(v string) { + o.ServerGroupId.Set(&v) +} + +// SetServerGroupIdNil sets the value for ServerGroupId to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupIdNil() { + o.ServerGroupId.Set(nil) +} + +// UnsetServerGroupId ensures that no value is present for ServerGroupId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetServerGroupId() { + o.ServerGroupId.Unset() +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Owner) { + var ret CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Owner field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Owner = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName.Get()) { + var ret string + return ret + } + return *o.GroupName.Get() +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GroupName.Get(), o.GroupName.IsSet() +} + +// HasGroupName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasGroupName() bool { + if o != nil && o.GroupName.IsSet() { + return true + } + + return false +} + +// SetGroupName gets a reference to the given NullableString and assigns it to the GroupName field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupName(v string) { + o.GroupName.Set(&v) +} + +// SetGroupNameNil sets the value for GroupName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupNameNil() { + o.GroupName.Set(nil) +} + +// UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetGroupName() { + o.GroupName.Unset() +} + +// GetOrchestrator returns the Orchestrator field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestrator() string { + if o == nil || isNil(o.Orchestrator.Get()) { + var ret string + return ret + } + return *o.Orchestrator.Get() +} + +// GetOrchestratorOk returns a tuple with the Orchestrator field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Orchestrator.Get(), o.Orchestrator.IsSet() +} + +// HasOrchestrator returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOrchestrator() bool { + if o != nil && o.Orchestrator.IsSet() { + return true + } + + return false +} + +// SetOrchestrator gets a reference to the given NullableString and assigns it to the Orchestrator field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestrator(v string) { + o.Orchestrator.Set(&v) +} + +// SetOrchestratorNil sets the value for Orchestrator to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestratorNil() { + o.Orchestrator.Set(nil) +} + +// UnsetOrchestrator ensures that no value is present for Orchestrator, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetOrchestrator() { + o.Orchestrator.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetPort() { + o.Port.Unset() +} + +func (o CSSCMSDataModelModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServersServerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if o.Hostname.IsSet() { + toSerialize["Hostname"] = o.Hostname.Get() + } + if o.ServerGroupId.IsSet() { + toSerialize["ServerGroupId"] = o.ServerGroupId.Get() + } + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.Owner) { + toSerialize["Owner"] = o.Owner + } + if o.GroupName.IsSet() { + toSerialize["GroupName"] = o.GroupName.Get() + } + if o.Orchestrator.IsSet() { + toSerialize["Orchestrator"] = o.Orchestrator.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServersServerResponse struct { + value *CSSCMSDataModelModelsSSHServersServerResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) Get() *CSSCMSDataModelModelsSSHServersServerResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) Set(val *CSSCMSDataModelModelsSSHServersServerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServersServerResponse(val *CSSCMSDataModelModelsSSHServersServerResponse) *NullableCSSCMSDataModelModelsSSHServersServerResponse { + return &NullableCSSCMSDataModelModelsSSHServersServerResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_update_request.go new file mode 100644 index 0000000..8db7b31 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_servers_server_update_request.go @@ -0,0 +1,219 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServersServerUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServersServerUpdateRequest{} + +// CSSCMSDataModelModelsSSHServersServerUpdateRequest struct for CSSCMSDataModelModelsSSHServersServerUpdateRequest +type CSSCMSDataModelModelsSSHServersServerUpdateRequest struct { + Id int32 `json:"Id"` + UnderManagement NullableBool `json:"UnderManagement,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServersServerUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServersServerUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServersServerUpdateRequest(id int32) *CSSCMSDataModelModelsSSHServersServerUpdateRequest { + this := CSSCMSDataModelModelsSSHServersServerUpdateRequest{} + this.Id = id + return &this +} + +// NewCSSCMSDataModelModelsSSHServersServerUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServersServerUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServersServerUpdateRequest { + this := CSSCMSDataModelModelsSSHServersServerUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement.Get()) { + var ret bool + return ret + } + return *o.UnderManagement.Get() +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.UnderManagement.Get(), o.UnderManagement.IsSet() +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) HasUnderManagement() bool { + if o != nil && o.UnderManagement.IsSet() { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given NullableBool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetUnderManagement(v bool) { + o.UnderManagement.Set(&v) +} + +// SetUnderManagementNil sets the value for UnderManagement to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetUnderManagementNil() { + o.UnderManagement.Set(nil) +} + +// UnsetUnderManagement ensures that no value is present for UnderManagement, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) UnsetUnderManagement() { + o.UnderManagement.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerUpdateRequest) UnsetPort() { + o.Port.Unset() +} + +func (o CSSCMSDataModelModelsSSHServersServerUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServersServerUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if o.UnderManagement.IsSet() { + toSerialize["UnderManagement"] = o.UnderManagement.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest struct { + value *CSSCMSDataModelModelsSSHServersServerUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) Get() *CSSCMSDataModelModelsSSHServersServerUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) Set(val *CSSCMSDataModelModelsSSHServersServerUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServersServerUpdateRequest(val *CSSCMSDataModelModelsSSHServersServerUpdateRequest) *NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest { + return &NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_creation_request.go new file mode 100644 index 0000000..7783b45 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_creation_request.go @@ -0,0 +1,206 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest{} + +// CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest struct for CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest +type CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest struct { + KeyGenerationRequest CSSCMSDataModelModelsSSHKeysKeyGenerationRequest `json:"KeyGenerationRequest"` + User CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest `json:"User"` + ClientHostname string `json:"ClientHostname"` + ServerGroupId string `json:"ServerGroupId"` +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(keyGenerationRequest CSSCMSDataModelModelsSSHKeysKeyGenerationRequest, user CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest, clientHostname string, serverGroupId string) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest{} + this.KeyGenerationRequest = keyGenerationRequest + this.User = user + this.ClientHostname = clientHostname + this.ServerGroupId = serverGroupId + return &this +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest{} + return &this +} + +// GetKeyGenerationRequest returns the KeyGenerationRequest field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequest() CSSCMSDataModelModelsSSHKeysKeyGenerationRequest { + if o == nil { + var ret CSSCMSDataModelModelsSSHKeysKeyGenerationRequest + return ret + } + + return o.KeyGenerationRequest +} + +// GetKeyGenerationRequestOk returns a tuple with the KeyGenerationRequest field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequestOk() (*CSSCMSDataModelModelsSSHKeysKeyGenerationRequest, bool) { + if o == nil { + return nil, false + } + return &o.KeyGenerationRequest, true +} + +// SetKeyGenerationRequest sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetKeyGenerationRequest(v CSSCMSDataModelModelsSSHKeysKeyGenerationRequest) { + o.KeyGenerationRequest = v +} + +// GetUser returns the User field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetUser() CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest { + if o == nil { + var ret CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetUserOk() (*CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetUser(v CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) { + o.User = v +} + +// GetClientHostname returns the ClientHostname field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostname() string { + if o == nil { + var ret string + return ret + } + + return o.ClientHostname +} + +// GetClientHostnameOk returns a tuple with the ClientHostname field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientHostname, true +} + +// SetClientHostname sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetClientHostname(v string) { + o.ClientHostname = v +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyGenerationRequest"] = o.KeyGenerationRequest + toSerialize["User"] = o.User + toSerialize["ClientHostname"] = o.ClientHostname + toSerialize["ServerGroupId"] = o.ServerGroupId + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest struct { + value *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) Get() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) Set(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest { + return &NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_response.go new file mode 100644 index 0000000..8502ead --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_response.go @@ -0,0 +1,253 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse{} + +// CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse struct for CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse +type CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse struct { + Id *int32 `json:"Id,omitempty"` + ClientHostname NullableString `json:"ClientHostname,omitempty"` + ServerGroup *CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse `json:"ServerGroup,omitempty"` + User *CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"User,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponseWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetId(v int32) { + o.Id = &v +} + +// GetClientHostname returns the ClientHostname field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetClientHostname() string { + if o == nil || isNil(o.ClientHostname.Get()) { + var ret string + return ret + } + return *o.ClientHostname.Get() +} + +// GetClientHostnameOk returns a tuple with the ClientHostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetClientHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientHostname.Get(), o.ClientHostname.IsSet() +} + +// HasClientHostname returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasClientHostname() bool { + if o != nil && o.ClientHostname.IsSet() { + return true + } + + return false +} + +// SetClientHostname gets a reference to the given NullableString and assigns it to the ClientHostname field. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetClientHostname(v string) { + o.ClientHostname.Set(&v) +} + +// SetClientHostnameNil sets the value for ClientHostname to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetClientHostnameNil() { + o.ClientHostname.Set(nil) +} + +// UnsetClientHostname ensures that no value is present for ClientHostname, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) UnsetClientHostname() { + o.ClientHostname.Unset() +} + +// GetServerGroup returns the ServerGroup field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetServerGroup() CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse { + if o == nil || isNil(o.ServerGroup) { + var ret CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse + return ret + } + return *o.ServerGroup +} + +// GetServerGroupOk returns a tuple with the ServerGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetServerGroupOk() (*CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse, bool) { + if o == nil || isNil(o.ServerGroup) { + return nil, false + } + return o.ServerGroup, true +} + +// HasServerGroup returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasServerGroup() bool { + if o != nil && !isNil(o.ServerGroup) { + return true + } + + return false +} + +// SetServerGroup gets a reference to the given CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse and assigns it to the ServerGroup field. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetServerGroup(v CSSCMSDataModelModelsSSHServerGroupsServerGroupResponse) { + o.ServerGroup = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetUser() CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.User) { + var ret CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) GetUserOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) HasUser() bool { + if o != nil && !isNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the User field. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) SetUser(v CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.User = &v +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.ClientHostname.IsSet() { + toSerialize["ClientHostname"] = o.ClientHostname.Get() + } + if !isNil(o.ServerGroup) { + toSerialize["ServerGroup"] = o.ServerGroup + } + if !isNil(o.User) { + toSerialize["User"] = o.User + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse struct { + value *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) Get() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) Set(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse { + return &NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_update_request.go new file mode 100644 index 0000000..c95335b --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_update_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest{} + +// CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest struct for CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest +type CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest struct { + KeyUpdateRequest CSSCMSDataModelModelsSSHKeysKeyUpdateRequest `json:"KeyUpdateRequest"` + Id int32 `json:"Id"` +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(keyUpdateRequest CSSCMSDataModelModelsSSHKeysKeyUpdateRequest, id int32) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest{} + this.KeyUpdateRequest = keyUpdateRequest + this.Id = id + return &this +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest{} + return &this +} + +// GetKeyUpdateRequest returns the KeyUpdateRequest field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequest() CSSCMSDataModelModelsSSHKeysKeyUpdateRequest { + if o == nil { + var ret CSSCMSDataModelModelsSSHKeysKeyUpdateRequest + return ret + } + + return o.KeyUpdateRequest +} + +// GetKeyUpdateRequestOk returns a tuple with the KeyUpdateRequest field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequestOk() (*CSSCMSDataModelModelsSSHKeysKeyUpdateRequest, bool) { + if o == nil { + return nil, false + } + return &o.KeyUpdateRequest, true +} + +// SetKeyUpdateRequest sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) SetKeyUpdateRequest(v CSSCMSDataModelModelsSSHKeysKeyUpdateRequest) { + o.KeyUpdateRequest = v +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) SetId(v int32) { + o.Id = v +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyUpdateRequest"] = o.KeyUpdateRequest + toSerialize["Id"] = o.Id + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest struct { + value *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) Get() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) Set(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest { + return &NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_user_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_user_creation_request.go new file mode 100644 index 0000000..32600b0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_service_accounts_service_account_user_creation_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + +// CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest struct for CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest +type CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest struct { + Username string `json:"Username"` + LogonIds []int32 `json:"LogonIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest(username string) *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + this.Username = username + return &this +} + +// NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest { + this := CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) HasLogonIds() bool { + if o != nil && isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + if o.LogonIds != nil { + toSerialize["LogonIds"] = o.LogonIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest struct { + value *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) Get() *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) Set(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest(val *CSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest { + return &NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServiceAccountsServiceAccountUserCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go new file mode 100644 index 0000000..5d65baf --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + +// CSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct for CSSCMSDataModelModelsSSHUsersSshUserAccessResponse +type CSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *CSSCMSDataModelModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username NullableString `json:"Username,omitempty"` + Access []CSSCMSDataModelModelsSSHLogonsLogonResponse `json:"Access,omitempty"` + IsGroup *bool `json:"IsGroup,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret CSSCMSDataModelModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given CSSCMSDataModelModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetAccess returns the Access field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccess() []CSSCMSDataModelModelsSSHLogonsLogonResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHLogonsLogonResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccessOk() ([]CSSCMSDataModelModelsSSHLogonsLogonResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasAccess() bool { + if o != nil && isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []CSSCMSDataModelModelsSSHLogonsLogonResponse and assigns it to the Access field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccess(v []CSSCMSDataModelModelsSSHLogonsLogonResponse) { + o.Access = v +} + +// GetIsGroup returns the IsGroup field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool { + if o == nil || isNil(o.IsGroup) { + var ret bool + return ret + } + return *o.IsGroup +} + +// GetIsGroupOk returns a tuple with the IsGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool) { + if o == nil || isNil(o.IsGroup) { + return nil, false + } + return o.IsGroup, true +} + +// HasIsGroup returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool { + if o != nil && !isNil(o.IsGroup) { + return true + } + + return false +} + +// SetIsGroup gets a reference to the given bool and assigns it to the IsGroup field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool) { + o.IsGroup = &v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.Access != nil { + toSerialize["Access"] = o.Access + } + if !isNil(o.IsGroup) { + toSerialize["IsGroup"] = o.IsGroup + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct { + value *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Get() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Set(val *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse(val *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_creation_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_creation_request.go new file mode 100644 index 0000000..12a59d3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_creation_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserCreationRequest{} + +// CSSCMSDataModelModelsSSHUsersSshUserCreationRequest struct for CSSCMSDataModelModelsSSHUsersSshUserCreationRequest +type CSSCMSDataModelModelsSSHUsersSshUserCreationRequest struct { + Username string `json:"Username"` + LogonIds []int32 `json:"LogonIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest instantiates a new CSSCMSDataModelModelsSSHUsersSshUserCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequest(username string) *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest { + this := CSSCMSDataModelModelsSSHUsersSshUserCreationRequest{} + this.Username = username + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserCreationRequestWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest { + this := CSSCMSDataModelModelsSSHUsersSshUserCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetLogonIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) HasLogonIds() bool { + if o != nil && isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + if o.LogonIds != nil { + toSerialize["LogonIds"] = o.LogonIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest struct { + value *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) Get() *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) Set(val *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest(val *CSSCMSDataModelModelsSSHUsersSshUserCreationRequest) *NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_response.go new file mode 100644 index 0000000..0ab559d --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_response.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserResponse{} + +// CSSCMSDataModelModelsSSHUsersSshUserResponse struct for CSSCMSDataModelModelsSSHUsersSshUserResponse +type CSSCMSDataModelModelsSSHUsersSshUserResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *CSSCMSDataModelModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username NullableString `json:"Username,omitempty"` + LogonIds []int32 `json:"LogonIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserResponse() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret CSSCMSDataModelModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given CSSCMSDataModelModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasLogonIds() bool { + if o != nil && isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.LogonIds != nil { + toSerialize["LogonIds"] = o.LogonIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserResponse struct { + value *CSSCMSDataModelModelsSSHUsersSshUserResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Get() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Set(val *CSSCMSDataModelModelsSSHUsersSshUserResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserResponse(val *CSSCMSDataModelModelsSSHUsersSshUserResponse) *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_update_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_update_request.go new file mode 100644 index 0000000..02f3744 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssh_users_ssh_user_update_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest{} + +// CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest struct for CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest +type CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest struct { + Id int32 `json:"Id"` + LogonIds []int32 `json:"LogonIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest instantiates a new CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(id int32) *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest { + this := CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest{} + this.Id = id + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserUpdateRequestWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest { + this := CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetLogonIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) HasLogonIds() bool { + if o != nil && isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if o.LogonIds != nil { + toSerialize["LogonIds"] = o.LogonIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest struct { + value *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) Get() *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) Set(val *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest(val *CSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) *NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_display_scan_job_part.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_display_scan_job_part.go new file mode 100644 index 0000000..68b6942 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_display_scan_job_part.go @@ -0,0 +1,359 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSLDisplayScanJobPart type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLDisplayScanJobPart{} + +// CSSCMSDataModelModelsSSLDisplayScanJobPart struct for CSSCMSDataModelModelsSSLDisplayScanJobPart +type CSSCMSDataModelModelsSSLDisplayScanJobPart struct { + ScanJobPartId *string `json:"ScanJobPartId,omitempty"` + Agent NullableString `json:"Agent,omitempty"` + Status *CSSCMSCoreEnumsSslScanJobStatus `json:"Status,omitempty"` + StartTime NullableTime `json:"StartTime,omitempty"` + EndTime NullableTime `json:"EndTime,omitempty"` + EndpointCount NullableInt32 `json:"EndpointCount,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLDisplayScanJobPart instantiates a new CSSCMSDataModelModelsSSLDisplayScanJobPart object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLDisplayScanJobPart() *CSSCMSDataModelModelsSSLDisplayScanJobPart { + this := CSSCMSDataModelModelsSSLDisplayScanJobPart{} + return &this +} + +// NewCSSCMSDataModelModelsSSLDisplayScanJobPartWithDefaults instantiates a new CSSCMSDataModelModelsSSLDisplayScanJobPart object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLDisplayScanJobPartWithDefaults() *CSSCMSDataModelModelsSSLDisplayScanJobPart { + this := CSSCMSDataModelModelsSSLDisplayScanJobPart{} + return &this +} + +// GetScanJobPartId returns the ScanJobPartId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetScanJobPartId() string { + if o == nil || isNil(o.ScanJobPartId) { + var ret string + return ret + } + return *o.ScanJobPartId +} + +// GetScanJobPartIdOk returns a tuple with the ScanJobPartId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetScanJobPartIdOk() (*string, bool) { + if o == nil || isNil(o.ScanJobPartId) { + return nil, false + } + return o.ScanJobPartId, true +} + +// HasScanJobPartId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasScanJobPartId() bool { + if o != nil && !isNil(o.ScanJobPartId) { + return true + } + + return false +} + +// SetScanJobPartId gets a reference to the given string and assigns it to the ScanJobPartId field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetScanJobPartId(v string) { + o.ScanJobPartId = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetAgent() string { + if o == nil || isNil(o.Agent.Get()) { + var ret string + return ret + } + return *o.Agent.Get() +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetAgentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Agent.Get(), o.Agent.IsSet() +} + +// HasAgent returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasAgent() bool { + if o != nil && o.Agent.IsSet() { + return true + } + + return false +} + +// SetAgent gets a reference to the given NullableString and assigns it to the Agent field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetAgent(v string) { + o.Agent.Set(&v) +} + +// SetAgentNil sets the value for Agent to be an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetAgentNil() { + o.Agent.Set(nil) +} + +// UnsetAgent ensures that no value is present for Agent, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetAgent() { + o.Agent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStatus() CSSCMSCoreEnumsSslScanJobStatus { + if o == nil || isNil(o.Status) { + var ret CSSCMSCoreEnumsSslScanJobStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStatusOk() (*CSSCMSCoreEnumsSslScanJobStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CSSCMSCoreEnumsSslScanJobStatus and assigns it to the Status field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStatus(v CSSCMSCoreEnumsSslScanJobStatus) { + o.Status = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime.Get()) { + var ret time.Time + return ret + } + return *o.StartTime.Get() +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetStartTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.StartTime.Get(), o.StartTime.IsSet() +} + +// HasStartTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasStartTime() bool { + if o != nil && o.StartTime.IsSet() { + return true + } + + return false +} + +// SetStartTime gets a reference to the given NullableTime and assigns it to the StartTime field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStartTime(v time.Time) { + o.StartTime.Set(&v) +} + +// SetStartTimeNil sets the value for StartTime to be an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetStartTimeNil() { + o.StartTime.Set(nil) +} + +// UnsetStartTime ensures that no value is present for StartTime, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetStartTime() { + o.StartTime.Unset() +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime.Get()) { + var ret time.Time + return ret + } + return *o.EndTime.Get() +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.EndTime.Get(), o.EndTime.IsSet() +} + +// HasEndTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasEndTime() bool { + if o != nil && o.EndTime.IsSet() { + return true + } + + return false +} + +// SetEndTime gets a reference to the given NullableTime and assigns it to the EndTime field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndTime(v time.Time) { + o.EndTime.Set(&v) +} + +// SetEndTimeNil sets the value for EndTime to be an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndTimeNil() { + o.EndTime.Set(nil) +} + +// UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetEndTime() { + o.EndTime.Unset() +} + +// GetEndpointCount returns the EndpointCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndpointCount() int32 { + if o == nil || isNil(o.EndpointCount.Get()) { + var ret int32 + return ret + } + return *o.EndpointCount.Get() +} + +// GetEndpointCountOk returns a tuple with the EndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) GetEndpointCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.EndpointCount.Get(), o.EndpointCount.IsSet() +} + +// HasEndpointCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) HasEndpointCount() bool { + if o != nil && o.EndpointCount.IsSet() { + return true + } + + return false +} + +// SetEndpointCount gets a reference to the given NullableInt32 and assigns it to the EndpointCount field. +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndpointCount(v int32) { + o.EndpointCount.Set(&v) +} + +// SetEndpointCountNil sets the value for EndpointCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) SetEndpointCountNil() { + o.EndpointCount.Set(nil) +} + +// UnsetEndpointCount ensures that no value is present for EndpointCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLDisplayScanJobPart) UnsetEndpointCount() { + o.EndpointCount.Unset() +} + +func (o CSSCMSDataModelModelsSSLDisplayScanJobPart) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLDisplayScanJobPart) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ScanJobPartId) { + toSerialize["ScanJobPartId"] = o.ScanJobPartId + } + if o.Agent.IsSet() { + toSerialize["Agent"] = o.Agent.Get() + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if o.StartTime.IsSet() { + toSerialize["StartTime"] = o.StartTime.Get() + } + if o.EndTime.IsSet() { + toSerialize["EndTime"] = o.EndTime.Get() + } + if o.EndpointCount.IsSet() { + toSerialize["EndpointCount"] = o.EndpointCount.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLDisplayScanJobPart struct { + value *CSSCMSDataModelModelsSSLDisplayScanJobPart + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) Get() *CSSCMSDataModelModelsSSLDisplayScanJobPart { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) Set(val *CSSCMSDataModelModelsSSLDisplayScanJobPart) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLDisplayScanJobPart(val *CSSCMSDataModelModelsSSLDisplayScanJobPart) *NullableCSSCMSDataModelModelsSSLDisplayScanJobPart { + return &NullableCSSCMSDataModelModelsSSLDisplayScanJobPart{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLDisplayScanJobPart) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint.go new file mode 100644 index 0000000..a057a80 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint.go @@ -0,0 +1,419 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLEndpoint type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLEndpoint{} + +// CSSCMSDataModelModelsSSLEndpoint struct for CSSCMSDataModelModelsSSLEndpoint +type CSSCMSDataModelModelsSSLEndpoint struct { + EndpointId *string `json:"EndpointId,omitempty"` + NetworkId *string `json:"NetworkId,omitempty"` + LastHistoryId NullableString `json:"LastHistoryId,omitempty"` + IpAddressBytes NullableString `json:"IpAddressBytes,omitempty"` + Port *int32 `json:"Port,omitempty"` + SNIName NullableString `json:"SNIName,omitempty"` + EnableMonitor *bool `json:"EnableMonitor,omitempty"` + Reviewed *bool `json:"Reviewed,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLEndpoint instantiates a new CSSCMSDataModelModelsSSLEndpoint object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLEndpoint() *CSSCMSDataModelModelsSSLEndpoint { + this := CSSCMSDataModelModelsSSLEndpoint{} + return &this +} + +// NewCSSCMSDataModelModelsSSLEndpointWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpoint object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLEndpointWithDefaults() *CSSCMSDataModelModelsSSLEndpoint { + this := CSSCMSDataModelModelsSSLEndpoint{} + return &this +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetLastHistoryId returns the LastHistoryId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpoint) GetLastHistoryId() string { + if o == nil || isNil(o.LastHistoryId.Get()) { + var ret string + return ret + } + return *o.LastHistoryId.Get() +} + +// GetLastHistoryIdOk returns a tuple with the LastHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpoint) GetLastHistoryIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LastHistoryId.Get(), o.LastHistoryId.IsSet() +} + +// HasLastHistoryId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasLastHistoryId() bool { + if o != nil && o.LastHistoryId.IsSet() { + return true + } + + return false +} + +// SetLastHistoryId gets a reference to the given NullableString and assigns it to the LastHistoryId field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetLastHistoryId(v string) { + o.LastHistoryId.Set(&v) +} + +// SetLastHistoryIdNil sets the value for LastHistoryId to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) SetLastHistoryIdNil() { + o.LastHistoryId.Set(nil) +} + +// UnsetLastHistoryId ensures that no value is present for LastHistoryId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetLastHistoryId() { + o.LastHistoryId.Unset() +} + +// GetIpAddressBytes returns the IpAddressBytes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpoint) GetIpAddressBytes() string { + if o == nil || isNil(o.IpAddressBytes.Get()) { + var ret string + return ret + } + return *o.IpAddressBytes.Get() +} + +// GetIpAddressBytesOk returns a tuple with the IpAddressBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpoint) GetIpAddressBytesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpAddressBytes.Get(), o.IpAddressBytes.IsSet() +} + +// HasIpAddressBytes returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasIpAddressBytes() bool { + if o != nil && o.IpAddressBytes.IsSet() { + return true + } + + return false +} + +// SetIpAddressBytes gets a reference to the given NullableString and assigns it to the IpAddressBytes field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetIpAddressBytes(v string) { + o.IpAddressBytes.Set(&v) +} + +// SetIpAddressBytesNil sets the value for IpAddressBytes to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) SetIpAddressBytesNil() { + o.IpAddressBytes.Set(nil) +} + +// UnsetIpAddressBytes ensures that no value is present for IpAddressBytes, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetIpAddressBytes() { + o.IpAddressBytes.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetPort(v int32) { + o.Port = &v +} + +// GetSNIName returns the SNIName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpoint) GetSNIName() string { + if o == nil || isNil(o.SNIName.Get()) { + var ret string + return ret + } + return *o.SNIName.Get() +} + +// GetSNINameOk returns a tuple with the SNIName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpoint) GetSNINameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SNIName.Get(), o.SNIName.IsSet() +} + +// HasSNIName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasSNIName() bool { + if o != nil && o.SNIName.IsSet() { + return true + } + + return false +} + +// SetSNIName gets a reference to the given NullableString and assigns it to the SNIName field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetSNIName(v string) { + o.SNIName.Set(&v) +} + +// SetSNINameNil sets the value for SNIName to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) SetSNINameNil() { + o.SNIName.Set(nil) +} + +// UnsetSNIName ensures that no value is present for SNIName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpoint) UnsetSNIName() { + o.SNIName.Unset() +} + +// GetEnableMonitor returns the EnableMonitor field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetEnableMonitor() bool { + if o == nil || isNil(o.EnableMonitor) { + var ret bool + return ret + } + return *o.EnableMonitor +} + +// GetEnableMonitorOk returns a tuple with the EnableMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetEnableMonitorOk() (*bool, bool) { + if o == nil || isNil(o.EnableMonitor) { + return nil, false + } + return o.EnableMonitor, true +} + +// HasEnableMonitor returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasEnableMonitor() bool { + if o != nil && !isNil(o.EnableMonitor) { + return true + } + + return false +} + +// SetEnableMonitor gets a reference to the given bool and assigns it to the EnableMonitor field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetEnableMonitor(v bool) { + o.EnableMonitor = &v +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetReviewed() bool { + if o == nil || isNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) GetReviewedOk() (*bool, bool) { + if o == nil || isNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpoint) HasReviewed() bool { + if o != nil && !isNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *CSSCMSDataModelModelsSSLEndpoint) SetReviewed(v bool) { + o.Reviewed = &v +} + +func (o CSSCMSDataModelModelsSSLEndpoint) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLEndpoint) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if o.LastHistoryId.IsSet() { + toSerialize["LastHistoryId"] = o.LastHistoryId.Get() + } + if o.IpAddressBytes.IsSet() { + toSerialize["IpAddressBytes"] = o.IpAddressBytes.Get() + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if o.SNIName.IsSet() { + toSerialize["SNIName"] = o.SNIName.Get() + } + if !isNil(o.EnableMonitor) { + toSerialize["EnableMonitor"] = o.EnableMonitor + } + if !isNil(o.Reviewed) { + toSerialize["Reviewed"] = o.Reviewed + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLEndpoint struct { + value *CSSCMSDataModelModelsSSLEndpoint + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLEndpoint) Get() *CSSCMSDataModelModelsSSLEndpoint { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpoint) Set(val *CSSCMSDataModelModelsSSLEndpoint) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLEndpoint) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLEndpoint(val *CSSCMSDataModelModelsSSLEndpoint) *NullableCSSCMSDataModelModelsSSLEndpoint { + return &NullableCSSCMSDataModelModelsSSLEndpoint{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLEndpoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response.go new file mode 100644 index 0000000..b5affc7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response.go @@ -0,0 +1,435 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSLEndpointHistoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLEndpointHistoryResponse{} + +// CSSCMSDataModelModelsSSLEndpointHistoryResponse struct for CSSCMSDataModelModelsSSLEndpointHistoryResponse +type CSSCMSDataModelModelsSSLEndpointHistoryResponse struct { + HistoryId *string `json:"HistoryId,omitempty"` + EndpointId *string `json:"EndpointId,omitempty"` + AuditId *int64 `json:"AuditId,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + Status *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus `json:"Status,omitempty"` + JobType *KeyfactorOrchestratorsCommonEnumsSslJobType `json:"JobType,omitempty"` + ProbeType *KeyfactorOrchestratorsCommonEnumsSslProbeType `json:"ProbeType,omitempty"` + ReverseDNS NullableString `json:"ReverseDNS,omitempty"` + HistoryCertificates []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel `json:"HistoryCertificates,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLEndpointHistoryResponse instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLEndpointHistoryResponse() *CSSCMSDataModelModelsSSLEndpointHistoryResponse { + this := CSSCMSDataModelModelsSSLEndpointHistoryResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSLEndpointHistoryResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseWithDefaults() *CSSCMSDataModelModelsSSLEndpointHistoryResponse { + this := CSSCMSDataModelModelsSSLEndpointHistoryResponse{} + return &this +} + +// GetHistoryId returns the HistoryId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryId() string { + if o == nil || isNil(o.HistoryId) { + var ret string + return ret + } + return *o.HistoryId +} + +// GetHistoryIdOk returns a tuple with the HistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryIdOk() (*string, bool) { + if o == nil || isNil(o.HistoryId) { + return nil, false + } + return o.HistoryId, true +} + +// HasHistoryId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasHistoryId() bool { + if o != nil && !isNil(o.HistoryId) { + return true + } + + return false +} + +// SetHistoryId gets a reference to the given string and assigns it to the HistoryId field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetHistoryId(v string) { + o.HistoryId = &v +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetAuditId returns the AuditId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetAuditId() int64 { + if o == nil || isNil(o.AuditId) { + var ret int64 + return ret + } + return *o.AuditId +} + +// GetAuditIdOk returns a tuple with the AuditId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetAuditIdOk() (*int64, bool) { + if o == nil || isNil(o.AuditId) { + return nil, false + } + return o.AuditId, true +} + +// HasAuditId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasAuditId() bool { + if o != nil && !isNil(o.AuditId) { + return true + } + + return false +} + +// SetAuditId gets a reference to the given int64 and assigns it to the AuditId field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetAuditId(v int64) { + o.AuditId = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetStatus() KeyfactorOrchestratorsCommonEnumsSslEndpointStatus { + if o == nil || isNil(o.Status) { + var ret KeyfactorOrchestratorsCommonEnumsSslEndpointStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetStatusOk() (*KeyfactorOrchestratorsCommonEnumsSslEndpointStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given KeyfactorOrchestratorsCommonEnumsSslEndpointStatus and assigns it to the Status field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetStatus(v KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) { + o.Status = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetJobType() KeyfactorOrchestratorsCommonEnumsSslJobType { + if o == nil || isNil(o.JobType) { + var ret KeyfactorOrchestratorsCommonEnumsSslJobType + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetJobTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslJobType, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given KeyfactorOrchestratorsCommonEnumsSslJobType and assigns it to the JobType field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetJobType(v KeyfactorOrchestratorsCommonEnumsSslJobType) { + o.JobType = &v +} + +// GetProbeType returns the ProbeType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetProbeType() KeyfactorOrchestratorsCommonEnumsSslProbeType { + if o == nil || isNil(o.ProbeType) { + var ret KeyfactorOrchestratorsCommonEnumsSslProbeType + return ret + } + return *o.ProbeType +} + +// GetProbeTypeOk returns a tuple with the ProbeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetProbeTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslProbeType, bool) { + if o == nil || isNil(o.ProbeType) { + return nil, false + } + return o.ProbeType, true +} + +// HasProbeType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasProbeType() bool { + if o != nil && !isNil(o.ProbeType) { + return true + } + + return false +} + +// SetProbeType gets a reference to the given KeyfactorOrchestratorsCommonEnumsSslProbeType and assigns it to the ProbeType field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetProbeType(v KeyfactorOrchestratorsCommonEnumsSslProbeType) { + o.ProbeType = &v +} + +// GetReverseDNS returns the ReverseDNS field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetReverseDNS() string { + if o == nil || isNil(o.ReverseDNS.Get()) { + var ret string + return ret + } + return *o.ReverseDNS.Get() +} + +// GetReverseDNSOk returns a tuple with the ReverseDNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetReverseDNSOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReverseDNS.Get(), o.ReverseDNS.IsSet() +} + +// HasReverseDNS returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasReverseDNS() bool { + if o != nil && o.ReverseDNS.IsSet() { + return true + } + + return false +} + +// SetReverseDNS gets a reference to the given NullableString and assigns it to the ReverseDNS field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetReverseDNS(v string) { + o.ReverseDNS.Set(&v) +} + +// SetReverseDNSNil sets the value for ReverseDNS to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetReverseDNSNil() { + o.ReverseDNS.Set(nil) +} + +// UnsetReverseDNS ensures that no value is present for ReverseDNS, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) UnsetReverseDNS() { + o.ReverseDNS.Unset() +} + +// GetHistoryCertificates returns the HistoryCertificates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryCertificates() []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel { + if o == nil { + var ret []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel + return ret + } + return o.HistoryCertificates +} + +// GetHistoryCertificatesOk returns a tuple with the HistoryCertificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) GetHistoryCertificatesOk() ([]CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel, bool) { + if o == nil || isNil(o.HistoryCertificates) { + return nil, false + } + return o.HistoryCertificates, true +} + +// HasHistoryCertificates returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) HasHistoryCertificates() bool { + if o != nil && isNil(o.HistoryCertificates) { + return true + } + + return false +} + +// SetHistoryCertificates gets a reference to the given []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel and assigns it to the HistoryCertificates field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponse) SetHistoryCertificates(v []CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) { + o.HistoryCertificates = v +} + +func (o CSSCMSDataModelModelsSSLEndpointHistoryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLEndpointHistoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.HistoryId) { + toSerialize["HistoryId"] = o.HistoryId + } + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if !isNil(o.AuditId) { + toSerialize["AuditId"] = o.AuditId + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if !isNil(o.ProbeType) { + toSerialize["ProbeType"] = o.ProbeType + } + if o.ReverseDNS.IsSet() { + toSerialize["ReverseDNS"] = o.ReverseDNS.Get() + } + if o.HistoryCertificates != nil { + toSerialize["HistoryCertificates"] = o.HistoryCertificates + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse struct { + value *CSSCMSDataModelModelsSSLEndpointHistoryResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) Get() *CSSCMSDataModelModelsSSLEndpointHistoryResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) Set(val *CSSCMSDataModelModelsSSLEndpointHistoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLEndpointHistoryResponse(val *CSSCMSDataModelModelsSSLEndpointHistoryResponse) *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse { + return &NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response_certificate_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response_certificate_model.go new file mode 100644 index 0000000..e0ecc96 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_history_response_certificate_model.go @@ -0,0 +1,526 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel{} + +// CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel struct for CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel +type CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel struct { + Id *int32 `json:"Id,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + SigningAlgorithm NullableString `json:"SigningAlgorithm,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + SubjectAltNameElements []CSSCMSDataModelModelsSubjectAlternativeName `json:"SubjectAltNameElements,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel() *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel { + this := CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel{} + return &this +} + +// NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModelWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModelWithDefaults() *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel { + this := CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetId(v int32) { + o.Id = &v +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm.Get()) { + var ret string + return ret + } + return *o.SigningAlgorithm.Get() +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithmOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SigningAlgorithm.Get(), o.SigningAlgorithm.IsSet() +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSigningAlgorithm() bool { + if o != nil && o.SigningAlgorithm.IsSet() { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given NullableString and assigns it to the SigningAlgorithm field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithm(v string) { + o.SigningAlgorithm.Set(&v) +} + +// SetSigningAlgorithmNil sets the value for SigningAlgorithm to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithmNil() { + o.SigningAlgorithm.Set(nil) +} + +// UnsetSigningAlgorithm ensures that no value is present for SigningAlgorithm, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetSigningAlgorithm() { + o.SigningAlgorithm.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetSubjectAltNameElements returns the SubjectAltNameElements field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElements() []CSSCMSDataModelModelsSubjectAlternativeName { + if o == nil { + var ret []CSSCMSDataModelModelsSubjectAlternativeName + return ret + } + return o.SubjectAltNameElements +} + +// GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElementsOk() ([]CSSCMSDataModelModelsSubjectAlternativeName, bool) { + if o == nil || isNil(o.SubjectAltNameElements) { + return nil, false + } + return o.SubjectAltNameElements, true +} + +// HasSubjectAltNameElements returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) HasSubjectAltNameElements() bool { + if o != nil && isNil(o.SubjectAltNameElements) { + return true + } + + return false +} + +// SetSubjectAltNameElements gets a reference to the given []CSSCMSDataModelModelsSubjectAlternativeName and assigns it to the SubjectAltNameElements field. +func (o *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) SetSubjectAltNameElements(v []CSSCMSDataModelModelsSubjectAlternativeName) { + o.SubjectAltNameElements = v +} + +func (o CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if o.SigningAlgorithm.IsSet() { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if o.SubjectAltNameElements != nil { + toSerialize["SubjectAltNameElements"] = o.SubjectAltNameElements + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel struct { + value *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) Get() *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) Set(val *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel(val *CSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel { + return &NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointHistoryResponseCertificateModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_status_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_status_request.go new file mode 100644 index 0000000..ab63f28 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_endpoint_status_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLEndpointStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLEndpointStatusRequest{} + +// CSSCMSDataModelModelsSSLEndpointStatusRequest struct for CSSCMSDataModelModelsSSLEndpointStatusRequest +type CSSCMSDataModelModelsSSLEndpointStatusRequest struct { + Id string `json:"Id"` + Status bool `json:"Status"` +} + +// NewCSSCMSDataModelModelsSSLEndpointStatusRequest instantiates a new CSSCMSDataModelModelsSSLEndpointStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLEndpointStatusRequest(id string, status bool) *CSSCMSDataModelModelsSSLEndpointStatusRequest { + this := CSSCMSDataModelModelsSSLEndpointStatusRequest{} + this.Id = id + this.Status = status + return &this +} + +// NewCSSCMSDataModelModelsSSLEndpointStatusRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLEndpointStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLEndpointStatusRequestWithDefaults() *CSSCMSDataModelModelsSSLEndpointStatusRequest { + this := CSSCMSDataModelModelsSSLEndpointStatusRequest{} + return &this +} + +// GetId returns the Id field value +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *CSSCMSDataModelModelsSSLEndpointStatusRequest) SetStatus(v bool) { + o.Status = v +} + +func (o CSSCMSDataModelModelsSSLEndpointStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLEndpointStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Status"] = o.Status + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLEndpointStatusRequest struct { + value *CSSCMSDataModelModelsSSLEndpointStatusRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) Get() *CSSCMSDataModelModelsSSLEndpointStatusRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) Set(val *CSSCMSDataModelModelsSSLEndpointStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLEndpointStatusRequest(val *CSSCMSDataModelModelsSSLEndpointStatusRequest) *NullableCSSCMSDataModelModelsSSLEndpointStatusRequest { + return &NullableCSSCMSDataModelModelsSSLEndpointStatusRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLEndpointStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_immediate_ssl_scan_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_immediate_ssl_scan_request.go new file mode 100644 index 0000000..b473bce --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_immediate_ssl_scan_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLImmediateSslScanRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLImmediateSslScanRequest{} + +// CSSCMSDataModelModelsSSLImmediateSslScanRequest struct for CSSCMSDataModelModelsSSLImmediateSslScanRequest +type CSSCMSDataModelModelsSSLImmediateSslScanRequest struct { + Discovery bool `json:"Discovery"` + Monitoring bool `json:"Monitoring"` +} + +// NewCSSCMSDataModelModelsSSLImmediateSslScanRequest instantiates a new CSSCMSDataModelModelsSSLImmediateSslScanRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLImmediateSslScanRequest(discovery bool, monitoring bool) *CSSCMSDataModelModelsSSLImmediateSslScanRequest { + this := CSSCMSDataModelModelsSSLImmediateSslScanRequest{} + this.Discovery = discovery + this.Monitoring = monitoring + return &this +} + +// NewCSSCMSDataModelModelsSSLImmediateSslScanRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLImmediateSslScanRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLImmediateSslScanRequestWithDefaults() *CSSCMSDataModelModelsSSLImmediateSslScanRequest { + this := CSSCMSDataModelModelsSSLImmediateSslScanRequest{} + return &this +} + +// GetDiscovery returns the Discovery field value +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetDiscovery() bool { + if o == nil { + var ret bool + return ret + } + + return o.Discovery +} + +// GetDiscoveryOk returns a tuple with the Discovery field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetDiscoveryOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Discovery, true +} + +// SetDiscovery sets field value +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) SetDiscovery(v bool) { + o.Discovery = v +} + +// GetMonitoring returns the Monitoring field value +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetMonitoring() bool { + if o == nil { + var ret bool + return ret + } + + return o.Monitoring +} + +// GetMonitoringOk returns a tuple with the Monitoring field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) GetMonitoringOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Monitoring, true +} + +// SetMonitoring sets field value +func (o *CSSCMSDataModelModelsSSLImmediateSslScanRequest) SetMonitoring(v bool) { + o.Monitoring = v +} + +func (o CSSCMSDataModelModelsSSLImmediateSslScanRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLImmediateSslScanRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Discovery"] = o.Discovery + toSerialize["Monitoring"] = o.Monitoring + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest struct { + value *CSSCMSDataModelModelsSSLImmediateSslScanRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) Get() *CSSCMSDataModelModelsSSLImmediateSslScanRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) Set(val *CSSCMSDataModelModelsSSLImmediateSslScanRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLImmediateSslScanRequest(val *CSSCMSDataModelModelsSSLImmediateSslScanRequest) *NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest { + return &NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLImmediateSslScanRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_definition.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_definition.go new file mode 100644 index 0000000..2da6ed5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_definition.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLNetworkDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLNetworkDefinition{} + +// CSSCMSDataModelModelsSSLNetworkDefinition struct for CSSCMSDataModelModelsSSLNetworkDefinition +type CSSCMSDataModelModelsSSLNetworkDefinition struct { + ItemType *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType `json:"ItemType,omitempty"` + Value NullableString `json:"Value,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLNetworkDefinition instantiates a new CSSCMSDataModelModelsSSLNetworkDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLNetworkDefinition() *CSSCMSDataModelModelsSSLNetworkDefinition { + this := CSSCMSDataModelModelsSSLNetworkDefinition{} + return &this +} + +// NewCSSCMSDataModelModelsSSLNetworkDefinitionWithDefaults instantiates a new CSSCMSDataModelModelsSSLNetworkDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLNetworkDefinitionWithDefaults() *CSSCMSDataModelModelsSSLNetworkDefinition { + this := CSSCMSDataModelModelsSSLNetworkDefinition{} + return &this +} + +// GetItemType returns the ItemType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetItemType() KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType { + if o == nil || isNil(o.ItemType) { + var ret KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType + return ret + } + return *o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetItemTypeOk() (*KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType, bool) { + if o == nil || isNil(o.ItemType) { + return nil, false + } + return o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) HasItemType() bool { + if o != nil && !isNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType and assigns it to the ItemType field. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetItemType(v KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) { + o.ItemType = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLNetworkDefinition) UnsetValue() { + o.Value.Unset() +} + +func (o CSSCMSDataModelModelsSSLNetworkDefinition) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLNetworkDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ItemType) { + toSerialize["ItemType"] = o.ItemType + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLNetworkDefinition struct { + value *CSSCMSDataModelModelsSSLNetworkDefinition + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkDefinition) Get() *CSSCMSDataModelModelsSSLNetworkDefinition { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkDefinition) Set(val *CSSCMSDataModelModelsSSLNetworkDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLNetworkDefinition(val *CSSCMSDataModelModelsSSLNetworkDefinition) *NullableCSSCMSDataModelModelsSSLNetworkDefinition { + return &NullableCSSCMSDataModelModelsSSLNetworkDefinition{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_ranges_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_ranges_request.go new file mode 100644 index 0000000..3969d0f --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_network_ranges_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLNetworkRangesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLNetworkRangesRequest{} + +// CSSCMSDataModelModelsSSLNetworkRangesRequest struct for CSSCMSDataModelModelsSSLNetworkRangesRequest +type CSSCMSDataModelModelsSSLNetworkRangesRequest struct { + NetworkId string `json:"NetworkId"` + Ranges []string `json:"Ranges"` +} + +// NewCSSCMSDataModelModelsSSLNetworkRangesRequest instantiates a new CSSCMSDataModelModelsSSLNetworkRangesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLNetworkRangesRequest(networkId string, ranges []string) *CSSCMSDataModelModelsSSLNetworkRangesRequest { + this := CSSCMSDataModelModelsSSLNetworkRangesRequest{} + this.NetworkId = networkId + this.Ranges = ranges + return &this +} + +// NewCSSCMSDataModelModelsSSLNetworkRangesRequestWithDefaults instantiates a new CSSCMSDataModelModelsSSLNetworkRangesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLNetworkRangesRequestWithDefaults() *CSSCMSDataModelModelsSSLNetworkRangesRequest { + this := CSSCMSDataModelModelsSSLNetworkRangesRequest{} + return &this +} + +// GetNetworkId returns the NetworkId field value +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetNetworkId() string { + if o == nil { + var ret string + return ret + } + + return o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetNetworkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NetworkId, true +} + +// SetNetworkId sets field value +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) SetNetworkId(v string) { + o.NetworkId = v +} + +// GetRanges returns the Ranges field value +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetRanges() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ranges +} + +// GetRangesOk returns a tuple with the Ranges field value +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) GetRangesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ranges, true +} + +// SetRanges sets field value +func (o *CSSCMSDataModelModelsSSLNetworkRangesRequest) SetRanges(v []string) { + o.Ranges = v +} + +func (o CSSCMSDataModelModelsSSLNetworkRangesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLNetworkRangesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["NetworkId"] = o.NetworkId + toSerialize["Ranges"] = o.Ranges + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLNetworkRangesRequest struct { + value *CSSCMSDataModelModelsSSLNetworkRangesRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) Get() *CSSCMSDataModelModelsSSLNetworkRangesRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) Set(val *CSSCMSDataModelModelsSSLNetworkRangesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLNetworkRangesRequest(val *CSSCMSDataModelModelsSSLNetworkRangesRequest) *NullableCSSCMSDataModelModelsSSLNetworkRangesRequest { + return &NullableCSSCMSDataModelModelsSSLNetworkRangesRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLNetworkRangesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part.go new file mode 100644 index 0000000..bb23620 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part.go @@ -0,0 +1,844 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSLScanJobPart type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLScanJobPart{} + +// CSSCMSDataModelModelsSSLScanJobPart struct for CSSCMSDataModelModelsSSLScanJobPart +type CSSCMSDataModelModelsSSLScanJobPart struct { + ScanJobPartId *string `json:"ScanJobPartId,omitempty"` + LogicalScanJobId *string `json:"LogicalScanJobId,omitempty"` + AgentJobId *string `json:"AgentJobId,omitempty"` + EstimatedEndpointCount NullableInt32 `json:"EstimatedEndpointCount,omitempty"` + Status *CSSCMSCoreEnumsSslScanJobStatus `json:"Status,omitempty"` + StatTotalEndpointCount NullableInt32 `json:"StatTotalEndpointCount,omitempty"` + StatTimedOutConnectingCount NullableInt32 `json:"StatTimedOutConnectingCount,omitempty"` + StatConnectionRefusedCount NullableInt32 `json:"StatConnectionRefusedCount,omitempty"` + StatTimedOutDownloadingCount NullableInt32 `json:"StatTimedOutDownloadingCount,omitempty"` + StatExceptionDownloadingCount NullableInt32 `json:"StatExceptionDownloadingCount,omitempty"` + StatNotSslCount NullableInt32 `json:"StatNotSslCount,omitempty"` + StatBadSslHandshakeCount NullableInt32 `json:"StatBadSslHandshakeCount,omitempty"` + StatCertificateFoundCount NullableInt32 `json:"StatCertificateFoundCount,omitempty"` + StatNoCertificateCount NullableInt32 `json:"StatNoCertificateCount,omitempty"` + ScanJobPartDefinitions []CSSCMSDataModelModelsSSLScanJobPartDefinition `json:"ScanJobPartDefinitions,omitempty"` + StartTime NullableTime `json:"StartTime,omitempty"` + EndTime NullableTime `json:"EndTime,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLScanJobPart instantiates a new CSSCMSDataModelModelsSSLScanJobPart object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLScanJobPart() *CSSCMSDataModelModelsSSLScanJobPart { + this := CSSCMSDataModelModelsSSLScanJobPart{} + return &this +} + +// NewCSSCMSDataModelModelsSSLScanJobPartWithDefaults instantiates a new CSSCMSDataModelModelsSSLScanJobPart object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLScanJobPartWithDefaults() *CSSCMSDataModelModelsSSLScanJobPart { + this := CSSCMSDataModelModelsSSLScanJobPart{} + return &this +} + +// GetScanJobPartId returns the ScanJobPartId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartId() string { + if o == nil || isNil(o.ScanJobPartId) { + var ret string + return ret + } + return *o.ScanJobPartId +} + +// GetScanJobPartIdOk returns a tuple with the ScanJobPartId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartIdOk() (*string, bool) { + if o == nil || isNil(o.ScanJobPartId) { + return nil, false + } + return o.ScanJobPartId, true +} + +// HasScanJobPartId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasScanJobPartId() bool { + if o != nil && !isNil(o.ScanJobPartId) { + return true + } + + return false +} + +// SetScanJobPartId gets a reference to the given string and assigns it to the ScanJobPartId field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetScanJobPartId(v string) { + o.ScanJobPartId = &v +} + +// GetLogicalScanJobId returns the LogicalScanJobId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetLogicalScanJobId() string { + if o == nil || isNil(o.LogicalScanJobId) { + var ret string + return ret + } + return *o.LogicalScanJobId +} + +// GetLogicalScanJobIdOk returns a tuple with the LogicalScanJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetLogicalScanJobIdOk() (*string, bool) { + if o == nil || isNil(o.LogicalScanJobId) { + return nil, false + } + return o.LogicalScanJobId, true +} + +// HasLogicalScanJobId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasLogicalScanJobId() bool { + if o != nil && !isNil(o.LogicalScanJobId) { + return true + } + + return false +} + +// SetLogicalScanJobId gets a reference to the given string and assigns it to the LogicalScanJobId field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetLogicalScanJobId(v string) { + o.LogicalScanJobId = &v +} + +// GetAgentJobId returns the AgentJobId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetAgentJobId() string { + if o == nil || isNil(o.AgentJobId) { + var ret string + return ret + } + return *o.AgentJobId +} + +// GetAgentJobIdOk returns a tuple with the AgentJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetAgentJobIdOk() (*string, bool) { + if o == nil || isNil(o.AgentJobId) { + return nil, false + } + return o.AgentJobId, true +} + +// HasAgentJobId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasAgentJobId() bool { + if o != nil && !isNil(o.AgentJobId) { + return true + } + + return false +} + +// SetAgentJobId gets a reference to the given string and assigns it to the AgentJobId field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetAgentJobId(v string) { + o.AgentJobId = &v +} + +// GetEstimatedEndpointCount returns the EstimatedEndpointCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEstimatedEndpointCount() int32 { + if o == nil || isNil(o.EstimatedEndpointCount.Get()) { + var ret int32 + return ret + } + return *o.EstimatedEndpointCount.Get() +} + +// GetEstimatedEndpointCountOk returns a tuple with the EstimatedEndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEstimatedEndpointCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.EstimatedEndpointCount.Get(), o.EstimatedEndpointCount.IsSet() +} + +// HasEstimatedEndpointCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasEstimatedEndpointCount() bool { + if o != nil && o.EstimatedEndpointCount.IsSet() { + return true + } + + return false +} + +// SetEstimatedEndpointCount gets a reference to the given NullableInt32 and assigns it to the EstimatedEndpointCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEstimatedEndpointCount(v int32) { + o.EstimatedEndpointCount.Set(&v) +} + +// SetEstimatedEndpointCountNil sets the value for EstimatedEndpointCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEstimatedEndpointCountNil() { + o.EstimatedEndpointCount.Set(nil) +} + +// UnsetEstimatedEndpointCount ensures that no value is present for EstimatedEndpointCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetEstimatedEndpointCount() { + o.EstimatedEndpointCount.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatus() CSSCMSCoreEnumsSslScanJobStatus { + if o == nil || isNil(o.Status) { + var ret CSSCMSCoreEnumsSslScanJobStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatusOk() (*CSSCMSCoreEnumsSslScanJobStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CSSCMSCoreEnumsSslScanJobStatus and assigns it to the Status field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatus(v CSSCMSCoreEnumsSslScanJobStatus) { + o.Status = &v +} + +// GetStatTotalEndpointCount returns the StatTotalEndpointCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTotalEndpointCount() int32 { + if o == nil || isNil(o.StatTotalEndpointCount.Get()) { + var ret int32 + return ret + } + return *o.StatTotalEndpointCount.Get() +} + +// GetStatTotalEndpointCountOk returns a tuple with the StatTotalEndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTotalEndpointCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatTotalEndpointCount.Get(), o.StatTotalEndpointCount.IsSet() +} + +// HasStatTotalEndpointCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTotalEndpointCount() bool { + if o != nil && o.StatTotalEndpointCount.IsSet() { + return true + } + + return false +} + +// SetStatTotalEndpointCount gets a reference to the given NullableInt32 and assigns it to the StatTotalEndpointCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTotalEndpointCount(v int32) { + o.StatTotalEndpointCount.Set(&v) +} + +// SetStatTotalEndpointCountNil sets the value for StatTotalEndpointCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTotalEndpointCountNil() { + o.StatTotalEndpointCount.Set(nil) +} + +// UnsetStatTotalEndpointCount ensures that no value is present for StatTotalEndpointCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTotalEndpointCount() { + o.StatTotalEndpointCount.Unset() +} + +// GetStatTimedOutConnectingCount returns the StatTimedOutConnectingCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutConnectingCount() int32 { + if o == nil || isNil(o.StatTimedOutConnectingCount.Get()) { + var ret int32 + return ret + } + return *o.StatTimedOutConnectingCount.Get() +} + +// GetStatTimedOutConnectingCountOk returns a tuple with the StatTimedOutConnectingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutConnectingCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatTimedOutConnectingCount.Get(), o.StatTimedOutConnectingCount.IsSet() +} + +// HasStatTimedOutConnectingCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTimedOutConnectingCount() bool { + if o != nil && o.StatTimedOutConnectingCount.IsSet() { + return true + } + + return false +} + +// SetStatTimedOutConnectingCount gets a reference to the given NullableInt32 and assigns it to the StatTimedOutConnectingCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutConnectingCount(v int32) { + o.StatTimedOutConnectingCount.Set(&v) +} + +// SetStatTimedOutConnectingCountNil sets the value for StatTimedOutConnectingCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutConnectingCountNil() { + o.StatTimedOutConnectingCount.Set(nil) +} + +// UnsetStatTimedOutConnectingCount ensures that no value is present for StatTimedOutConnectingCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTimedOutConnectingCount() { + o.StatTimedOutConnectingCount.Unset() +} + +// GetStatConnectionRefusedCount returns the StatConnectionRefusedCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatConnectionRefusedCount() int32 { + if o == nil || isNil(o.StatConnectionRefusedCount.Get()) { + var ret int32 + return ret + } + return *o.StatConnectionRefusedCount.Get() +} + +// GetStatConnectionRefusedCountOk returns a tuple with the StatConnectionRefusedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatConnectionRefusedCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatConnectionRefusedCount.Get(), o.StatConnectionRefusedCount.IsSet() +} + +// HasStatConnectionRefusedCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatConnectionRefusedCount() bool { + if o != nil && o.StatConnectionRefusedCount.IsSet() { + return true + } + + return false +} + +// SetStatConnectionRefusedCount gets a reference to the given NullableInt32 and assigns it to the StatConnectionRefusedCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatConnectionRefusedCount(v int32) { + o.StatConnectionRefusedCount.Set(&v) +} + +// SetStatConnectionRefusedCountNil sets the value for StatConnectionRefusedCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatConnectionRefusedCountNil() { + o.StatConnectionRefusedCount.Set(nil) +} + +// UnsetStatConnectionRefusedCount ensures that no value is present for StatConnectionRefusedCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatConnectionRefusedCount() { + o.StatConnectionRefusedCount.Unset() +} + +// GetStatTimedOutDownloadingCount returns the StatTimedOutDownloadingCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutDownloadingCount() int32 { + if o == nil || isNil(o.StatTimedOutDownloadingCount.Get()) { + var ret int32 + return ret + } + return *o.StatTimedOutDownloadingCount.Get() +} + +// GetStatTimedOutDownloadingCountOk returns a tuple with the StatTimedOutDownloadingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatTimedOutDownloadingCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatTimedOutDownloadingCount.Get(), o.StatTimedOutDownloadingCount.IsSet() +} + +// HasStatTimedOutDownloadingCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatTimedOutDownloadingCount() bool { + if o != nil && o.StatTimedOutDownloadingCount.IsSet() { + return true + } + + return false +} + +// SetStatTimedOutDownloadingCount gets a reference to the given NullableInt32 and assigns it to the StatTimedOutDownloadingCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutDownloadingCount(v int32) { + o.StatTimedOutDownloadingCount.Set(&v) +} + +// SetStatTimedOutDownloadingCountNil sets the value for StatTimedOutDownloadingCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatTimedOutDownloadingCountNil() { + o.StatTimedOutDownloadingCount.Set(nil) +} + +// UnsetStatTimedOutDownloadingCount ensures that no value is present for StatTimedOutDownloadingCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatTimedOutDownloadingCount() { + o.StatTimedOutDownloadingCount.Unset() +} + +// GetStatExceptionDownloadingCount returns the StatExceptionDownloadingCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatExceptionDownloadingCount() int32 { + if o == nil || isNil(o.StatExceptionDownloadingCount.Get()) { + var ret int32 + return ret + } + return *o.StatExceptionDownloadingCount.Get() +} + +// GetStatExceptionDownloadingCountOk returns a tuple with the StatExceptionDownloadingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatExceptionDownloadingCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatExceptionDownloadingCount.Get(), o.StatExceptionDownloadingCount.IsSet() +} + +// HasStatExceptionDownloadingCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatExceptionDownloadingCount() bool { + if o != nil && o.StatExceptionDownloadingCount.IsSet() { + return true + } + + return false +} + +// SetStatExceptionDownloadingCount gets a reference to the given NullableInt32 and assigns it to the StatExceptionDownloadingCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatExceptionDownloadingCount(v int32) { + o.StatExceptionDownloadingCount.Set(&v) +} + +// SetStatExceptionDownloadingCountNil sets the value for StatExceptionDownloadingCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatExceptionDownloadingCountNil() { + o.StatExceptionDownloadingCount.Set(nil) +} + +// UnsetStatExceptionDownloadingCount ensures that no value is present for StatExceptionDownloadingCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatExceptionDownloadingCount() { + o.StatExceptionDownloadingCount.Unset() +} + +// GetStatNotSslCount returns the StatNotSslCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNotSslCount() int32 { + if o == nil || isNil(o.StatNotSslCount.Get()) { + var ret int32 + return ret + } + return *o.StatNotSslCount.Get() +} + +// GetStatNotSslCountOk returns a tuple with the StatNotSslCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNotSslCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatNotSslCount.Get(), o.StatNotSslCount.IsSet() +} + +// HasStatNotSslCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatNotSslCount() bool { + if o != nil && o.StatNotSslCount.IsSet() { + return true + } + + return false +} + +// SetStatNotSslCount gets a reference to the given NullableInt32 and assigns it to the StatNotSslCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNotSslCount(v int32) { + o.StatNotSslCount.Set(&v) +} + +// SetStatNotSslCountNil sets the value for StatNotSslCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNotSslCountNil() { + o.StatNotSslCount.Set(nil) +} + +// UnsetStatNotSslCount ensures that no value is present for StatNotSslCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatNotSslCount() { + o.StatNotSslCount.Unset() +} + +// GetStatBadSslHandshakeCount returns the StatBadSslHandshakeCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatBadSslHandshakeCount() int32 { + if o == nil || isNil(o.StatBadSslHandshakeCount.Get()) { + var ret int32 + return ret + } + return *o.StatBadSslHandshakeCount.Get() +} + +// GetStatBadSslHandshakeCountOk returns a tuple with the StatBadSslHandshakeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatBadSslHandshakeCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatBadSslHandshakeCount.Get(), o.StatBadSslHandshakeCount.IsSet() +} + +// HasStatBadSslHandshakeCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatBadSslHandshakeCount() bool { + if o != nil && o.StatBadSslHandshakeCount.IsSet() { + return true + } + + return false +} + +// SetStatBadSslHandshakeCount gets a reference to the given NullableInt32 and assigns it to the StatBadSslHandshakeCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatBadSslHandshakeCount(v int32) { + o.StatBadSslHandshakeCount.Set(&v) +} + +// SetStatBadSslHandshakeCountNil sets the value for StatBadSslHandshakeCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatBadSslHandshakeCountNil() { + o.StatBadSslHandshakeCount.Set(nil) +} + +// UnsetStatBadSslHandshakeCount ensures that no value is present for StatBadSslHandshakeCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatBadSslHandshakeCount() { + o.StatBadSslHandshakeCount.Unset() +} + +// GetStatCertificateFoundCount returns the StatCertificateFoundCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatCertificateFoundCount() int32 { + if o == nil || isNil(o.StatCertificateFoundCount.Get()) { + var ret int32 + return ret + } + return *o.StatCertificateFoundCount.Get() +} + +// GetStatCertificateFoundCountOk returns a tuple with the StatCertificateFoundCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatCertificateFoundCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatCertificateFoundCount.Get(), o.StatCertificateFoundCount.IsSet() +} + +// HasStatCertificateFoundCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatCertificateFoundCount() bool { + if o != nil && o.StatCertificateFoundCount.IsSet() { + return true + } + + return false +} + +// SetStatCertificateFoundCount gets a reference to the given NullableInt32 and assigns it to the StatCertificateFoundCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatCertificateFoundCount(v int32) { + o.StatCertificateFoundCount.Set(&v) +} + +// SetStatCertificateFoundCountNil sets the value for StatCertificateFoundCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatCertificateFoundCountNil() { + o.StatCertificateFoundCount.Set(nil) +} + +// UnsetStatCertificateFoundCount ensures that no value is present for StatCertificateFoundCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatCertificateFoundCount() { + o.StatCertificateFoundCount.Unset() +} + +// GetStatNoCertificateCount returns the StatNoCertificateCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNoCertificateCount() int32 { + if o == nil || isNil(o.StatNoCertificateCount.Get()) { + var ret int32 + return ret + } + return *o.StatNoCertificateCount.Get() +} + +// GetStatNoCertificateCountOk returns a tuple with the StatNoCertificateCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStatNoCertificateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.StatNoCertificateCount.Get(), o.StatNoCertificateCount.IsSet() +} + +// HasStatNoCertificateCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStatNoCertificateCount() bool { + if o != nil && o.StatNoCertificateCount.IsSet() { + return true + } + + return false +} + +// SetStatNoCertificateCount gets a reference to the given NullableInt32 and assigns it to the StatNoCertificateCount field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNoCertificateCount(v int32) { + o.StatNoCertificateCount.Set(&v) +} + +// SetStatNoCertificateCountNil sets the value for StatNoCertificateCount to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStatNoCertificateCountNil() { + o.StatNoCertificateCount.Set(nil) +} + +// UnsetStatNoCertificateCount ensures that no value is present for StatNoCertificateCount, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStatNoCertificateCount() { + o.StatNoCertificateCount.Unset() +} + +// GetScanJobPartDefinitions returns the ScanJobPartDefinitions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartDefinitions() []CSSCMSDataModelModelsSSLScanJobPartDefinition { + if o == nil { + var ret []CSSCMSDataModelModelsSSLScanJobPartDefinition + return ret + } + return o.ScanJobPartDefinitions +} + +// GetScanJobPartDefinitionsOk returns a tuple with the ScanJobPartDefinitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetScanJobPartDefinitionsOk() ([]CSSCMSDataModelModelsSSLScanJobPartDefinition, bool) { + if o == nil || isNil(o.ScanJobPartDefinitions) { + return nil, false + } + return o.ScanJobPartDefinitions, true +} + +// HasScanJobPartDefinitions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasScanJobPartDefinitions() bool { + if o != nil && isNil(o.ScanJobPartDefinitions) { + return true + } + + return false +} + +// SetScanJobPartDefinitions gets a reference to the given []CSSCMSDataModelModelsSSLScanJobPartDefinition and assigns it to the ScanJobPartDefinitions field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetScanJobPartDefinitions(v []CSSCMSDataModelModelsSSLScanJobPartDefinition) { + o.ScanJobPartDefinitions = v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime.Get()) { + var ret time.Time + return ret + } + return *o.StartTime.Get() +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetStartTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.StartTime.Get(), o.StartTime.IsSet() +} + +// HasStartTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasStartTime() bool { + if o != nil && o.StartTime.IsSet() { + return true + } + + return false +} + +// SetStartTime gets a reference to the given NullableTime and assigns it to the StartTime field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStartTime(v time.Time) { + o.StartTime.Set(&v) +} + +// SetStartTimeNil sets the value for StartTime to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetStartTimeNil() { + o.StartTime.Set(nil) +} + +// UnsetStartTime ensures that no value is present for StartTime, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetStartTime() { + o.StartTime.Unset() +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime.Get()) { + var ret time.Time + return ret + } + return *o.EndTime.Get() +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPart) GetEndTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.EndTime.Get(), o.EndTime.IsSet() +} + +// HasEndTime returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPart) HasEndTime() bool { + if o != nil && o.EndTime.IsSet() { + return true + } + + return false +} + +// SetEndTime gets a reference to the given NullableTime and assigns it to the EndTime field. +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEndTime(v time.Time) { + o.EndTime.Set(&v) +} + +// SetEndTimeNil sets the value for EndTime to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) SetEndTimeNil() { + o.EndTime.Set(nil) +} + +// UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPart) UnsetEndTime() { + o.EndTime.Unset() +} + +func (o CSSCMSDataModelModelsSSLScanJobPart) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLScanJobPart) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ScanJobPartId) { + toSerialize["ScanJobPartId"] = o.ScanJobPartId + } + if !isNil(o.LogicalScanJobId) { + toSerialize["LogicalScanJobId"] = o.LogicalScanJobId + } + if !isNil(o.AgentJobId) { + toSerialize["AgentJobId"] = o.AgentJobId + } + if o.EstimatedEndpointCount.IsSet() { + toSerialize["EstimatedEndpointCount"] = o.EstimatedEndpointCount.Get() + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if o.StatTotalEndpointCount.IsSet() { + toSerialize["StatTotalEndpointCount"] = o.StatTotalEndpointCount.Get() + } + if o.StatTimedOutConnectingCount.IsSet() { + toSerialize["StatTimedOutConnectingCount"] = o.StatTimedOutConnectingCount.Get() + } + if o.StatConnectionRefusedCount.IsSet() { + toSerialize["StatConnectionRefusedCount"] = o.StatConnectionRefusedCount.Get() + } + if o.StatTimedOutDownloadingCount.IsSet() { + toSerialize["StatTimedOutDownloadingCount"] = o.StatTimedOutDownloadingCount.Get() + } + if o.StatExceptionDownloadingCount.IsSet() { + toSerialize["StatExceptionDownloadingCount"] = o.StatExceptionDownloadingCount.Get() + } + if o.StatNotSslCount.IsSet() { + toSerialize["StatNotSslCount"] = o.StatNotSslCount.Get() + } + if o.StatBadSslHandshakeCount.IsSet() { + toSerialize["StatBadSslHandshakeCount"] = o.StatBadSslHandshakeCount.Get() + } + if o.StatCertificateFoundCount.IsSet() { + toSerialize["StatCertificateFoundCount"] = o.StatCertificateFoundCount.Get() + } + if o.StatNoCertificateCount.IsSet() { + toSerialize["StatNoCertificateCount"] = o.StatNoCertificateCount.Get() + } + if o.ScanJobPartDefinitions != nil { + toSerialize["ScanJobPartDefinitions"] = o.ScanJobPartDefinitions + } + if o.StartTime.IsSet() { + toSerialize["StartTime"] = o.StartTime.Get() + } + if o.EndTime.IsSet() { + toSerialize["EndTime"] = o.EndTime.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLScanJobPart struct { + value *CSSCMSDataModelModelsSSLScanJobPart + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPart) Get() *CSSCMSDataModelModelsSSLScanJobPart { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPart) Set(val *CSSCMSDataModelModelsSSLScanJobPart) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPart) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPart) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLScanJobPart(val *CSSCMSDataModelModelsSSLScanJobPart) *NullableCSSCMSDataModelModelsSSLScanJobPart { + return &NullableCSSCMSDataModelModelsSSLScanJobPart{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPart) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPart) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part_definition.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part_definition.go new file mode 100644 index 0000000..af76d02 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_scan_job_part_definition.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLScanJobPartDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLScanJobPartDefinition{} + +// CSSCMSDataModelModelsSSLScanJobPartDefinition struct for CSSCMSDataModelModelsSSLScanJobPartDefinition +type CSSCMSDataModelModelsSSLScanJobPartDefinition struct { + ItemType *int32 `json:"ItemType,omitempty"` + Value NullableString `json:"Value,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLScanJobPartDefinition instantiates a new CSSCMSDataModelModelsSSLScanJobPartDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLScanJobPartDefinition() *CSSCMSDataModelModelsSSLScanJobPartDefinition { + this := CSSCMSDataModelModelsSSLScanJobPartDefinition{} + return &this +} + +// NewCSSCMSDataModelModelsSSLScanJobPartDefinitionWithDefaults instantiates a new CSSCMSDataModelModelsSSLScanJobPartDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLScanJobPartDefinitionWithDefaults() *CSSCMSDataModelModelsSSLScanJobPartDefinition { + this := CSSCMSDataModelModelsSSLScanJobPartDefinition{} + return &this +} + +// GetItemType returns the ItemType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetItemType() int32 { + if o == nil || isNil(o.ItemType) { + var ret int32 + return ret + } + return *o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetItemTypeOk() (*int32, bool) { + if o == nil || isNil(o.ItemType) { + return nil, false + } + return o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) HasItemType() bool { + if o != nil && !isNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given int32 and assigns it to the ItemType field. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetItemType(v int32) { + o.ItemType = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLScanJobPartDefinition) UnsetValue() { + o.Value.Unset() +} + +func (o CSSCMSDataModelModelsSSLScanJobPartDefinition) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLScanJobPartDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ItemType) { + toSerialize["ItemType"] = o.ItemType + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLScanJobPartDefinition struct { + value *CSSCMSDataModelModelsSSLScanJobPartDefinition + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) Get() *CSSCMSDataModelModelsSSLScanJobPartDefinition { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) Set(val *CSSCMSDataModelModelsSSLScanJobPartDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLScanJobPartDefinition(val *CSSCMSDataModelModelsSSLScanJobPartDefinition) *NullableCSSCMSDataModelModelsSSLScanJobPartDefinition { + return &NullableCSSCMSDataModelModelsSSLScanJobPartDefinition{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLScanJobPartDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_ssl_scan_result.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_ssl_scan_result.go new file mode 100644 index 0000000..2f041be --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_ssl_ssl_scan_result.go @@ -0,0 +1,560 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSLSslScanResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSLSslScanResult{} + +// CSSCMSDataModelModelsSSLSslScanResult struct for CSSCMSDataModelModelsSSLSslScanResult +type CSSCMSDataModelModelsSSLSslScanResult struct { + EndpointId *string `json:"EndpointId,omitempty"` + ReverseDNS NullableString `json:"ReverseDNS,omitempty"` + SNIName NullableString `json:"SNIName,omitempty"` + IpAddress NullableString `json:"IpAddress,omitempty"` + Port *int32 `json:"Port,omitempty"` + CertificateFound *bool `json:"CertificateFound,omitempty"` + AgentPoolName NullableString `json:"AgentPoolName,omitempty"` + NetworkName NullableString `json:"NetworkName,omitempty"` + MonitorStatus *bool `json:"MonitorStatus,omitempty"` + CertificateCN NullableString `json:"CertificateCN,omitempty"` + Reviewed *bool `json:"Reviewed,omitempty"` +} + +// NewCSSCMSDataModelModelsSSLSslScanResult instantiates a new CSSCMSDataModelModelsSSLSslScanResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSLSslScanResult() *CSSCMSDataModelModelsSSLSslScanResult { + this := CSSCMSDataModelModelsSSLSslScanResult{} + return &this +} + +// NewCSSCMSDataModelModelsSSLSslScanResultWithDefaults instantiates a new CSSCMSDataModelModelsSSLSslScanResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSLSslScanResultWithDefaults() *CSSCMSDataModelModelsSSLSslScanResult { + this := CSSCMSDataModelModelsSSLSslScanResult{} + return &this +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetReverseDNS returns the ReverseDNS field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReverseDNS() string { + if o == nil || isNil(o.ReverseDNS.Get()) { + var ret string + return ret + } + return *o.ReverseDNS.Get() +} + +// GetReverseDNSOk returns a tuple with the ReverseDNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReverseDNSOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReverseDNS.Get(), o.ReverseDNS.IsSet() +} + +// HasReverseDNS returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasReverseDNS() bool { + if o != nil && o.ReverseDNS.IsSet() { + return true + } + + return false +} + +// SetReverseDNS gets a reference to the given NullableString and assigns it to the ReverseDNS field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReverseDNS(v string) { + o.ReverseDNS.Set(&v) +} + +// SetReverseDNSNil sets the value for ReverseDNS to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReverseDNSNil() { + o.ReverseDNS.Set(nil) +} + +// UnsetReverseDNS ensures that no value is present for ReverseDNS, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetReverseDNS() { + o.ReverseDNS.Unset() +} + +// GetSNIName returns the SNIName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetSNIName() string { + if o == nil || isNil(o.SNIName.Get()) { + var ret string + return ret + } + return *o.SNIName.Get() +} + +// GetSNINameOk returns a tuple with the SNIName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetSNINameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SNIName.Get(), o.SNIName.IsSet() +} + +// HasSNIName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasSNIName() bool { + if o != nil && o.SNIName.IsSet() { + return true + } + + return false +} + +// SetSNIName gets a reference to the given NullableString and assigns it to the SNIName field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetSNIName(v string) { + o.SNIName.Set(&v) +} + +// SetSNINameNil sets the value for SNIName to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetSNINameNil() { + o.SNIName.Set(nil) +} + +// UnsetSNIName ensures that no value is present for SNIName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetSNIName() { + o.SNIName.Unset() +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetIpAddress() string { + if o == nil || isNil(o.IpAddress.Get()) { + var ret string + return ret + } + return *o.IpAddress.Get() +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetIpAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IpAddress.Get(), o.IpAddress.IsSet() +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasIpAddress() bool { + if o != nil && o.IpAddress.IsSet() { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given NullableString and assigns it to the IpAddress field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetIpAddress(v string) { + o.IpAddress.Set(&v) +} + +// SetIpAddressNil sets the value for IpAddress to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetIpAddressNil() { + o.IpAddress.Set(nil) +} + +// UnsetIpAddress ensures that no value is present for IpAddress, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetIpAddress() { + o.IpAddress.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetPort(v int32) { + o.Port = &v +} + +// GetCertificateFound returns the CertificateFound field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateFound() bool { + if o == nil || isNil(o.CertificateFound) { + var ret bool + return ret + } + return *o.CertificateFound +} + +// GetCertificateFoundOk returns a tuple with the CertificateFound field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateFoundOk() (*bool, bool) { + if o == nil || isNil(o.CertificateFound) { + return nil, false + } + return o.CertificateFound, true +} + +// HasCertificateFound returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasCertificateFound() bool { + if o != nil && !isNil(o.CertificateFound) { + return true + } + + return false +} + +// SetCertificateFound gets a reference to the given bool and assigns it to the CertificateFound field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateFound(v bool) { + o.CertificateFound = &v +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName.Get()) { + var ret string + return ret + } + return *o.AgentPoolName.Get() +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPoolName.Get(), o.AgentPoolName.IsSet() +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasAgentPoolName() bool { + if o != nil && o.AgentPoolName.IsSet() { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given NullableString and assigns it to the AgentPoolName field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetAgentPoolName(v string) { + o.AgentPoolName.Set(&v) +} + +// SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetAgentPoolNameNil() { + o.AgentPoolName.Set(nil) +} + +// UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetAgentPoolName() { + o.AgentPoolName.Unset() +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetNetworkName() string { + if o == nil || isNil(o.NetworkName.Get()) { + var ret string + return ret + } + return *o.NetworkName.Get() +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetNetworkNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NetworkName.Get(), o.NetworkName.IsSet() +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasNetworkName() bool { + if o != nil && o.NetworkName.IsSet() { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given NullableString and assigns it to the NetworkName field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetNetworkName(v string) { + o.NetworkName.Set(&v) +} + +// SetNetworkNameNil sets the value for NetworkName to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetNetworkNameNil() { + o.NetworkName.Set(nil) +} + +// UnsetNetworkName ensures that no value is present for NetworkName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetNetworkName() { + o.NetworkName.Unset() +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetMonitorStatus() bool { + if o == nil || isNil(o.MonitorStatus) { + var ret bool + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetMonitorStatusOk() (*bool, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given bool and assigns it to the MonitorStatus field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetMonitorStatus(v bool) { + o.MonitorStatus = &v +} + +// GetCertificateCN returns the CertificateCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateCN() string { + if o == nil || isNil(o.CertificateCN.Get()) { + var ret string + return ret + } + return *o.CertificateCN.Get() +} + +// GetCertificateCNOk returns a tuple with the CertificateCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetCertificateCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateCN.Get(), o.CertificateCN.IsSet() +} + +// HasCertificateCN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasCertificateCN() bool { + if o != nil && o.CertificateCN.IsSet() { + return true + } + + return false +} + +// SetCertificateCN gets a reference to the given NullableString and assigns it to the CertificateCN field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateCN(v string) { + o.CertificateCN.Set(&v) +} + +// SetCertificateCNNil sets the value for CertificateCN to be an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetCertificateCNNil() { + o.CertificateCN.Set(nil) +} + +// UnsetCertificateCN ensures that no value is present for CertificateCN, not even an explicit nil +func (o *CSSCMSDataModelModelsSSLSslScanResult) UnsetCertificateCN() { + o.CertificateCN.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReviewed() bool { + if o == nil || isNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) GetReviewedOk() (*bool, bool) { + if o == nil || isNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSLSslScanResult) HasReviewed() bool { + if o != nil && !isNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *CSSCMSDataModelModelsSSLSslScanResult) SetReviewed(v bool) { + o.Reviewed = &v +} + +func (o CSSCMSDataModelModelsSSLSslScanResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSLSslScanResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if o.ReverseDNS.IsSet() { + toSerialize["ReverseDNS"] = o.ReverseDNS.Get() + } + if o.SNIName.IsSet() { + toSerialize["SNIName"] = o.SNIName.Get() + } + if o.IpAddress.IsSet() { + toSerialize["IpAddress"] = o.IpAddress.Get() + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.CertificateFound) { + toSerialize["CertificateFound"] = o.CertificateFound + } + if o.AgentPoolName.IsSet() { + toSerialize["AgentPoolName"] = o.AgentPoolName.Get() + } + if o.NetworkName.IsSet() { + toSerialize["NetworkName"] = o.NetworkName.Get() + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if o.CertificateCN.IsSet() { + toSerialize["CertificateCN"] = o.CertificateCN.Get() + } + if !isNil(o.Reviewed) { + toSerialize["Reviewed"] = o.Reviewed + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSLSslScanResult struct { + value *CSSCMSDataModelModelsSSLSslScanResult + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSLSslScanResult) Get() *CSSCMSDataModelModelsSSLSslScanResult { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSLSslScanResult) Set(val *CSSCMSDataModelModelsSSLSslScanResult) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSLSslScanResult) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSLSslScanResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSLSslScanResult(val *CSSCMSDataModelModelsSSLSslScanResult) *NullableCSSCMSDataModelModelsSSLSslScanResult { + return &NullableCSSCMSDataModelModelsSSLSslScanResult{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSLSslScanResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSLSslScanResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_subject_alternative_name.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_subject_alternative_name.go new file mode 100644 index 0000000..b8a2b74 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_subject_alternative_name.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSubjectAlternativeName type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSubjectAlternativeName{} + +// CSSCMSDataModelModelsSubjectAlternativeName struct for CSSCMSDataModelModelsSubjectAlternativeName +type CSSCMSDataModelModelsSubjectAlternativeName struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + Type *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType `json:"Type,omitempty"` + ValueHash NullableString `json:"ValueHash,omitempty"` +} + +// NewCSSCMSDataModelModelsSubjectAlternativeName instantiates a new CSSCMSDataModelModelsSubjectAlternativeName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSubjectAlternativeName() *CSSCMSDataModelModelsSubjectAlternativeName { + this := CSSCMSDataModelModelsSubjectAlternativeName{} + return &this +} + +// NewCSSCMSDataModelModelsSubjectAlternativeNameWithDefaults instantiates a new CSSCMSDataModelModelsSubjectAlternativeName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSubjectAlternativeNameWithDefaults() *CSSCMSDataModelModelsSubjectAlternativeName { + this := CSSCMSDataModelModelsSubjectAlternativeName{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *CSSCMSDataModelModelsSubjectAlternativeName) UnsetValue() { + o.Value.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetType() KeyfactorPKIPKIConstantsX509SubjectAltNameElementType { + if o == nil || isNil(o.Type) { + var ret KeyfactorPKIPKIConstantsX509SubjectAltNameElementType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetTypeOk() (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given KeyfactorPKIPKIConstantsX509SubjectAltNameElementType and assigns it to the Type field. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetType(v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) { + o.Type = &v +} + +// GetValueHash returns the ValueHash field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueHash() string { + if o == nil || isNil(o.ValueHash.Get()) { + var ret string + return ret + } + return *o.ValueHash.Get() +} + +// GetValueHashOk returns a tuple with the ValueHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSubjectAlternativeName) GetValueHashOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ValueHash.Get(), o.ValueHash.IsSet() +} + +// HasValueHash returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) HasValueHash() bool { + if o != nil && o.ValueHash.IsSet() { + return true + } + + return false +} + +// SetValueHash gets a reference to the given NullableString and assigns it to the ValueHash field. +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueHash(v string) { + o.ValueHash.Set(&v) +} + +// SetValueHashNil sets the value for ValueHash to be an explicit nil +func (o *CSSCMSDataModelModelsSubjectAlternativeName) SetValueHashNil() { + o.ValueHash.Set(nil) +} + +// UnsetValueHash ensures that no value is present for ValueHash, not even an explicit nil +func (o *CSSCMSDataModelModelsSubjectAlternativeName) UnsetValueHash() { + o.ValueHash.Unset() +} + +func (o CSSCMSDataModelModelsSubjectAlternativeName) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSubjectAlternativeName) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if o.ValueHash.IsSet() { + toSerialize["ValueHash"] = o.ValueHash.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSubjectAlternativeName struct { + value *CSSCMSDataModelModelsSubjectAlternativeName + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSubjectAlternativeName) Get() *CSSCMSDataModelModelsSubjectAlternativeName { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSubjectAlternativeName) Set(val *CSSCMSDataModelModelsSubjectAlternativeName) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSubjectAlternativeName) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSubjectAlternativeName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSubjectAlternativeName(val *CSSCMSDataModelModelsSubjectAlternativeName) *NullableCSSCMSDataModelModelsSubjectAlternativeName { + return &NullableCSSCMSDataModelModelsSubjectAlternativeName{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSubjectAlternativeName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSubjectAlternativeName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_algorithm_data.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_algorithm_data.go new file mode 100644 index 0000000..c9d04f3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_algorithm_data.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData{} + +// CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData struct for CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData +type CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData struct { + BitLengths []int32 `json:"bit_lengths,omitempty"` + Curves []string `json:"curves,omitempty"` +} + +// NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData() *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + this := CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData{} + return &this +} + +// NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmDataWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmDataWithDefaults() *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + this := CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData{} + return &this +} + +// GetBitLengths returns the BitLengths field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetBitLengths() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.BitLengths +} + +// GetBitLengthsOk returns a tuple with the BitLengths field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetBitLengthsOk() ([]int32, bool) { + if o == nil || isNil(o.BitLengths) { + return nil, false + } + return o.BitLengths, true +} + +// HasBitLengths returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) HasBitLengths() bool { + if o != nil && isNil(o.BitLengths) { + return true + } + + return false +} + +// SetBitLengths gets a reference to the given []int32 and assigns it to the BitLengths field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetBitLengths(v []int32) { + o.BitLengths = v +} + +// GetCurves returns the Curves field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetCurves() []string { + if o == nil { + var ret []string + return ret + } + return o.Curves +} + +// GetCurvesOk returns a tuple with the Curves field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) GetCurvesOk() ([]string, bool) { + if o == nil || isNil(o.Curves) { + return nil, false + } + return o.Curves, true +} + +// HasCurves returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) HasCurves() bool { + if o != nil && isNil(o.Curves) { + return true + } + + return false +} + +// SetCurves gets a reference to the given []string and assigns it to the Curves field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) SetCurves(v []string) { + o.Curves = v +} + +func (o CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BitLengths != nil { + toSerialize["bit_lengths"] = o.BitLengths + } + if o.Curves != nil { + toSerialize["curves"] = o.Curves + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData struct { + value *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + isSet bool +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) Get() *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) Set(val *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData(val *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) *NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + return &NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_key_info.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_key_info.go new file mode 100644 index 0000000..19ae3a7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_algorithms_key_info.go @@ -0,0 +1,242 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo{} + +// CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo struct for CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo +type CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo struct { + ECDSA *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData `json:"ECDSA,omitempty"` + RSA *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData `json:"RSA,omitempty"` + Ed448 *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData `json:"Ed448,omitempty"` + Ed25519 *CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData `json:"Ed25519,omitempty"` +} + +// NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo() *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + this := CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo{} + return &this +} + +// NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfoWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfoWithDefaults() *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + this := CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo{} + return &this +} + +// GetECDSA returns the ECDSA field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetECDSA() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + if o == nil || isNil(o.ECDSA) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + return ret + } + return *o.ECDSA +} + +// GetECDSAOk returns a tuple with the ECDSA field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetECDSAOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool) { + if o == nil || isNil(o.ECDSA) { + return nil, false + } + return o.ECDSA, true +} + +// HasECDSA returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasECDSA() bool { + if o != nil && !isNil(o.ECDSA) { + return true + } + + return false +} + +// SetECDSA gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData and assigns it to the ECDSA field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetECDSA(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) { + o.ECDSA = &v +} + +// GetRSA returns the RSA field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetRSA() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + if o == nil || isNil(o.RSA) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + return ret + } + return *o.RSA +} + +// GetRSAOk returns a tuple with the RSA field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetRSAOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool) { + if o == nil || isNil(o.RSA) { + return nil, false + } + return o.RSA, true +} + +// HasRSA returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasRSA() bool { + if o != nil && !isNil(o.RSA) { + return true + } + + return false +} + +// SetRSA gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData and assigns it to the RSA field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetRSA(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) { + o.RSA = &v +} + +// GetEd448 returns the Ed448 field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd448() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + if o == nil || isNil(o.Ed448) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + return ret + } + return *o.Ed448 +} + +// GetEd448Ok returns a tuple with the Ed448 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd448Ok() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool) { + if o == nil || isNil(o.Ed448) { + return nil, false + } + return o.Ed448, true +} + +// HasEd448 returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasEd448() bool { + if o != nil && !isNil(o.Ed448) { + return true + } + + return false +} + +// SetEd448 gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData and assigns it to the Ed448 field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetEd448(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) { + o.Ed448 = &v +} + +// GetEd25519 returns the Ed25519 field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd25519() CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData { + if o == nil || isNil(o.Ed25519) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData + return ret + } + return *o.Ed25519 +} + +// GetEd25519Ok returns a tuple with the Ed25519 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) GetEd25519Ok() (*CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData, bool) { + if o == nil || isNil(o.Ed25519) { + return nil, false + } + return o.Ed25519, true +} + +// HasEd25519 returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) HasEd25519() bool { + if o != nil && !isNil(o.Ed25519) { + return true + } + + return false +} + +// SetEd25519 gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData and assigns it to the Ed25519 field. +func (o *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) SetEd25519(v CSSCMSDataModelModelsTemplatesAlgorithmsAlgorithmData) { + o.Ed25519 = &v +} + +func (o CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ECDSA) { + toSerialize["ECDSA"] = o.ECDSA + } + if !isNil(o.RSA) { + toSerialize["RSA"] = o.RSA + } + if !isNil(o.Ed448) { + toSerialize["Ed448"] = o.Ed448 + } + if !isNil(o.Ed25519) { + toSerialize["Ed25519"] = o.Ed25519 + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo struct { + value *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + isSet bool +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) Get() *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) Set(val *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo(val *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) *NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + return &NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_enrollment_field.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_enrollment_field.go new file mode 100644 index 0000000..b3373c3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_enrollment_field.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsTemplatesTemplateEnrollmentField type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsTemplatesTemplateEnrollmentField{} + +// CSSCMSDataModelModelsTemplatesTemplateEnrollmentField struct for CSSCMSDataModelModelsTemplatesTemplateEnrollmentField +type CSSCMSDataModelModelsTemplatesTemplateEnrollmentField struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *CSSCMSCoreEnumsTemplateEnrollmentFieldType `json:"DataType,omitempty"` +} + +// NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentField instantiates a new CSSCMSDataModelModelsTemplatesTemplateEnrollmentField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentField() *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField { + this := CSSCMSDataModelModelsTemplatesTemplateEnrollmentField{} + return &this +} + +// NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentFieldWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesTemplateEnrollmentField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsTemplatesTemplateEnrollmentFieldWithDefaults() *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField { + this := CSSCMSDataModelModelsTemplatesTemplateEnrollmentField{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) UnsetName() { + o.Name.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetOptions() []string { + if o == nil { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasOptions() bool { + if o != nil && isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetDataType() CSSCMSCoreEnumsTemplateEnrollmentFieldType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSCoreEnumsTemplateEnrollmentFieldType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) GetDataTypeOk() (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSCoreEnumsTemplateEnrollmentFieldType and assigns it to the DataType field. +func (o *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) SetDataType(v CSSCMSCoreEnumsTemplateEnrollmentFieldType) { + o.DataType = &v +} + +func (o CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Options != nil { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField struct { + value *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField + isSet bool +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) Get() *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) Set(val *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField(val *CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) *NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField { + return &NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateEnrollmentField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_metadata_field.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_metadata_field.go new file mode 100644 index 0000000..ab40cb3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_templates_template_metadata_field.go @@ -0,0 +1,419 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsTemplatesTemplateMetadataField type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsTemplatesTemplateMetadataField{} + +// CSSCMSDataModelModelsTemplatesTemplateMetadataField struct for CSSCMSDataModelModelsTemplatesTemplateMetadataField +type CSSCMSDataModelModelsTemplatesTemplateMetadataField struct { + Id *int32 `json:"Id,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + TemplateId *int32 `json:"TemplateId,omitempty"` + MetadataId *int32 `json:"MetadataId,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Message NullableString `json:"Message,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` +} + +// NewCSSCMSDataModelModelsTemplatesTemplateMetadataField instantiates a new CSSCMSDataModelModelsTemplatesTemplateMetadataField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsTemplatesTemplateMetadataField() *CSSCMSDataModelModelsTemplatesTemplateMetadataField { + this := CSSCMSDataModelModelsTemplatesTemplateMetadataField{} + return &this +} + +// NewCSSCMSDataModelModelsTemplatesTemplateMetadataFieldWithDefaults instantiates a new CSSCMSDataModelModelsTemplatesTemplateMetadataField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsTemplatesTemplateMetadataFieldWithDefaults() *CSSCMSDataModelModelsTemplatesTemplateMetadataField { + this := CSSCMSDataModelModelsTemplatesTemplateMetadataField{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetId(v int32) { + o.Id = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetMetadataId returns the MetadataId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMetadataId() int32 { + if o == nil || isNil(o.MetadataId) { + var ret int32 + return ret + } + return *o.MetadataId +} + +// GetMetadataIdOk returns a tuple with the MetadataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMetadataIdOk() (*int32, bool) { + if o == nil || isNil(o.MetadataId) { + return nil, false + } + return o.MetadataId, true +} + +// HasMetadataId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasMetadataId() bool { + if o != nil && !isNil(o.MetadataId) { + return true + } + + return false +} + +// SetMetadataId gets a reference to the given int32 and assigns it to the MetadataId field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMetadataId(v int32) { + o.MetadataId = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetValidation() { + o.Validation.Unset() +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) UnsetMessage() { + o.Message.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *CSSCMSDataModelModelsTemplatesTemplateMetadataField) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +func (o CSSCMSDataModelModelsTemplatesTemplateMetadataField) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsTemplatesTemplateMetadataField) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.MetadataId) { + toSerialize["MetadataId"] = o.MetadataId + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField struct { + value *CSSCMSDataModelModelsTemplatesTemplateMetadataField + isSet bool +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) Get() *CSSCMSDataModelModelsTemplatesTemplateMetadataField { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) Set(val *CSSCMSDataModelModelsTemplatesTemplateMetadataField) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsTemplatesTemplateMetadataField(val *CSSCMSDataModelModelsTemplatesTemplateMetadataField) *NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField { + return &NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsTemplatesTemplateMetadataField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_approve_deny_result.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_approve_deny_result.go new file mode 100644 index 0000000..9f81b52 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_approve_deny_result.go @@ -0,0 +1,209 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsWorkflowApproveDenyResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsWorkflowApproveDenyResult{} + +// CSSCMSDataModelModelsWorkflowApproveDenyResult struct for CSSCMSDataModelModelsWorkflowApproveDenyResult +type CSSCMSDataModelModelsWorkflowApproveDenyResult struct { + Failures []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest `json:"Failures,omitempty"` + Denials []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest `json:"Denials,omitempty"` + Successes []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest `json:"Successes,omitempty"` +} + +// NewCSSCMSDataModelModelsWorkflowApproveDenyResult instantiates a new CSSCMSDataModelModelsWorkflowApproveDenyResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsWorkflowApproveDenyResult() *CSSCMSDataModelModelsWorkflowApproveDenyResult { + this := CSSCMSDataModelModelsWorkflowApproveDenyResult{} + return &this +} + +// NewCSSCMSDataModelModelsWorkflowApproveDenyResultWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowApproveDenyResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsWorkflowApproveDenyResultWithDefaults() *CSSCMSDataModelModelsWorkflowApproveDenyResult { + this := CSSCMSDataModelModelsWorkflowApproveDenyResult{} + return &this +} + +// GetFailures returns the Failures field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetFailures() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + if o == nil { + var ret []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Failures +} + +// GetFailuresOk returns a tuple with the Failures field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetFailuresOk() ([]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Failures) { + return nil, false + } + return o.Failures, true +} + +// HasFailures returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasFailures() bool { + if o != nil && isNil(o.Failures) { + return true + } + + return false +} + +// SetFailures gets a reference to the given []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest and assigns it to the Failures field. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetFailures(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) { + o.Failures = v +} + +// GetDenials returns the Denials field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetDenials() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + if o == nil { + var ret []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Denials +} + +// GetDenialsOk returns a tuple with the Denials field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetDenialsOk() ([]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Denials) { + return nil, false + } + return o.Denials, true +} + +// HasDenials returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasDenials() bool { + if o != nil && isNil(o.Denials) { + return true + } + + return false +} + +// SetDenials gets a reference to the given []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest and assigns it to the Denials field. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetDenials(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) { + o.Denials = v +} + +// GetSuccesses returns the Successes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetSuccesses() []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + if o == nil { + var ret []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Successes +} + +// GetSuccessesOk returns a tuple with the Successes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) GetSuccessesOk() ([]CSSCMSDataModelModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Successes) { + return nil, false + } + return o.Successes, true +} + +// HasSuccesses returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) HasSuccesses() bool { + if o != nil && isNil(o.Successes) { + return true + } + + return false +} + +// SetSuccesses gets a reference to the given []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest and assigns it to the Successes field. +func (o *CSSCMSDataModelModelsWorkflowApproveDenyResult) SetSuccesses(v []CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) { + o.Successes = v +} + +func (o CSSCMSDataModelModelsWorkflowApproveDenyResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsWorkflowApproveDenyResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Failures != nil { + toSerialize["Failures"] = o.Failures + } + if o.Denials != nil { + toSerialize["Denials"] = o.Denials + } + if o.Successes != nil { + toSerialize["Successes"] = o.Successes + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsWorkflowApproveDenyResult struct { + value *CSSCMSDataModelModelsWorkflowApproveDenyResult + isSet bool +} + +func (v NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) Get() *CSSCMSDataModelModelsWorkflowApproveDenyResult { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) Set(val *CSSCMSDataModelModelsWorkflowApproveDenyResult) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsWorkflowApproveDenyResult(val *CSSCMSDataModelModelsWorkflowApproveDenyResult) *NullableCSSCMSDataModelModelsWorkflowApproveDenyResult { + return &NullableCSSCMSDataModelModelsWorkflowApproveDenyResult{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsWorkflowApproveDenyResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_cert_store_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_cert_store_model.go new file mode 100644 index 0000000..d3e70e4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_cert_store_model.go @@ -0,0 +1,239 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel{} + +// CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel struct for CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel +type CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel struct { + EntryName NullableString `json:"EntryName,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` +} + +// NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel() *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel { + this := CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel{} + return &this +} + +// NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModelWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModelWithDefaults() *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel { + this := CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel{} + return &this +} + +// GetEntryName returns the EntryName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetEntryName() string { + if o == nil || isNil(o.EntryName.Get()) { + var ret string + return ret + } + return *o.EntryName.Get() +} + +// GetEntryNameOk returns a tuple with the EntryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetEntryNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EntryName.Get(), o.EntryName.IsSet() +} + +// HasEntryName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasEntryName() bool { + if o != nil && o.EntryName.IsSet() { + return true + } + + return false +} + +// SetEntryName gets a reference to the given NullableString and assigns it to the EntryName field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetEntryName(v string) { + o.EntryName.Set(&v) +} + +// SetEntryNameNil sets the value for EntryName to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetEntryNameNil() { + o.EntryName.Set(nil) +} + +// UnsetEntryName ensures that no value is present for EntryName, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetEntryName() { + o.EntryName.Unset() +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnsetStorePath() { + o.StorePath.Unset() +} + +func (o CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.EntryName.IsSet() { + toSerialize["EntryName"] = o.EntryName.Get() + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel struct { + value *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) Get() *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) Set(val *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel(val *CSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) *NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel { + return &NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestCertStoreModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_model.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_model.go new file mode 100644 index 0000000..eef6c93 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_certificate_request_model.go @@ -0,0 +1,584 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsWorkflowCertificateRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsWorkflowCertificateRequestModel{} + +// CSSCMSDataModelModelsWorkflowCertificateRequestModel struct for CSSCMSDataModelModelsWorkflowCertificateRequestModel +type CSSCMSDataModelModelsWorkflowCertificateRequestModel struct { + Id *int32 `json:"Id,omitempty"` + CARequestId NullableString `json:"CARequestId,omitempty"` + CommonName NullableString `json:"CommonName,omitempty"` + DistinguishedName NullableString `json:"DistinguishedName,omitempty"` + SubmissionDate NullableTime `json:"SubmissionDate,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + Template NullableString `json:"Template,omitempty"` + Requester NullableString `json:"Requester,omitempty"` + State *KeyfactorPKIEnumsCertificateState `json:"State,omitempty"` + StateString NullableString `json:"StateString,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` +} + +// NewCSSCMSDataModelModelsWorkflowCertificateRequestModel instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsWorkflowCertificateRequestModel() *CSSCMSDataModelModelsWorkflowCertificateRequestModel { + this := CSSCMSDataModelModelsWorkflowCertificateRequestModel{} + return &this +} + +// NewCSSCMSDataModelModelsWorkflowCertificateRequestModelWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowCertificateRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsWorkflowCertificateRequestModelWithDefaults() *CSSCMSDataModelModelsWorkflowCertificateRequestModel { + this := CSSCMSDataModelModelsWorkflowCertificateRequestModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetId(v int32) { + o.Id = &v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCARequestId() string { + if o == nil || isNil(o.CARequestId.Get()) { + var ret string + return ret + } + return *o.CARequestId.Get() +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCARequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CARequestId.Get(), o.CARequestId.IsSet() +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCARequestId() bool { + if o != nil && o.CARequestId.IsSet() { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given NullableString and assigns it to the CARequestId field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCARequestId(v string) { + o.CARequestId.Set(&v) +} + +// SetCARequestIdNil sets the value for CARequestId to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCARequestIdNil() { + o.CARequestId.Set(nil) +} + +// UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCARequestId() { + o.CARequestId.Unset() +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCommonName() string { + if o == nil || isNil(o.CommonName.Get()) { + var ret string + return ret + } + return *o.CommonName.Get() +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommonName.Get(), o.CommonName.IsSet() +} + +// HasCommonName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCommonName() bool { + if o != nil && o.CommonName.IsSet() { + return true + } + + return false +} + +// SetCommonName gets a reference to the given NullableString and assigns it to the CommonName field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCommonName(v string) { + o.CommonName.Set(&v) +} + +// SetCommonNameNil sets the value for CommonName to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCommonNameNil() { + o.CommonName.Set(nil) +} + +// UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCommonName() { + o.CommonName.Unset() +} + +// GetDistinguishedName returns the DistinguishedName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetDistinguishedName() string { + if o == nil || isNil(o.DistinguishedName.Get()) { + var ret string + return ret + } + return *o.DistinguishedName.Get() +} + +// GetDistinguishedNameOk returns a tuple with the DistinguishedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetDistinguishedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DistinguishedName.Get(), o.DistinguishedName.IsSet() +} + +// HasDistinguishedName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasDistinguishedName() bool { + if o != nil && o.DistinguishedName.IsSet() { + return true + } + + return false +} + +// SetDistinguishedName gets a reference to the given NullableString and assigns it to the DistinguishedName field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetDistinguishedName(v string) { + o.DistinguishedName.Set(&v) +} + +// SetDistinguishedNameNil sets the value for DistinguishedName to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetDistinguishedNameNil() { + o.DistinguishedName.Set(nil) +} + +// UnsetDistinguishedName ensures that no value is present for DistinguishedName, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetDistinguishedName() { + o.DistinguishedName.Unset() +} + +// GetSubmissionDate returns the SubmissionDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetSubmissionDate() time.Time { + if o == nil || isNil(o.SubmissionDate.Get()) { + var ret time.Time + return ret + } + return *o.SubmissionDate.Get() +} + +// GetSubmissionDateOk returns a tuple with the SubmissionDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetSubmissionDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SubmissionDate.Get(), o.SubmissionDate.IsSet() +} + +// HasSubmissionDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasSubmissionDate() bool { + if o != nil && o.SubmissionDate.IsSet() { + return true + } + + return false +} + +// SetSubmissionDate gets a reference to the given NullableTime and assigns it to the SubmissionDate field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetSubmissionDate(v time.Time) { + o.SubmissionDate.Set(&v) +} + +// SetSubmissionDateNil sets the value for SubmissionDate to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetSubmissionDateNil() { + o.SubmissionDate.Set(nil) +} + +// UnsetSubmissionDate ensures that no value is present for SubmissionDate, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetSubmissionDate() { + o.SubmissionDate.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetTemplate() { + o.Template.Unset() +} + +// GetRequester returns the Requester field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetRequester() string { + if o == nil || isNil(o.Requester.Get()) { + var ret string + return ret + } + return *o.Requester.Get() +} + +// GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetRequesterOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Requester.Get(), o.Requester.IsSet() +} + +// HasRequester returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasRequester() bool { + if o != nil && o.Requester.IsSet() { + return true + } + + return false +} + +// SetRequester gets a reference to the given NullableString and assigns it to the Requester field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetRequester(v string) { + o.Requester.Set(&v) +} + +// SetRequesterNil sets the value for Requester to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetRequesterNil() { + o.Requester.Set(nil) +} + +// UnsetRequester ensures that no value is present for Requester, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetRequester() { + o.Requester.Unset() +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetState() KeyfactorPKIEnumsCertificateState { + if o == nil || isNil(o.State) { + var ret KeyfactorPKIEnumsCertificateState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateOk() (*KeyfactorPKIEnumsCertificateState, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given KeyfactorPKIEnumsCertificateState and assigns it to the State field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetState(v KeyfactorPKIEnumsCertificateState) { + o.State = &v +} + +// GetStateString returns the StateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateString() string { + if o == nil || isNil(o.StateString.Get()) { + var ret string + return ret + } + return *o.StateString.Get() +} + +// GetStateStringOk returns a tuple with the StateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetStateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StateString.Get(), o.StateString.IsSet() +} + +// HasStateString returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasStateString() bool { + if o != nil && o.StateString.IsSet() { + return true + } + + return false +} + +// SetStateString gets a reference to the given NullableString and assigns it to the StateString field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetStateString(v string) { + o.StateString.Set(&v) +} + +// SetStateStringNil sets the value for StateString to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetStateStringNil() { + o.StateString.Set(nil) +} + +// UnsetStateString ensures that no value is present for StateString, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) UnsetStateString() { + o.StateString.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *CSSCMSDataModelModelsWorkflowCertificateRequestModel) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o CSSCMSDataModelModelsWorkflowCertificateRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsWorkflowCertificateRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.CARequestId.IsSet() { + toSerialize["CARequestId"] = o.CARequestId.Get() + } + if o.CommonName.IsSet() { + toSerialize["CommonName"] = o.CommonName.Get() + } + if o.DistinguishedName.IsSet() { + toSerialize["DistinguishedName"] = o.DistinguishedName.Get() + } + if o.SubmissionDate.IsSet() { + toSerialize["SubmissionDate"] = o.SubmissionDate.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.Requester.IsSet() { + toSerialize["Requester"] = o.Requester.Get() + } + if !isNil(o.State) { + toSerialize["State"] = o.State + } + if o.StateString.IsSet() { + toSerialize["StateString"] = o.StateString.Get() + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel struct { + value *CSSCMSDataModelModelsWorkflowCertificateRequestModel + isSet bool +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) Get() *CSSCMSDataModelModelsWorkflowCertificateRequestModel { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) Set(val *CSSCMSDataModelModelsWorkflowCertificateRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsWorkflowCertificateRequestModel(val *CSSCMSDataModelModelsWorkflowCertificateRequestModel) *NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel { + return &NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsWorkflowCertificateRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_denial_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_denial_request.go new file mode 100644 index 0000000..6ba605d --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_denial_request.go @@ -0,0 +1,182 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsWorkflowDenialRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsWorkflowDenialRequest{} + +// CSSCMSDataModelModelsWorkflowDenialRequest struct for CSSCMSDataModelModelsWorkflowDenialRequest +type CSSCMSDataModelModelsWorkflowDenialRequest struct { + Comment NullableString `json:"Comment,omitempty"` + CertificateRequestIds []int32 `json:"CertificateRequestIds,omitempty"` +} + +// NewCSSCMSDataModelModelsWorkflowDenialRequest instantiates a new CSSCMSDataModelModelsWorkflowDenialRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsWorkflowDenialRequest() *CSSCMSDataModelModelsWorkflowDenialRequest { + this := CSSCMSDataModelModelsWorkflowDenialRequest{} + return &this +} + +// NewCSSCMSDataModelModelsWorkflowDenialRequestWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowDenialRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsWorkflowDenialRequestWithDefaults() *CSSCMSDataModelModelsWorkflowDenialRequest { + this := CSSCMSDataModelModelsWorkflowDenialRequest{} + return &this +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) UnsetComment() { + o.Comment.Unset() +} + +// GetCertificateRequestIds returns the CertificateRequestIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCertificateRequestIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.CertificateRequestIds +} + +// GetCertificateRequestIdsOk returns a tuple with the CertificateRequestIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) GetCertificateRequestIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateRequestIds) { + return nil, false + } + return o.CertificateRequestIds, true +} + +// HasCertificateRequestIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) HasCertificateRequestIds() bool { + if o != nil && isNil(o.CertificateRequestIds) { + return true + } + + return false +} + +// SetCertificateRequestIds gets a reference to the given []int32 and assigns it to the CertificateRequestIds field. +func (o *CSSCMSDataModelModelsWorkflowDenialRequest) SetCertificateRequestIds(v []int32) { + o.CertificateRequestIds = v +} + +func (o CSSCMSDataModelModelsWorkflowDenialRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsWorkflowDenialRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + if o.CertificateRequestIds != nil { + toSerialize["CertificateRequestIds"] = o.CertificateRequestIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsWorkflowDenialRequest struct { + value *CSSCMSDataModelModelsWorkflowDenialRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsWorkflowDenialRequest) Get() *CSSCMSDataModelModelsWorkflowDenialRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsWorkflowDenialRequest) Set(val *CSSCMSDataModelModelsWorkflowDenialRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsWorkflowDenialRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsWorkflowDenialRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsWorkflowDenialRequest(val *CSSCMSDataModelModelsWorkflowDenialRequest) *NullableCSSCMSDataModelModelsWorkflowDenialRequest { + return &NullableCSSCMSDataModelModelsWorkflowDenialRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsWorkflowDenialRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsWorkflowDenialRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_processed_certificate_request.go b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_processed_certificate_request.go new file mode 100644 index 0000000..d5ff567 --- /dev/null +++ b/v24/api/keyfactor/v1/model_css_cms_data_model_models_workflow_processed_certificate_request.go @@ -0,0 +1,369 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsWorkflowProcessedCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsWorkflowProcessedCertificateRequest{} + +// CSSCMSDataModelModelsWorkflowProcessedCertificateRequest struct for CSSCMSDataModelModelsWorkflowProcessedCertificateRequest +type CSSCMSDataModelModelsWorkflowProcessedCertificateRequest struct { + CARowId NullableInt32 `json:"CARowId,omitempty"` + CARequestId NullableString `json:"CARequestId,omitempty"` + CAHost NullableString `json:"CAHost,omitempty"` + CALogicalName NullableString `json:"CALogicalName,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + Comment NullableString `json:"Comment,omitempty"` +} + +// NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequest instantiates a new CSSCMSDataModelModelsWorkflowProcessedCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequest() *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + this := CSSCMSDataModelModelsWorkflowProcessedCertificateRequest{} + return &this +} + +// NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequestWithDefaults instantiates a new CSSCMSDataModelModelsWorkflowProcessedCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsWorkflowProcessedCertificateRequestWithDefaults() *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + this := CSSCMSDataModelModelsWorkflowProcessedCertificateRequest{} + return &this +} + +// GetCARowId returns the CARowId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARowId() int32 { + if o == nil || isNil(o.CARowId.Get()) { + var ret int32 + return ret + } + return *o.CARowId.Get() +} + +// GetCARowIdOk returns a tuple with the CARowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARowIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CARowId.Get(), o.CARowId.IsSet() +} + +// HasCARowId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCARowId() bool { + if o != nil && o.CARowId.IsSet() { + return true + } + + return false +} + +// SetCARowId gets a reference to the given NullableInt32 and assigns it to the CARowId field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARowId(v int32) { + o.CARowId.Set(&v) +} + +// SetCARowIdNil sets the value for CARowId to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARowIdNil() { + o.CARowId.Set(nil) +} + +// UnsetCARowId ensures that no value is present for CARowId, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCARowId() { + o.CARowId.Unset() +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARequestId() string { + if o == nil || isNil(o.CARequestId.Get()) { + var ret string + return ret + } + return *o.CARequestId.Get() +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCARequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CARequestId.Get(), o.CARequestId.IsSet() +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCARequestId() bool { + if o != nil && o.CARequestId.IsSet() { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given NullableString and assigns it to the CARequestId field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARequestId(v string) { + o.CARequestId.Set(&v) +} + +// SetCARequestIdNil sets the value for CARequestId to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCARequestIdNil() { + o.CARequestId.Set(nil) +} + +// UnsetCARequestId ensures that no value is present for CARequestId, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCARequestId() { + o.CARequestId.Unset() +} + +// GetCAHost returns the CAHost field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCAHost() string { + if o == nil || isNil(o.CAHost.Get()) { + var ret string + return ret + } + return *o.CAHost.Get() +} + +// GetCAHostOk returns a tuple with the CAHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCAHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CAHost.Get(), o.CAHost.IsSet() +} + +// HasCAHost returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCAHost() bool { + if o != nil && o.CAHost.IsSet() { + return true + } + + return false +} + +// SetCAHost gets a reference to the given NullableString and assigns it to the CAHost field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCAHost(v string) { + o.CAHost.Set(&v) +} + +// SetCAHostNil sets the value for CAHost to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCAHostNil() { + o.CAHost.Set(nil) +} + +// UnsetCAHost ensures that no value is present for CAHost, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCAHost() { + o.CAHost.Unset() +} + +// GetCALogicalName returns the CALogicalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCALogicalName() string { + if o == nil || isNil(o.CALogicalName.Get()) { + var ret string + return ret + } + return *o.CALogicalName.Get() +} + +// GetCALogicalNameOk returns a tuple with the CALogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCALogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CALogicalName.Get(), o.CALogicalName.IsSet() +} + +// HasCALogicalName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasCALogicalName() bool { + if o != nil && o.CALogicalName.IsSet() { + return true + } + + return false +} + +// SetCALogicalName gets a reference to the given NullableString and assigns it to the CALogicalName field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCALogicalName(v string) { + o.CALogicalName.Set(&v) +} + +// SetCALogicalNameNil sets the value for CALogicalName to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCALogicalNameNil() { + o.CALogicalName.Set(nil) +} + +// UnsetCALogicalName ensures that no value is present for CALogicalName, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetCALogicalName() { + o.CALogicalName.Unset() +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetComment() string { + if o == nil || isNil(o.Comment.Get()) { + var ret string + return ret + } + return *o.Comment.Get() +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Comment.Get(), o.Comment.IsSet() +} + +// HasComment returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) HasComment() bool { + if o != nil && o.Comment.IsSet() { + return true + } + + return false +} + +// SetComment gets a reference to the given NullableString and assigns it to the Comment field. +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetComment(v string) { + o.Comment.Set(&v) +} + +// SetCommentNil sets the value for Comment to be an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) SetCommentNil() { + o.Comment.Set(nil) +} + +// UnsetComment ensures that no value is present for Comment, not even an explicit nil +func (o *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnsetComment() { + o.Comment.Unset() +} + +func (o CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CARowId.IsSet() { + toSerialize["CARowId"] = o.CARowId.Get() + } + if o.CARequestId.IsSet() { + toSerialize["CARequestId"] = o.CARequestId.Get() + } + if o.CAHost.IsSet() { + toSerialize["CAHost"] = o.CAHost.Get() + } + if o.CALogicalName.IsSet() { + toSerialize["CALogicalName"] = o.CALogicalName.Get() + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if o.Comment.IsSet() { + toSerialize["Comment"] = o.Comment.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest struct { + value *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest + isSet bool +} + +func (v NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) Get() *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) Set(val *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest(val *CSSCMSDataModelModelsWorkflowProcessedCertificateRequest) *NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest { + return &NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsWorkflowProcessedCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_csr_enrollment_request.go b/v24/api/keyfactor/v1/model_enrollment_csr_enrollment_request.go new file mode 100644 index 0000000..1dc2276 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_csr_enrollment_request.go @@ -0,0 +1,580 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the EnrollmentCSREnrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentCSREnrollmentRequest{} + +// EnrollmentCSREnrollmentRequest struct for EnrollmentCSREnrollmentRequest +type EnrollmentCSREnrollmentRequest struct { + CSR string `json:"CSR"` + PrivateKey NullableString `json:"PrivateKey,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + IncludeSubjectHeader *bool `json:"IncludeSubjectHeader,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + AdditionalEnrollmentFields map[string]interface{} `json:"AdditionalEnrollmentFields,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + OwnerRoleId NullableInt32 `json:"OwnerRoleId,omitempty"` + OwnerRoleName NullableString `json:"OwnerRoleName,omitempty"` + Template NullableString `json:"Template,omitempty"` + SANs map[string][]string `json:"SANs,omitempty"` +} + +// NewEnrollmentCSREnrollmentRequest instantiates a new EnrollmentCSREnrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentCSREnrollmentRequest(cSR string) *EnrollmentCSREnrollmentRequest { + this := EnrollmentCSREnrollmentRequest{} + this.CSR = cSR + return &this +} + +// NewEnrollmentCSREnrollmentRequestWithDefaults instantiates a new EnrollmentCSREnrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentCSREnrollmentRequestWithDefaults() *EnrollmentCSREnrollmentRequest { + this := EnrollmentCSREnrollmentRequest{} + return &this +} + +// GetCSR returns the CSR field value +func (o *EnrollmentCSREnrollmentRequest) GetCSR() string { + if o == nil { + var ret string + return ret + } + + return o.CSR +} + +// GetCSROk returns a tuple with the CSR field value +// and a boolean to check if the value has been set. +func (o *EnrollmentCSREnrollmentRequest) GetCSROk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CSR, true +} + +// SetCSR sets field value +func (o *EnrollmentCSREnrollmentRequest) SetCSR(v string) { + o.CSR = v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey.Get()) { + var ret string + return ret + } + return *o.PrivateKey.Get() +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrivateKey.Get(), o.PrivateKey.IsSet() +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasPrivateKey() bool { + if o != nil && o.PrivateKey.IsSet() { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given NullableString and assigns it to the PrivateKey field. +func (o *EnrollmentCSREnrollmentRequest) SetPrivateKey(v string) { + o.PrivateKey.Set(&v) +} + +// SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil +func (o *EnrollmentCSREnrollmentRequest) SetPrivateKeyNil() { + o.PrivateKey.Set(nil) +} + +// UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +func (o *EnrollmentCSREnrollmentRequest) UnsetPrivateKey() { + o.PrivateKey.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *EnrollmentCSREnrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *EnrollmentCSREnrollmentRequest) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *EnrollmentCSREnrollmentRequest) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *EnrollmentCSREnrollmentRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentCSREnrollmentRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *EnrollmentCSREnrollmentRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetIncludeSubjectHeader returns the IncludeSubjectHeader field value if set, zero value otherwise. +func (o *EnrollmentCSREnrollmentRequest) GetIncludeSubjectHeader() bool { + if o == nil || isNil(o.IncludeSubjectHeader) { + var ret bool + return ret + } + return *o.IncludeSubjectHeader +} + +// GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentCSREnrollmentRequest) GetIncludeSubjectHeaderOk() (*bool, bool) { + if o == nil || isNil(o.IncludeSubjectHeader) { + return nil, false + } + return o.IncludeSubjectHeader, true +} + +// HasIncludeSubjectHeader returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasIncludeSubjectHeader() bool { + if o != nil && !isNil(o.IncludeSubjectHeader) { + return true + } + + return false +} + +// SetIncludeSubjectHeader gets a reference to the given bool and assigns it to the IncludeSubjectHeader field. +func (o *EnrollmentCSREnrollmentRequest) SetIncludeSubjectHeader(v bool) { + o.IncludeSubjectHeader = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetMetadata() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *EnrollmentCSREnrollmentRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFields() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.AdditionalEnrollmentFields +} + +// GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + return map[string]interface{}{}, false + } + return o.AdditionalEnrollmentFields, true +} + +// HasAdditionalEnrollmentFields returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasAdditionalEnrollmentFields() bool { + if o != nil && isNil(o.AdditionalEnrollmentFields) { + return true + } + + return false +} + +// SetAdditionalEnrollmentFields gets a reference to the given map[string]interface{} and assigns it to the AdditionalEnrollmentFields field. +func (o *EnrollmentCSREnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]interface{}) { + o.AdditionalEnrollmentFields = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *EnrollmentCSREnrollmentRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentCSREnrollmentRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *EnrollmentCSREnrollmentRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetOwnerRoleId returns the OwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleId() int32 { + if o == nil || isNil(o.OwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.OwnerRoleId.Get() +} + +// GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleId.Get(), o.OwnerRoleId.IsSet() +} + +// HasOwnerRoleId returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasOwnerRoleId() bool { + if o != nil && o.OwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the OwnerRoleId field. +func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleId(v int32) { + o.OwnerRoleId.Set(&v) +} + +// SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil +func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleIdNil() { + o.OwnerRoleId.Set(nil) +} + +// UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +func (o *EnrollmentCSREnrollmentRequest) UnsetOwnerRoleId() { + o.OwnerRoleId.Unset() +} + +// GetOwnerRoleName returns the OwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleName() string { + if o == nil || isNil(o.OwnerRoleName.Get()) { + var ret string + return ret + } + return *o.OwnerRoleName.Get() +} + +// GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleName.Get(), o.OwnerRoleName.IsSet() +} + +// HasOwnerRoleName returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasOwnerRoleName() bool { + if o != nil && o.OwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleName gets a reference to the given NullableString and assigns it to the OwnerRoleName field. +func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleName(v string) { + o.OwnerRoleName.Set(&v) +} + +// SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil +func (o *EnrollmentCSREnrollmentRequest) SetOwnerRoleNameNil() { + o.OwnerRoleName.Set(nil) +} + +// UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +func (o *EnrollmentCSREnrollmentRequest) UnsetOwnerRoleName() { + o.OwnerRoleName.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *EnrollmentCSREnrollmentRequest) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *EnrollmentCSREnrollmentRequest) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *EnrollmentCSREnrollmentRequest) UnsetTemplate() { + o.Template.Unset() +} + +// GetSANs returns the SANs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSREnrollmentRequest) GetSANs() map[string][]string { + if o == nil { + var ret map[string][]string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSREnrollmentRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return &o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *EnrollmentCSREnrollmentRequest) HasSANs() bool { + if o != nil && isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *EnrollmentCSREnrollmentRequest) SetSANs(v map[string][]string) { + o.SANs = v +} + +func (o EnrollmentCSREnrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentCSREnrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CSR"] = o.CSR + if o.PrivateKey.IsSet() { + toSerialize["PrivateKey"] = o.PrivateKey.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.IncludeSubjectHeader) { + toSerialize["IncludeSubjectHeader"] = o.IncludeSubjectHeader + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.AdditionalEnrollmentFields != nil { + toSerialize["AdditionalEnrollmentFields"] = o.AdditionalEnrollmentFields + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if o.OwnerRoleId.IsSet() { + toSerialize["OwnerRoleId"] = o.OwnerRoleId.Get() + } + if o.OwnerRoleName.IsSet() { + toSerialize["OwnerRoleName"] = o.OwnerRoleName.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.SANs != nil { + toSerialize["SANs"] = o.SANs + } + return toSerialize, nil +} + +type NullableEnrollmentCSREnrollmentRequest struct { + value *EnrollmentCSREnrollmentRequest + isSet bool +} + +func (v NullableEnrollmentCSREnrollmentRequest) Get() *EnrollmentCSREnrollmentRequest { + return v.value +} + +func (v *NullableEnrollmentCSREnrollmentRequest) Set(val *EnrollmentCSREnrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentCSREnrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentCSREnrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentCSREnrollmentRequest(val *EnrollmentCSREnrollmentRequest) *NullableEnrollmentCSREnrollmentRequest { + return &NullableEnrollmentCSREnrollmentRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentCSREnrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentCSREnrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_csr_generation_request.go b/v24/api/keyfactor/v1/model_enrollment_csr_generation_request.go new file mode 100644 index 0000000..a72e0f9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_csr_generation_request.go @@ -0,0 +1,467 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentCSRGenerationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentCSRGenerationRequest{} + +// EnrollmentCSRGenerationRequest struct for EnrollmentCSRGenerationRequest +type EnrollmentCSRGenerationRequest struct { + // Subject for the requested certificate + Subject string `json:"Subject"` + // Certificate key type [RSA, ECC, ED448, ED25519] + KeyType string `json:"KeyType"` + // Size of the certificate key (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521) + KeyLength *int32 `json:"KeyLength,omitempty"` + // The curve used to generate a CSR. + Curve NullableString `json:"Curve,omitempty"` + // Alternative Certificate key type [ML-DSA-44, ML-DSA-65, ML-DSA-87] + AlternativeKeyType NullableString `json:"AlternativeKeyType,omitempty"` + // Size of the alternative certificate key. + AlternativeKeyLength NullableInt32 `json:"AlternativeKeyLength,omitempty"` + // The alternative curve used to generate a CSR. + AlternativeCurve NullableString `json:"AlternativeCurve,omitempty"` + Template NullableString `json:"Template,omitempty"` + SANs map[string][]string `json:"SANs,omitempty"` +} + +// NewEnrollmentCSRGenerationRequest instantiates a new EnrollmentCSRGenerationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentCSRGenerationRequest(subject string, keyType string) *EnrollmentCSRGenerationRequest { + this := EnrollmentCSRGenerationRequest{} + this.Subject = subject + this.KeyType = keyType + return &this +} + +// NewEnrollmentCSRGenerationRequestWithDefaults instantiates a new EnrollmentCSRGenerationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentCSRGenerationRequestWithDefaults() *EnrollmentCSRGenerationRequest { + this := EnrollmentCSRGenerationRequest{} + return &this +} + +// GetSubject returns the Subject field value +func (o *EnrollmentCSRGenerationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *EnrollmentCSRGenerationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *EnrollmentCSRGenerationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetKeyType returns the KeyType field value +func (o *EnrollmentCSRGenerationRequest) GetKeyType() string { + if o == nil { + var ret string + return ret + } + + return o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value +// and a boolean to check if the value has been set. +func (o *EnrollmentCSRGenerationRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyType, true +} + +// SetKeyType sets field value +func (o *EnrollmentCSRGenerationRequest) SetKeyType(v string) { + o.KeyType = v +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *EnrollmentCSRGenerationRequest) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentCSRGenerationRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *EnrollmentCSRGenerationRequest) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *EnrollmentCSRGenerationRequest) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *EnrollmentCSRGenerationRequest) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *EnrollmentCSRGenerationRequest) UnsetCurve() { + o.Curve.Unset() +} + +// GetAlternativeKeyType returns the AlternativeKeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyType() string { + if o == nil || isNil(o.AlternativeKeyType.Get()) { + var ret string + return ret + } + return *o.AlternativeKeyType.Get() +} + +// GetAlternativeKeyTypeOk returns a tuple with the AlternativeKeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AlternativeKeyType.Get(), o.AlternativeKeyType.IsSet() +} + +// HasAlternativeKeyType returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasAlternativeKeyType() bool { + if o != nil && o.AlternativeKeyType.IsSet() { + return true + } + + return false +} + +// SetAlternativeKeyType gets a reference to the given NullableString and assigns it to the AlternativeKeyType field. +func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyType(v string) { + o.AlternativeKeyType.Set(&v) +} + +// SetAlternativeKeyTypeNil sets the value for AlternativeKeyType to be an explicit nil +func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyTypeNil() { + o.AlternativeKeyType.Set(nil) +} + +// UnsetAlternativeKeyType ensures that no value is present for AlternativeKeyType, not even an explicit nil +func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeKeyType() { + o.AlternativeKeyType.Unset() +} + +// GetAlternativeKeyLength returns the AlternativeKeyLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyLength() int32 { + if o == nil || isNil(o.AlternativeKeyLength.Get()) { + var ret int32 + return ret + } + return *o.AlternativeKeyLength.Get() +} + +// GetAlternativeKeyLengthOk returns a tuple with the AlternativeKeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetAlternativeKeyLengthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AlternativeKeyLength.Get(), o.AlternativeKeyLength.IsSet() +} + +// HasAlternativeKeyLength returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasAlternativeKeyLength() bool { + if o != nil && o.AlternativeKeyLength.IsSet() { + return true + } + + return false +} + +// SetAlternativeKeyLength gets a reference to the given NullableInt32 and assigns it to the AlternativeKeyLength field. +func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyLength(v int32) { + o.AlternativeKeyLength.Set(&v) +} + +// SetAlternativeKeyLengthNil sets the value for AlternativeKeyLength to be an explicit nil +func (o *EnrollmentCSRGenerationRequest) SetAlternativeKeyLengthNil() { + o.AlternativeKeyLength.Set(nil) +} + +// UnsetAlternativeKeyLength ensures that no value is present for AlternativeKeyLength, not even an explicit nil +func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeKeyLength() { + o.AlternativeKeyLength.Unset() +} + +// GetAlternativeCurve returns the AlternativeCurve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetAlternativeCurve() string { + if o == nil || isNil(o.AlternativeCurve.Get()) { + var ret string + return ret + } + return *o.AlternativeCurve.Get() +} + +// GetAlternativeCurveOk returns a tuple with the AlternativeCurve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetAlternativeCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AlternativeCurve.Get(), o.AlternativeCurve.IsSet() +} + +// HasAlternativeCurve returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasAlternativeCurve() bool { + if o != nil && o.AlternativeCurve.IsSet() { + return true + } + + return false +} + +// SetAlternativeCurve gets a reference to the given NullableString and assigns it to the AlternativeCurve field. +func (o *EnrollmentCSRGenerationRequest) SetAlternativeCurve(v string) { + o.AlternativeCurve.Set(&v) +} + +// SetAlternativeCurveNil sets the value for AlternativeCurve to be an explicit nil +func (o *EnrollmentCSRGenerationRequest) SetAlternativeCurveNil() { + o.AlternativeCurve.Set(nil) +} + +// UnsetAlternativeCurve ensures that no value is present for AlternativeCurve, not even an explicit nil +func (o *EnrollmentCSRGenerationRequest) UnsetAlternativeCurve() { + o.AlternativeCurve.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *EnrollmentCSRGenerationRequest) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *EnrollmentCSRGenerationRequest) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *EnrollmentCSRGenerationRequest) UnsetTemplate() { + o.Template.Unset() +} + +// GetSANs returns the SANs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentCSRGenerationRequest) GetSANs() map[string][]string { + if o == nil { + var ret map[string][]string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentCSRGenerationRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return &o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *EnrollmentCSRGenerationRequest) HasSANs() bool { + if o != nil && isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *EnrollmentCSRGenerationRequest) SetSANs(v map[string][]string) { + o.SANs = v +} + +func (o EnrollmentCSRGenerationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentCSRGenerationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Subject"] = o.Subject + toSerialize["KeyType"] = o.KeyType + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if o.AlternativeKeyType.IsSet() { + toSerialize["AlternativeKeyType"] = o.AlternativeKeyType.Get() + } + if o.AlternativeKeyLength.IsSet() { + toSerialize["AlternativeKeyLength"] = o.AlternativeKeyLength.Get() + } + if o.AlternativeCurve.IsSet() { + toSerialize["AlternativeCurve"] = o.AlternativeCurve.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.SANs != nil { + toSerialize["SANs"] = o.SANs + } + return toSerialize, nil +} + +type NullableEnrollmentCSRGenerationRequest struct { + value *EnrollmentCSRGenerationRequest + isSet bool +} + +func (v NullableEnrollmentCSRGenerationRequest) Get() *EnrollmentCSRGenerationRequest { + return v.value +} + +func (v *NullableEnrollmentCSRGenerationRequest) Set(val *EnrollmentCSRGenerationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentCSRGenerationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentCSRGenerationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentCSRGenerationRequest(val *EnrollmentCSRGenerationRequest) *NullableEnrollmentCSRGenerationRequest { + return &NullableEnrollmentCSRGenerationRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentCSRGenerationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentCSRGenerationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_enrollment_management_request.go b/v24/api/keyfactor/v1/model_enrollment_enrollment_management_request.go new file mode 100644 index 0000000..7b49f9d --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_enrollment_management_request.go @@ -0,0 +1,346 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the EnrollmentEnrollmentManagementRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentEnrollmentManagementRequest{} + +// EnrollmentEnrollmentManagementRequest struct for EnrollmentEnrollmentManagementRequest +type EnrollmentEnrollmentManagementRequest struct { + // The stores to add the certificate to. Values in this collection will take precedence over values in CSS.CMS.Data.Model.Models.Enrollment.SpecificEnrollmentManagementRequest.StoreTypes. + Stores []EnrollmentManagementStoreRequest `json:"Stores,omitempty"` + StoreIds []string `json:"StoreIds,omitempty"` + StoreTypes []EnrollmentManagementStoreTypeRequest `json:"StoreTypes,omitempty"` + CertificateId *int32 `json:"CertificateId,omitempty"` + RequestId *int32 `json:"RequestId,omitempty"` + Password string `json:"Password"` + JobTime *time.Time `json:"JobTime,omitempty"` +} + +// NewEnrollmentEnrollmentManagementRequest instantiates a new EnrollmentEnrollmentManagementRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentEnrollmentManagementRequest(password string) *EnrollmentEnrollmentManagementRequest { + this := EnrollmentEnrollmentManagementRequest{} + this.Password = password + return &this +} + +// NewEnrollmentEnrollmentManagementRequestWithDefaults instantiates a new EnrollmentEnrollmentManagementRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentEnrollmentManagementRequestWithDefaults() *EnrollmentEnrollmentManagementRequest { + this := EnrollmentEnrollmentManagementRequest{} + return &this +} + +// GetStores returns the Stores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentEnrollmentManagementRequest) GetStores() []EnrollmentManagementStoreRequest { + if o == nil { + var ret []EnrollmentManagementStoreRequest + return ret + } + return o.Stores +} + +// GetStoresOk returns a tuple with the Stores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentEnrollmentManagementRequest) GetStoresOk() ([]EnrollmentManagementStoreRequest, bool) { + if o == nil || isNil(o.Stores) { + return nil, false + } + return o.Stores, true +} + +// HasStores returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasStores() bool { + if o != nil && isNil(o.Stores) { + return true + } + + return false +} + +// SetStores gets a reference to the given []EnrollmentManagementStoreRequest and assigns it to the Stores field. +func (o *EnrollmentEnrollmentManagementRequest) SetStores(v []EnrollmentManagementStoreRequest) { + o.Stores = v +} + +// GetStoreIds returns the StoreIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentEnrollmentManagementRequest) GetStoreIds() []string { + if o == nil { + var ret []string + return ret + } + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentEnrollmentManagementRequest) GetStoreIdsOk() ([]string, bool) { + if o == nil || isNil(o.StoreIds) { + return nil, false + } + return o.StoreIds, true +} + +// HasStoreIds returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasStoreIds() bool { + if o != nil && isNil(o.StoreIds) { + return true + } + + return false +} + +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *EnrollmentEnrollmentManagementRequest) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetStoreTypes returns the StoreTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentEnrollmentManagementRequest) GetStoreTypes() []EnrollmentManagementStoreTypeRequest { + if o == nil { + var ret []EnrollmentManagementStoreTypeRequest + return ret + } + return o.StoreTypes +} + +// GetStoreTypesOk returns a tuple with the StoreTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentEnrollmentManagementRequest) GetStoreTypesOk() ([]EnrollmentManagementStoreTypeRequest, bool) { + if o == nil || isNil(o.StoreTypes) { + return nil, false + } + return o.StoreTypes, true +} + +// HasStoreTypes returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasStoreTypes() bool { + if o != nil && isNil(o.StoreTypes) { + return true + } + + return false +} + +// SetStoreTypes gets a reference to the given []EnrollmentManagementStoreTypeRequest and assigns it to the StoreTypes field. +func (o *EnrollmentEnrollmentManagementRequest) SetStoreTypes(v []EnrollmentManagementStoreTypeRequest) { + o.StoreTypes = v +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise. +func (o *EnrollmentEnrollmentManagementRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId) { + var ret int32 + return ret + } + return *o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateId) { + return nil, false + } + return o.CertificateId, true +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasCertificateId() bool { + if o != nil && !isNil(o.CertificateId) { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given int32 and assigns it to the CertificateId field. +func (o *EnrollmentEnrollmentManagementRequest) SetCertificateId(v int32) { + o.CertificateId = &v +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *EnrollmentEnrollmentManagementRequest) GetRequestId() int32 { + if o == nil || isNil(o.RequestId) { + var ret int32 + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasRequestId() bool { + if o != nil && !isNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given int32 and assigns it to the RequestId field. +func (o *EnrollmentEnrollmentManagementRequest) SetRequestId(v int32) { + o.RequestId = &v +} + +// GetPassword returns the Password field value +func (o *EnrollmentEnrollmentManagementRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *EnrollmentEnrollmentManagementRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *EnrollmentEnrollmentManagementRequest) SetPassword(v string) { + o.Password = v +} + +// GetJobTime returns the JobTime field value if set, zero value otherwise. +func (o *EnrollmentEnrollmentManagementRequest) GetJobTime() time.Time { + if o == nil || isNil(o.JobTime) { + var ret time.Time + return ret + } + return *o.JobTime +} + +// GetJobTimeOk returns a tuple with the JobTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.JobTime) { + return nil, false + } + return o.JobTime, true +} + +// HasJobTime returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementRequest) HasJobTime() bool { + if o != nil && !isNil(o.JobTime) { + return true + } + + return false +} + +// SetJobTime gets a reference to the given time.Time and assigns it to the JobTime field. +func (o *EnrollmentEnrollmentManagementRequest) SetJobTime(v time.Time) { + o.JobTime = &v +} + +func (o EnrollmentEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentEnrollmentManagementRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Stores != nil { + toSerialize["Stores"] = o.Stores + } + if o.StoreIds != nil { + toSerialize["StoreIds"] = o.StoreIds + } + if o.StoreTypes != nil { + toSerialize["StoreTypes"] = o.StoreTypes + } + if !isNil(o.CertificateId) { + toSerialize["CertificateId"] = o.CertificateId + } + if !isNil(o.RequestId) { + toSerialize["RequestId"] = o.RequestId + } + toSerialize["Password"] = o.Password + if !isNil(o.JobTime) { + toSerialize["JobTime"] = o.JobTime + } + return toSerialize, nil +} + +type NullableEnrollmentEnrollmentManagementRequest struct { + value *EnrollmentEnrollmentManagementRequest + isSet bool +} + +func (v NullableEnrollmentEnrollmentManagementRequest) Get() *EnrollmentEnrollmentManagementRequest { + return v.value +} + +func (v *NullableEnrollmentEnrollmentManagementRequest) Set(val *EnrollmentEnrollmentManagementRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentEnrollmentManagementRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentEnrollmentManagementRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentEnrollmentManagementRequest(val *EnrollmentEnrollmentManagementRequest) *NullableEnrollmentEnrollmentManagementRequest { + return &NullableEnrollmentEnrollmentManagementRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentEnrollmentManagementRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_enrollment_management_response.go b/v24/api/keyfactor/v1/model_enrollment_enrollment_management_response.go new file mode 100644 index 0000000..4fec44b --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_enrollment_management_response.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentEnrollmentManagementResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentEnrollmentManagementResponse{} + +// EnrollmentEnrollmentManagementResponse struct for EnrollmentEnrollmentManagementResponse +type EnrollmentEnrollmentManagementResponse struct { + SuccessfulStores []string `json:"SuccessfulStores,omitempty"` + FailedStores []string `json:"FailedStores,omitempty"` +} + +// NewEnrollmentEnrollmentManagementResponse instantiates a new EnrollmentEnrollmentManagementResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentEnrollmentManagementResponse() *EnrollmentEnrollmentManagementResponse { + this := EnrollmentEnrollmentManagementResponse{} + return &this +} + +// NewEnrollmentEnrollmentManagementResponseWithDefaults instantiates a new EnrollmentEnrollmentManagementResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentEnrollmentManagementResponseWithDefaults() *EnrollmentEnrollmentManagementResponse { + this := EnrollmentEnrollmentManagementResponse{} + return &this +} + +// GetSuccessfulStores returns the SuccessfulStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentEnrollmentManagementResponse) GetSuccessfulStores() []string { + if o == nil { + var ret []string + return ret + } + return o.SuccessfulStores +} + +// GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentEnrollmentManagementResponse) GetSuccessfulStoresOk() ([]string, bool) { + if o == nil || isNil(o.SuccessfulStores) { + return nil, false + } + return o.SuccessfulStores, true +} + +// HasSuccessfulStores returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementResponse) HasSuccessfulStores() bool { + if o != nil && isNil(o.SuccessfulStores) { + return true + } + + return false +} + +// SetSuccessfulStores gets a reference to the given []string and assigns it to the SuccessfulStores field. +func (o *EnrollmentEnrollmentManagementResponse) SetSuccessfulStores(v []string) { + o.SuccessfulStores = v +} + +// GetFailedStores returns the FailedStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentEnrollmentManagementResponse) GetFailedStores() []string { + if o == nil { + var ret []string + return ret + } + return o.FailedStores +} + +// GetFailedStoresOk returns a tuple with the FailedStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentEnrollmentManagementResponse) GetFailedStoresOk() ([]string, bool) { + if o == nil || isNil(o.FailedStores) { + return nil, false + } + return o.FailedStores, true +} + +// HasFailedStores returns a boolean if a field has been set. +func (o *EnrollmentEnrollmentManagementResponse) HasFailedStores() bool { + if o != nil && isNil(o.FailedStores) { + return true + } + + return false +} + +// SetFailedStores gets a reference to the given []string and assigns it to the FailedStores field. +func (o *EnrollmentEnrollmentManagementResponse) SetFailedStores(v []string) { + o.FailedStores = v +} + +func (o EnrollmentEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentEnrollmentManagementResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SuccessfulStores != nil { + toSerialize["SuccessfulStores"] = o.SuccessfulStores + } + if o.FailedStores != nil { + toSerialize["FailedStores"] = o.FailedStores + } + return toSerialize, nil +} + +type NullableEnrollmentEnrollmentManagementResponse struct { + value *EnrollmentEnrollmentManagementResponse + isSet bool +} + +func (v NullableEnrollmentEnrollmentManagementResponse) Get() *EnrollmentEnrollmentManagementResponse { + return v.value +} + +func (v *NullableEnrollmentEnrollmentManagementResponse) Set(val *EnrollmentEnrollmentManagementResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentEnrollmentManagementResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentEnrollmentManagementResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentEnrollmentManagementResponse(val *EnrollmentEnrollmentManagementResponse) *NullableEnrollmentEnrollmentManagementResponse { + return &NullableEnrollmentEnrollmentManagementResponse{value: val, isSet: true} +} + +func (v NullableEnrollmentEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentEnrollmentManagementResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_management_store_request.go b/v24/api/keyfactor/v1/model_enrollment_management_store_request.go new file mode 100644 index 0000000..0244439 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_management_store_request.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentManagementStoreRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentManagementStoreRequest{} + +// EnrollmentManagementStoreRequest struct for EnrollmentManagementStoreRequest +type EnrollmentManagementStoreRequest struct { + StoreId *string `json:"StoreId,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties map[string]interface{} `json:"Properties,omitempty"` +} + +// NewEnrollmentManagementStoreRequest instantiates a new EnrollmentManagementStoreRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentManagementStoreRequest() *EnrollmentManagementStoreRequest { + this := EnrollmentManagementStoreRequest{} + return &this +} + +// NewEnrollmentManagementStoreRequestWithDefaults instantiates a new EnrollmentManagementStoreRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentManagementStoreRequestWithDefaults() *EnrollmentManagementStoreRequest { + this := EnrollmentManagementStoreRequest{} + return &this +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreRequest) GetStoreId() string { + if o == nil || isNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool) { + if o == nil || isNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasStoreId() bool { + if o != nil && !isNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *EnrollmentManagementStoreRequest) SetStoreId(v string) { + o.StoreId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreRequest) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreRequest) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *EnrollmentManagementStoreRequest) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *EnrollmentManagementStoreRequest) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *EnrollmentManagementStoreRequest) UnsetAlias() { + o.Alias.Unset() +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreRequest) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *EnrollmentManagementStoreRequest) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreRequest) GetProperties() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreRequest) GetPropertiesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return map[string]interface{}{}, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]interface{} and assigns it to the Properties field. +func (o *EnrollmentManagementStoreRequest) SetProperties(v map[string]interface{}) { + o.Properties = v +} + +func (o EnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentManagementStoreRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreId) { + toSerialize["StoreId"] = o.StoreId + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableEnrollmentManagementStoreRequest struct { + value *EnrollmentManagementStoreRequest + isSet bool +} + +func (v NullableEnrollmentManagementStoreRequest) Get() *EnrollmentManagementStoreRequest { + return v.value +} + +func (v *NullableEnrollmentManagementStoreRequest) Set(val *EnrollmentManagementStoreRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentManagementStoreRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentManagementStoreRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentManagementStoreRequest(val *EnrollmentManagementStoreRequest) *NullableEnrollmentManagementStoreRequest { + return &NullableEnrollmentManagementStoreRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentManagementStoreRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_management_store_type_request.go b/v24/api/keyfactor/v1/model_enrollment_management_store_type_request.go new file mode 100644 index 0000000..e04aa05 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_management_store_type_request.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentManagementStoreTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentManagementStoreTypeRequest{} + +// EnrollmentManagementStoreTypeRequest struct for EnrollmentManagementStoreTypeRequest +type EnrollmentManagementStoreTypeRequest struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties []interface{} `json:"Properties,omitempty"` +} + +// NewEnrollmentManagementStoreTypeRequest instantiates a new EnrollmentManagementStoreTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentManagementStoreTypeRequest() *EnrollmentManagementStoreTypeRequest { + this := EnrollmentManagementStoreTypeRequest{} + return &this +} + +// NewEnrollmentManagementStoreTypeRequestWithDefaults instantiates a new EnrollmentManagementStoreTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentManagementStoreTypeRequestWithDefaults() *EnrollmentManagementStoreTypeRequest { + this := EnrollmentManagementStoreTypeRequest{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreTypeRequest) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreTypeRequest) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreTypeRequest) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *EnrollmentManagementStoreTypeRequest) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreTypeRequest) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreTypeRequest) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreTypeRequest) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *EnrollmentManagementStoreTypeRequest) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *EnrollmentManagementStoreTypeRequest) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *EnrollmentManagementStoreTypeRequest) UnsetAlias() { + o.Alias.Unset() +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreTypeRequest) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreTypeRequest) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreTypeRequest) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *EnrollmentManagementStoreTypeRequest) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreTypeRequest) GetProperties() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreTypeRequest) GetPropertiesOk() ([]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreTypeRequest) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []interface{} and assigns it to the Properties field. +func (o *EnrollmentManagementStoreTypeRequest) SetProperties(v []interface{}) { + o.Properties = v +} + +func (o EnrollmentManagementStoreTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentManagementStoreTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableEnrollmentManagementStoreTypeRequest struct { + value *EnrollmentManagementStoreTypeRequest + isSet bool +} + +func (v NullableEnrollmentManagementStoreTypeRequest) Get() *EnrollmentManagementStoreTypeRequest { + return v.value +} + +func (v *NullableEnrollmentManagementStoreTypeRequest) Set(val *EnrollmentManagementStoreTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentManagementStoreTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentManagementStoreTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentManagementStoreTypeRequest(val *EnrollmentManagementStoreTypeRequest) *NullableEnrollmentManagementStoreTypeRequest { + return &NullableEnrollmentManagementStoreTypeRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentManagementStoreTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentManagementStoreTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_patterns_valid_subject_part_response.go b/v24/api/keyfactor/v1/model_enrollment_patterns_valid_subject_part_response.go new file mode 100644 index 0000000..d6ae691 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_patterns_valid_subject_part_response.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentPatternsValidSubjectPartResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentPatternsValidSubjectPartResponse{} + +// EnrollmentPatternsValidSubjectPartResponse struct for EnrollmentPatternsValidSubjectPartResponse +type EnrollmentPatternsValidSubjectPartResponse struct { + SubjectPart NullableString `json:"SubjectPart,omitempty"` + SubjectPartName NullableString `json:"SubjectPartName,omitempty"` +} + +// NewEnrollmentPatternsValidSubjectPartResponse instantiates a new EnrollmentPatternsValidSubjectPartResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentPatternsValidSubjectPartResponse() *EnrollmentPatternsValidSubjectPartResponse { + this := EnrollmentPatternsValidSubjectPartResponse{} + return &this +} + +// NewEnrollmentPatternsValidSubjectPartResponseWithDefaults instantiates a new EnrollmentPatternsValidSubjectPartResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentPatternsValidSubjectPartResponseWithDefaults() *EnrollmentPatternsValidSubjectPartResponse { + this := EnrollmentPatternsValidSubjectPartResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *EnrollmentPatternsValidSubjectPartResponse) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *EnrollmentPatternsValidSubjectPartResponse) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetSubjectPartName returns the SubjectPartName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartName() string { + if o == nil || isNil(o.SubjectPartName.Get()) { + var ret string + return ret + } + return *o.SubjectPartName.Get() +} + +// GetSubjectPartNameOk returns a tuple with the SubjectPartName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPatternsValidSubjectPartResponse) GetSubjectPartNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPartName.Get(), o.SubjectPartName.IsSet() +} + +// HasSubjectPartName returns a boolean if a field has been set. +func (o *EnrollmentPatternsValidSubjectPartResponse) HasSubjectPartName() bool { + if o != nil && o.SubjectPartName.IsSet() { + return true + } + + return false +} + +// SetSubjectPartName gets a reference to the given NullableString and assigns it to the SubjectPartName field. +func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartName(v string) { + o.SubjectPartName.Set(&v) +} + +// SetSubjectPartNameNil sets the value for SubjectPartName to be an explicit nil +func (o *EnrollmentPatternsValidSubjectPartResponse) SetSubjectPartNameNil() { + o.SubjectPartName.Set(nil) +} + +// UnsetSubjectPartName ensures that no value is present for SubjectPartName, not even an explicit nil +func (o *EnrollmentPatternsValidSubjectPartResponse) UnsetSubjectPartName() { + o.SubjectPartName.Unset() +} + +func (o EnrollmentPatternsValidSubjectPartResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentPatternsValidSubjectPartResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.SubjectPartName.IsSet() { + toSerialize["SubjectPartName"] = o.SubjectPartName.Get() + } + return toSerialize, nil +} + +type NullableEnrollmentPatternsValidSubjectPartResponse struct { + value *EnrollmentPatternsValidSubjectPartResponse + isSet bool +} + +func (v NullableEnrollmentPatternsValidSubjectPartResponse) Get() *EnrollmentPatternsValidSubjectPartResponse { + return v.value +} + +func (v *NullableEnrollmentPatternsValidSubjectPartResponse) Set(val *EnrollmentPatternsValidSubjectPartResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentPatternsValidSubjectPartResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentPatternsValidSubjectPartResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentPatternsValidSubjectPartResponse(val *EnrollmentPatternsValidSubjectPartResponse) *NullableEnrollmentPatternsValidSubjectPartResponse { + return &NullableEnrollmentPatternsValidSubjectPartResponse{value: val, isSet: true} +} + +func (v NullableEnrollmentPatternsValidSubjectPartResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentPatternsValidSubjectPartResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_pfx_enrollment_request.go b/v24/api/keyfactor/v1/model_enrollment_pfx_enrollment_request.go new file mode 100644 index 0000000..ddb1a83 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_pfx_enrollment_request.go @@ -0,0 +1,1001 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the EnrollmentPFXEnrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentPFXEnrollmentRequest{} + +// EnrollmentPFXEnrollmentRequest struct for EnrollmentPFXEnrollmentRequest +type EnrollmentPFXEnrollmentRequest struct { + CustomFriendlyName NullableString `json:"CustomFriendlyName,omitempty"` + Password NullableString `json:"Password,omitempty"` + PopulateMissingValuesFromAD *bool `json:"PopulateMissingValuesFromAD,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + RenewalCertificateId NullableInt32 `json:"RenewalCertificateId,omitempty"` + ChainOrder NullableString `json:"ChainOrder,omitempty"` + UseLegacyEncryption NullableBool `json:"UseLegacyEncryption,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + MicrosoftTargetCSP NullableString `json:"MicrosoftTargetCSP,omitempty"` + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + IncludeSubjectHeader *bool `json:"IncludeSubjectHeader,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + AdditionalEnrollmentFields map[string]interface{} `json:"AdditionalEnrollmentFields,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + OwnerRoleId NullableInt32 `json:"OwnerRoleId,omitempty"` + OwnerRoleName NullableString `json:"OwnerRoleName,omitempty"` + Template NullableString `json:"Template,omitempty"` + SANs map[string][]string `json:"SANs,omitempty"` +} + +// NewEnrollmentPFXEnrollmentRequest instantiates a new EnrollmentPFXEnrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentPFXEnrollmentRequest() *EnrollmentPFXEnrollmentRequest { + this := EnrollmentPFXEnrollmentRequest{} + return &this +} + +// NewEnrollmentPFXEnrollmentRequestWithDefaults instantiates a new EnrollmentPFXEnrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentPFXEnrollmentRequestWithDefaults() *EnrollmentPFXEnrollmentRequest { + this := EnrollmentPFXEnrollmentRequest{} + return &this +} + +// GetCustomFriendlyName returns the CustomFriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetCustomFriendlyName() string { + if o == nil || isNil(o.CustomFriendlyName.Get()) { + var ret string + return ret + } + return *o.CustomFriendlyName.Get() +} + +// GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetCustomFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CustomFriendlyName.Get(), o.CustomFriendlyName.IsSet() +} + +// HasCustomFriendlyName returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasCustomFriendlyName() bool { + if o != nil && o.CustomFriendlyName.IsSet() { + return true + } + + return false +} + +// SetCustomFriendlyName gets a reference to the given NullableString and assigns it to the CustomFriendlyName field. +func (o *EnrollmentPFXEnrollmentRequest) SetCustomFriendlyName(v string) { + o.CustomFriendlyName.Set(&v) +} + +// SetCustomFriendlyNameNil sets the value for CustomFriendlyName to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetCustomFriendlyNameNil() { + o.CustomFriendlyName.Set(nil) +} + +// UnsetCustomFriendlyName ensures that no value is present for CustomFriendlyName, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetCustomFriendlyName() { + o.CustomFriendlyName.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *EnrollmentPFXEnrollmentRequest) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetPassword() { + o.Password.Unset() +} + +// GetPopulateMissingValuesFromAD returns the PopulateMissingValuesFromAD field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromAD() bool { + if o == nil || isNil(o.PopulateMissingValuesFromAD) { + var ret bool + return ret + } + return *o.PopulateMissingValuesFromAD +} + +// GetPopulateMissingValuesFromADOk returns a tuple with the PopulateMissingValuesFromAD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromADOk() (*bool, bool) { + if o == nil || isNil(o.PopulateMissingValuesFromAD) { + return nil, false + } + return o.PopulateMissingValuesFromAD, true +} + +// HasPopulateMissingValuesFromAD returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasPopulateMissingValuesFromAD() bool { + if o != nil && !isNil(o.PopulateMissingValuesFromAD) { + return true + } + + return false +} + +// SetPopulateMissingValuesFromAD gets a reference to the given bool and assigns it to the PopulateMissingValuesFromAD field. +func (o *EnrollmentPFXEnrollmentRequest) SetPopulateMissingValuesFromAD(v bool) { + o.PopulateMissingValuesFromAD = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *EnrollmentPFXEnrollmentRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetRenewalCertificateId returns the RenewalCertificateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetRenewalCertificateId() int32 { + if o == nil || isNil(o.RenewalCertificateId.Get()) { + var ret int32 + return ret + } + return *o.RenewalCertificateId.Get() +} + +// GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetRenewalCertificateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RenewalCertificateId.Get(), o.RenewalCertificateId.IsSet() +} + +// HasRenewalCertificateId returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasRenewalCertificateId() bool { + if o != nil && o.RenewalCertificateId.IsSet() { + return true + } + + return false +} + +// SetRenewalCertificateId gets a reference to the given NullableInt32 and assigns it to the RenewalCertificateId field. +func (o *EnrollmentPFXEnrollmentRequest) SetRenewalCertificateId(v int32) { + o.RenewalCertificateId.Set(&v) +} + +// SetRenewalCertificateIdNil sets the value for RenewalCertificateId to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetRenewalCertificateIdNil() { + o.RenewalCertificateId.Set(nil) +} + +// UnsetRenewalCertificateId ensures that no value is present for RenewalCertificateId, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetRenewalCertificateId() { + o.RenewalCertificateId.Unset() +} + +// GetChainOrder returns the ChainOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetChainOrder() string { + if o == nil || isNil(o.ChainOrder.Get()) { + var ret string + return ret + } + return *o.ChainOrder.Get() +} + +// GetChainOrderOk returns a tuple with the ChainOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetChainOrderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ChainOrder.Get(), o.ChainOrder.IsSet() +} + +// HasChainOrder returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasChainOrder() bool { + if o != nil && o.ChainOrder.IsSet() { + return true + } + + return false +} + +// SetChainOrder gets a reference to the given NullableString and assigns it to the ChainOrder field. +func (o *EnrollmentPFXEnrollmentRequest) SetChainOrder(v string) { + o.ChainOrder.Set(&v) +} + +// SetChainOrderNil sets the value for ChainOrder to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetChainOrderNil() { + o.ChainOrder.Set(nil) +} + +// UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetChainOrder() { + o.ChainOrder.Unset() +} + +// GetUseLegacyEncryption returns the UseLegacyEncryption field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetUseLegacyEncryption() bool { + if o == nil || isNil(o.UseLegacyEncryption.Get()) { + var ret bool + return ret + } + return *o.UseLegacyEncryption.Get() +} + +// GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetUseLegacyEncryptionOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.UseLegacyEncryption.Get(), o.UseLegacyEncryption.IsSet() +} + +// HasUseLegacyEncryption returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasUseLegacyEncryption() bool { + if o != nil && o.UseLegacyEncryption.IsSet() { + return true + } + + return false +} + +// SetUseLegacyEncryption gets a reference to the given NullableBool and assigns it to the UseLegacyEncryption field. +func (o *EnrollmentPFXEnrollmentRequest) SetUseLegacyEncryption(v bool) { + o.UseLegacyEncryption.Set(&v) +} + +// SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetUseLegacyEncryptionNil() { + o.UseLegacyEncryption.Set(nil) +} + +// UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetUseLegacyEncryption() { + o.UseLegacyEncryption.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *EnrollmentPFXEnrollmentRequest) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentRequest) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *EnrollmentPFXEnrollmentRequest) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *EnrollmentPFXEnrollmentRequest) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetCurve() { + o.Curve.Unset() +} + +// GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetMicrosoftTargetCSP() string { + if o == nil || isNil(o.MicrosoftTargetCSP.Get()) { + var ret string + return ret + } + return *o.MicrosoftTargetCSP.Get() +} + +// GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetMicrosoftTargetCSPOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MicrosoftTargetCSP.Get(), o.MicrosoftTargetCSP.IsSet() +} + +// HasMicrosoftTargetCSP returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasMicrosoftTargetCSP() bool { + if o != nil && o.MicrosoftTargetCSP.IsSet() { + return true + } + + return false +} + +// SetMicrosoftTargetCSP gets a reference to the given NullableString and assigns it to the MicrosoftTargetCSP field. +func (o *EnrollmentPFXEnrollmentRequest) SetMicrosoftTargetCSP(v string) { + o.MicrosoftTargetCSP.Set(&v) +} + +// SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetMicrosoftTargetCSPNil() { + o.MicrosoftTargetCSP.Set(nil) +} + +// UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetMicrosoftTargetCSP() { + o.MicrosoftTargetCSP.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *EnrollmentPFXEnrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *EnrollmentPFXEnrollmentRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetIncludeSubjectHeader returns the IncludeSubjectHeader field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentRequest) GetIncludeSubjectHeader() bool { + if o == nil || isNil(o.IncludeSubjectHeader) { + var ret bool + return ret + } + return *o.IncludeSubjectHeader +} + +// GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentRequest) GetIncludeSubjectHeaderOk() (*bool, bool) { + if o == nil || isNil(o.IncludeSubjectHeader) { + return nil, false + } + return o.IncludeSubjectHeader, true +} + +// HasIncludeSubjectHeader returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasIncludeSubjectHeader() bool { + if o != nil && !isNil(o.IncludeSubjectHeader) { + return true + } + + return false +} + +// SetIncludeSubjectHeader gets a reference to the given bool and assigns it to the IncludeSubjectHeader field. +func (o *EnrollmentPFXEnrollmentRequest) SetIncludeSubjectHeader(v bool) { + o.IncludeSubjectHeader = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetMetadata() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *EnrollmentPFXEnrollmentRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFields() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.AdditionalEnrollmentFields +} + +// GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + return map[string]interface{}{}, false + } + return o.AdditionalEnrollmentFields, true +} + +// HasAdditionalEnrollmentFields returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasAdditionalEnrollmentFields() bool { + if o != nil && isNil(o.AdditionalEnrollmentFields) { + return true + } + + return false +} + +// SetAdditionalEnrollmentFields gets a reference to the given map[string]interface{} and assigns it to the AdditionalEnrollmentFields field. +func (o *EnrollmentPFXEnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]interface{}) { + o.AdditionalEnrollmentFields = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *EnrollmentPFXEnrollmentRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetOwnerRoleId returns the OwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleId() int32 { + if o == nil || isNil(o.OwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.OwnerRoleId.Get() +} + +// GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleId.Get(), o.OwnerRoleId.IsSet() +} + +// HasOwnerRoleId returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasOwnerRoleId() bool { + if o != nil && o.OwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the OwnerRoleId field. +func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleId(v int32) { + o.OwnerRoleId.Set(&v) +} + +// SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleIdNil() { + o.OwnerRoleId.Set(nil) +} + +// UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetOwnerRoleId() { + o.OwnerRoleId.Unset() +} + +// GetOwnerRoleName returns the OwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleName() string { + if o == nil || isNil(o.OwnerRoleName.Get()) { + var ret string + return ret + } + return *o.OwnerRoleName.Get() +} + +// GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleName.Get(), o.OwnerRoleName.IsSet() +} + +// HasOwnerRoleName returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasOwnerRoleName() bool { + if o != nil && o.OwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleName gets a reference to the given NullableString and assigns it to the OwnerRoleName field. +func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleName(v string) { + o.OwnerRoleName.Set(&v) +} + +// SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetOwnerRoleNameNil() { + o.OwnerRoleName.Set(nil) +} + +// UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetOwnerRoleName() { + o.OwnerRoleName.Unset() +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *EnrollmentPFXEnrollmentRequest) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *EnrollmentPFXEnrollmentRequest) UnsetTemplate() { + o.Template.Unset() +} + +// GetSANs returns the SANs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentRequest) GetSANs() map[string][]string { + if o == nil { + var ret map[string][]string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return &o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentRequest) HasSANs() bool { + if o != nil && isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *EnrollmentPFXEnrollmentRequest) SetSANs(v map[string][]string) { + o.SANs = v +} + +func (o EnrollmentPFXEnrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentPFXEnrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CustomFriendlyName.IsSet() { + toSerialize["CustomFriendlyName"] = o.CustomFriendlyName.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if !isNil(o.PopulateMissingValuesFromAD) { + toSerialize["PopulateMissingValuesFromAD"] = o.PopulateMissingValuesFromAD + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.RenewalCertificateId.IsSet() { + toSerialize["RenewalCertificateId"] = o.RenewalCertificateId.Get() + } + if o.ChainOrder.IsSet() { + toSerialize["ChainOrder"] = o.ChainOrder.Get() + } + if o.UseLegacyEncryption.IsSet() { + toSerialize["UseLegacyEncryption"] = o.UseLegacyEncryption.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if o.MicrosoftTargetCSP.IsSet() { + toSerialize["MicrosoftTargetCSP"] = o.MicrosoftTargetCSP.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.IncludeSubjectHeader) { + toSerialize["IncludeSubjectHeader"] = o.IncludeSubjectHeader + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.AdditionalEnrollmentFields != nil { + toSerialize["AdditionalEnrollmentFields"] = o.AdditionalEnrollmentFields + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if o.OwnerRoleId.IsSet() { + toSerialize["OwnerRoleId"] = o.OwnerRoleId.Get() + } + if o.OwnerRoleName.IsSet() { + toSerialize["OwnerRoleName"] = o.OwnerRoleName.Get() + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.SANs != nil { + toSerialize["SANs"] = o.SANs + } + return toSerialize, nil +} + +type NullableEnrollmentPFXEnrollmentRequest struct { + value *EnrollmentPFXEnrollmentRequest + isSet bool +} + +func (v NullableEnrollmentPFXEnrollmentRequest) Get() *EnrollmentPFXEnrollmentRequest { + return v.value +} + +func (v *NullableEnrollmentPFXEnrollmentRequest) Set(val *EnrollmentPFXEnrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentPFXEnrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentPFXEnrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentPFXEnrollmentRequest(val *EnrollmentPFXEnrollmentRequest) *NullableEnrollmentPFXEnrollmentRequest { + return &NullableEnrollmentPFXEnrollmentRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentPFXEnrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentPFXEnrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_enrollment_renewal_api_response.go b/v24/api/keyfactor/v1/model_enrollment_renewal_api_response.go new file mode 100644 index 0000000..0926ce0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_enrollment_renewal_api_response.go @@ -0,0 +1,452 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EnrollmentRenewalApiResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentRenewalApiResponse{} + +// EnrollmentRenewalApiResponse struct for EnrollmentRenewalApiResponse +type EnrollmentRenewalApiResponse struct { + KeyfactorId *int32 `json:"KeyfactorId,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + RequestDisposition NullableString `json:"RequestDisposition,omitempty"` + DispositionMessage NullableString `json:"DispositionMessage,omitempty"` + Password NullableString `json:"Password,omitempty"` +} + +// NewEnrollmentRenewalApiResponse instantiates a new EnrollmentRenewalApiResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentRenewalApiResponse() *EnrollmentRenewalApiResponse { + this := EnrollmentRenewalApiResponse{} + return &this +} + +// NewEnrollmentRenewalApiResponseWithDefaults instantiates a new EnrollmentRenewalApiResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentRenewalApiResponseWithDefaults() *EnrollmentRenewalApiResponse { + this := EnrollmentRenewalApiResponse{} + return &this +} + +// GetKeyfactorId returns the KeyfactorId field value if set, zero value otherwise. +func (o *EnrollmentRenewalApiResponse) GetKeyfactorId() int32 { + if o == nil || isNil(o.KeyfactorId) { + var ret int32 + return ret + } + return *o.KeyfactorId +} + +// GetKeyfactorIdOk returns a tuple with the KeyfactorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentRenewalApiResponse) GetKeyfactorIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorId) { + return nil, false + } + return o.KeyfactorId, true +} + +// HasKeyfactorId returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasKeyfactorId() bool { + if o != nil && !isNil(o.KeyfactorId) { + return true + } + + return false +} + +// SetKeyfactorId gets a reference to the given int32 and assigns it to the KeyfactorId field. +func (o *EnrollmentRenewalApiResponse) SetKeyfactorId(v int32) { + o.KeyfactorId = &v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *EnrollmentRenewalApiResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentRenewalApiResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *EnrollmentRenewalApiResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *EnrollmentRenewalApiResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *EnrollmentRenewalApiResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *EnrollmentRenewalApiResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition.Get()) { + var ret string + return ret + } + return *o.RequestDisposition.Get() +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestDisposition.Get(), o.RequestDisposition.IsSet() +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasRequestDisposition() bool { + if o != nil && o.RequestDisposition.IsSet() { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given NullableString and assigns it to the RequestDisposition field. +func (o *EnrollmentRenewalApiResponse) SetRequestDisposition(v string) { + o.RequestDisposition.Set(&v) +} + +// SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetRequestDispositionNil() { + o.RequestDisposition.Set(nil) +} + +// UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetRequestDisposition() { + o.RequestDisposition.Unset() +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage.Get()) { + var ret string + return ret + } + return *o.DispositionMessage.Get() +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DispositionMessage.Get(), o.DispositionMessage.IsSet() +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasDispositionMessage() bool { + if o != nil && o.DispositionMessage.IsSet() { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given NullableString and assigns it to the DispositionMessage field. +func (o *EnrollmentRenewalApiResponse) SetDispositionMessage(v string) { + o.DispositionMessage.Set(&v) +} + +// SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetDispositionMessageNil() { + o.DispositionMessage.Set(nil) +} + +// UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetDispositionMessage() { + o.DispositionMessage.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentRenewalApiResponse) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentRenewalApiResponse) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *EnrollmentRenewalApiResponse) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *EnrollmentRenewalApiResponse) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *EnrollmentRenewalApiResponse) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *EnrollmentRenewalApiResponse) UnsetPassword() { + o.Password.Unset() +} + +func (o EnrollmentRenewalApiResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentRenewalApiResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeyfactorId) { + toSerialize["KeyfactorId"] = o.KeyfactorId + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.RequestDisposition.IsSet() { + toSerialize["RequestDisposition"] = o.RequestDisposition.Get() + } + if o.DispositionMessage.IsSet() { + toSerialize["DispositionMessage"] = o.DispositionMessage.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + return toSerialize, nil +} + +type NullableEnrollmentRenewalApiResponse struct { + value *EnrollmentRenewalApiResponse + isSet bool +} + +func (v NullableEnrollmentRenewalApiResponse) Get() *EnrollmentRenewalApiResponse { + return v.value +} + +func (v *NullableEnrollmentRenewalApiResponse) Set(val *EnrollmentRenewalApiResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentRenewalApiResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentRenewalApiResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentRenewalApiResponse(val *EnrollmentRenewalApiResponse) *NullableEnrollmentRenewalApiResponse { + return &NullableEnrollmentRenewalApiResponse{value: val, isSet: true} +} + +func (v NullableEnrollmentRenewalApiResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentRenewalApiResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_request.go b/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_request.go new file mode 100644 index 0000000..41ea5fa --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_request.go @@ -0,0 +1,179 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerEventHandlerParameterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerEventHandlerParameterRequest{} + +// EventHandlerEventHandlerParameterRequest struct for EventHandlerEventHandlerParameterRequest +type EventHandlerEventHandlerParameterRequest struct { + Key string `json:"Key"` + DefaultValue string `json:"DefaultValue"` + ParameterType string `json:"ParameterType"` +} + +// NewEventHandlerEventHandlerParameterRequest instantiates a new EventHandlerEventHandlerParameterRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerEventHandlerParameterRequest(key string, defaultValue string, parameterType string) *EventHandlerEventHandlerParameterRequest { + this := EventHandlerEventHandlerParameterRequest{} + this.Key = key + this.DefaultValue = defaultValue + this.ParameterType = parameterType + return &this +} + +// NewEventHandlerEventHandlerParameterRequestWithDefaults instantiates a new EventHandlerEventHandlerParameterRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerEventHandlerParameterRequestWithDefaults() *EventHandlerEventHandlerParameterRequest { + this := EventHandlerEventHandlerParameterRequest{} + return &this +} + +// GetKey returns the Key field value +func (o *EventHandlerEventHandlerParameterRequest) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *EventHandlerEventHandlerParameterRequest) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *EventHandlerEventHandlerParameterRequest) SetKey(v string) { + o.Key = v +} + +// GetDefaultValue returns the DefaultValue field value +func (o *EventHandlerEventHandlerParameterRequest) GetDefaultValue() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value +// and a boolean to check if the value has been set. +func (o *EventHandlerEventHandlerParameterRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultValue, true +} + +// SetDefaultValue sets field value +func (o *EventHandlerEventHandlerParameterRequest) SetDefaultValue(v string) { + o.DefaultValue = v +} + +// GetParameterType returns the ParameterType field value +func (o *EventHandlerEventHandlerParameterRequest) GetParameterType() string { + if o == nil { + var ret string + return ret + } + + return o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value +// and a boolean to check if the value has been set. +func (o *EventHandlerEventHandlerParameterRequest) GetParameterTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParameterType, true +} + +// SetParameterType sets field value +func (o *EventHandlerEventHandlerParameterRequest) SetParameterType(v string) { + o.ParameterType = v +} + +func (o EventHandlerEventHandlerParameterRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerEventHandlerParameterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Key"] = o.Key + toSerialize["DefaultValue"] = o.DefaultValue + toSerialize["ParameterType"] = o.ParameterType + return toSerialize, nil +} + +type NullableEventHandlerEventHandlerParameterRequest struct { + value *EventHandlerEventHandlerParameterRequest + isSet bool +} + +func (v NullableEventHandlerEventHandlerParameterRequest) Get() *EventHandlerEventHandlerParameterRequest { + return v.value +} + +func (v *NullableEventHandlerEventHandlerParameterRequest) Set(val *EventHandlerEventHandlerParameterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerEventHandlerParameterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerEventHandlerParameterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerEventHandlerParameterRequest(val *EventHandlerEventHandlerParameterRequest) *NullableEventHandlerEventHandlerParameterRequest { + return &NullableEventHandlerEventHandlerParameterRequest{value: val, isSet: true} +} + +func (v NullableEventHandlerEventHandlerParameterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerEventHandlerParameterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_response.go b/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_response.go new file mode 100644 index 0000000..615c48e --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_event_handler_parameter_response.go @@ -0,0 +1,275 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerEventHandlerParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerEventHandlerParameterResponse{} + +// EventHandlerEventHandlerParameterResponse struct for EventHandlerEventHandlerParameterResponse +type EventHandlerEventHandlerParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Key NullableString `json:"Key,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + ParameterType NullableString `json:"ParameterType,omitempty"` +} + +// NewEventHandlerEventHandlerParameterResponse instantiates a new EventHandlerEventHandlerParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerEventHandlerParameterResponse() *EventHandlerEventHandlerParameterResponse { + this := EventHandlerEventHandlerParameterResponse{} + return &this +} + +// NewEventHandlerEventHandlerParameterResponseWithDefaults instantiates a new EventHandlerEventHandlerParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerEventHandlerParameterResponseWithDefaults() *EventHandlerEventHandlerParameterResponse { + this := EventHandlerEventHandlerParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *EventHandlerEventHandlerParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerEventHandlerParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *EventHandlerEventHandlerParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *EventHandlerEventHandlerParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerEventHandlerParameterResponse) GetKey() string { + if o == nil || isNil(o.Key.Get()) { + var ret string + return ret + } + return *o.Key.Get() +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerEventHandlerParameterResponse) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Key.Get(), o.Key.IsSet() +} + +// HasKey returns a boolean if a field has been set. +func (o *EventHandlerEventHandlerParameterResponse) HasKey() bool { + if o != nil && o.Key.IsSet() { + return true + } + + return false +} + +// SetKey gets a reference to the given NullableString and assigns it to the Key field. +func (o *EventHandlerEventHandlerParameterResponse) SetKey(v string) { + o.Key.Set(&v) +} + +// SetKeyNil sets the value for Key to be an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) SetKeyNil() { + o.Key.Set(nil) +} + +// UnsetKey ensures that no value is present for Key, not even an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) UnsetKey() { + o.Key.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerEventHandlerParameterResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerEventHandlerParameterResponse) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *EventHandlerEventHandlerParameterResponse) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *EventHandlerEventHandlerParameterResponse) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerEventHandlerParameterResponse) GetParameterType() string { + if o == nil || isNil(o.ParameterType.Get()) { + var ret string + return ret + } + return *o.ParameterType.Get() +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerEventHandlerParameterResponse) GetParameterTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParameterType.Get(), o.ParameterType.IsSet() +} + +// HasParameterType returns a boolean if a field has been set. +func (o *EventHandlerEventHandlerParameterResponse) HasParameterType() bool { + if o != nil && o.ParameterType.IsSet() { + return true + } + + return false +} + +// SetParameterType gets a reference to the given NullableString and assigns it to the ParameterType field. +func (o *EventHandlerEventHandlerParameterResponse) SetParameterType(v string) { + o.ParameterType.Set(&v) +} + +// SetParameterTypeNil sets the value for ParameterType to be an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) SetParameterTypeNil() { + o.ParameterType.Set(nil) +} + +// UnsetParameterType ensures that no value is present for ParameterType, not even an explicit nil +func (o *EventHandlerEventHandlerParameterResponse) UnsetParameterType() { + o.ParameterType.Unset() +} + +func (o EventHandlerEventHandlerParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerEventHandlerParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Key.IsSet() { + toSerialize["Key"] = o.Key.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if o.ParameterType.IsSet() { + toSerialize["ParameterType"] = o.ParameterType.Get() + } + return toSerialize, nil +} + +type NullableEventHandlerEventHandlerParameterResponse struct { + value *EventHandlerEventHandlerParameterResponse + isSet bool +} + +func (v NullableEventHandlerEventHandlerParameterResponse) Get() *EventHandlerEventHandlerParameterResponse { + return v.value +} + +func (v *NullableEventHandlerEventHandlerParameterResponse) Set(val *EventHandlerEventHandlerParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerEventHandlerParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerEventHandlerParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerEventHandlerParameterResponse(val *EventHandlerEventHandlerParameterResponse) *NullableEventHandlerEventHandlerParameterResponse { + return &NullableEventHandlerEventHandlerParameterResponse{value: val, isSet: true} +} + +func (v NullableEventHandlerEventHandlerParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerEventHandlerParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_request.go b/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_request.go new file mode 100644 index 0000000..7fb3acf --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerRegisteredEventHandlerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerRegisteredEventHandlerRequest{} + +// EventHandlerRegisteredEventHandlerRequest struct for EventHandlerRegisteredEventHandlerRequest +type EventHandlerRegisteredEventHandlerRequest struct { + Id int32 `json:"Id"` + UseHandler bool `json:"UseHandler"` +} + +// NewEventHandlerRegisteredEventHandlerRequest instantiates a new EventHandlerRegisteredEventHandlerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerRegisteredEventHandlerRequest(id int32, useHandler bool) *EventHandlerRegisteredEventHandlerRequest { + this := EventHandlerRegisteredEventHandlerRequest{} + this.Id = id + this.UseHandler = useHandler + return &this +} + +// NewEventHandlerRegisteredEventHandlerRequestWithDefaults instantiates a new EventHandlerRegisteredEventHandlerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerRegisteredEventHandlerRequestWithDefaults() *EventHandlerRegisteredEventHandlerRequest { + this := EventHandlerRegisteredEventHandlerRequest{} + return &this +} + +// GetId returns the Id field value +func (o *EventHandlerRegisteredEventHandlerRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EventHandlerRegisteredEventHandlerRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EventHandlerRegisteredEventHandlerRequest) SetId(v int32) { + o.Id = v +} + +// GetUseHandler returns the UseHandler field value +func (o *EventHandlerRegisteredEventHandlerRequest) GetUseHandler() bool { + if o == nil { + var ret bool + return ret + } + + return o.UseHandler +} + +// GetUseHandlerOk returns a tuple with the UseHandler field value +// and a boolean to check if the value has been set. +func (o *EventHandlerRegisteredEventHandlerRequest) GetUseHandlerOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UseHandler, true +} + +// SetUseHandler sets field value +func (o *EventHandlerRegisteredEventHandlerRequest) SetUseHandler(v bool) { + o.UseHandler = v +} + +func (o EventHandlerRegisteredEventHandlerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerRegisteredEventHandlerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["UseHandler"] = o.UseHandler + return toSerialize, nil +} + +type NullableEventHandlerRegisteredEventHandlerRequest struct { + value *EventHandlerRegisteredEventHandlerRequest + isSet bool +} + +func (v NullableEventHandlerRegisteredEventHandlerRequest) Get() *EventHandlerRegisteredEventHandlerRequest { + return v.value +} + +func (v *NullableEventHandlerRegisteredEventHandlerRequest) Set(val *EventHandlerRegisteredEventHandlerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerRegisteredEventHandlerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerRegisteredEventHandlerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerRegisteredEventHandlerRequest(val *EventHandlerRegisteredEventHandlerRequest) *NullableEventHandlerRegisteredEventHandlerRequest { + return &NullableEventHandlerRegisteredEventHandlerRequest{value: val, isSet: true} +} + +func (v NullableEventHandlerRegisteredEventHandlerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerRegisteredEventHandlerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_response.go b/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_response.go new file mode 100644 index 0000000..c15f691 --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_registered_event_handler_response.go @@ -0,0 +1,217 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerRegisteredEventHandlerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerRegisteredEventHandlerResponse{} + +// EventHandlerRegisteredEventHandlerResponse struct for EventHandlerRegisteredEventHandlerResponse +type EventHandlerRegisteredEventHandlerResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + UseHandler *bool `json:"UseHandler,omitempty"` +} + +// NewEventHandlerRegisteredEventHandlerResponse instantiates a new EventHandlerRegisteredEventHandlerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerRegisteredEventHandlerResponse() *EventHandlerRegisteredEventHandlerResponse { + this := EventHandlerRegisteredEventHandlerResponse{} + return &this +} + +// NewEventHandlerRegisteredEventHandlerResponseWithDefaults instantiates a new EventHandlerRegisteredEventHandlerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerRegisteredEventHandlerResponseWithDefaults() *EventHandlerRegisteredEventHandlerResponse { + this := EventHandlerRegisteredEventHandlerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *EventHandlerRegisteredEventHandlerResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerRegisteredEventHandlerResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *EventHandlerRegisteredEventHandlerResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *EventHandlerRegisteredEventHandlerResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerRegisteredEventHandlerResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerRegisteredEventHandlerResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *EventHandlerRegisteredEventHandlerResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *EventHandlerRegisteredEventHandlerResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *EventHandlerRegisteredEventHandlerResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *EventHandlerRegisteredEventHandlerResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetUseHandler returns the UseHandler field value if set, zero value otherwise. +func (o *EventHandlerRegisteredEventHandlerResponse) GetUseHandler() bool { + if o == nil || isNil(o.UseHandler) { + var ret bool + return ret + } + return *o.UseHandler +} + +// GetUseHandlerOk returns a tuple with the UseHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerRegisteredEventHandlerResponse) GetUseHandlerOk() (*bool, bool) { + if o == nil || isNil(o.UseHandler) { + return nil, false + } + return o.UseHandler, true +} + +// HasUseHandler returns a boolean if a field has been set. +func (o *EventHandlerRegisteredEventHandlerResponse) HasUseHandler() bool { + if o != nil && !isNil(o.UseHandler) { + return true + } + + return false +} + +// SetUseHandler gets a reference to the given bool and assigns it to the UseHandler field. +func (o *EventHandlerRegisteredEventHandlerResponse) SetUseHandler(v bool) { + o.UseHandler = &v +} + +func (o EventHandlerRegisteredEventHandlerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerRegisteredEventHandlerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.UseHandler) { + toSerialize["UseHandler"] = o.UseHandler + } + return toSerialize, nil +} + +type NullableEventHandlerRegisteredEventHandlerResponse struct { + value *EventHandlerRegisteredEventHandlerResponse + isSet bool +} + +func (v NullableEventHandlerRegisteredEventHandlerResponse) Get() *EventHandlerRegisteredEventHandlerResponse { + return v.value +} + +func (v *NullableEventHandlerRegisteredEventHandlerResponse) Set(val *EventHandlerRegisteredEventHandlerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerRegisteredEventHandlerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerRegisteredEventHandlerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerRegisteredEventHandlerResponse(val *EventHandlerRegisteredEventHandlerResponse) *NullableEventHandlerRegisteredEventHandlerResponse { + return &NullableEventHandlerRegisteredEventHandlerResponse{value: val, isSet: true} +} + +func (v NullableEventHandlerRegisteredEventHandlerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerRegisteredEventHandlerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_create_request.go b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_create_request.go new file mode 100644 index 0000000..1baccf7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_create_request.go @@ -0,0 +1,125 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerRegistrationEventHandlerRegistrationCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerRegistrationEventHandlerRegistrationCreateRequest{} + +// EventHandlerRegistrationEventHandlerRegistrationCreateRequest struct for EventHandlerRegistrationEventHandlerRegistrationCreateRequest +type EventHandlerRegistrationEventHandlerRegistrationCreateRequest struct { + AssemblyName string `json:"AssemblyName"` +} + +// NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest instantiates a new EventHandlerRegistrationEventHandlerRegistrationCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerRegistrationEventHandlerRegistrationCreateRequest(assemblyName string) *EventHandlerRegistrationEventHandlerRegistrationCreateRequest { + this := EventHandlerRegistrationEventHandlerRegistrationCreateRequest{} + this.AssemblyName = assemblyName + return &this +} + +// NewEventHandlerRegistrationEventHandlerRegistrationCreateRequestWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerRegistrationEventHandlerRegistrationCreateRequestWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationCreateRequest { + this := EventHandlerRegistrationEventHandlerRegistrationCreateRequest{} + return &this +} + +// GetAssemblyName returns the AssemblyName field value +func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) GetAssemblyName() string { + if o == nil { + var ret string + return ret + } + + return o.AssemblyName +} + +// GetAssemblyNameOk returns a tuple with the AssemblyName field value +// and a boolean to check if the value has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) GetAssemblyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssemblyName, true +} + +// SetAssemblyName sets field value +func (o *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) SetAssemblyName(v string) { + o.AssemblyName = v +} + +func (o EventHandlerRegistrationEventHandlerRegistrationCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerRegistrationEventHandlerRegistrationCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AssemblyName"] = o.AssemblyName + return toSerialize, nil +} + +type NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest struct { + value *EventHandlerRegistrationEventHandlerRegistrationCreateRequest + isSet bool +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) Get() *EventHandlerRegistrationEventHandlerRegistrationCreateRequest { + return v.value +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) Set(val *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest(val *EventHandlerRegistrationEventHandlerRegistrationCreateRequest) *NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest { + return &NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest{value: val, isSet: true} +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_response.go b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_response.go new file mode 100644 index 0000000..854b948 --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerRegistrationEventHandlerRegistrationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerRegistrationEventHandlerRegistrationResponse{} + +// EventHandlerRegistrationEventHandlerRegistrationResponse struct for EventHandlerRegistrationEventHandlerRegistrationResponse +type EventHandlerRegistrationEventHandlerRegistrationResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + ClassName NullableString `json:"ClassName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + SupportedEvents NullableString `json:"SupportedEvents,omitempty"` +} + +// NewEventHandlerRegistrationEventHandlerRegistrationResponse instantiates a new EventHandlerRegistrationEventHandlerRegistrationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerRegistrationEventHandlerRegistrationResponse() *EventHandlerRegistrationEventHandlerRegistrationResponse { + this := EventHandlerRegistrationEventHandlerRegistrationResponse{} + return &this +} + +// NewEventHandlerRegistrationEventHandlerRegistrationResponseWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerRegistrationEventHandlerRegistrationResponseWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationResponse { + this := EventHandlerRegistrationEventHandlerRegistrationResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetClassName returns the ClassName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetClassName() string { + if o == nil || isNil(o.ClassName.Get()) { + var ret string + return ret + } + return *o.ClassName.Get() +} + +// GetClassNameOk returns a tuple with the ClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetClassNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClassName.Get(), o.ClassName.IsSet() +} + +// HasClassName returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasClassName() bool { + if o != nil && o.ClassName.IsSet() { + return true + } + + return false +} + +// SetClassName gets a reference to the given NullableString and assigns it to the ClassName field. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetClassName(v string) { + o.ClassName.Set(&v) +} + +// SetClassNameNil sets the value for ClassName to be an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetClassNameNil() { + o.ClassName.Set(nil) +} + +// UnsetClassName ensures that no value is present for ClassName, not even an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetClassName() { + o.ClassName.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetSupportedEvents returns the SupportedEvents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetSupportedEvents() string { + if o == nil || isNil(o.SupportedEvents.Get()) { + var ret string + return ret + } + return *o.SupportedEvents.Get() +} + +// GetSupportedEventsOk returns a tuple with the SupportedEvents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) GetSupportedEventsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SupportedEvents.Get(), o.SupportedEvents.IsSet() +} + +// HasSupportedEvents returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) HasSupportedEvents() bool { + if o != nil && o.SupportedEvents.IsSet() { + return true + } + + return false +} + +// SetSupportedEvents gets a reference to the given NullableString and assigns it to the SupportedEvents field. +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetSupportedEvents(v string) { + o.SupportedEvents.Set(&v) +} + +// SetSupportedEventsNil sets the value for SupportedEvents to be an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) SetSupportedEventsNil() { + o.SupportedEvents.Set(nil) +} + +// UnsetSupportedEvents ensures that no value is present for SupportedEvents, not even an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationResponse) UnsetSupportedEvents() { + o.SupportedEvents.Unset() +} + +func (o EventHandlerRegistrationEventHandlerRegistrationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerRegistrationEventHandlerRegistrationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ClassName.IsSet() { + toSerialize["ClassName"] = o.ClassName.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.SupportedEvents.IsSet() { + toSerialize["SupportedEvents"] = o.SupportedEvents.Get() + } + return toSerialize, nil +} + +type NullableEventHandlerRegistrationEventHandlerRegistrationResponse struct { + value *EventHandlerRegistrationEventHandlerRegistrationResponse + isSet bool +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationResponse) Get() *EventHandlerRegistrationEventHandlerRegistrationResponse { + return v.value +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationResponse) Set(val *EventHandlerRegistrationEventHandlerRegistrationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerRegistrationEventHandlerRegistrationResponse(val *EventHandlerRegistrationEventHandlerRegistrationResponse) *NullableEventHandlerRegistrationEventHandlerRegistrationResponse { + return &NullableEventHandlerRegistrationEventHandlerRegistrationResponse{value: val, isSet: true} +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_update_request.go b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_update_request.go new file mode 100644 index 0000000..05c7e99 --- /dev/null +++ b/v24/api/keyfactor/v1/model_event_handler_registration_event_handler_registration_update_request.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the EventHandlerRegistrationEventHandlerRegistrationUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventHandlerRegistrationEventHandlerRegistrationUpdateRequest{} + +// EventHandlerRegistrationEventHandlerRegistrationUpdateRequest struct for EventHandlerRegistrationEventHandlerRegistrationUpdateRequest +type EventHandlerRegistrationEventHandlerRegistrationUpdateRequest struct { + DisplayName NullableString `json:"DisplayName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` +} + +// NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest instantiates a new EventHandlerRegistrationEventHandlerRegistrationUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequest() *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest { + this := EventHandlerRegistrationEventHandlerRegistrationUpdateRequest{} + return &this +} + +// NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequestWithDefaults instantiates a new EventHandlerRegistrationEventHandlerRegistrationUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventHandlerRegistrationEventHandlerRegistrationUpdateRequestWithDefaults() *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest { + this := EventHandlerRegistrationEventHandlerRegistrationUpdateRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest struct { + value *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest + isSet bool +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) Get() *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest { + return v.value +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) Set(val *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest(val *EventHandlerRegistrationEventHandlerRegistrationUpdateRequest) *NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest { + return &NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest{value: val, isSet: true} +} + +func (v NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventHandlerRegistrationEventHandlerRegistrationUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_global_permissions_global_permission_response.go b/v24/api/keyfactor/v1/model_global_permissions_global_permission_response.go new file mode 100644 index 0000000..f90eb94 --- /dev/null +++ b/v24/api/keyfactor/v1/model_global_permissions_global_permission_response.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the GlobalPermissionsGlobalPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GlobalPermissionsGlobalPermissionResponse{} + +// GlobalPermissionsGlobalPermissionResponse struct for GlobalPermissionsGlobalPermissionResponse +type GlobalPermissionsGlobalPermissionResponse struct { + Area NullableString `json:"Area,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewGlobalPermissionsGlobalPermissionResponse instantiates a new GlobalPermissionsGlobalPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGlobalPermissionsGlobalPermissionResponse() *GlobalPermissionsGlobalPermissionResponse { + this := GlobalPermissionsGlobalPermissionResponse{} + return &this +} + +// NewGlobalPermissionsGlobalPermissionResponseWithDefaults instantiates a new GlobalPermissionsGlobalPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGlobalPermissionsGlobalPermissionResponseWithDefaults() *GlobalPermissionsGlobalPermissionResponse { + this := GlobalPermissionsGlobalPermissionResponse{} + return &this +} + +// GetArea returns the Area field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GlobalPermissionsGlobalPermissionResponse) GetArea() string { + if o == nil || isNil(o.Area.Get()) { + var ret string + return ret + } + return *o.Area.Get() +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GlobalPermissionsGlobalPermissionResponse) GetAreaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Area.Get(), o.Area.IsSet() +} + +// HasArea returns a boolean if a field has been set. +func (o *GlobalPermissionsGlobalPermissionResponse) HasArea() bool { + if o != nil && o.Area.IsSet() { + return true + } + + return false +} + +// SetArea gets a reference to the given NullableString and assigns it to the Area field. +func (o *GlobalPermissionsGlobalPermissionResponse) SetArea(v string) { + o.Area.Set(&v) +} + +// SetAreaNil sets the value for Area to be an explicit nil +func (o *GlobalPermissionsGlobalPermissionResponse) SetAreaNil() { + o.Area.Set(nil) +} + +// UnsetArea ensures that no value is present for Area, not even an explicit nil +func (o *GlobalPermissionsGlobalPermissionResponse) UnsetArea() { + o.Area.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GlobalPermissionsGlobalPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GlobalPermissionsGlobalPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *GlobalPermissionsGlobalPermissionResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *GlobalPermissionsGlobalPermissionResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *GlobalPermissionsGlobalPermissionResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *GlobalPermissionsGlobalPermissionResponse) UnsetPermission() { + o.Permission.Unset() +} + +func (o GlobalPermissionsGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GlobalPermissionsGlobalPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Area.IsSet() { + toSerialize["Area"] = o.Area.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableGlobalPermissionsGlobalPermissionResponse struct { + value *GlobalPermissionsGlobalPermissionResponse + isSet bool +} + +func (v NullableGlobalPermissionsGlobalPermissionResponse) Get() *GlobalPermissionsGlobalPermissionResponse { + return v.value +} + +func (v *NullableGlobalPermissionsGlobalPermissionResponse) Set(val *GlobalPermissionsGlobalPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGlobalPermissionsGlobalPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGlobalPermissionsGlobalPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGlobalPermissionsGlobalPermissionResponse(val *GlobalPermissionsGlobalPermissionResponse) *NullableGlobalPermissionsGlobalPermissionResponse { + return &NullableGlobalPermissionsGlobalPermissionResponse{value: val, isSet: true} +} + +func (v NullableGlobalPermissionsGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGlobalPermissionsGlobalPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_request.go b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_request.go new file mode 100644 index 0000000..90d0a57 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_request.go @@ -0,0 +1,262 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderIdentityProviderCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderIdentityProviderCreateRequest{} + +// IdentityProviderIdentityProviderCreateRequest struct for IdentityProviderIdentityProviderCreateRequest +type IdentityProviderIdentityProviderCreateRequest struct { + AuthenticationScheme string `json:"AuthenticationScheme"` + DisplayName string `json:"DisplayName"` + ProviderType string `json:"ProviderType"` + PermissionSetId NullableString `json:"PermissionSetId,omitempty"` + Parameters *IdentityProviderProviderTypeParameterRequest `json:"Parameters,omitempty"` +} + +// NewIdentityProviderIdentityProviderCreateRequest instantiates a new IdentityProviderIdentityProviderCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderIdentityProviderCreateRequest(authenticationScheme string, displayName string, providerType string) *IdentityProviderIdentityProviderCreateRequest { + this := IdentityProviderIdentityProviderCreateRequest{} + this.AuthenticationScheme = authenticationScheme + this.DisplayName = displayName + this.ProviderType = providerType + return &this +} + +// NewIdentityProviderIdentityProviderCreateRequestWithDefaults instantiates a new IdentityProviderIdentityProviderCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderIdentityProviderCreateRequestWithDefaults() *IdentityProviderIdentityProviderCreateRequest { + this := IdentityProviderIdentityProviderCreateRequest{} + return &this +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value +func (o *IdentityProviderIdentityProviderCreateRequest) GetAuthenticationScheme() string { + if o == nil { + var ret string + return ret + } + + return o.AuthenticationScheme +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthenticationScheme, true +} + +// SetAuthenticationScheme sets field value +func (o *IdentityProviderIdentityProviderCreateRequest) SetAuthenticationScheme(v string) { + o.AuthenticationScheme = v +} + +// GetDisplayName returns the DisplayName field value +func (o *IdentityProviderIdentityProviderCreateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *IdentityProviderIdentityProviderCreateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetProviderType returns the ProviderType field value +func (o *IdentityProviderIdentityProviderCreateRequest) GetProviderType() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) GetProviderTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderType, true +} + +// SetProviderType sets field value +func (o *IdentityProviderIdentityProviderCreateRequest) SetProviderType(v string) { + o.ProviderType = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderCreateRequest) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId.Get()) { + var ret string + return ret + } + return *o.PermissionSetId.Get() +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderCreateRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PermissionSetId.Get(), o.PermissionSetId.IsSet() +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) HasPermissionSetId() bool { + if o != nil && o.PermissionSetId.IsSet() { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given NullableString and assigns it to the PermissionSetId field. +func (o *IdentityProviderIdentityProviderCreateRequest) SetPermissionSetId(v string) { + o.PermissionSetId.Set(&v) +} + +// SetPermissionSetIdNil sets the value for PermissionSetId to be an explicit nil +func (o *IdentityProviderIdentityProviderCreateRequest) SetPermissionSetIdNil() { + o.PermissionSetId.Set(nil) +} + +// UnsetPermissionSetId ensures that no value is present for PermissionSetId, not even an explicit nil +func (o *IdentityProviderIdentityProviderCreateRequest) UnsetPermissionSetId() { + o.PermissionSetId.Unset() +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderCreateRequest) GetParameters() IdentityProviderProviderTypeParameterRequest { + if o == nil || isNil(o.Parameters) { + var ret IdentityProviderProviderTypeParameterRequest + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) GetParametersOk() (*IdentityProviderProviderTypeParameterRequest, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateRequest) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given IdentityProviderProviderTypeParameterRequest and assigns it to the Parameters field. +func (o *IdentityProviderIdentityProviderCreateRequest) SetParameters(v IdentityProviderProviderTypeParameterRequest) { + o.Parameters = &v +} + +func (o IdentityProviderIdentityProviderCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderIdentityProviderCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme + toSerialize["DisplayName"] = o.DisplayName + toSerialize["ProviderType"] = o.ProviderType + if o.PermissionSetId.IsSet() { + toSerialize["PermissionSetId"] = o.PermissionSetId.Get() + } + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullableIdentityProviderIdentityProviderCreateRequest struct { + value *IdentityProviderIdentityProviderCreateRequest + isSet bool +} + +func (v NullableIdentityProviderIdentityProviderCreateRequest) Get() *IdentityProviderIdentityProviderCreateRequest { + return v.value +} + +func (v *NullableIdentityProviderIdentityProviderCreateRequest) Set(val *IdentityProviderIdentityProviderCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderIdentityProviderCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderIdentityProviderCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderIdentityProviderCreateRequest(val *IdentityProviderIdentityProviderCreateRequest) *NullableIdentityProviderIdentityProviderCreateRequest { + return &NullableIdentityProviderIdentityProviderCreateRequest{value: val, isSet: true} +} + +func (v NullableIdentityProviderIdentityProviderCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderIdentityProviderCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_response.go b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_response.go new file mode 100644 index 0000000..c6781f1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_create_response.go @@ -0,0 +1,373 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderIdentityProviderCreateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderIdentityProviderCreateResponse{} + +// IdentityProviderIdentityProviderCreateResponse struct for IdentityProviderIdentityProviderCreateResponse +type IdentityProviderIdentityProviderCreateResponse struct { + Id *string `json:"Id,omitempty"` + AuthenticationScheme NullableString `json:"AuthenticationScheme,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + TypeId *string `json:"TypeId,omitempty"` + Parameters []IdentityProviderProviderTypeParameterValueResponse `json:"Parameters,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` + AuthenticationEnabled *bool `json:"AuthenticationEnabled,omitempty"` +} + +// NewIdentityProviderIdentityProviderCreateResponse instantiates a new IdentityProviderIdentityProviderCreateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderIdentityProviderCreateResponse() *IdentityProviderIdentityProviderCreateResponse { + this := IdentityProviderIdentityProviderCreateResponse{} + return &this +} + +// NewIdentityProviderIdentityProviderCreateResponseWithDefaults instantiates a new IdentityProviderIdentityProviderCreateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderIdentityProviderCreateResponseWithDefaults() *IdentityProviderIdentityProviderCreateResponse { + this := IdentityProviderIdentityProviderCreateResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderCreateResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetId(v string) { + o.Id = &v +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationScheme() string { + if o == nil || isNil(o.AuthenticationScheme.Get()) { + var ret string + return ret + } + return *o.AuthenticationScheme.Get() +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationScheme.Get(), o.AuthenticationScheme.IsSet() +} + +// HasAuthenticationScheme returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasAuthenticationScheme() bool { + if o != nil && o.AuthenticationScheme.IsSet() { + return true + } + + return false +} + +// SetAuthenticationScheme gets a reference to the given NullableString and assigns it to the AuthenticationScheme field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationScheme(v string) { + o.AuthenticationScheme.Set(&v) +} + +// SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil +func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationSchemeNil() { + o.AuthenticationScheme.Set(nil) +} + +// UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +func (o *IdentityProviderIdentityProviderCreateResponse) UnsetAuthenticationScheme() { + o.AuthenticationScheme.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderCreateResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderCreateResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *IdentityProviderIdentityProviderCreateResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *IdentityProviderIdentityProviderCreateResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetTypeId returns the TypeId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderCreateResponse) GetTypeId() string { + if o == nil || isNil(o.TypeId) { + var ret string + return ret + } + return *o.TypeId +} + +// GetTypeIdOk returns a tuple with the TypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) GetTypeIdOk() (*string, bool) { + if o == nil || isNil(o.TypeId) { + return nil, false + } + return o.TypeId, true +} + +// HasTypeId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasTypeId() bool { + if o != nil && !isNil(o.TypeId) { + return true + } + + return false +} + +// SetTypeId gets a reference to the given string and assigns it to the TypeId field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetTypeId(v string) { + o.TypeId = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderCreateResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse { + if o == nil { + var ret []IdentityProviderProviderTypeParameterValueResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderCreateResponse) GetParametersOk() ([]IdentityProviderProviderTypeParameterValueResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []IdentityProviderProviderTypeParameterValueResponse and assigns it to the Parameters field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse) { + o.Parameters = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderCreateResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetAuthenticationEnabled returns the AuthenticationEnabled field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationEnabled() bool { + if o == nil || isNil(o.AuthenticationEnabled) { + var ret bool + return ret + } + return *o.AuthenticationEnabled +} + +// GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) GetAuthenticationEnabledOk() (*bool, bool) { + if o == nil || isNil(o.AuthenticationEnabled) { + return nil, false + } + return o.AuthenticationEnabled, true +} + +// HasAuthenticationEnabled returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderCreateResponse) HasAuthenticationEnabled() bool { + if o != nil && !isNil(o.AuthenticationEnabled) { + return true + } + + return false +} + +// SetAuthenticationEnabled gets a reference to the given bool and assigns it to the AuthenticationEnabled field. +func (o *IdentityProviderIdentityProviderCreateResponse) SetAuthenticationEnabled(v bool) { + o.AuthenticationEnabled = &v +} + +func (o IdentityProviderIdentityProviderCreateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderIdentityProviderCreateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AuthenticationScheme.IsSet() { + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.TypeId) { + toSerialize["TypeId"] = o.TypeId + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if !isNil(o.AuthenticationEnabled) { + toSerialize["AuthenticationEnabled"] = o.AuthenticationEnabled + } + return toSerialize, nil +} + +type NullableIdentityProviderIdentityProviderCreateResponse struct { + value *IdentityProviderIdentityProviderCreateResponse + isSet bool +} + +func (v NullableIdentityProviderIdentityProviderCreateResponse) Get() *IdentityProviderIdentityProviderCreateResponse { + return v.value +} + +func (v *NullableIdentityProviderIdentityProviderCreateResponse) Set(val *IdentityProviderIdentityProviderCreateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderIdentityProviderCreateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderIdentityProviderCreateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderIdentityProviderCreateResponse(val *IdentityProviderIdentityProviderCreateResponse) *NullableIdentityProviderIdentityProviderCreateResponse { + return &NullableIdentityProviderIdentityProviderCreateResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderIdentityProviderCreateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderIdentityProviderCreateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_identity_provider_get_response.go b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_get_response.go new file mode 100644 index 0000000..0cb20b6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_get_response.go @@ -0,0 +1,373 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderIdentityProviderGetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderIdentityProviderGetResponse{} + +// IdentityProviderIdentityProviderGetResponse struct for IdentityProviderIdentityProviderGetResponse +type IdentityProviderIdentityProviderGetResponse struct { + Id *string `json:"Id,omitempty"` + AuthenticationScheme NullableString `json:"AuthenticationScheme,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + TypeId *string `json:"TypeId,omitempty"` + Parameters []IdentityProviderProviderTypeParameterValueResponse `json:"Parameters,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` + AuthenticationEnabled *bool `json:"AuthenticationEnabled,omitempty"` +} + +// NewIdentityProviderIdentityProviderGetResponse instantiates a new IdentityProviderIdentityProviderGetResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderIdentityProviderGetResponse() *IdentityProviderIdentityProviderGetResponse { + this := IdentityProviderIdentityProviderGetResponse{} + return &this +} + +// NewIdentityProviderIdentityProviderGetResponseWithDefaults instantiates a new IdentityProviderIdentityProviderGetResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderIdentityProviderGetResponseWithDefaults() *IdentityProviderIdentityProviderGetResponse { + this := IdentityProviderIdentityProviderGetResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderGetResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderGetResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *IdentityProviderIdentityProviderGetResponse) SetId(v string) { + o.Id = &v +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationScheme() string { + if o == nil || isNil(o.AuthenticationScheme.Get()) { + var ret string + return ret + } + return *o.AuthenticationScheme.Get() +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationScheme.Get(), o.AuthenticationScheme.IsSet() +} + +// HasAuthenticationScheme returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasAuthenticationScheme() bool { + if o != nil && o.AuthenticationScheme.IsSet() { + return true + } + + return false +} + +// SetAuthenticationScheme gets a reference to the given NullableString and assigns it to the AuthenticationScheme field. +func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationScheme(v string) { + o.AuthenticationScheme.Set(&v) +} + +// SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil +func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationSchemeNil() { + o.AuthenticationScheme.Set(nil) +} + +// UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +func (o *IdentityProviderIdentityProviderGetResponse) UnsetAuthenticationScheme() { + o.AuthenticationScheme.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderGetResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderGetResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *IdentityProviderIdentityProviderGetResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *IdentityProviderIdentityProviderGetResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *IdentityProviderIdentityProviderGetResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetTypeId returns the TypeId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderGetResponse) GetTypeId() string { + if o == nil || isNil(o.TypeId) { + var ret string + return ret + } + return *o.TypeId +} + +// GetTypeIdOk returns a tuple with the TypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderGetResponse) GetTypeIdOk() (*string, bool) { + if o == nil || isNil(o.TypeId) { + return nil, false + } + return o.TypeId, true +} + +// HasTypeId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasTypeId() bool { + if o != nil && !isNil(o.TypeId) { + return true + } + + return false +} + +// SetTypeId gets a reference to the given string and assigns it to the TypeId field. +func (o *IdentityProviderIdentityProviderGetResponse) SetTypeId(v string) { + o.TypeId = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderGetResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse { + if o == nil { + var ret []IdentityProviderProviderTypeParameterValueResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderGetResponse) GetParametersOk() ([]IdentityProviderProviderTypeParameterValueResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []IdentityProviderProviderTypeParameterValueResponse and assigns it to the Parameters field. +func (o *IdentityProviderIdentityProviderGetResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse) { + o.Parameters = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderGetResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderGetResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *IdentityProviderIdentityProviderGetResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetAuthenticationEnabled returns the AuthenticationEnabled field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationEnabled() bool { + if o == nil || isNil(o.AuthenticationEnabled) { + var ret bool + return ret + } + return *o.AuthenticationEnabled +} + +// GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderGetResponse) GetAuthenticationEnabledOk() (*bool, bool) { + if o == nil || isNil(o.AuthenticationEnabled) { + return nil, false + } + return o.AuthenticationEnabled, true +} + +// HasAuthenticationEnabled returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderGetResponse) HasAuthenticationEnabled() bool { + if o != nil && !isNil(o.AuthenticationEnabled) { + return true + } + + return false +} + +// SetAuthenticationEnabled gets a reference to the given bool and assigns it to the AuthenticationEnabled field. +func (o *IdentityProviderIdentityProviderGetResponse) SetAuthenticationEnabled(v bool) { + o.AuthenticationEnabled = &v +} + +func (o IdentityProviderIdentityProviderGetResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderIdentityProviderGetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AuthenticationScheme.IsSet() { + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.TypeId) { + toSerialize["TypeId"] = o.TypeId + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if !isNil(o.AuthenticationEnabled) { + toSerialize["AuthenticationEnabled"] = o.AuthenticationEnabled + } + return toSerialize, nil +} + +type NullableIdentityProviderIdentityProviderGetResponse struct { + value *IdentityProviderIdentityProviderGetResponse + isSet bool +} + +func (v NullableIdentityProviderIdentityProviderGetResponse) Get() *IdentityProviderIdentityProviderGetResponse { + return v.value +} + +func (v *NullableIdentityProviderIdentityProviderGetResponse) Set(val *IdentityProviderIdentityProviderGetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderIdentityProviderGetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderIdentityProviderGetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderIdentityProviderGetResponse(val *IdentityProviderIdentityProviderGetResponse) *NullableIdentityProviderIdentityProviderGetResponse { + return &NullableIdentityProviderIdentityProviderGetResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderIdentityProviderGetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderIdentityProviderGetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_request.go b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_request.go new file mode 100644 index 0000000..fc82003 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_request.go @@ -0,0 +1,282 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderIdentityProviderUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderIdentityProviderUpdateRequest{} + +// IdentityProviderIdentityProviderUpdateRequest struct for IdentityProviderIdentityProviderUpdateRequest +type IdentityProviderIdentityProviderUpdateRequest struct { + AuthenticationScheme string `json:"AuthenticationScheme"` + DisplayName string `json:"DisplayName"` + Parameters *IdentityProviderProviderTypeParameterRequest `json:"Parameters,omitempty"` + PermissionSetId NullableString `json:"PermissionSetId,omitempty"` + AuthenticationEnabled NullableBool `json:"AuthenticationEnabled,omitempty"` +} + +// NewIdentityProviderIdentityProviderUpdateRequest instantiates a new IdentityProviderIdentityProviderUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderIdentityProviderUpdateRequest(authenticationScheme string, displayName string) *IdentityProviderIdentityProviderUpdateRequest { + this := IdentityProviderIdentityProviderUpdateRequest{} + this.AuthenticationScheme = authenticationScheme + this.DisplayName = displayName + return &this +} + +// NewIdentityProviderIdentityProviderUpdateRequestWithDefaults instantiates a new IdentityProviderIdentityProviderUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderIdentityProviderUpdateRequestWithDefaults() *IdentityProviderIdentityProviderUpdateRequest { + this := IdentityProviderIdentityProviderUpdateRequest{} + return &this +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value +func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationScheme() string { + if o == nil { + var ret string + return ret + } + + return o.AuthenticationScheme +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthenticationScheme, true +} + +// SetAuthenticationScheme sets field value +func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationScheme(v string) { + o.AuthenticationScheme = v +} + +// GetDisplayName returns the DisplayName field value +func (o *IdentityProviderIdentityProviderUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *IdentityProviderIdentityProviderUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderUpdateRequest) GetParameters() IdentityProviderProviderTypeParameterRequest { + if o == nil || isNil(o.Parameters) { + var ret IdentityProviderProviderTypeParameterRequest + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) GetParametersOk() (*IdentityProviderProviderTypeParameterRequest, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given IdentityProviderProviderTypeParameterRequest and assigns it to the Parameters field. +func (o *IdentityProviderIdentityProviderUpdateRequest) SetParameters(v IdentityProviderProviderTypeParameterRequest) { + o.Parameters = &v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderUpdateRequest) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId.Get()) { + var ret string + return ret + } + return *o.PermissionSetId.Get() +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderUpdateRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PermissionSetId.Get(), o.PermissionSetId.IsSet() +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) HasPermissionSetId() bool { + if o != nil && o.PermissionSetId.IsSet() { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given NullableString and assigns it to the PermissionSetId field. +func (o *IdentityProviderIdentityProviderUpdateRequest) SetPermissionSetId(v string) { + o.PermissionSetId.Set(&v) +} + +// SetPermissionSetIdNil sets the value for PermissionSetId to be an explicit nil +func (o *IdentityProviderIdentityProviderUpdateRequest) SetPermissionSetIdNil() { + o.PermissionSetId.Set(nil) +} + +// UnsetPermissionSetId ensures that no value is present for PermissionSetId, not even an explicit nil +func (o *IdentityProviderIdentityProviderUpdateRequest) UnsetPermissionSetId() { + o.PermissionSetId.Unset() +} + +// GetAuthenticationEnabled returns the AuthenticationEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationEnabled() bool { + if o == nil || isNil(o.AuthenticationEnabled.Get()) { + var ret bool + return ret + } + return *o.AuthenticationEnabled.Get() +} + +// GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderUpdateRequest) GetAuthenticationEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationEnabled.Get(), o.AuthenticationEnabled.IsSet() +} + +// HasAuthenticationEnabled returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateRequest) HasAuthenticationEnabled() bool { + if o != nil && o.AuthenticationEnabled.IsSet() { + return true + } + + return false +} + +// SetAuthenticationEnabled gets a reference to the given NullableBool and assigns it to the AuthenticationEnabled field. +func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationEnabled(v bool) { + o.AuthenticationEnabled.Set(&v) +} + +// SetAuthenticationEnabledNil sets the value for AuthenticationEnabled to be an explicit nil +func (o *IdentityProviderIdentityProviderUpdateRequest) SetAuthenticationEnabledNil() { + o.AuthenticationEnabled.Set(nil) +} + +// UnsetAuthenticationEnabled ensures that no value is present for AuthenticationEnabled, not even an explicit nil +func (o *IdentityProviderIdentityProviderUpdateRequest) UnsetAuthenticationEnabled() { + o.AuthenticationEnabled.Unset() +} + +func (o IdentityProviderIdentityProviderUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderIdentityProviderUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme + toSerialize["DisplayName"] = o.DisplayName + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + if o.PermissionSetId.IsSet() { + toSerialize["PermissionSetId"] = o.PermissionSetId.Get() + } + if o.AuthenticationEnabled.IsSet() { + toSerialize["AuthenticationEnabled"] = o.AuthenticationEnabled.Get() + } + return toSerialize, nil +} + +type NullableIdentityProviderIdentityProviderUpdateRequest struct { + value *IdentityProviderIdentityProviderUpdateRequest + isSet bool +} + +func (v NullableIdentityProviderIdentityProviderUpdateRequest) Get() *IdentityProviderIdentityProviderUpdateRequest { + return v.value +} + +func (v *NullableIdentityProviderIdentityProviderUpdateRequest) Set(val *IdentityProviderIdentityProviderUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderIdentityProviderUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderIdentityProviderUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderIdentityProviderUpdateRequest(val *IdentityProviderIdentityProviderUpdateRequest) *NullableIdentityProviderIdentityProviderUpdateRequest { + return &NullableIdentityProviderIdentityProviderUpdateRequest{value: val, isSet: true} +} + +func (v NullableIdentityProviderIdentityProviderUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderIdentityProviderUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_response.go b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_response.go new file mode 100644 index 0000000..cca9371 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_identity_provider_update_response.go @@ -0,0 +1,373 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderIdentityProviderUpdateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderIdentityProviderUpdateResponse{} + +// IdentityProviderIdentityProviderUpdateResponse struct for IdentityProviderIdentityProviderUpdateResponse +type IdentityProviderIdentityProviderUpdateResponse struct { + Id *string `json:"Id,omitempty"` + AuthenticationScheme NullableString `json:"AuthenticationScheme,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + TypeId *string `json:"TypeId,omitempty"` + Parameters []IdentityProviderProviderTypeParameterValueResponse `json:"Parameters,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` + AuthenticationEnabled *bool `json:"AuthenticationEnabled,omitempty"` +} + +// NewIdentityProviderIdentityProviderUpdateResponse instantiates a new IdentityProviderIdentityProviderUpdateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderIdentityProviderUpdateResponse() *IdentityProviderIdentityProviderUpdateResponse { + this := IdentityProviderIdentityProviderUpdateResponse{} + return &this +} + +// NewIdentityProviderIdentityProviderUpdateResponseWithDefaults instantiates a new IdentityProviderIdentityProviderUpdateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderIdentityProviderUpdateResponseWithDefaults() *IdentityProviderIdentityProviderUpdateResponse { + this := IdentityProviderIdentityProviderUpdateResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetId(v string) { + o.Id = &v +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationScheme() string { + if o == nil || isNil(o.AuthenticationScheme.Get()) { + var ret string + return ret + } + return *o.AuthenticationScheme.Get() +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationScheme.Get(), o.AuthenticationScheme.IsSet() +} + +// HasAuthenticationScheme returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasAuthenticationScheme() bool { + if o != nil && o.AuthenticationScheme.IsSet() { + return true + } + + return false +} + +// SetAuthenticationScheme gets a reference to the given NullableString and assigns it to the AuthenticationScheme field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationScheme(v string) { + o.AuthenticationScheme.Set(&v) +} + +// SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil +func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationSchemeNil() { + o.AuthenticationScheme.Set(nil) +} + +// UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +func (o *IdentityProviderIdentityProviderUpdateResponse) UnsetAuthenticationScheme() { + o.AuthenticationScheme.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderUpdateResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderUpdateResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *IdentityProviderIdentityProviderUpdateResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *IdentityProviderIdentityProviderUpdateResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetTypeId returns the TypeId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetTypeId() string { + if o == nil || isNil(o.TypeId) { + var ret string + return ret + } + return *o.TypeId +} + +// GetTypeIdOk returns a tuple with the TypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetTypeIdOk() (*string, bool) { + if o == nil || isNil(o.TypeId) { + return nil, false + } + return o.TypeId, true +} + +// HasTypeId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasTypeId() bool { + if o != nil && !isNil(o.TypeId) { + return true + } + + return false +} + +// SetTypeId gets a reference to the given string and assigns it to the TypeId field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetTypeId(v string) { + o.TypeId = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderIdentityProviderUpdateResponse) GetParameters() []IdentityProviderProviderTypeParameterValueResponse { + if o == nil { + var ret []IdentityProviderProviderTypeParameterValueResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderIdentityProviderUpdateResponse) GetParametersOk() ([]IdentityProviderProviderTypeParameterValueResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []IdentityProviderProviderTypeParameterValueResponse and assigns it to the Parameters field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetParameters(v []IdentityProviderProviderTypeParameterValueResponse) { + o.Parameters = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetAuthenticationEnabled returns the AuthenticationEnabled field value if set, zero value otherwise. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationEnabled() bool { + if o == nil || isNil(o.AuthenticationEnabled) { + var ret bool + return ret + } + return *o.AuthenticationEnabled +} + +// GetAuthenticationEnabledOk returns a tuple with the AuthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) GetAuthenticationEnabledOk() (*bool, bool) { + if o == nil || isNil(o.AuthenticationEnabled) { + return nil, false + } + return o.AuthenticationEnabled, true +} + +// HasAuthenticationEnabled returns a boolean if a field has been set. +func (o *IdentityProviderIdentityProviderUpdateResponse) HasAuthenticationEnabled() bool { + if o != nil && !isNil(o.AuthenticationEnabled) { + return true + } + + return false +} + +// SetAuthenticationEnabled gets a reference to the given bool and assigns it to the AuthenticationEnabled field. +func (o *IdentityProviderIdentityProviderUpdateResponse) SetAuthenticationEnabled(v bool) { + o.AuthenticationEnabled = &v +} + +func (o IdentityProviderIdentityProviderUpdateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderIdentityProviderUpdateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AuthenticationScheme.IsSet() { + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.TypeId) { + toSerialize["TypeId"] = o.TypeId + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if !isNil(o.AuthenticationEnabled) { + toSerialize["AuthenticationEnabled"] = o.AuthenticationEnabled + } + return toSerialize, nil +} + +type NullableIdentityProviderIdentityProviderUpdateResponse struct { + value *IdentityProviderIdentityProviderUpdateResponse + isSet bool +} + +func (v NullableIdentityProviderIdentityProviderUpdateResponse) Get() *IdentityProviderIdentityProviderUpdateResponse { + return v.value +} + +func (v *NullableIdentityProviderIdentityProviderUpdateResponse) Set(val *IdentityProviderIdentityProviderUpdateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderIdentityProviderUpdateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderIdentityProviderUpdateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderIdentityProviderUpdateResponse(val *IdentityProviderIdentityProviderUpdateResponse) *NullableIdentityProviderIdentityProviderUpdateResponse { + return &NullableIdentityProviderIdentityProviderUpdateResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderIdentityProviderUpdateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderIdentityProviderUpdateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_request.go b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_request.go new file mode 100644 index 0000000..091846d --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_request.go @@ -0,0 +1,619 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderProviderTypeParameterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderProviderTypeParameterRequest{} + +// IdentityProviderProviderTypeParameterRequest struct for IdentityProviderProviderTypeParameterRequest +type IdentityProviderProviderTypeParameterRequest struct { + Timeout *int32 `json:"Timeout,omitempty"` + OIDCAudience NullableString `json:"OIDCAudience,omitempty"` + OIDCScope NullableString `json:"OIDCScope,omitempty"` + NameClaimType string `json:"NameClaimType"` + RoleClaimType string `json:"RoleClaimType"` + UniqueClaimType string `json:"UniqueClaimType"` + FallbackUniqueClaimType string `json:"FallbackUniqueClaimType"` + ClientId string `json:"ClientId"` + ClientSecret CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret"` + AuthorizationEndpoint string `json:"AuthorizationEndpoint"` + TokenEndpoint string `json:"TokenEndpoint"` + JSONWebKeySetUri string `json:"JSONWebKeySetUri"` + Authority string `json:"Authority"` + UserInfoEndpoint string `json:"UserInfoEndpoint"` + Auth0ApiUrl NullableString `json:"Auth0ApiUrl,omitempty"` + SignOutUrl NullableString `json:"SignOutUrl,omitempty"` +} + +// NewIdentityProviderProviderTypeParameterRequest instantiates a new IdentityProviderProviderTypeParameterRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderProviderTypeParameterRequest(nameClaimType string, roleClaimType string, uniqueClaimType string, fallbackUniqueClaimType string, clientId string, clientSecret CSSCMSDataModelModelsKeyfactorAPISecret, authorizationEndpoint string, tokenEndpoint string, jSONWebKeySetUri string, authority string, userInfoEndpoint string) *IdentityProviderProviderTypeParameterRequest { + this := IdentityProviderProviderTypeParameterRequest{} + this.NameClaimType = nameClaimType + this.RoleClaimType = roleClaimType + this.UniqueClaimType = uniqueClaimType + this.FallbackUniqueClaimType = fallbackUniqueClaimType + this.ClientId = clientId + this.ClientSecret = clientSecret + this.AuthorizationEndpoint = authorizationEndpoint + this.TokenEndpoint = tokenEndpoint + this.JSONWebKeySetUri = jSONWebKeySetUri + this.Authority = authority + this.UserInfoEndpoint = userInfoEndpoint + return &this +} + +// NewIdentityProviderProviderTypeParameterRequestWithDefaults instantiates a new IdentityProviderProviderTypeParameterRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderProviderTypeParameterRequestWithDefaults() *IdentityProviderProviderTypeParameterRequest { + this := IdentityProviderProviderTypeParameterRequest{} + return &this +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterRequest) GetTimeout() int32 { + if o == nil || isNil(o.Timeout) { + var ret int32 + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetTimeoutOk() (*int32, bool) { + if o == nil || isNil(o.Timeout) { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterRequest) HasTimeout() bool { + if o != nil && !isNil(o.Timeout) { + return true + } + + return false +} + +// SetTimeout gets a reference to the given int32 and assigns it to the Timeout field. +func (o *IdentityProviderProviderTypeParameterRequest) SetTimeout(v int32) { + o.Timeout = &v +} + +// GetOIDCAudience returns the OIDCAudience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCAudience() string { + if o == nil || isNil(o.OIDCAudience.Get()) { + var ret string + return ret + } + return *o.OIDCAudience.Get() +} + +// GetOIDCAudienceOk returns a tuple with the OIDCAudience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OIDCAudience.Get(), o.OIDCAudience.IsSet() +} + +// HasOIDCAudience returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterRequest) HasOIDCAudience() bool { + if o != nil && o.OIDCAudience.IsSet() { + return true + } + + return false +} + +// SetOIDCAudience gets a reference to the given NullableString and assigns it to the OIDCAudience field. +func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCAudience(v string) { + o.OIDCAudience.Set(&v) +} + +// SetOIDCAudienceNil sets the value for OIDCAudience to be an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCAudienceNil() { + o.OIDCAudience.Set(nil) +} + +// UnsetOIDCAudience ensures that no value is present for OIDCAudience, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) UnsetOIDCAudience() { + o.OIDCAudience.Unset() +} + +// GetOIDCScope returns the OIDCScope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCScope() string { + if o == nil || isNil(o.OIDCScope.Get()) { + var ret string + return ret + } + return *o.OIDCScope.Get() +} + +// GetOIDCScopeOk returns a tuple with the OIDCScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterRequest) GetOIDCScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OIDCScope.Get(), o.OIDCScope.IsSet() +} + +// HasOIDCScope returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterRequest) HasOIDCScope() bool { + if o != nil && o.OIDCScope.IsSet() { + return true + } + + return false +} + +// SetOIDCScope gets a reference to the given NullableString and assigns it to the OIDCScope field. +func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCScope(v string) { + o.OIDCScope.Set(&v) +} + +// SetOIDCScopeNil sets the value for OIDCScope to be an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) SetOIDCScopeNil() { + o.OIDCScope.Set(nil) +} + +// UnsetOIDCScope ensures that no value is present for OIDCScope, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) UnsetOIDCScope() { + o.OIDCScope.Unset() +} + +// GetNameClaimType returns the NameClaimType field value +func (o *IdentityProviderProviderTypeParameterRequest) GetNameClaimType() string { + if o == nil { + var ret string + return ret + } + + return o.NameClaimType +} + +// GetNameClaimTypeOk returns a tuple with the NameClaimType field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetNameClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NameClaimType, true +} + +// SetNameClaimType sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetNameClaimType(v string) { + o.NameClaimType = v +} + +// GetRoleClaimType returns the RoleClaimType field value +func (o *IdentityProviderProviderTypeParameterRequest) GetRoleClaimType() string { + if o == nil { + var ret string + return ret + } + + return o.RoleClaimType +} + +// GetRoleClaimTypeOk returns a tuple with the RoleClaimType field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetRoleClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleClaimType, true +} + +// SetRoleClaimType sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetRoleClaimType(v string) { + o.RoleClaimType = v +} + +// GetUniqueClaimType returns the UniqueClaimType field value +func (o *IdentityProviderProviderTypeParameterRequest) GetUniqueClaimType() string { + if o == nil { + var ret string + return ret + } + + return o.UniqueClaimType +} + +// GetUniqueClaimTypeOk returns a tuple with the UniqueClaimType field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetUniqueClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UniqueClaimType, true +} + +// SetUniqueClaimType sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetUniqueClaimType(v string) { + o.UniqueClaimType = v +} + +// GetFallbackUniqueClaimType returns the FallbackUniqueClaimType field value +func (o *IdentityProviderProviderTypeParameterRequest) GetFallbackUniqueClaimType() string { + if o == nil { + var ret string + return ret + } + + return o.FallbackUniqueClaimType +} + +// GetFallbackUniqueClaimTypeOk returns a tuple with the FallbackUniqueClaimType field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetFallbackUniqueClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FallbackUniqueClaimType, true +} + +// SetFallbackUniqueClaimType sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetFallbackUniqueClaimType(v string) { + o.FallbackUniqueClaimType = v +} + +// GetClientId returns the ClientId field value +func (o *IdentityProviderProviderTypeParameterRequest) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *IdentityProviderProviderTypeParameterRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = v +} + +// GetAuthorizationEndpoint returns the AuthorizationEndpoint field value +func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorizationEndpoint() string { + if o == nil { + var ret string + return ret + } + + return o.AuthorizationEndpoint +} + +// GetAuthorizationEndpointOk returns a tuple with the AuthorizationEndpoint field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorizationEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthorizationEndpoint, true +} + +// SetAuthorizationEndpoint sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetAuthorizationEndpoint(v string) { + o.AuthorizationEndpoint = v +} + +// GetTokenEndpoint returns the TokenEndpoint field value +func (o *IdentityProviderProviderTypeParameterRequest) GetTokenEndpoint() string { + if o == nil { + var ret string + return ret + } + + return o.TokenEndpoint +} + +// GetTokenEndpointOk returns a tuple with the TokenEndpoint field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetTokenEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenEndpoint, true +} + +// SetTokenEndpoint sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetTokenEndpoint(v string) { + o.TokenEndpoint = v +} + +// GetJSONWebKeySetUri returns the JSONWebKeySetUri field value +func (o *IdentityProviderProviderTypeParameterRequest) GetJSONWebKeySetUri() string { + if o == nil { + var ret string + return ret + } + + return o.JSONWebKeySetUri +} + +// GetJSONWebKeySetUriOk returns a tuple with the JSONWebKeySetUri field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetJSONWebKeySetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JSONWebKeySetUri, true +} + +// SetJSONWebKeySetUri sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetJSONWebKeySetUri(v string) { + o.JSONWebKeySetUri = v +} + +// GetAuthority returns the Authority field value +func (o *IdentityProviderProviderTypeParameterRequest) GetAuthority() string { + if o == nil { + var ret string + return ret + } + + return o.Authority +} + +// GetAuthorityOk returns a tuple with the Authority field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Authority, true +} + +// SetAuthority sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetAuthority(v string) { + o.Authority = v +} + +// GetUserInfoEndpoint returns the UserInfoEndpoint field value +func (o *IdentityProviderProviderTypeParameterRequest) GetUserInfoEndpoint() string { + if o == nil { + var ret string + return ret + } + + return o.UserInfoEndpoint +} + +// GetUserInfoEndpointOk returns a tuple with the UserInfoEndpoint field value +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterRequest) GetUserInfoEndpointOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserInfoEndpoint, true +} + +// SetUserInfoEndpoint sets field value +func (o *IdentityProviderProviderTypeParameterRequest) SetUserInfoEndpoint(v string) { + o.UserInfoEndpoint = v +} + +// GetAuth0ApiUrl returns the Auth0ApiUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterRequest) GetAuth0ApiUrl() string { + if o == nil || isNil(o.Auth0ApiUrl.Get()) { + var ret string + return ret + } + return *o.Auth0ApiUrl.Get() +} + +// GetAuth0ApiUrlOk returns a tuple with the Auth0ApiUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterRequest) GetAuth0ApiUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Auth0ApiUrl.Get(), o.Auth0ApiUrl.IsSet() +} + +// HasAuth0ApiUrl returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterRequest) HasAuth0ApiUrl() bool { + if o != nil && o.Auth0ApiUrl.IsSet() { + return true + } + + return false +} + +// SetAuth0ApiUrl gets a reference to the given NullableString and assigns it to the Auth0ApiUrl field. +func (o *IdentityProviderProviderTypeParameterRequest) SetAuth0ApiUrl(v string) { + o.Auth0ApiUrl.Set(&v) +} + +// SetAuth0ApiUrlNil sets the value for Auth0ApiUrl to be an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) SetAuth0ApiUrlNil() { + o.Auth0ApiUrl.Set(nil) +} + +// UnsetAuth0ApiUrl ensures that no value is present for Auth0ApiUrl, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) UnsetAuth0ApiUrl() { + o.Auth0ApiUrl.Unset() +} + +// GetSignOutUrl returns the SignOutUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterRequest) GetSignOutUrl() string { + if o == nil || isNil(o.SignOutUrl.Get()) { + var ret string + return ret + } + return *o.SignOutUrl.Get() +} + +// GetSignOutUrlOk returns a tuple with the SignOutUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterRequest) GetSignOutUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignOutUrl.Get(), o.SignOutUrl.IsSet() +} + +// HasSignOutUrl returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterRequest) HasSignOutUrl() bool { + if o != nil && o.SignOutUrl.IsSet() { + return true + } + + return false +} + +// SetSignOutUrl gets a reference to the given NullableString and assigns it to the SignOutUrl field. +func (o *IdentityProviderProviderTypeParameterRequest) SetSignOutUrl(v string) { + o.SignOutUrl.Set(&v) +} + +// SetSignOutUrlNil sets the value for SignOutUrl to be an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) SetSignOutUrlNil() { + o.SignOutUrl.Set(nil) +} + +// UnsetSignOutUrl ensures that no value is present for SignOutUrl, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterRequest) UnsetSignOutUrl() { + o.SignOutUrl.Unset() +} + +func (o IdentityProviderProviderTypeParameterRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderProviderTypeParameterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Timeout) { + toSerialize["Timeout"] = o.Timeout + } + if o.OIDCAudience.IsSet() { + toSerialize["OIDCAudience"] = o.OIDCAudience.Get() + } + if o.OIDCScope.IsSet() { + toSerialize["OIDCScope"] = o.OIDCScope.Get() + } + toSerialize["NameClaimType"] = o.NameClaimType + toSerialize["RoleClaimType"] = o.RoleClaimType + toSerialize["UniqueClaimType"] = o.UniqueClaimType + toSerialize["FallbackUniqueClaimType"] = o.FallbackUniqueClaimType + toSerialize["ClientId"] = o.ClientId + toSerialize["ClientSecret"] = o.ClientSecret + toSerialize["AuthorizationEndpoint"] = o.AuthorizationEndpoint + toSerialize["TokenEndpoint"] = o.TokenEndpoint + toSerialize["JSONWebKeySetUri"] = o.JSONWebKeySetUri + toSerialize["Authority"] = o.Authority + toSerialize["UserInfoEndpoint"] = o.UserInfoEndpoint + if o.Auth0ApiUrl.IsSet() { + toSerialize["Auth0ApiUrl"] = o.Auth0ApiUrl.Get() + } + if o.SignOutUrl.IsSet() { + toSerialize["SignOutUrl"] = o.SignOutUrl.Get() + } + return toSerialize, nil +} + +type NullableIdentityProviderProviderTypeParameterRequest struct { + value *IdentityProviderProviderTypeParameterRequest + isSet bool +} + +func (v NullableIdentityProviderProviderTypeParameterRequest) Get() *IdentityProviderProviderTypeParameterRequest { + return v.value +} + +func (v *NullableIdentityProviderProviderTypeParameterRequest) Set(val *IdentityProviderProviderTypeParameterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderProviderTypeParameterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderProviderTypeParameterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderProviderTypeParameterRequest(val *IdentityProviderProviderTypeParameterRequest) *NullableIdentityProviderProviderTypeParameterRequest { + return &NullableIdentityProviderProviderTypeParameterRequest{value: val, isSet: true} +} + +func (v NullableIdentityProviderProviderTypeParameterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderProviderTypeParameterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_response.go b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_response.go new file mode 100644 index 0000000..f0e6259 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_response.go @@ -0,0 +1,300 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderProviderTypeParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderProviderTypeParameterResponse{} + +// IdentityProviderProviderTypeParameterResponse struct for IdentityProviderProviderTypeParameterResponse +type IdentityProviderProviderTypeParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsIdentityProviderDataType `json:"DataType,omitempty"` + Required *bool `json:"Required,omitempty"` +} + +// NewIdentityProviderProviderTypeParameterResponse instantiates a new IdentityProviderProviderTypeParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderProviderTypeParameterResponse() *IdentityProviderProviderTypeParameterResponse { + this := IdentityProviderProviderTypeParameterResponse{} + return &this +} + +// NewIdentityProviderProviderTypeParameterResponseWithDefaults instantiates a new IdentityProviderProviderTypeParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderProviderTypeParameterResponseWithDefaults() *IdentityProviderProviderTypeParameterResponse { + this := IdentityProviderProviderTypeParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *IdentityProviderProviderTypeParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *IdentityProviderProviderTypeParameterResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *IdentityProviderProviderTypeParameterResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterResponse) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *IdentityProviderProviderTypeParameterResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *IdentityProviderProviderTypeParameterResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsIdentityProviderDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsIdentityProviderDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsIdentityProviderDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsIdentityProviderDataType and assigns it to the DataType field. +func (o *IdentityProviderProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsIdentityProviderDataType) { + o.DataType = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *IdentityProviderProviderTypeParameterResponse) SetRequired(v bool) { + o.Required = &v +} + +func (o IdentityProviderProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderProviderTypeParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + return toSerialize, nil +} + +type NullableIdentityProviderProviderTypeParameterResponse struct { + value *IdentityProviderProviderTypeParameterResponse + isSet bool +} + +func (v NullableIdentityProviderProviderTypeParameterResponse) Get() *IdentityProviderProviderTypeParameterResponse { + return v.value +} + +func (v *NullableIdentityProviderProviderTypeParameterResponse) Set(val *IdentityProviderProviderTypeParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderProviderTypeParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderProviderTypeParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderProviderTypeParameterResponse(val *IdentityProviderProviderTypeParameterResponse) *NullableIdentityProviderProviderTypeParameterResponse { + return &NullableIdentityProviderProviderTypeParameterResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderProviderTypeParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_value_response.go b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_value_response.go new file mode 100644 index 0000000..93b15c1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_provider_type_parameter_value_response.go @@ -0,0 +1,383 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderProviderTypeParameterValueResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderProviderTypeParameterValueResponse{} + +// IdentityProviderProviderTypeParameterValueResponse struct for IdentityProviderProviderTypeParameterValueResponse +type IdentityProviderProviderTypeParameterValueResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Required *bool `json:"Required,omitempty"` + DataType *CSSCMSDataModelEnumsIdentityProviderDataType `json:"DataType,omitempty"` + Value NullableString `json:"Value,omitempty"` + SecretValue *CSSCMSDataModelModelsKeyfactorAPISecret `json:"SecretValue,omitempty"` +} + +// NewIdentityProviderProviderTypeParameterValueResponse instantiates a new IdentityProviderProviderTypeParameterValueResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderProviderTypeParameterValueResponse() *IdentityProviderProviderTypeParameterValueResponse { + this := IdentityProviderProviderTypeParameterValueResponse{} + return &this +} + +// NewIdentityProviderProviderTypeParameterValueResponseWithDefaults instantiates a new IdentityProviderProviderTypeParameterValueResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderProviderTypeParameterValueResponseWithDefaults() *IdentityProviderProviderTypeParameterValueResponse { + this := IdentityProviderProviderTypeParameterValueResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterValueResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterValueResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterValueResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterValueResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetRequired(v bool) { + o.Required = &v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetDataType() CSSCMSDataModelEnumsIdentityProviderDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsIdentityProviderDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsIdentityProviderDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsIdentityProviderDataType and assigns it to the DataType field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetDataType(v CSSCMSDataModelEnumsIdentityProviderDataType) { + o.DataType = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeParameterValueResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeParameterValueResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *IdentityProviderProviderTypeParameterValueResponse) UnsetValue() { + o.Value.Unset() +} + +// GetSecretValue returns the SecretValue field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetSecretValue() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.SecretValue) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.SecretValue +} + +// GetSecretValueOk returns a tuple with the SecretValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) GetSecretValueOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.SecretValue) { + return nil, false + } + return o.SecretValue, true +} + +// HasSecretValue returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeParameterValueResponse) HasSecretValue() bool { + if o != nil && !isNil(o.SecretValue) { + return true + } + + return false +} + +// SetSecretValue gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the SecretValue field. +func (o *IdentityProviderProviderTypeParameterValueResponse) SetSecretValue(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.SecretValue = &v +} + +func (o IdentityProviderProviderTypeParameterValueResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderProviderTypeParameterValueResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if !isNil(o.SecretValue) { + toSerialize["SecretValue"] = o.SecretValue + } + return toSerialize, nil +} + +type NullableIdentityProviderProviderTypeParameterValueResponse struct { + value *IdentityProviderProviderTypeParameterValueResponse + isSet bool +} + +func (v NullableIdentityProviderProviderTypeParameterValueResponse) Get() *IdentityProviderProviderTypeParameterValueResponse { + return v.value +} + +func (v *NullableIdentityProviderProviderTypeParameterValueResponse) Set(val *IdentityProviderProviderTypeParameterValueResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderProviderTypeParameterValueResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderProviderTypeParameterValueResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderProviderTypeParameterValueResponse(val *IdentityProviderProviderTypeParameterValueResponse) *NullableIdentityProviderProviderTypeParameterValueResponse { + return &NullableIdentityProviderProviderTypeParameterValueResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderProviderTypeParameterValueResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderProviderTypeParameterValueResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_identity_provider_provider_type_response.go b/v24/api/keyfactor/v1/model_identity_provider_provider_type_response.go new file mode 100644 index 0000000..cebbd88 --- /dev/null +++ b/v24/api/keyfactor/v1/model_identity_provider_provider_type_response.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the IdentityProviderProviderTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdentityProviderProviderTypeResponse{} + +// IdentityProviderProviderTypeResponse struct for IdentityProviderProviderTypeResponse +type IdentityProviderProviderTypeResponse struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + TypeParameters []IdentityProviderProviderTypeParameterResponse `json:"TypeParameters,omitempty"` +} + +// NewIdentityProviderProviderTypeResponse instantiates a new IdentityProviderProviderTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdentityProviderProviderTypeResponse() *IdentityProviderProviderTypeResponse { + this := IdentityProviderProviderTypeResponse{} + return &this +} + +// NewIdentityProviderProviderTypeResponseWithDefaults instantiates a new IdentityProviderProviderTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdentityProviderProviderTypeResponseWithDefaults() *IdentityProviderProviderTypeResponse { + this := IdentityProviderProviderTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *IdentityProviderProviderTypeResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdentityProviderProviderTypeResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *IdentityProviderProviderTypeResponse) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *IdentityProviderProviderTypeResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *IdentityProviderProviderTypeResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *IdentityProviderProviderTypeResponse) UnsetName() { + o.Name.Unset() +} + +// GetTypeParameters returns the TypeParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IdentityProviderProviderTypeResponse) GetTypeParameters() []IdentityProviderProviderTypeParameterResponse { + if o == nil { + var ret []IdentityProviderProviderTypeParameterResponse + return ret + } + return o.TypeParameters +} + +// GetTypeParametersOk returns a tuple with the TypeParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IdentityProviderProviderTypeResponse) GetTypeParametersOk() ([]IdentityProviderProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.TypeParameters) { + return nil, false + } + return o.TypeParameters, true +} + +// HasTypeParameters returns a boolean if a field has been set. +func (o *IdentityProviderProviderTypeResponse) HasTypeParameters() bool { + if o != nil && isNil(o.TypeParameters) { + return true + } + + return false +} + +// SetTypeParameters gets a reference to the given []IdentityProviderProviderTypeParameterResponse and assigns it to the TypeParameters field. +func (o *IdentityProviderProviderTypeResponse) SetTypeParameters(v []IdentityProviderProviderTypeParameterResponse) { + o.TypeParameters = v +} + +func (o IdentityProviderProviderTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdentityProviderProviderTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.TypeParameters != nil { + toSerialize["TypeParameters"] = o.TypeParameters + } + return toSerialize, nil +} + +type NullableIdentityProviderProviderTypeResponse struct { + value *IdentityProviderProviderTypeResponse + isSet bool +} + +func (v NullableIdentityProviderProviderTypeResponse) Get() *IdentityProviderProviderTypeResponse { + return v.value +} + +func (v *NullableIdentityProviderProviderTypeResponse) Set(val *IdentityProviderProviderTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableIdentityProviderProviderTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableIdentityProviderProviderTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdentityProviderProviderTypeResponse(val *IdentityProviderProviderTypeResponse) *NullableIdentityProviderProviderTypeResponse { + return &NullableIdentityProviderProviderTypeResponse{value: val, isSet: true} +} + +func (v NullableIdentityProviderProviderTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdentityProviderProviderTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_auditing_enums_audit_log_level.go b/v24/api/keyfactor/v1/model_keyfactor_auditing_enums_audit_log_level.go new file mode 100644 index 0000000..92f436e --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_auditing_enums_audit_log_level.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorAuditingEnumsAuditLogLevel the model 'KeyfactorAuditingEnumsAuditLogLevel' +type KeyfactorAuditingEnumsAuditLogLevel int32 + +// List of Keyfactor.Auditing.Enums.AuditLogLevel +const ( + KEYFACTORAUDITINGENUMSAUDITLOGLEVEL__0 KeyfactorAuditingEnumsAuditLogLevel = 0 + KEYFACTORAUDITINGENUMSAUDITLOGLEVEL__1 KeyfactorAuditingEnumsAuditLogLevel = 1 + KEYFACTORAUDITINGENUMSAUDITLOGLEVEL__2 KeyfactorAuditingEnumsAuditLogLevel = 2 +) + +func ParseKeyfactorAuditingEnumsAuditLogLevel(s string) (*KeyfactorAuditingEnumsAuditLogLevel, error) { + var claimType KeyfactorAuditingEnumsAuditLogLevel + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorAuditingEnumsAuditLogLevel) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorAuditingEnumsAuditLogLevel{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorAuditingEnumsAuditLogLevel. Value: %s ", s)) +} + +// All allowed values of KeyfactorAuditingEnumsAuditLogLevel enum +var AllowedKeyfactorAuditingEnumsAuditLogLevelEnumValues = []KeyfactorAuditingEnumsAuditLogLevel{ + 0, + 1, + 2, +} + +func (v *KeyfactorAuditingEnumsAuditLogLevel) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorAuditingEnumsAuditLogLevel(value) + for _, existing := range AllowedKeyfactorAuditingEnumsAuditLogLevelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorAuditingEnumsAuditLogLevel", value) +} + +// NewKeyfactorAuditingEnumsAuditLogLevelFromValue returns a pointer to a valid KeyfactorAuditingEnumsAuditLogLevel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorAuditingEnumsAuditLogLevelFromValue(v int32) (*KeyfactorAuditingEnumsAuditLogLevel, error) { + ev := KeyfactorAuditingEnumsAuditLogLevel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorAuditingEnumsAuditLogLevel: valid values are %v", v, AllowedKeyfactorAuditingEnumsAuditLogLevelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorAuditingEnumsAuditLogLevel) IsValid() bool { + for _, existing := range AllowedKeyfactorAuditingEnumsAuditLogLevelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Auditing.Enums.AuditLogLevel value +func (v KeyfactorAuditingEnumsAuditLogLevel) Ptr() *KeyfactorAuditingEnumsAuditLogLevel { + return &v +} + +type NullableKeyfactorAuditingEnumsAuditLogLevel struct { + value *KeyfactorAuditingEnumsAuditLogLevel + isSet bool +} + +func (v NullableKeyfactorAuditingEnumsAuditLogLevel) Get() *KeyfactorAuditingEnumsAuditLogLevel { + return v.value +} + +func (v *NullableKeyfactorAuditingEnumsAuditLogLevel) Set(val *KeyfactorAuditingEnumsAuditLogLevel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAuditingEnumsAuditLogLevel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAuditingEnumsAuditLogLevel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAuditingEnumsAuditLogLevel(val *KeyfactorAuditingEnumsAuditLogLevel) *NullableKeyfactorAuditingEnumsAuditLogLevel { + return &NullableKeyfactorAuditingEnumsAuditLogLevel{value: val, isSet: true} +} + +func (v NullableKeyfactorAuditingEnumsAuditLogLevel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAuditingEnumsAuditLogLevel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_auditing_querying_audit_log_entry.go b/v24/api/keyfactor/v1/model_keyfactor_auditing_querying_audit_log_entry.go new file mode 100644 index 0000000..d707737 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_auditing_querying_audit_log_entry.go @@ -0,0 +1,561 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorAuditingQueryingAuditLogEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAuditingQueryingAuditLogEntry{} + +// KeyfactorAuditingQueryingAuditLogEntry struct for KeyfactorAuditingQueryingAuditLogEntry +type KeyfactorAuditingQueryingAuditLogEntry struct { + Id *int32 `json:"Id,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + Message NullableString `json:"Message,omitempty"` + Signature NullableString `json:"Signature,omitempty"` + Category *int32 `json:"Category,omitempty"` + Operation *int32 `json:"Operation,omitempty"` + Level *KeyfactorAuditingEnumsAuditLogLevel `json:"Level,omitempty"` + User NullableString `json:"User,omitempty"` + EntityType NullableString `json:"EntityType,omitempty"` + AuditIdentifier NullableString `json:"AuditIdentifier,omitempty"` + ImmutableIdentifier NullableString `json:"ImmutableIdentifier,omitempty"` +} + +// NewKeyfactorAuditingQueryingAuditLogEntry instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAuditingQueryingAuditLogEntry() *KeyfactorAuditingQueryingAuditLogEntry { + this := KeyfactorAuditingQueryingAuditLogEntry{} + return &this +} + +// NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults() *KeyfactorAuditingQueryingAuditLogEntry { + this := KeyfactorAuditingQueryingAuditLogEntry{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetId(v int32) { + o.Id = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetMessage() { + o.Message.Unset() +} + +// GetSignature returns the Signature field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignature() string { + if o == nil || isNil(o.Signature.Get()) { + var ret string + return ret + } + return *o.Signature.Get() +} + +// GetSignatureOk returns a tuple with the Signature field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Signature.Get(), o.Signature.IsSet() +} + +// HasSignature returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasSignature() bool { + if o != nil && o.Signature.IsSet() { + return true + } + + return false +} + +// SetSignature gets a reference to the given NullableString and assigns it to the Signature field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetSignature(v string) { + o.Signature.Set(&v) +} + +// SetSignatureNil sets the value for Signature to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetSignatureNil() { + o.Signature.Set(nil) +} + +// UnsetSignature ensures that no value is present for Signature, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetSignature() { + o.Signature.Unset() +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategory() int32 { + if o == nil || isNil(o.Category) { + var ret int32 + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategoryOk() (*int32, bool) { + if o == nil || isNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasCategory() bool { + if o != nil && !isNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given int32 and assigns it to the Category field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetCategory(v int32) { + o.Category = &v +} + +// GetOperation returns the Operation field value if set, zero value otherwise. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperation() int32 { + if o == nil || isNil(o.Operation) { + var ret int32 + return ret + } + return *o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperationOk() (*int32, bool) { + if o == nil || isNil(o.Operation) { + return nil, false + } + return o.Operation, true +} + +// HasOperation returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasOperation() bool { + if o != nil && !isNil(o.Operation) { + return true + } + + return false +} + +// SetOperation gets a reference to the given int32 and assigns it to the Operation field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetOperation(v int32) { + o.Operation = &v +} + +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevel() KeyfactorAuditingEnumsAuditLogLevel { + if o == nil || isNil(o.Level) { + var ret KeyfactorAuditingEnumsAuditLogLevel + return ret + } + return *o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevelOk() (*KeyfactorAuditingEnumsAuditLogLevel, bool) { + if o == nil || isNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasLevel() bool { + if o != nil && !isNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given KeyfactorAuditingEnumsAuditLogLevel and assigns it to the Level field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetLevel(v KeyfactorAuditingEnumsAuditLogLevel) { + o.Level = &v +} + +// GetUser returns the User field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUser() string { + if o == nil || isNil(o.User.Get()) { + var ret string + return ret + } + return *o.User.Get() +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.User.Get(), o.User.IsSet() +} + +// HasUser returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasUser() bool { + if o != nil && o.User.IsSet() { + return true + } + + return false +} + +// SetUser gets a reference to the given NullableString and assigns it to the User field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetUser(v string) { + o.User.Set(&v) +} + +// SetUserNil sets the value for User to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetUserNil() { + o.User.Set(nil) +} + +// UnsetUser ensures that no value is present for User, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetUser() { + o.User.Unset() +} + +// GetEntityType returns the EntityType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityType() string { + if o == nil || isNil(o.EntityType.Get()) { + var ret string + return ret + } + return *o.EntityType.Get() +} + +// GetEntityTypeOk returns a tuple with the EntityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EntityType.Get(), o.EntityType.IsSet() +} + +// HasEntityType returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasEntityType() bool { + if o != nil && o.EntityType.IsSet() { + return true + } + + return false +} + +// SetEntityType gets a reference to the given NullableString and assigns it to the EntityType field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetEntityType(v string) { + o.EntityType.Set(&v) +} + +// SetEntityTypeNil sets the value for EntityType to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetEntityTypeNil() { + o.EntityType.Set(nil) +} + +// UnsetEntityType ensures that no value is present for EntityType, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetEntityType() { + o.EntityType.Unset() +} + +// GetAuditIdentifier returns the AuditIdentifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifier() string { + if o == nil || isNil(o.AuditIdentifier.Get()) { + var ret string + return ret + } + return *o.AuditIdentifier.Get() +} + +// GetAuditIdentifierOk returns a tuple with the AuditIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuditIdentifier.Get(), o.AuditIdentifier.IsSet() +} + +// HasAuditIdentifier returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasAuditIdentifier() bool { + if o != nil && o.AuditIdentifier.IsSet() { + return true + } + + return false +} + +// SetAuditIdentifier gets a reference to the given NullableString and assigns it to the AuditIdentifier field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetAuditIdentifier(v string) { + o.AuditIdentifier.Set(&v) +} + +// SetAuditIdentifierNil sets the value for AuditIdentifier to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetAuditIdentifierNil() { + o.AuditIdentifier.Set(nil) +} + +// UnsetAuditIdentifier ensures that no value is present for AuditIdentifier, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetAuditIdentifier() { + o.AuditIdentifier.Unset() +} + +// GetImmutableIdentifier returns the ImmutableIdentifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifier() string { + if o == nil || isNil(o.ImmutableIdentifier.Get()) { + var ret string + return ret + } + return *o.ImmutableIdentifier.Get() +} + +// GetImmutableIdentifierOk returns a tuple with the ImmutableIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ImmutableIdentifier.Get(), o.ImmutableIdentifier.IsSet() +} + +// HasImmutableIdentifier returns a boolean if a field has been set. +func (o *KeyfactorAuditingQueryingAuditLogEntry) HasImmutableIdentifier() bool { + if o != nil && o.ImmutableIdentifier.IsSet() { + return true + } + + return false +} + +// SetImmutableIdentifier gets a reference to the given NullableString and assigns it to the ImmutableIdentifier field. +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetImmutableIdentifier(v string) { + o.ImmutableIdentifier.Set(&v) +} + +// SetImmutableIdentifierNil sets the value for ImmutableIdentifier to be an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) SetImmutableIdentifierNil() { + o.ImmutableIdentifier.Set(nil) +} + +// UnsetImmutableIdentifier ensures that no value is present for ImmutableIdentifier, not even an explicit nil +func (o *KeyfactorAuditingQueryingAuditLogEntry) UnsetImmutableIdentifier() { + o.ImmutableIdentifier.Unset() +} + +func (o KeyfactorAuditingQueryingAuditLogEntry) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAuditingQueryingAuditLogEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Signature.IsSet() { + toSerialize["Signature"] = o.Signature.Get() + } + if !isNil(o.Category) { + toSerialize["Category"] = o.Category + } + if !isNil(o.Operation) { + toSerialize["Operation"] = o.Operation + } + if !isNil(o.Level) { + toSerialize["Level"] = o.Level + } + if o.User.IsSet() { + toSerialize["User"] = o.User.Get() + } + if o.EntityType.IsSet() { + toSerialize["EntityType"] = o.EntityType.Get() + } + if o.AuditIdentifier.IsSet() { + toSerialize["AuditIdentifier"] = o.AuditIdentifier.Get() + } + if o.ImmutableIdentifier.IsSet() { + toSerialize["ImmutableIdentifier"] = o.ImmutableIdentifier.Get() + } + return toSerialize, nil +} + +type NullableKeyfactorAuditingQueryingAuditLogEntry struct { + value *KeyfactorAuditingQueryingAuditLogEntry + isSet bool +} + +func (v NullableKeyfactorAuditingQueryingAuditLogEntry) Get() *KeyfactorAuditingQueryingAuditLogEntry { + return v.value +} + +func (v *NullableKeyfactorAuditingQueryingAuditLogEntry) Set(val *KeyfactorAuditingQueryingAuditLogEntry) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAuditingQueryingAuditLogEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAuditingQueryingAuditLogEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAuditingQueryingAuditLogEntry(val *KeyfactorAuditingQueryingAuditLogEntry) *NullableKeyfactorAuditingQueryingAuditLogEntry { + return &NullableKeyfactorAuditingQueryingAuditLogEntry{value: val, isSet: true} +} + +func (v NullableKeyfactorAuditingQueryingAuditLogEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAuditingQueryingAuditLogEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_queryable_extensions_sort_order.go b/v24/api/keyfactor/v1/model_keyfactor_common_queryable_extensions_sort_order.go new file mode 100644 index 0000000..e4a92f6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_queryable_extensions_sort_order.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorCommonQueryableExtensionsSortOrder the model 'KeyfactorCommonQueryableExtensionsSortOrder' +type KeyfactorCommonQueryableExtensionsSortOrder int32 + +// List of Keyfactor.Common.QueryableExtensions.SortOrder +const ( + KEYFACTORCOMMONQUERYABLEEXTENSIONSSORTORDER__0 KeyfactorCommonQueryableExtensionsSortOrder = 0 + KEYFACTORCOMMONQUERYABLEEXTENSIONSSORTORDER__1 KeyfactorCommonQueryableExtensionsSortOrder = 1 +) + +func ParseKeyfactorCommonQueryableExtensionsSortOrder(s string) (*KeyfactorCommonQueryableExtensionsSortOrder, error) { + var claimType KeyfactorCommonQueryableExtensionsSortOrder + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorCommonQueryableExtensionsSortOrder) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorCommonQueryableExtensionsSortOrder{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorCommonQueryableExtensionsSortOrder. Value: %s ", s)) +} + +// All allowed values of KeyfactorCommonQueryableExtensionsSortOrder enum +var AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues = []KeyfactorCommonQueryableExtensionsSortOrder{ + 0, + 1, +} + +func (v *KeyfactorCommonQueryableExtensionsSortOrder) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorCommonQueryableExtensionsSortOrder(value) + for _, existing := range AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorCommonQueryableExtensionsSortOrder", value) +} + +// NewKeyfactorCommonQueryableExtensionsSortOrderFromValue returns a pointer to a valid KeyfactorCommonQueryableExtensionsSortOrder +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorCommonQueryableExtensionsSortOrderFromValue(v int32) (*KeyfactorCommonQueryableExtensionsSortOrder, error) { + ev := KeyfactorCommonQueryableExtensionsSortOrder(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorCommonQueryableExtensionsSortOrder: valid values are %v", v, AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorCommonQueryableExtensionsSortOrder) IsValid() bool { + for _, existing := range AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Common.QueryableExtensions.SortOrder value +func (v KeyfactorCommonQueryableExtensionsSortOrder) Ptr() *KeyfactorCommonQueryableExtensionsSortOrder { + return &v +} + +type NullableKeyfactorCommonQueryableExtensionsSortOrder struct { + value *KeyfactorCommonQueryableExtensionsSortOrder + isSet bool +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) Get() *KeyfactorCommonQueryableExtensionsSortOrder { + return v.value +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) Set(val *KeyfactorCommonQueryableExtensionsSortOrder) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonQueryableExtensionsSortOrder(val *KeyfactorCommonQueryableExtensionsSortOrder) *NullableKeyfactorCommonQueryableExtensionsSortOrder { + return &NullableKeyfactorCommonQueryableExtensionsSortOrder{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_keyfactor_schedule.go b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_keyfactor_schedule.go new file mode 100644 index 0000000..a6d83e1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_keyfactor_schedule.go @@ -0,0 +1,325 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorCommonSchedulingKeyfactorSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingKeyfactorSchedule{} + +// KeyfactorCommonSchedulingKeyfactorSchedule struct for KeyfactorCommonSchedulingKeyfactorSchedule +type KeyfactorCommonSchedulingKeyfactorSchedule struct { + Immediate NullableBool `json:"Immediate,omitempty"` + Interval *KeyfactorCommonSchedulingModelsIntervalModel `json:"Interval,omitempty"` + Daily *KeyfactorCommonSchedulingModelsTimeModel `json:"Daily,omitempty"` + Weekly *KeyfactorCommonSchedulingModelsWeeklyModel `json:"Weekly,omitempty"` + Monthly *KeyfactorCommonSchedulingModelsMonthlyModel `json:"Monthly,omitempty"` + ExactlyOnce *KeyfactorCommonSchedulingModelsTimeModel `json:"ExactlyOnce,omitempty"` +} + +// NewKeyfactorCommonSchedulingKeyfactorSchedule instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingKeyfactorSchedule() *KeyfactorCommonSchedulingKeyfactorSchedule { + this := KeyfactorCommonSchedulingKeyfactorSchedule{} + return &this +} + +// NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults() *KeyfactorCommonSchedulingKeyfactorSchedule { + this := KeyfactorCommonSchedulingKeyfactorSchedule{} + return &this +} + +// GetImmediate returns the Immediate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediate() bool { + if o == nil || isNil(o.Immediate.Get()) { + var ret bool + return ret + } + return *o.Immediate.Get() +} + +// GetImmediateOk returns a tuple with the Immediate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediateOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Immediate.Get(), o.Immediate.IsSet() +} + +// HasImmediate returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasImmediate() bool { + if o != nil && o.Immediate.IsSet() { + return true + } + + return false +} + +// SetImmediate gets a reference to the given NullableBool and assigns it to the Immediate field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediate(v bool) { + o.Immediate.Set(&v) +} + +// SetImmediateNil sets the value for Immediate to be an explicit nil +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediateNil() { + o.Immediate.Set(nil) +} + +// UnsetImmediate ensures that no value is present for Immediate, not even an explicit nil +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) UnsetImmediate() { + o.Immediate.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetInterval() KeyfactorCommonSchedulingModelsIntervalModel { + if o == nil || isNil(o.Interval) { + var ret KeyfactorCommonSchedulingModelsIntervalModel + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetIntervalOk() (*KeyfactorCommonSchedulingModelsIntervalModel, bool) { + if o == nil || isNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasInterval() bool { + if o != nil && !isNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given KeyfactorCommonSchedulingModelsIntervalModel and assigns it to the Interval field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetInterval(v KeyfactorCommonSchedulingModelsIntervalModel) { + o.Interval = &v +} + +// GetDaily returns the Daily field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDaily() KeyfactorCommonSchedulingModelsTimeModel { + if o == nil || isNil(o.Daily) { + var ret KeyfactorCommonSchedulingModelsTimeModel + return ret + } + return *o.Daily +} + +// GetDailyOk returns a tuple with the Daily field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDailyOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool) { + if o == nil || isNil(o.Daily) { + return nil, false + } + return o.Daily, true +} + +// HasDaily returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasDaily() bool { + if o != nil && !isNil(o.Daily) { + return true + } + + return false +} + +// SetDaily gets a reference to the given KeyfactorCommonSchedulingModelsTimeModel and assigns it to the Daily field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetDaily(v KeyfactorCommonSchedulingModelsTimeModel) { + o.Daily = &v +} + +// GetWeekly returns the Weekly field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeekly() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.Weekly) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.Weekly +} + +// GetWeeklyOk returns a tuple with the Weekly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeeklyOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.Weekly) { + return nil, false + } + return o.Weekly, true +} + +// HasWeekly returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasWeekly() bool { + if o != nil && !isNil(o.Weekly) { + return true + } + + return false +} + +// SetWeekly gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the Weekly field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetWeekly(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.Weekly = &v +} + +// GetMonthly returns the Monthly field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthly() KeyfactorCommonSchedulingModelsMonthlyModel { + if o == nil || isNil(o.Monthly) { + var ret KeyfactorCommonSchedulingModelsMonthlyModel + return ret + } + return *o.Monthly +} + +// GetMonthlyOk returns a tuple with the Monthly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthlyOk() (*KeyfactorCommonSchedulingModelsMonthlyModel, bool) { + if o == nil || isNil(o.Monthly) { + return nil, false + } + return o.Monthly, true +} + +// HasMonthly returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasMonthly() bool { + if o != nil && !isNil(o.Monthly) { + return true + } + + return false +} + +// SetMonthly gets a reference to the given KeyfactorCommonSchedulingModelsMonthlyModel and assigns it to the Monthly field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetMonthly(v KeyfactorCommonSchedulingModelsMonthlyModel) { + o.Monthly = &v +} + +// GetExactlyOnce returns the ExactlyOnce field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnce() KeyfactorCommonSchedulingModelsTimeModel { + if o == nil || isNil(o.ExactlyOnce) { + var ret KeyfactorCommonSchedulingModelsTimeModel + return ret + } + return *o.ExactlyOnce +} + +// GetExactlyOnceOk returns a tuple with the ExactlyOnce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnceOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool) { + if o == nil || isNil(o.ExactlyOnce) { + return nil, false + } + return o.ExactlyOnce, true +} + +// HasExactlyOnce returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasExactlyOnce() bool { + if o != nil && !isNil(o.ExactlyOnce) { + return true + } + + return false +} + +// SetExactlyOnce gets a reference to the given KeyfactorCommonSchedulingModelsTimeModel and assigns it to the ExactlyOnce field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetExactlyOnce(v KeyfactorCommonSchedulingModelsTimeModel) { + o.ExactlyOnce = &v +} + +func (o KeyfactorCommonSchedulingKeyfactorSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingKeyfactorSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Immediate.IsSet() { + toSerialize["Immediate"] = o.Immediate.Get() + } + if !isNil(o.Interval) { + toSerialize["Interval"] = o.Interval + } + if !isNil(o.Daily) { + toSerialize["Daily"] = o.Daily + } + if !isNil(o.Weekly) { + toSerialize["Weekly"] = o.Weekly + } + if !isNil(o.Monthly) { + toSerialize["Monthly"] = o.Monthly + } + if !isNil(o.ExactlyOnce) { + toSerialize["ExactlyOnce"] = o.ExactlyOnce + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingKeyfactorSchedule struct { + value *KeyfactorCommonSchedulingKeyfactorSchedule + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) Get() *KeyfactorCommonSchedulingKeyfactorSchedule { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) Set(val *KeyfactorCommonSchedulingKeyfactorSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingKeyfactorSchedule(val *KeyfactorCommonSchedulingKeyfactorSchedule) *NullableKeyfactorCommonSchedulingKeyfactorSchedule { + return &NullableKeyfactorCommonSchedulingKeyfactorSchedule{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_interval_model.go b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_interval_model.go new file mode 100644 index 0000000..bde09f0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_interval_model.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorCommonSchedulingModelsIntervalModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsIntervalModel{} + +// KeyfactorCommonSchedulingModelsIntervalModel struct for KeyfactorCommonSchedulingModelsIntervalModel +type KeyfactorCommonSchedulingModelsIntervalModel struct { + Minutes *int32 `json:"Minutes,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsIntervalModel instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsIntervalModel() *KeyfactorCommonSchedulingModelsIntervalModel { + this := KeyfactorCommonSchedulingModelsIntervalModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults() *KeyfactorCommonSchedulingModelsIntervalModel { + this := KeyfactorCommonSchedulingModelsIntervalModel{} + return &this +} + +// GetMinutes returns the Minutes field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutes() int32 { + if o == nil || isNil(o.Minutes) { + var ret int32 + return ret + } + return *o.Minutes +} + +// GetMinutesOk returns a tuple with the Minutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutesOk() (*int32, bool) { + if o == nil || isNil(o.Minutes) { + return nil, false + } + return o.Minutes, true +} + +// HasMinutes returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) HasMinutes() bool { + if o != nil && !isNil(o.Minutes) { + return true + } + + return false +} + +// SetMinutes gets a reference to the given int32 and assigns it to the Minutes field. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) SetMinutes(v int32) { + o.Minutes = &v +} + +func (o KeyfactorCommonSchedulingModelsIntervalModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsIntervalModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Minutes) { + toSerialize["Minutes"] = o.Minutes + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsIntervalModel struct { + value *KeyfactorCommonSchedulingModelsIntervalModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) Get() *KeyfactorCommonSchedulingModelsIntervalModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) Set(val *KeyfactorCommonSchedulingModelsIntervalModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsIntervalModel(val *KeyfactorCommonSchedulingModelsIntervalModel) *NullableKeyfactorCommonSchedulingModelsIntervalModel { + return &NullableKeyfactorCommonSchedulingModelsIntervalModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_monthly_model.go b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_monthly_model.go new file mode 100644 index 0000000..f7c78a1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_monthly_model.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsMonthlyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsMonthlyModel{} + +// KeyfactorCommonSchedulingModelsMonthlyModel struct for KeyfactorCommonSchedulingModelsMonthlyModel +type KeyfactorCommonSchedulingModelsMonthlyModel struct { + Day *int32 `json:"Day,omitempty"` + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsMonthlyModel instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsMonthlyModel() *KeyfactorCommonSchedulingModelsMonthlyModel { + this := KeyfactorCommonSchedulingModelsMonthlyModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults() *KeyfactorCommonSchedulingModelsMonthlyModel { + this := KeyfactorCommonSchedulingModelsMonthlyModel{} + return &this +} + +// GetDay returns the Day field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDay() int32 { + if o == nil || isNil(o.Day) { + var ret int32 + return ret + } + return *o.Day +} + +// GetDayOk returns a tuple with the Day field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDayOk() (*int32, bool) { + if o == nil || isNil(o.Day) { + return nil, false + } + return o.Day, true +} + +// HasDay returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasDay() bool { + if o != nil && !isNil(o.Day) { + return true + } + + return false +} + +// SetDay gets a reference to the given int32 and assigns it to the Day field. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetDay(v int32) { + o.Day = &v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsMonthlyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsMonthlyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Day) { + toSerialize["Day"] = o.Day + } + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsMonthlyModel struct { + value *KeyfactorCommonSchedulingModelsMonthlyModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) Get() *KeyfactorCommonSchedulingModelsMonthlyModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) Set(val *KeyfactorCommonSchedulingModelsMonthlyModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsMonthlyModel(val *KeyfactorCommonSchedulingModelsMonthlyModel) *NullableKeyfactorCommonSchedulingModelsMonthlyModel { + return &NullableKeyfactorCommonSchedulingModelsMonthlyModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_time_model.go b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_time_model.go new file mode 100644 index 0000000..ba491ff --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_time_model.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsTimeModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsTimeModel{} + +// KeyfactorCommonSchedulingModelsTimeModel struct for KeyfactorCommonSchedulingModelsTimeModel +type KeyfactorCommonSchedulingModelsTimeModel struct { + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsTimeModel instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsTimeModel() *KeyfactorCommonSchedulingModelsTimeModel { + this := KeyfactorCommonSchedulingModelsTimeModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults() *KeyfactorCommonSchedulingModelsTimeModel { + this := KeyfactorCommonSchedulingModelsTimeModel{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsTimeModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsTimeModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsTimeModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsTimeModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsTimeModel struct { + value *KeyfactorCommonSchedulingModelsTimeModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) Get() *KeyfactorCommonSchedulingModelsTimeModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) Set(val *KeyfactorCommonSchedulingModelsTimeModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsTimeModel(val *KeyfactorCommonSchedulingModelsTimeModel) *NullableKeyfactorCommonSchedulingModelsTimeModel { + return &NullableKeyfactorCommonSchedulingModelsTimeModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_weekly_model.go b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_weekly_model.go new file mode 100644 index 0000000..9f3a3ef --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_common_scheduling_models_weekly_model.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsWeeklyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsWeeklyModel{} + +// KeyfactorCommonSchedulingModelsWeeklyModel struct for KeyfactorCommonSchedulingModelsWeeklyModel +type KeyfactorCommonSchedulingModelsWeeklyModel struct { + Days []SystemDayOfWeek `json:"Days,omitempty"` + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsWeeklyModel instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsWeeklyModel() *KeyfactorCommonSchedulingModelsWeeklyModel { + this := KeyfactorCommonSchedulingModelsWeeklyModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults() *KeyfactorCommonSchedulingModelsWeeklyModel { + this := KeyfactorCommonSchedulingModelsWeeklyModel{} + return &this +} + +// GetDays returns the Days field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDays() []SystemDayOfWeek { + if o == nil { + var ret []SystemDayOfWeek + return ret + } + return o.Days +} + +// GetDaysOk returns a tuple with the Days field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDaysOk() ([]SystemDayOfWeek, bool) { + if o == nil || isNil(o.Days) { + return nil, false + } + return o.Days, true +} + +// HasDays returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasDays() bool { + if o != nil && isNil(o.Days) { + return true + } + + return false +} + +// SetDays gets a reference to the given []SystemDayOfWeek and assigns it to the Days field. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDays(v []SystemDayOfWeek) { + o.Days = v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsWeeklyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsWeeklyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Days != nil { + toSerialize["Days"] = o.Days + } + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsWeeklyModel struct { + value *KeyfactorCommonSchedulingModelsWeeklyModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) Get() *KeyfactorCommonSchedulingModelsWeeklyModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) Set(val *KeyfactorCommonSchedulingModelsWeeklyModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsWeeklyModel(val *KeyfactorCommonSchedulingModelsWeeklyModel) *NullableKeyfactorCommonSchedulingModelsWeeklyModel { + return &NullableKeyfactorCommonSchedulingModelsWeeklyModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_cert_store_custom_alias.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_cert_store_custom_alias.go new file mode 100644 index 0000000..1cd8352 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_cert_store_custom_alias.go @@ -0,0 +1,144 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias the model 'KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias' +type KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias int32 + +// List of Keyfactor.Orchestrators.Common.Enums.CertStoreCustomAlias +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSCERTSTORECUSTOMALIAS__0 KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSCERTSTORECUSTOMALIAS__1 KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSCERTSTORECUSTOMALIAS__2 KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias = 2 +) + +func ParseKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias(s string) (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, error) { + var claimType KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias enum +var AllowedKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasEnumValues = []KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias{ + 0, + 1, + 2, +} + +func (v *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias, error) { + ev := KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsCertStoreCustomAliasEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.CertStoreCustomAlias value +func (v KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) Ptr() *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias struct { + value *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) Get() *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) Set(val *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias(val *KeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) *NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias { + return &NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsCertStoreCustomAlias) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_result.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_result.go new file mode 100644 index 0000000..019a8c1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_result.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult the model 'KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult' +type KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult int32 + +// List of Keyfactor.Orchestrators.Common.Enums.OrchestratorJobStatusJobResult +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBRESULT__0 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBRESULT__1 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBRESULT__2 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBRESULT__3 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult = 3 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBRESULT__4 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult = 4 +) + +func ParseKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult(s string) (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult, error) { + var claimType KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult enum +var AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultEnumValues = []KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult{ + 0, + 1, + 2, + 3, + 4, +} + +func (v *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult, error) { + ev := KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResultEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.OrchestratorJobStatusJobResult value +func (v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) Ptr() *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult struct { + value *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) Get() *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) Set(val *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult(val *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult { + return &NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_status.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_status.go new file mode 100644 index 0000000..ecc0c0b --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_orchestrator_job_status_job_status.go @@ -0,0 +1,150 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus the model 'KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus' +type KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus int32 + +// List of Keyfactor.Orchestrators.Common.Enums.OrchestratorJobStatusJobStatus +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__0 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__1 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__2 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__3 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 3 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__4 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 4 + KEYFACTORORCHESTRATORSCOMMONENUMSORCHESTRATORJOBSTATUSJOBSTATUS__5 KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus = 5 +) + +func ParseKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus(s string) (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus, error) { + var claimType KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus enum +var AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusEnumValues = []KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus{ + 0, + 1, + 2, + 3, + 4, + 5, +} + +func (v *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus, error) { + ev := KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.OrchestratorJobStatusJobStatus value +func (v KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) Ptr() *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus struct { + value *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) Get() *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) Set(val *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus(val *KeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus { + return &NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsOrchestratorJobStatusJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_endpoint_status.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_endpoint_status.go new file mode 100644 index 0000000..bf67dcc --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_endpoint_status.go @@ -0,0 +1,168 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsSslEndpointStatus the model 'KeyfactorOrchestratorsCommonEnumsSslEndpointStatus' +type KeyfactorOrchestratorsCommonEnumsSslEndpointStatus int32 + +// List of Keyfactor.Orchestrators.Common.Enums.SslEndpointStatus +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__0 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__1 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__2 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__3 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 3 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__4 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 4 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__5 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 5 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__6 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 6 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__7 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 7 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__8 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 8 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__9 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 9 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__10 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 10 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__11 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 11 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__12 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 12 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__13 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 13 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLENDPOINTSTATUS__14 KeyfactorOrchestratorsCommonEnumsSslEndpointStatus = 14 +) + +func ParseKeyfactorOrchestratorsCommonEnumsSslEndpointStatus(s string) (*KeyfactorOrchestratorsCommonEnumsSslEndpointStatus, error) { + var claimType KeyfactorOrchestratorsCommonEnumsSslEndpointStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsSslEndpointStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsSslEndpointStatus. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsSslEndpointStatus enum +var AllowedKeyfactorOrchestratorsCommonEnumsSslEndpointStatusEnumValues = []KeyfactorOrchestratorsCommonEnumsSslEndpointStatus{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, +} + +func (v *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsSslEndpointStatus(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslEndpointStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsSslEndpointStatus", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsSslEndpointStatusFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsSslEndpointStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsSslEndpointStatusFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsSslEndpointStatus, error) { + ev := KeyfactorOrchestratorsCommonEnumsSslEndpointStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsSslEndpointStatus: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsSslEndpointStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslEndpointStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.SslEndpointStatus value +func (v KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) Ptr() *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus struct { + value *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) Get() *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) Set(val *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus(val *KeyfactorOrchestratorsCommonEnumsSslEndpointStatus) *NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus { + return &NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslEndpointStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_job_type.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_job_type.go new file mode 100644 index 0000000..9edf78b --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_job_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsSslJobType the model 'KeyfactorOrchestratorsCommonEnumsSslJobType' +type KeyfactorOrchestratorsCommonEnumsSslJobType int32 + +// List of Keyfactor.Orchestrators.Common.Enums.SslJobType +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSSSLJOBTYPE__0 KeyfactorOrchestratorsCommonEnumsSslJobType = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLJOBTYPE__1 KeyfactorOrchestratorsCommonEnumsSslJobType = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLJOBTYPE__2 KeyfactorOrchestratorsCommonEnumsSslJobType = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLJOBTYPE__3 KeyfactorOrchestratorsCommonEnumsSslJobType = 3 +) + +func ParseKeyfactorOrchestratorsCommonEnumsSslJobType(s string) (*KeyfactorOrchestratorsCommonEnumsSslJobType, error) { + var claimType KeyfactorOrchestratorsCommonEnumsSslJobType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsSslJobType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsSslJobType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsSslJobType. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsSslJobType enum +var AllowedKeyfactorOrchestratorsCommonEnumsSslJobTypeEnumValues = []KeyfactorOrchestratorsCommonEnumsSslJobType{ + 0, + 1, + 2, + 3, +} + +func (v *KeyfactorOrchestratorsCommonEnumsSslJobType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsSslJobType(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslJobTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsSslJobType", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsSslJobTypeFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsSslJobType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsSslJobTypeFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsSslJobType, error) { + ev := KeyfactorOrchestratorsCommonEnumsSslJobType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsSslJobType: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsSslJobTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsSslJobType) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslJobTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.SslJobType value +func (v KeyfactorOrchestratorsCommonEnumsSslJobType) Ptr() *KeyfactorOrchestratorsCommonEnumsSslJobType { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsSslJobType struct { + value *KeyfactorOrchestratorsCommonEnumsSslJobType + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslJobType) Get() *KeyfactorOrchestratorsCommonEnumsSslJobType { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslJobType) Set(val *KeyfactorOrchestratorsCommonEnumsSslJobType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslJobType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslJobType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsSslJobType(val *KeyfactorOrchestratorsCommonEnumsSslJobType) *NullableKeyfactorOrchestratorsCommonEnumsSslJobType { + return &NullableKeyfactorOrchestratorsCommonEnumsSslJobType{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslJobType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslJobType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_network_definition_item_type.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_network_definition_item_type.go new file mode 100644 index 0000000..16135cd --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_network_definition_item_type.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType the model 'KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType' +type KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType int32 + +// List of Keyfactor.Orchestrators.Common.Enums.SslNetworkDefinitionItemType +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSSSLNETWORKDEFINITIONITEMTYPE__0 KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType = 0 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLNETWORKDEFINITIONITEMTYPE__1 KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType = 1 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLNETWORKDEFINITIONITEMTYPE__2 KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLNETWORKDEFINITIONITEMTYPE__3 KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType = 3 +) + +func ParseKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType(s string) (*KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType, error) { + var claimType KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType enum +var AllowedKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeEnumValues = []KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType{ + 0, + 1, + 2, + 3, +} + +func (v *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType, error) { + ev := KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.SslNetworkDefinitionItemType value +func (v KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) Ptr() *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType struct { + value *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) Get() *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) Set(val *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType(val *KeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) *NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType { + return &NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslNetworkDefinitionItemType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_probe_type.go b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_probe_type.go new file mode 100644 index 0000000..2c49924 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_orchestrators_common_enums_ssl_probe_type.go @@ -0,0 +1,148 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorOrchestratorsCommonEnumsSslProbeType the model 'KeyfactorOrchestratorsCommonEnumsSslProbeType' +type KeyfactorOrchestratorsCommonEnumsSslProbeType int32 + +// List of Keyfactor.Orchestrators.Common.Enums.SslProbeType +const ( + KEYFACTORORCHESTRATORSCOMMONENUMSSSLPROBETYPE__2 KeyfactorOrchestratorsCommonEnumsSslProbeType = 2 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLPROBETYPE__3 KeyfactorOrchestratorsCommonEnumsSslProbeType = 3 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLPROBETYPE__4 KeyfactorOrchestratorsCommonEnumsSslProbeType = 4 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLPROBETYPE__5 KeyfactorOrchestratorsCommonEnumsSslProbeType = 5 + KEYFACTORORCHESTRATORSCOMMONENUMSSSLPROBETYPE__6 KeyfactorOrchestratorsCommonEnumsSslProbeType = 6 +) + +func ParseKeyfactorOrchestratorsCommonEnumsSslProbeType(s string) (*KeyfactorOrchestratorsCommonEnumsSslProbeType, error) { + var claimType KeyfactorOrchestratorsCommonEnumsSslProbeType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorOrchestratorsCommonEnumsSslProbeType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorOrchestratorsCommonEnumsSslProbeType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorOrchestratorsCommonEnumsSslProbeType. Value: %s ", s)) +} + +// All allowed values of KeyfactorOrchestratorsCommonEnumsSslProbeType enum +var AllowedKeyfactorOrchestratorsCommonEnumsSslProbeTypeEnumValues = []KeyfactorOrchestratorsCommonEnumsSslProbeType{ + 2, + 3, + 4, + 5, + 6, +} + +func (v *KeyfactorOrchestratorsCommonEnumsSslProbeType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorOrchestratorsCommonEnumsSslProbeType(value) + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslProbeTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorOrchestratorsCommonEnumsSslProbeType", value) +} + +// NewKeyfactorOrchestratorsCommonEnumsSslProbeTypeFromValue returns a pointer to a valid KeyfactorOrchestratorsCommonEnumsSslProbeType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorOrchestratorsCommonEnumsSslProbeTypeFromValue(v int32) (*KeyfactorOrchestratorsCommonEnumsSslProbeType, error) { + ev := KeyfactorOrchestratorsCommonEnumsSslProbeType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorOrchestratorsCommonEnumsSslProbeType: valid values are %v", v, AllowedKeyfactorOrchestratorsCommonEnumsSslProbeTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorOrchestratorsCommonEnumsSslProbeType) IsValid() bool { + for _, existing := range AllowedKeyfactorOrchestratorsCommonEnumsSslProbeTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Orchestrators.Common.Enums.SslProbeType value +func (v KeyfactorOrchestratorsCommonEnumsSslProbeType) Ptr() *KeyfactorOrchestratorsCommonEnumsSslProbeType { + return &v +} + +type NullableKeyfactorOrchestratorsCommonEnumsSslProbeType struct { + value *KeyfactorOrchestratorsCommonEnumsSslProbeType + isSet bool +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) Get() *KeyfactorOrchestratorsCommonEnumsSslProbeType { + return v.value +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) Set(val *KeyfactorOrchestratorsCommonEnumsSslProbeType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorOrchestratorsCommonEnumsSslProbeType(val *KeyfactorOrchestratorsCommonEnumsSslProbeType) *NullableKeyfactorOrchestratorsCommonEnumsSslProbeType { + return &NullableKeyfactorOrchestratorsCommonEnumsSslProbeType{value: val, isSet: true} +} + +func (v NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorOrchestratorsCommonEnumsSslProbeType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_pki_enums_certificate_state.go b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_certificate_state.go new file mode 100644 index 0000000..7ee7545 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_certificate_state.go @@ -0,0 +1,156 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorPKIEnumsCertificateState the model 'KeyfactorPKIEnumsCertificateState' +type KeyfactorPKIEnumsCertificateState int32 + +// List of Keyfactor.PKI.Enums.CertificateState +const ( + KEYFACTORPKIENUMSCERTIFICATESTATE__0 KeyfactorPKIEnumsCertificateState = 0 + KEYFACTORPKIENUMSCERTIFICATESTATE__1 KeyfactorPKIEnumsCertificateState = 1 + KEYFACTORPKIENUMSCERTIFICATESTATE__2 KeyfactorPKIEnumsCertificateState = 2 + KEYFACTORPKIENUMSCERTIFICATESTATE__3 KeyfactorPKIEnumsCertificateState = 3 + KEYFACTORPKIENUMSCERTIFICATESTATE__4 KeyfactorPKIEnumsCertificateState = 4 + KEYFACTORPKIENUMSCERTIFICATESTATE__5 KeyfactorPKIEnumsCertificateState = 5 + KEYFACTORPKIENUMSCERTIFICATESTATE__6 KeyfactorPKIEnumsCertificateState = 6 + KEYFACTORPKIENUMSCERTIFICATESTATE__7 KeyfactorPKIEnumsCertificateState = 7 + KEYFACTORPKIENUMSCERTIFICATESTATE__8 KeyfactorPKIEnumsCertificateState = 8 +) + +func ParseKeyfactorPKIEnumsCertificateState(s string) (*KeyfactorPKIEnumsCertificateState, error) { + var claimType KeyfactorPKIEnumsCertificateState + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorPKIEnumsCertificateState) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorPKIEnumsCertificateState{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorPKIEnumsCertificateState. Value: %s ", s)) +} + +// All allowed values of KeyfactorPKIEnumsCertificateState enum +var AllowedKeyfactorPKIEnumsCertificateStateEnumValues = []KeyfactorPKIEnumsCertificateState{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, +} + +func (v *KeyfactorPKIEnumsCertificateState) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorPKIEnumsCertificateState(value) + for _, existing := range AllowedKeyfactorPKIEnumsCertificateStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorPKIEnumsCertificateState", value) +} + +// NewKeyfactorPKIEnumsCertificateStateFromValue returns a pointer to a valid KeyfactorPKIEnumsCertificateState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorPKIEnumsCertificateStateFromValue(v int32) (*KeyfactorPKIEnumsCertificateState, error) { + ev := KeyfactorPKIEnumsCertificateState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorPKIEnumsCertificateState: valid values are %v", v, AllowedKeyfactorPKIEnumsCertificateStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorPKIEnumsCertificateState) IsValid() bool { + for _, existing := range AllowedKeyfactorPKIEnumsCertificateStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.PKI.Enums.CertificateState value +func (v KeyfactorPKIEnumsCertificateState) Ptr() *KeyfactorPKIEnumsCertificateState { + return &v +} + +type NullableKeyfactorPKIEnumsCertificateState struct { + value *KeyfactorPKIEnumsCertificateState + isSet bool +} + +func (v NullableKeyfactorPKIEnumsCertificateState) Get() *KeyfactorPKIEnumsCertificateState { + return v.value +} + +func (v *NullableKeyfactorPKIEnumsCertificateState) Set(val *KeyfactorPKIEnumsCertificateState) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorPKIEnumsCertificateState) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorPKIEnumsCertificateState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorPKIEnumsCertificateState(val *KeyfactorPKIEnumsCertificateState) *NullableKeyfactorPKIEnumsCertificateState { + return &NullableKeyfactorPKIEnumsCertificateState{value: val, isSet: true} +} + +func (v NullableKeyfactorPKIEnumsCertificateState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorPKIEnumsCertificateState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_pki_enums_encryption_key_type.go b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_encryption_key_type.go new file mode 100644 index 0000000..37a6987 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_encryption_key_type.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorPKIEnumsEncryptionKeyType the model 'KeyfactorPKIEnumsEncryptionKeyType' +type KeyfactorPKIEnumsEncryptionKeyType int32 + +// List of Keyfactor.PKI.Enums.EncryptionKeyType +const ( + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__0 KeyfactorPKIEnumsEncryptionKeyType = 0 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__1 KeyfactorPKIEnumsEncryptionKeyType = 1 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__2 KeyfactorPKIEnumsEncryptionKeyType = 2 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__3 KeyfactorPKIEnumsEncryptionKeyType = 3 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__4 KeyfactorPKIEnumsEncryptionKeyType = 4 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__5 KeyfactorPKIEnumsEncryptionKeyType = 5 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__6 KeyfactorPKIEnumsEncryptionKeyType = 6 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__7 KeyfactorPKIEnumsEncryptionKeyType = 7 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__8 KeyfactorPKIEnumsEncryptionKeyType = 8 + KEYFACTORPKIENUMSENCRYPTIONKEYTYPE__9 KeyfactorPKIEnumsEncryptionKeyType = 9 +) + +func ParseKeyfactorPKIEnumsEncryptionKeyType(s string) (*KeyfactorPKIEnumsEncryptionKeyType, error) { + var claimType KeyfactorPKIEnumsEncryptionKeyType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorPKIEnumsEncryptionKeyType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorPKIEnumsEncryptionKeyType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorPKIEnumsEncryptionKeyType. Value: %s ", s)) +} + +// All allowed values of KeyfactorPKIEnumsEncryptionKeyType enum +var AllowedKeyfactorPKIEnumsEncryptionKeyTypeEnumValues = []KeyfactorPKIEnumsEncryptionKeyType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, +} + +func (v *KeyfactorPKIEnumsEncryptionKeyType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorPKIEnumsEncryptionKeyType(value) + for _, existing := range AllowedKeyfactorPKIEnumsEncryptionKeyTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorPKIEnumsEncryptionKeyType", value) +} + +// NewKeyfactorPKIEnumsEncryptionKeyTypeFromValue returns a pointer to a valid KeyfactorPKIEnumsEncryptionKeyType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorPKIEnumsEncryptionKeyTypeFromValue(v int32) (*KeyfactorPKIEnumsEncryptionKeyType, error) { + ev := KeyfactorPKIEnumsEncryptionKeyType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorPKIEnumsEncryptionKeyType: valid values are %v", v, AllowedKeyfactorPKIEnumsEncryptionKeyTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorPKIEnumsEncryptionKeyType) IsValid() bool { + for _, existing := range AllowedKeyfactorPKIEnumsEncryptionKeyTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.PKI.Enums.EncryptionKeyType value +func (v KeyfactorPKIEnumsEncryptionKeyType) Ptr() *KeyfactorPKIEnumsEncryptionKeyType { + return &v +} + +type NullableKeyfactorPKIEnumsEncryptionKeyType struct { + value *KeyfactorPKIEnumsEncryptionKeyType + isSet bool +} + +func (v NullableKeyfactorPKIEnumsEncryptionKeyType) Get() *KeyfactorPKIEnumsEncryptionKeyType { + return v.value +} + +func (v *NullableKeyfactorPKIEnumsEncryptionKeyType) Set(val *KeyfactorPKIEnumsEncryptionKeyType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorPKIEnumsEncryptionKeyType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorPKIEnumsEncryptionKeyType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorPKIEnumsEncryptionKeyType(val *KeyfactorPKIEnumsEncryptionKeyType) *NullableKeyfactorPKIEnumsEncryptionKeyType { + return &NullableKeyfactorPKIEnumsEncryptionKeyType{value: val, isSet: true} +} + +func (v NullableKeyfactorPKIEnumsEncryptionKeyType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorPKIEnumsEncryptionKeyType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_pki_enums_revoke_code.go b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_revoke_code.go new file mode 100644 index 0000000..ff1cec6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_pki_enums_revoke_code.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorPKIEnumsRevokeCode the model 'KeyfactorPKIEnumsRevokeCode' +type KeyfactorPKIEnumsRevokeCode int32 + +// List of Keyfactor.PKI.Enums.RevokeCode +const ( + KEYFACTORPKIENUMSREVOKECODE__0 KeyfactorPKIEnumsRevokeCode = 0 + KEYFACTORPKIENUMSREVOKECODE__1 KeyfactorPKIEnumsRevokeCode = 1 + KEYFACTORPKIENUMSREVOKECODE__2 KeyfactorPKIEnumsRevokeCode = 2 + KEYFACTORPKIENUMSREVOKECODE__3 KeyfactorPKIEnumsRevokeCode = 3 + KEYFACTORPKIENUMSREVOKECODE__4 KeyfactorPKIEnumsRevokeCode = 4 + KEYFACTORPKIENUMSREVOKECODE__5 KeyfactorPKIEnumsRevokeCode = 5 + KEYFACTORPKIENUMSREVOKECODE__6 KeyfactorPKIEnumsRevokeCode = 6 + KEYFACTORPKIENUMSREVOKECODE__8 KeyfactorPKIEnumsRevokeCode = 8 + KEYFACTORPKIENUMSREVOKECODE__999 KeyfactorPKIEnumsRevokeCode = 999 + KEYFACTORPKIENUMSREVOKECODE__MINUS_1 KeyfactorPKIEnumsRevokeCode = -1 +) + +func ParseKeyfactorPKIEnumsRevokeCode(s string) (*KeyfactorPKIEnumsRevokeCode, error) { + var claimType KeyfactorPKIEnumsRevokeCode + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorPKIEnumsRevokeCode) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorPKIEnumsRevokeCode{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorPKIEnumsRevokeCode. Value: %s ", s)) +} + +// All allowed values of KeyfactorPKIEnumsRevokeCode enum +var AllowedKeyfactorPKIEnumsRevokeCodeEnumValues = []KeyfactorPKIEnumsRevokeCode{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 999, + -1, +} + +func (v *KeyfactorPKIEnumsRevokeCode) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorPKIEnumsRevokeCode(value) + for _, existing := range AllowedKeyfactorPKIEnumsRevokeCodeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorPKIEnumsRevokeCode", value) +} + +// NewKeyfactorPKIEnumsRevokeCodeFromValue returns a pointer to a valid KeyfactorPKIEnumsRevokeCode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorPKIEnumsRevokeCodeFromValue(v int32) (*KeyfactorPKIEnumsRevokeCode, error) { + ev := KeyfactorPKIEnumsRevokeCode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorPKIEnumsRevokeCode: valid values are %v", v, AllowedKeyfactorPKIEnumsRevokeCodeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorPKIEnumsRevokeCode) IsValid() bool { + for _, existing := range AllowedKeyfactorPKIEnumsRevokeCodeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.PKI.Enums.RevokeCode value +func (v KeyfactorPKIEnumsRevokeCode) Ptr() *KeyfactorPKIEnumsRevokeCode { + return &v +} + +type NullableKeyfactorPKIEnumsRevokeCode struct { + value *KeyfactorPKIEnumsRevokeCode + isSet bool +} + +func (v NullableKeyfactorPKIEnumsRevokeCode) Get() *KeyfactorPKIEnumsRevokeCode { + return v.value +} + +func (v *NullableKeyfactorPKIEnumsRevokeCode) Set(val *KeyfactorPKIEnumsRevokeCode) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorPKIEnumsRevokeCode) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorPKIEnumsRevokeCode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorPKIEnumsRevokeCode(val *KeyfactorPKIEnumsRevokeCode) *NullableKeyfactorPKIEnumsRevokeCode { + return &NullableKeyfactorPKIEnumsRevokeCode{value: val, isSet: true} +} + +func (v NullableKeyfactorPKIEnumsRevokeCode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorPKIEnumsRevokeCode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_pki_pki_constants_x509_subject_alt_name_element_type.go b/v24/api/keyfactor/v1/model_keyfactor_pki_pki_constants_x509_subject_alt_name_element_type.go new file mode 100644 index 0000000..650dc42 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_pki_pki_constants_x509_subject_alt_name_element_type.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorPKIPKIConstantsX509SubjectAltNameElementType the model 'KeyfactorPKIPKIConstantsX509SubjectAltNameElementType' +type KeyfactorPKIPKIConstantsX509SubjectAltNameElementType int32 + +// List of Keyfactor.PKI.PKIConstants.X509.SubjectAltNameElementType +const ( + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__0 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 0 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__1 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 1 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__2 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 2 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__3 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 3 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__4 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 4 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__5 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 5 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__6 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 6 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__7 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 7 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__8 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 8 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__100 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 100 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__101 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 101 + KEYFACTORPKIPKICONSTANTSX509SUBJECTALTNAMEELEMENTTYPE__999 KeyfactorPKIPKIConstantsX509SubjectAltNameElementType = 999 +) + +func ParseKeyfactorPKIPKIConstantsX509SubjectAltNameElementType(s string) (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, error) { + var claimType KeyfactorPKIPKIConstantsX509SubjectAltNameElementType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorPKIPKIConstantsX509SubjectAltNameElementType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorPKIPKIConstantsX509SubjectAltNameElementType. Value: %s ", s)) +} + +// All allowed values of KeyfactorPKIPKIConstantsX509SubjectAltNameElementType enum +var AllowedKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeEnumValues = []KeyfactorPKIPKIConstantsX509SubjectAltNameElementType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 100, + 101, + 999, +} + +func (v *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorPKIPKIConstantsX509SubjectAltNameElementType(value) + for _, existing := range AllowedKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorPKIPKIConstantsX509SubjectAltNameElementType", value) +} + +// NewKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeFromValue returns a pointer to a valid KeyfactorPKIPKIConstantsX509SubjectAltNameElementType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeFromValue(v int32) (*KeyfactorPKIPKIConstantsX509SubjectAltNameElementType, error) { + ev := KeyfactorPKIPKIConstantsX509SubjectAltNameElementType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorPKIPKIConstantsX509SubjectAltNameElementType: valid values are %v", v, AllowedKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) IsValid() bool { + for _, existing := range AllowedKeyfactorPKIPKIConstantsX509SubjectAltNameElementTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.PKI.PKIConstants.X509.SubjectAltNameElementType value +func (v KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) Ptr() *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType { + return &v +} + +type NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType struct { + value *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType + isSet bool +} + +func (v NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) Get() *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType { + return v.value +} + +func (v *NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) Set(val *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType(val *KeyfactorPKIPKIConstantsX509SubjectAltNameElementType) *NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType { + return &NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType{value: val, isSet: true} +} + +func (v NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorPKIPKIConstantsX509SubjectAltNameElementType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_ca.go b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_ca.go new file mode 100644 index 0000000..f163426 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_ca.go @@ -0,0 +1,217 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorWebCoreModelsEnrollmentEnrollmentCA type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorWebCoreModelsEnrollmentEnrollmentCA{} + +// KeyfactorWebCoreModelsEnrollmentEnrollmentCA struct for KeyfactorWebCoreModelsEnrollmentEnrollmentCA +type KeyfactorWebCoreModelsEnrollmentEnrollmentCA struct { + Name NullableString `json:"Name,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentCA instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentCA object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentCA() *KeyfactorWebCoreModelsEnrollmentEnrollmentCA { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentCA{} + return &this +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentCAWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentCA object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentCAWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentCA { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentCA{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) UnsetName() { + o.Name.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentCA) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentCA) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + return toSerialize, nil +} + +type NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA struct { + value *KeyfactorWebCoreModelsEnrollmentEnrollmentCA + isSet bool +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) Get() *KeyfactorWebCoreModelsEnrollmentEnrollmentCA { + return v.value +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) Set(val *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA(val *KeyfactorWebCoreModelsEnrollmentEnrollmentCA) *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA { + return &NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA{value: val, isSet: true} +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentCA) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template.go b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template.go new file mode 100644 index 0000000..e1ea100 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template.go @@ -0,0 +1,709 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate{} + +// KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate struct for KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate +type KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Forest NullableString `json:"Forest,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + CAs []KeyfactorWebCoreModelsEnrollmentEnrollmentCA `json:"CAs,omitempty"` + EnrollmentFields []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField `json:"EnrollmentFields,omitempty"` + MetadataFields []CSSCMSDataModelModelsTemplatesTemplateMetadataField `json:"MetadataFields,omitempty"` + Regexes []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex `json:"Regexes,omitempty"` + ExtendedKeyUsages []CSSCMSDataModelModelsExtendedKeyUsage `json:"ExtendedKeyUsages,omitempty"` + EnrollmentTemplatePolicy *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy `json:"EnrollmentTemplatePolicy,omitempty"` + KeySize NullableString `json:"KeySize,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + Curve NullableString `json:"Curve,omitempty"` +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate{} + return &this +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetForest returns the Forest field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetForest() string { + if o == nil || isNil(o.Forest.Get()) { + var ret string + return ret + } + return *o.Forest.Get() +} + +// GetForestOk returns a tuple with the Forest field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetForestOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Forest.Get(), o.Forest.IsSet() +} + +// HasForest returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasForest() bool { + if o != nil && o.Forest.IsSet() { + return true + } + + return false +} + +// SetForest gets a reference to the given NullableString and assigns it to the Forest field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetForest(v string) { + o.Forest.Set(&v) +} + +// SetForestNil sets the value for Forest to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetForestNil() { + o.Forest.Set(nil) +} + +// UnsetForest ensures that no value is present for Forest, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetForest() { + o.Forest.Unset() +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetCAs returns the CAs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCAs() []KeyfactorWebCoreModelsEnrollmentEnrollmentCA { + if o == nil { + var ret []KeyfactorWebCoreModelsEnrollmentEnrollmentCA + return ret + } + return o.CAs +} + +// GetCAsOk returns a tuple with the CAs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCAsOk() ([]KeyfactorWebCoreModelsEnrollmentEnrollmentCA, bool) { + if o == nil || isNil(o.CAs) { + return nil, false + } + return o.CAs, true +} + +// HasCAs returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasCAs() bool { + if o != nil && isNil(o.CAs) { + return true + } + + return false +} + +// SetCAs gets a reference to the given []KeyfactorWebCoreModelsEnrollmentEnrollmentCA and assigns it to the CAs field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCAs(v []KeyfactorWebCoreModelsEnrollmentEnrollmentCA) { + o.CAs = v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFields() []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField { + if o == nil { + var ret []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFieldsOk() ([]CSSCMSDataModelModelsTemplatesTemplateEnrollmentField, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentFields() bool { + if o != nil && isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField and assigns it to the EnrollmentFields field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentFields(v []CSSCMSDataModelModelsTemplatesTemplateEnrollmentField) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetMetadataFields() []CSSCMSDataModelModelsTemplatesTemplateMetadataField { + if o == nil { + var ret []CSSCMSDataModelModelsTemplatesTemplateMetadataField + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetMetadataFieldsOk() ([]CSSCMSDataModelModelsTemplatesTemplateMetadataField, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasMetadataFields() bool { + if o != nil && isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []CSSCMSDataModelModelsTemplatesTemplateMetadataField and assigns it to the MetadataFields field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetMetadataFields(v []CSSCMSDataModelModelsTemplatesTemplateMetadataField) { + o.MetadataFields = v +} + +// GetRegexes returns the Regexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRegexes() []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex { + if o == nil { + var ret []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex + return ret + } + return o.Regexes +} + +// GetRegexesOk returns a tuple with the Regexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetRegexesOk() ([]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex, bool) { + if o == nil || isNil(o.Regexes) { + return nil, false + } + return o.Regexes, true +} + +// HasRegexes returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasRegexes() bool { + if o != nil && isNil(o.Regexes) { + return true + } + + return false +} + +// SetRegexes gets a reference to the given []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex and assigns it to the Regexes field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetRegexes(v []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) { + o.Regexes = v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsages() []CSSCMSDataModelModelsExtendedKeyUsage { + if o == nil { + var ret []CSSCMSDataModelModelsExtendedKeyUsage + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsagesOk() ([]CSSCMSDataModelModelsExtendedKeyUsage, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasExtendedKeyUsages() bool { + if o != nil && isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []CSSCMSDataModelModelsExtendedKeyUsage and assigns it to the ExtendedKeyUsages field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetExtendedKeyUsages(v []CSSCMSDataModelModelsExtendedKeyUsage) { + o.ExtendedKeyUsages = v +} + +// GetEnrollmentTemplatePolicy returns the EnrollmentTemplatePolicy field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentTemplatePolicy() KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy { + if o == nil || isNil(o.EnrollmentTemplatePolicy) { + var ret KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy + return ret + } + return *o.EnrollmentTemplatePolicy +} + +// GetEnrollmentTemplatePolicyOk returns a tuple with the EnrollmentTemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentTemplatePolicyOk() (*KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy, bool) { + if o == nil || isNil(o.EnrollmentTemplatePolicy) { + return nil, false + } + return o.EnrollmentTemplatePolicy, true +} + +// HasEnrollmentTemplatePolicy returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentTemplatePolicy() bool { + if o != nil && !isNil(o.EnrollmentTemplatePolicy) { + return true + } + + return false +} + +// SetEnrollmentTemplatePolicy gets a reference to the given KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy and assigns it to the EnrollmentTemplatePolicy field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentTemplatePolicy(v KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) { + o.EnrollmentTemplatePolicy = &v +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeySize() string { + if o == nil || isNil(o.KeySize.Get()) { + var ret string + return ret + } + return *o.KeySize.Get() +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeySizeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeySize.Get(), o.KeySize.IsSet() +} + +// HasKeySize returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasKeySize() bool { + if o != nil && o.KeySize.IsSet() { + return true + } + + return false +} + +// SetKeySize gets a reference to the given NullableString and assigns it to the KeySize field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeySize(v string) { + o.KeySize.Set(&v) +} + +// SetKeySizeNil sets the value for KeySize to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeySizeNil() { + o.KeySize.Set(nil) +} + +// UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetKeySize() { + o.KeySize.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnsetCurve() { + o.Curve.Unset() +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Forest.IsSet() { + toSerialize["Forest"] = o.Forest.Get() + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if o.CAs != nil { + toSerialize["CAs"] = o.CAs + } + if o.EnrollmentFields != nil { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if o.MetadataFields != nil { + toSerialize["MetadataFields"] = o.MetadataFields + } + if o.Regexes != nil { + toSerialize["Regexes"] = o.Regexes + } + if o.ExtendedKeyUsages != nil { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if !isNil(o.EnrollmentTemplatePolicy) { + toSerialize["EnrollmentTemplatePolicy"] = o.EnrollmentTemplatePolicy + } + if o.KeySize.IsSet() { + toSerialize["KeySize"] = o.KeySize.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + return toSerialize, nil +} + +type NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate struct { + value *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate + isSet bool +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) Get() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate { + return v.value +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) Set(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate { + return &NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate{value: val, isSet: true} +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_ca_response.go b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_ca_response.go new file mode 100644 index 0000000..3e91a14 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_ca_response.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse{} + +// KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse struct for KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse +type KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse struct { + Templates []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate `json:"Templates,omitempty"` + StandaloneCAs []KeyfactorWebCoreModelsEnrollmentEnrollmentCA `json:"StandaloneCAs,omitempty"` +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse{} + return &this +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse{} + return &this +} + +// GetTemplates returns the Templates field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplates() []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate { + if o == nil { + var ret []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate + return ret + } + return o.Templates +} + +// GetTemplatesOk returns a tuple with the Templates field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplatesOk() ([]KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate, bool) { + if o == nil || isNil(o.Templates) { + return nil, false + } + return o.Templates, true +} + +// HasTemplates returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) HasTemplates() bool { + if o != nil && isNil(o.Templates) { + return true + } + + return false +} + +// SetTemplates gets a reference to the given []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate and assigns it to the Templates field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetTemplates(v []KeyfactorWebCoreModelsEnrollmentEnrollmentTemplate) { + o.Templates = v +} + +// GetStandaloneCAs returns the StandaloneCAs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAs() []KeyfactorWebCoreModelsEnrollmentEnrollmentCA { + if o == nil { + var ret []KeyfactorWebCoreModelsEnrollmentEnrollmentCA + return ret + } + return o.StandaloneCAs +} + +// GetStandaloneCAsOk returns a tuple with the StandaloneCAs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAsOk() ([]KeyfactorWebCoreModelsEnrollmentEnrollmentCA, bool) { + if o == nil || isNil(o.StandaloneCAs) { + return nil, false + } + return o.StandaloneCAs, true +} + +// HasStandaloneCAs returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) HasStandaloneCAs() bool { + if o != nil && isNil(o.StandaloneCAs) { + return true + } + + return false +} + +// SetStandaloneCAs gets a reference to the given []KeyfactorWebCoreModelsEnrollmentEnrollmentCA and assigns it to the StandaloneCAs field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) SetStandaloneCAs(v []KeyfactorWebCoreModelsEnrollmentEnrollmentCA) { + o.StandaloneCAs = v +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Templates != nil { + toSerialize["Templates"] = o.Templates + } + if o.StandaloneCAs != nil { + toSerialize["StandaloneCAs"] = o.StandaloneCAs + } + return toSerialize, nil +} + +type NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse struct { + value *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse + isSet bool +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) Get() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse { + return v.value +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) Set(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse { + return &NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateCAResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_policy.go b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_policy.go new file mode 100644 index 0000000..b230594 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_policy.go @@ -0,0 +1,278 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy{} + +// KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy struct for KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy +type KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy struct { + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + CertificateOwnerRole *CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole,omitempty"` +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy{} + return &this +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicyWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicyWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy{} + return &this +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil || isNil(o.CertificateOwnerRole) { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + return *o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil || isNil(o.CertificateOwnerRole) { + return nil, false + } + return o.CertificateOwnerRole, true +} + +// HasCertificateOwnerRole returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) HasCertificateOwnerRole() bool { + if o != nil && !isNil(o.CertificateOwnerRole) { + return true + } + + return false +} + +// SetCertificateOwnerRole gets a reference to the given CSSCMSCoreEnumsTemplateCertificateOwnerRole and assigns it to the CertificateOwnerRole field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = &v +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.CertificateOwnerRole) { + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + } + return toSerialize, nil +} + +type NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy struct { + value *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy + isSet bool +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) Get() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy { + return v.value +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) Set(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy { + return &NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy{value: val, isSet: true} +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplatePolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_regex.go b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_regex.go new file mode 100644 index 0000000..61cf76e --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_web_core_models_enrollment_enrollment_template_regex.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex{} + +// KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex struct for KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex +type KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart NullableString `json:"SubjectPart,omitempty"` + Regex NullableString `json:"Regex,omitempty"` + Error NullableString `json:"Error,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex{} + return &this +} + +// NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegexWithDefaults instantiates a new KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegexWithDefaults() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex { + this := KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetRegex returns the Regex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetRegex() string { + if o == nil || isNil(o.Regex.Get()) { + var ret string + return ret + } + return *o.Regex.Get() +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetRegexOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Regex.Get(), o.Regex.IsSet() +} + +// HasRegex returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasRegex() bool { + if o != nil && o.Regex.IsSet() { + return true + } + + return false +} + +// SetRegex gets a reference to the given NullableString and assigns it to the Regex field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetRegex(v string) { + o.Regex.Set(&v) +} + +// SetRegexNil sets the value for Regex to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetRegexNil() { + o.Regex.Set(nil) +} + +// UnsetRegex ensures that no value is present for Regex, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetRegex() { + o.Regex.Unset() +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetError() string { + if o == nil || isNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnsetError() { + o.Error.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Regex.IsSet() { + toSerialize["Regex"] = o.Regex.Get() + } + if o.Error.IsSet() { + toSerialize["Error"] = o.Error.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + return toSerialize, nil +} + +type NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex struct { + value *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex + isSet bool +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) Get() *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex { + return v.value +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) Set(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex(val *KeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex { + return &NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex{value: val, isSet: true} +} + +func (v NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWebCoreModelsEnrollmentEnrollmentTemplateRegex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_workflows_data_type.go b/v24/api/keyfactor/v1/model_keyfactor_workflows_data_type.go new file mode 100644 index 0000000..786600d --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_workflows_data_type.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorWorkflowsDataType the model 'KeyfactorWorkflowsDataType' +type KeyfactorWorkflowsDataType int32 + +// List of Keyfactor.Workflows.DataType +const ( + KEYFACTORWORKFLOWSDATATYPE__0 KeyfactorWorkflowsDataType = 0 + KEYFACTORWORKFLOWSDATATYPE__1 KeyfactorWorkflowsDataType = 1 + KEYFACTORWORKFLOWSDATATYPE__2 KeyfactorWorkflowsDataType = 2 + KEYFACTORWORKFLOWSDATATYPE__3 KeyfactorWorkflowsDataType = 3 + KEYFACTORWORKFLOWSDATATYPE__4 KeyfactorWorkflowsDataType = 4 + KEYFACTORWORKFLOWSDATATYPE__5 KeyfactorWorkflowsDataType = 5 + KEYFACTORWORKFLOWSDATATYPE__6 KeyfactorWorkflowsDataType = 6 + KEYFACTORWORKFLOWSDATATYPE__7 KeyfactorWorkflowsDataType = 7 +) + +func ParseKeyfactorWorkflowsDataType(s string) (*KeyfactorWorkflowsDataType, error) { + var claimType KeyfactorWorkflowsDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorWorkflowsDataType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorWorkflowsDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorWorkflowsDataType. Value: %s ", s)) +} + +// All allowed values of KeyfactorWorkflowsDataType enum +var AllowedKeyfactorWorkflowsDataTypeEnumValues = []KeyfactorWorkflowsDataType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, +} + +func (v *KeyfactorWorkflowsDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorWorkflowsDataType(value) + for _, existing := range AllowedKeyfactorWorkflowsDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorWorkflowsDataType", value) +} + +// NewKeyfactorWorkflowsDataTypeFromValue returns a pointer to a valid KeyfactorWorkflowsDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorWorkflowsDataTypeFromValue(v int32) (*KeyfactorWorkflowsDataType, error) { + ev := KeyfactorWorkflowsDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorWorkflowsDataType: valid values are %v", v, AllowedKeyfactorWorkflowsDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorWorkflowsDataType) IsValid() bool { + for _, existing := range AllowedKeyfactorWorkflowsDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Workflows.DataType value +func (v KeyfactorWorkflowsDataType) Ptr() *KeyfactorWorkflowsDataType { + return &v +} + +type NullableKeyfactorWorkflowsDataType struct { + value *KeyfactorWorkflowsDataType + isSet bool +} + +func (v NullableKeyfactorWorkflowsDataType) Get() *KeyfactorWorkflowsDataType { + return v.value +} + +func (v *NullableKeyfactorWorkflowsDataType) Set(val *KeyfactorWorkflowsDataType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWorkflowsDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWorkflowsDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWorkflowsDataType(val *KeyfactorWorkflowsDataType) *NullableKeyfactorWorkflowsDataType { + return &NullableKeyfactorWorkflowsDataType{value: val, isSet: true} +} + +func (v NullableKeyfactorWorkflowsDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWorkflowsDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_workflows_input_control_type.go b/v24/api/keyfactor/v1/model_keyfactor_workflows_input_control_type.go new file mode 100644 index 0000000..ba6df63 --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_workflows_input_control_type.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorWorkflowsInputControlType the model 'KeyfactorWorkflowsInputControlType' +type KeyfactorWorkflowsInputControlType int32 + +// List of Keyfactor.Workflows.InputControlType +const ( + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__0 KeyfactorWorkflowsInputControlType = 0 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__1 KeyfactorWorkflowsInputControlType = 1 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__2 KeyfactorWorkflowsInputControlType = 2 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__3 KeyfactorWorkflowsInputControlType = 3 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__4 KeyfactorWorkflowsInputControlType = 4 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__5 KeyfactorWorkflowsInputControlType = 5 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__6 KeyfactorWorkflowsInputControlType = 6 + KEYFACTORWORKFLOWSINPUTCONTROLTYPE__7 KeyfactorWorkflowsInputControlType = 7 +) + +func ParseKeyfactorWorkflowsInputControlType(s string) (*KeyfactorWorkflowsInputControlType, error) { + var claimType KeyfactorWorkflowsInputControlType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorWorkflowsInputControlType) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorWorkflowsInputControlType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorWorkflowsInputControlType. Value: %s ", s)) +} + +// All allowed values of KeyfactorWorkflowsInputControlType enum +var AllowedKeyfactorWorkflowsInputControlTypeEnumValues = []KeyfactorWorkflowsInputControlType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, +} + +func (v *KeyfactorWorkflowsInputControlType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorWorkflowsInputControlType(value) + for _, existing := range AllowedKeyfactorWorkflowsInputControlTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorWorkflowsInputControlType", value) +} + +// NewKeyfactorWorkflowsInputControlTypeFromValue returns a pointer to a valid KeyfactorWorkflowsInputControlType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorWorkflowsInputControlTypeFromValue(v int32) (*KeyfactorWorkflowsInputControlType, error) { + ev := KeyfactorWorkflowsInputControlType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorWorkflowsInputControlType: valid values are %v", v, AllowedKeyfactorWorkflowsInputControlTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorWorkflowsInputControlType) IsValid() bool { + for _, existing := range AllowedKeyfactorWorkflowsInputControlTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Workflows.InputControlType value +func (v KeyfactorWorkflowsInputControlType) Ptr() *KeyfactorWorkflowsInputControlType { + return &v +} + +type NullableKeyfactorWorkflowsInputControlType struct { + value *KeyfactorWorkflowsInputControlType + isSet bool +} + +func (v NullableKeyfactorWorkflowsInputControlType) Get() *KeyfactorWorkflowsInputControlType { + return v.value +} + +func (v *NullableKeyfactorWorkflowsInputControlType) Set(val *KeyfactorWorkflowsInputControlType) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWorkflowsInputControlType) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWorkflowsInputControlType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWorkflowsInputControlType(val *KeyfactorWorkflowsInputControlType) *NullableKeyfactorWorkflowsInputControlType { + return &NullableKeyfactorWorkflowsInputControlType{value: val, isSet: true} +} + +func (v NullableKeyfactorWorkflowsInputControlType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWorkflowsInputControlType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_keyfactor_workflows_workflow_instance_status.go b/v24/api/keyfactor/v1/model_keyfactor_workflows_workflow_instance_status.go new file mode 100644 index 0000000..7ad87fc --- /dev/null +++ b/v24/api/keyfactor/v1/model_keyfactor_workflows_workflow_instance_status.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorWorkflowsWorkflowInstanceStatus the model 'KeyfactorWorkflowsWorkflowInstanceStatus' +type KeyfactorWorkflowsWorkflowInstanceStatus int32 + +// List of Keyfactor.Workflows.WorkflowInstanceStatus +const ( + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__0 KeyfactorWorkflowsWorkflowInstanceStatus = 0 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__1 KeyfactorWorkflowsWorkflowInstanceStatus = 1 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__2 KeyfactorWorkflowsWorkflowInstanceStatus = 2 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__3 KeyfactorWorkflowsWorkflowInstanceStatus = 3 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__4 KeyfactorWorkflowsWorkflowInstanceStatus = 4 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__5 KeyfactorWorkflowsWorkflowInstanceStatus = 5 + KEYFACTORWORKFLOWSWORKFLOWINSTANCESTATUS__6 KeyfactorWorkflowsWorkflowInstanceStatus = 6 +) + +func ParseKeyfactorWorkflowsWorkflowInstanceStatus(s string) (*KeyfactorWorkflowsWorkflowInstanceStatus, error) { + var claimType KeyfactorWorkflowsWorkflowInstanceStatus + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorWorkflowsWorkflowInstanceStatus) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorWorkflowsWorkflowInstanceStatus{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorWorkflowsWorkflowInstanceStatus. Value: %s ", s)) +} + +// All allowed values of KeyfactorWorkflowsWorkflowInstanceStatus enum +var AllowedKeyfactorWorkflowsWorkflowInstanceStatusEnumValues = []KeyfactorWorkflowsWorkflowInstanceStatus{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *KeyfactorWorkflowsWorkflowInstanceStatus) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorWorkflowsWorkflowInstanceStatus(value) + for _, existing := range AllowedKeyfactorWorkflowsWorkflowInstanceStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorWorkflowsWorkflowInstanceStatus", value) +} + +// NewKeyfactorWorkflowsWorkflowInstanceStatusFromValue returns a pointer to a valid KeyfactorWorkflowsWorkflowInstanceStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorWorkflowsWorkflowInstanceStatusFromValue(v int32) (*KeyfactorWorkflowsWorkflowInstanceStatus, error) { + ev := KeyfactorWorkflowsWorkflowInstanceStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorWorkflowsWorkflowInstanceStatus: valid values are %v", v, AllowedKeyfactorWorkflowsWorkflowInstanceStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorWorkflowsWorkflowInstanceStatus) IsValid() bool { + for _, existing := range AllowedKeyfactorWorkflowsWorkflowInstanceStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Workflows.WorkflowInstanceStatus value +func (v KeyfactorWorkflowsWorkflowInstanceStatus) Ptr() *KeyfactorWorkflowsWorkflowInstanceStatus { + return &v +} + +type NullableKeyfactorWorkflowsWorkflowInstanceStatus struct { + value *KeyfactorWorkflowsWorkflowInstanceStatus + isSet bool +} + +func (v NullableKeyfactorWorkflowsWorkflowInstanceStatus) Get() *KeyfactorWorkflowsWorkflowInstanceStatus { + return v.value +} + +func (v *NullableKeyfactorWorkflowsWorkflowInstanceStatus) Set(val *KeyfactorWorkflowsWorkflowInstanceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorWorkflowsWorkflowInstanceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorWorkflowsWorkflowInstanceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorWorkflowsWorkflowInstanceStatus(val *KeyfactorWorkflowsWorkflowInstanceStatus) *NullableKeyfactorWorkflowsWorkflowInstanceStatus { + return &NullableKeyfactorWorkflowsWorkflowInstanceStatus{value: val, isSet: true} +} + +func (v NullableKeyfactorWorkflowsWorkflowInstanceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorWorkflowsWorkflowInstanceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_license_license_response.go b/v24/api/keyfactor/v1/model_license_license_response.go new file mode 100644 index 0000000..942b6fd --- /dev/null +++ b/v24/api/keyfactor/v1/model_license_license_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the LicenseLicenseResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseLicenseResponse{} + +// LicenseLicenseResponse struct for LicenseLicenseResponse +type LicenseLicenseResponse struct { + KeyfactorVersion NullableString `json:"KeyfactorVersion,omitempty"` + LicenseData *LicenseLicenseResponseLicense `json:"LicenseData,omitempty"` +} + +// NewLicenseLicenseResponse instantiates a new LicenseLicenseResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseLicenseResponse() *LicenseLicenseResponse { + this := LicenseLicenseResponse{} + return &this +} + +// NewLicenseLicenseResponseWithDefaults instantiates a new LicenseLicenseResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseLicenseResponseWithDefaults() *LicenseLicenseResponse { + this := LicenseLicenseResponse{} + return &this +} + +// GetKeyfactorVersion returns the KeyfactorVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponse) GetKeyfactorVersion() string { + if o == nil || isNil(o.KeyfactorVersion.Get()) { + var ret string + return ret + } + return *o.KeyfactorVersion.Get() +} + +// GetKeyfactorVersionOk returns a tuple with the KeyfactorVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponse) GetKeyfactorVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyfactorVersion.Get(), o.KeyfactorVersion.IsSet() +} + +// HasKeyfactorVersion returns a boolean if a field has been set. +func (o *LicenseLicenseResponse) HasKeyfactorVersion() bool { + if o != nil && o.KeyfactorVersion.IsSet() { + return true + } + + return false +} + +// SetKeyfactorVersion gets a reference to the given NullableString and assigns it to the KeyfactorVersion field. +func (o *LicenseLicenseResponse) SetKeyfactorVersion(v string) { + o.KeyfactorVersion.Set(&v) +} + +// SetKeyfactorVersionNil sets the value for KeyfactorVersion to be an explicit nil +func (o *LicenseLicenseResponse) SetKeyfactorVersionNil() { + o.KeyfactorVersion.Set(nil) +} + +// UnsetKeyfactorVersion ensures that no value is present for KeyfactorVersion, not even an explicit nil +func (o *LicenseLicenseResponse) UnsetKeyfactorVersion() { + o.KeyfactorVersion.Unset() +} + +// GetLicenseData returns the LicenseData field value if set, zero value otherwise. +func (o *LicenseLicenseResponse) GetLicenseData() LicenseLicenseResponseLicense { + if o == nil || isNil(o.LicenseData) { + var ret LicenseLicenseResponseLicense + return ret + } + return *o.LicenseData +} + +// GetLicenseDataOk returns a tuple with the LicenseData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseLicenseResponse) GetLicenseDataOk() (*LicenseLicenseResponseLicense, bool) { + if o == nil || isNil(o.LicenseData) { + return nil, false + } + return o.LicenseData, true +} + +// HasLicenseData returns a boolean if a field has been set. +func (o *LicenseLicenseResponse) HasLicenseData() bool { + if o != nil && !isNil(o.LicenseData) { + return true + } + + return false +} + +// SetLicenseData gets a reference to the given LicenseLicenseResponseLicense and assigns it to the LicenseData field. +func (o *LicenseLicenseResponse) SetLicenseData(v LicenseLicenseResponseLicense) { + o.LicenseData = &v +} + +func (o LicenseLicenseResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseLicenseResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.KeyfactorVersion.IsSet() { + toSerialize["KeyfactorVersion"] = o.KeyfactorVersion.Get() + } + if !isNil(o.LicenseData) { + toSerialize["LicenseData"] = o.LicenseData + } + return toSerialize, nil +} + +type NullableLicenseLicenseResponse struct { + value *LicenseLicenseResponse + isSet bool +} + +func (v NullableLicenseLicenseResponse) Get() *LicenseLicenseResponse { + return v.value +} + +func (v *NullableLicenseLicenseResponse) Set(val *LicenseLicenseResponse) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseLicenseResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseLicenseResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseLicenseResponse(val *LicenseLicenseResponse) *NullableLicenseLicenseResponse { + return &NullableLicenseLicenseResponse{value: val, isSet: true} +} + +func (v NullableLicenseLicenseResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseLicenseResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_license_license_response_license.go b/v24/api/keyfactor/v1/model_license_license_response_license.go new file mode 100644 index 0000000..332d8ba --- /dev/null +++ b/v24/api/keyfactor/v1/model_license_license_response_license.go @@ -0,0 +1,302 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the LicenseLicenseResponseLicense type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseLicenseResponseLicense{} + +// LicenseLicenseResponseLicense struct for LicenseLicenseResponseLicense +type LicenseLicenseResponseLicense struct { + LicenseId NullableString `json:"LicenseId,omitempty"` + Customer *LicenseLicenseResponseLicensedCustomer `json:"Customer,omitempty"` + IssuedDate *time.Time `json:"IssuedDate,omitempty"` + ExpirationDate NullableTime `json:"ExpirationDate,omitempty"` + LicensedProducts []LicenseLicenseResponseLicensedProduct `json:"LicensedProducts,omitempty"` +} + +// NewLicenseLicenseResponseLicense instantiates a new LicenseLicenseResponseLicense object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseLicenseResponseLicense() *LicenseLicenseResponseLicense { + this := LicenseLicenseResponseLicense{} + return &this +} + +// NewLicenseLicenseResponseLicenseWithDefaults instantiates a new LicenseLicenseResponseLicense object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseLicenseResponseLicenseWithDefaults() *LicenseLicenseResponseLicense { + this := LicenseLicenseResponseLicense{} + return &this +} + +// GetLicenseId returns the LicenseId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicense) GetLicenseId() string { + if o == nil || isNil(o.LicenseId.Get()) { + var ret string + return ret + } + return *o.LicenseId.Get() +} + +// GetLicenseIdOk returns a tuple with the LicenseId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicense) GetLicenseIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LicenseId.Get(), o.LicenseId.IsSet() +} + +// HasLicenseId returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicense) HasLicenseId() bool { + if o != nil && o.LicenseId.IsSet() { + return true + } + + return false +} + +// SetLicenseId gets a reference to the given NullableString and assigns it to the LicenseId field. +func (o *LicenseLicenseResponseLicense) SetLicenseId(v string) { + o.LicenseId.Set(&v) +} + +// SetLicenseIdNil sets the value for LicenseId to be an explicit nil +func (o *LicenseLicenseResponseLicense) SetLicenseIdNil() { + o.LicenseId.Set(nil) +} + +// UnsetLicenseId ensures that no value is present for LicenseId, not even an explicit nil +func (o *LicenseLicenseResponseLicense) UnsetLicenseId() { + o.LicenseId.Unset() +} + +// GetCustomer returns the Customer field value if set, zero value otherwise. +func (o *LicenseLicenseResponseLicense) GetCustomer() LicenseLicenseResponseLicensedCustomer { + if o == nil || isNil(o.Customer) { + var ret LicenseLicenseResponseLicensedCustomer + return ret + } + return *o.Customer +} + +// GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseLicenseResponseLicense) GetCustomerOk() (*LicenseLicenseResponseLicensedCustomer, bool) { + if o == nil || isNil(o.Customer) { + return nil, false + } + return o.Customer, true +} + +// HasCustomer returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicense) HasCustomer() bool { + if o != nil && !isNil(o.Customer) { + return true + } + + return false +} + +// SetCustomer gets a reference to the given LicenseLicenseResponseLicensedCustomer and assigns it to the Customer field. +func (o *LicenseLicenseResponseLicense) SetCustomer(v LicenseLicenseResponseLicensedCustomer) { + o.Customer = &v +} + +// GetIssuedDate returns the IssuedDate field value if set, zero value otherwise. +func (o *LicenseLicenseResponseLicense) GetIssuedDate() time.Time { + if o == nil || isNil(o.IssuedDate) { + var ret time.Time + return ret + } + return *o.IssuedDate +} + +// GetIssuedDateOk returns a tuple with the IssuedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseLicenseResponseLicense) GetIssuedDateOk() (*time.Time, bool) { + if o == nil || isNil(o.IssuedDate) { + return nil, false + } + return o.IssuedDate, true +} + +// HasIssuedDate returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicense) HasIssuedDate() bool { + if o != nil && !isNil(o.IssuedDate) { + return true + } + + return false +} + +// SetIssuedDate gets a reference to the given time.Time and assigns it to the IssuedDate field. +func (o *LicenseLicenseResponseLicense) SetIssuedDate(v time.Time) { + o.IssuedDate = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicense) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate.Get()) { + var ret time.Time + return ret + } + return *o.ExpirationDate.Get() +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicense) GetExpirationDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpirationDate.Get(), o.ExpirationDate.IsSet() +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicense) HasExpirationDate() bool { + if o != nil && o.ExpirationDate.IsSet() { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given NullableTime and assigns it to the ExpirationDate field. +func (o *LicenseLicenseResponseLicense) SetExpirationDate(v time.Time) { + o.ExpirationDate.Set(&v) +} + +// SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil +func (o *LicenseLicenseResponseLicense) SetExpirationDateNil() { + o.ExpirationDate.Set(nil) +} + +// UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil +func (o *LicenseLicenseResponseLicense) UnsetExpirationDate() { + o.ExpirationDate.Unset() +} + +// GetLicensedProducts returns the LicensedProducts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicense) GetLicensedProducts() []LicenseLicenseResponseLicensedProduct { + if o == nil { + var ret []LicenseLicenseResponseLicensedProduct + return ret + } + return o.LicensedProducts +} + +// GetLicensedProductsOk returns a tuple with the LicensedProducts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicense) GetLicensedProductsOk() ([]LicenseLicenseResponseLicensedProduct, bool) { + if o == nil || isNil(o.LicensedProducts) { + return nil, false + } + return o.LicensedProducts, true +} + +// HasLicensedProducts returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicense) HasLicensedProducts() bool { + if o != nil && isNil(o.LicensedProducts) { + return true + } + + return false +} + +// SetLicensedProducts gets a reference to the given []LicenseLicenseResponseLicensedProduct and assigns it to the LicensedProducts field. +func (o *LicenseLicenseResponseLicense) SetLicensedProducts(v []LicenseLicenseResponseLicensedProduct) { + o.LicensedProducts = v +} + +func (o LicenseLicenseResponseLicense) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseLicenseResponseLicense) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.LicenseId.IsSet() { + toSerialize["LicenseId"] = o.LicenseId.Get() + } + if !isNil(o.Customer) { + toSerialize["Customer"] = o.Customer + } + if !isNil(o.IssuedDate) { + toSerialize["IssuedDate"] = o.IssuedDate + } + if o.ExpirationDate.IsSet() { + toSerialize["ExpirationDate"] = o.ExpirationDate.Get() + } + if o.LicensedProducts != nil { + toSerialize["LicensedProducts"] = o.LicensedProducts + } + return toSerialize, nil +} + +type NullableLicenseLicenseResponseLicense struct { + value *LicenseLicenseResponseLicense + isSet bool +} + +func (v NullableLicenseLicenseResponseLicense) Get() *LicenseLicenseResponseLicense { + return v.value +} + +func (v *NullableLicenseLicenseResponseLicense) Set(val *LicenseLicenseResponseLicense) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseLicenseResponseLicense) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseLicenseResponseLicense) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseLicenseResponseLicense(val *LicenseLicenseResponseLicense) *NullableLicenseLicenseResponseLicense { + return &NullableLicenseLicenseResponseLicense{value: val, isSet: true} +} + +func (v NullableLicenseLicenseResponseLicense) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseLicenseResponseLicense) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_license_license_response_licensed_customer.go b/v24/api/keyfactor/v1/model_license_license_response_licensed_customer.go new file mode 100644 index 0000000..7110738 --- /dev/null +++ b/v24/api/keyfactor/v1/model_license_license_response_licensed_customer.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the LicenseLicenseResponseLicensedCustomer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseLicenseResponseLicensedCustomer{} + +// LicenseLicenseResponseLicensedCustomer struct for LicenseLicenseResponseLicensedCustomer +type LicenseLicenseResponseLicensedCustomer struct { + Name NullableString `json:"Name,omitempty"` + Id NullableString `json:"Id,omitempty"` +} + +// NewLicenseLicenseResponseLicensedCustomer instantiates a new LicenseLicenseResponseLicensedCustomer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseLicenseResponseLicensedCustomer() *LicenseLicenseResponseLicensedCustomer { + this := LicenseLicenseResponseLicensedCustomer{} + return &this +} + +// NewLicenseLicenseResponseLicensedCustomerWithDefaults instantiates a new LicenseLicenseResponseLicensedCustomer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseLicenseResponseLicensedCustomerWithDefaults() *LicenseLicenseResponseLicensedCustomer { + this := LicenseLicenseResponseLicensedCustomer{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedCustomer) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedCustomer) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedCustomer) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *LicenseLicenseResponseLicensedCustomer) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *LicenseLicenseResponseLicensedCustomer) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *LicenseLicenseResponseLicensedCustomer) UnsetName() { + o.Name.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedCustomer) GetId() string { + if o == nil || isNil(o.Id.Get()) { + var ret string + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedCustomer) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedCustomer) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableString and assigns it to the Id field. +func (o *LicenseLicenseResponseLicensedCustomer) SetId(v string) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *LicenseLicenseResponseLicensedCustomer) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *LicenseLicenseResponseLicensedCustomer) UnsetId() { + o.Id.Unset() +} + +func (o LicenseLicenseResponseLicensedCustomer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseLicenseResponseLicensedCustomer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + return toSerialize, nil +} + +type NullableLicenseLicenseResponseLicensedCustomer struct { + value *LicenseLicenseResponseLicensedCustomer + isSet bool +} + +func (v NullableLicenseLicenseResponseLicensedCustomer) Get() *LicenseLicenseResponseLicensedCustomer { + return v.value +} + +func (v *NullableLicenseLicenseResponseLicensedCustomer) Set(val *LicenseLicenseResponseLicensedCustomer) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseLicenseResponseLicensedCustomer) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseLicenseResponseLicensedCustomer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseLicenseResponseLicensedCustomer(val *LicenseLicenseResponseLicensedCustomer) *NullableLicenseLicenseResponseLicensedCustomer { + return &NullableLicenseLicenseResponseLicensedCustomer{value: val, isSet: true} +} + +func (v NullableLicenseLicenseResponseLicensedCustomer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseLicenseResponseLicensedCustomer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_license_license_response_licensed_feature.go b/v24/api/keyfactor/v1/model_license_license_response_licensed_feature.go new file mode 100644 index 0000000..23db802 --- /dev/null +++ b/v24/api/keyfactor/v1/model_license_license_response_licensed_feature.go @@ -0,0 +1,323 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the LicenseLicenseResponseLicensedFeature type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseLicenseResponseLicensedFeature{} + +// LicenseLicenseResponseLicensedFeature struct for LicenseLicenseResponseLicensedFeature +type LicenseLicenseResponseLicensedFeature struct { + FeatureID NullableString `json:"FeatureID,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Quantity NullableInt32 `json:"Quantity,omitempty"` + ExpirationDate NullableTime `json:"ExpirationDate,omitempty"` +} + +// NewLicenseLicenseResponseLicensedFeature instantiates a new LicenseLicenseResponseLicensedFeature object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseLicenseResponseLicensedFeature() *LicenseLicenseResponseLicensedFeature { + this := LicenseLicenseResponseLicensedFeature{} + return &this +} + +// NewLicenseLicenseResponseLicensedFeatureWithDefaults instantiates a new LicenseLicenseResponseLicensedFeature object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseLicenseResponseLicensedFeatureWithDefaults() *LicenseLicenseResponseLicensedFeature { + this := LicenseLicenseResponseLicensedFeature{} + return &this +} + +// GetFeatureID returns the FeatureID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedFeature) GetFeatureID() string { + if o == nil || isNil(o.FeatureID.Get()) { + var ret string + return ret + } + return *o.FeatureID.Get() +} + +// GetFeatureIDOk returns a tuple with the FeatureID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedFeature) GetFeatureIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FeatureID.Get(), o.FeatureID.IsSet() +} + +// HasFeatureID returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedFeature) HasFeatureID() bool { + if o != nil && o.FeatureID.IsSet() { + return true + } + + return false +} + +// SetFeatureID gets a reference to the given NullableString and assigns it to the FeatureID field. +func (o *LicenseLicenseResponseLicensedFeature) SetFeatureID(v string) { + o.FeatureID.Set(&v) +} + +// SetFeatureIDNil sets the value for FeatureID to be an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) SetFeatureIDNil() { + o.FeatureID.Set(nil) +} + +// UnsetFeatureID ensures that no value is present for FeatureID, not even an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) UnsetFeatureID() { + o.FeatureID.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedFeature) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedFeature) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedFeature) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *LicenseLicenseResponseLicensedFeature) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *LicenseLicenseResponseLicensedFeature) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LicenseLicenseResponseLicensedFeature) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedFeature) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *LicenseLicenseResponseLicensedFeature) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedFeature) GetQuantity() int32 { + if o == nil || isNil(o.Quantity.Get()) { + var ret int32 + return ret + } + return *o.Quantity.Get() +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedFeature) GetQuantityOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Quantity.Get(), o.Quantity.IsSet() +} + +// HasQuantity returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedFeature) HasQuantity() bool { + if o != nil && o.Quantity.IsSet() { + return true + } + + return false +} + +// SetQuantity gets a reference to the given NullableInt32 and assigns it to the Quantity field. +func (o *LicenseLicenseResponseLicensedFeature) SetQuantity(v int32) { + o.Quantity.Set(&v) +} + +// SetQuantityNil sets the value for Quantity to be an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) SetQuantityNil() { + o.Quantity.Set(nil) +} + +// UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) UnsetQuantity() { + o.Quantity.Unset() +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedFeature) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate.Get()) { + var ret time.Time + return ret + } + return *o.ExpirationDate.Get() +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedFeature) GetExpirationDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpirationDate.Get(), o.ExpirationDate.IsSet() +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedFeature) HasExpirationDate() bool { + if o != nil && o.ExpirationDate.IsSet() { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given NullableTime and assigns it to the ExpirationDate field. +func (o *LicenseLicenseResponseLicensedFeature) SetExpirationDate(v time.Time) { + o.ExpirationDate.Set(&v) +} + +// SetExpirationDateNil sets the value for ExpirationDate to be an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) SetExpirationDateNil() { + o.ExpirationDate.Set(nil) +} + +// UnsetExpirationDate ensures that no value is present for ExpirationDate, not even an explicit nil +func (o *LicenseLicenseResponseLicensedFeature) UnsetExpirationDate() { + o.ExpirationDate.Unset() +} + +func (o LicenseLicenseResponseLicensedFeature) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseLicenseResponseLicensedFeature) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.FeatureID.IsSet() { + toSerialize["FeatureID"] = o.FeatureID.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.Quantity.IsSet() { + toSerialize["Quantity"] = o.Quantity.Get() + } + if o.ExpirationDate.IsSet() { + toSerialize["ExpirationDate"] = o.ExpirationDate.Get() + } + return toSerialize, nil +} + +type NullableLicenseLicenseResponseLicensedFeature struct { + value *LicenseLicenseResponseLicensedFeature + isSet bool +} + +func (v NullableLicenseLicenseResponseLicensedFeature) Get() *LicenseLicenseResponseLicensedFeature { + return v.value +} + +func (v *NullableLicenseLicenseResponseLicensedFeature) Set(val *LicenseLicenseResponseLicensedFeature) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseLicenseResponseLicensedFeature) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseLicenseResponseLicensedFeature) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseLicenseResponseLicensedFeature(val *LicenseLicenseResponseLicensedFeature) *NullableLicenseLicenseResponseLicensedFeature { + return &NullableLicenseLicenseResponseLicensedFeature{value: val, isSet: true} +} + +func (v NullableLicenseLicenseResponseLicensedFeature) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseLicenseResponseLicensedFeature) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_license_license_response_licensed_product.go b/v24/api/keyfactor/v1/model_license_license_response_licensed_product.go new file mode 100644 index 0000000..1238901 --- /dev/null +++ b/v24/api/keyfactor/v1/model_license_license_response_licensed_product.go @@ -0,0 +1,323 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the LicenseLicenseResponseLicensedProduct type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LicenseLicenseResponseLicensedProduct{} + +// LicenseLicenseResponseLicensedProduct struct for LicenseLicenseResponseLicensedProduct +type LicenseLicenseResponseLicensedProduct struct { + ProductId NullableString `json:"ProductId,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + MajorRev NullableString `json:"MajorRev,omitempty"` + MinorRev NullableString `json:"MinorRev,omitempty"` + LicensedFeatures []LicenseLicenseResponseLicensedFeature `json:"LicensedFeatures,omitempty"` +} + +// NewLicenseLicenseResponseLicensedProduct instantiates a new LicenseLicenseResponseLicensedProduct object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLicenseLicenseResponseLicensedProduct() *LicenseLicenseResponseLicensedProduct { + this := LicenseLicenseResponseLicensedProduct{} + return &this +} + +// NewLicenseLicenseResponseLicensedProductWithDefaults instantiates a new LicenseLicenseResponseLicensedProduct object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLicenseLicenseResponseLicensedProductWithDefaults() *LicenseLicenseResponseLicensedProduct { + this := LicenseLicenseResponseLicensedProduct{} + return &this +} + +// GetProductId returns the ProductId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedProduct) GetProductId() string { + if o == nil || isNil(o.ProductId.Get()) { + var ret string + return ret + } + return *o.ProductId.Get() +} + +// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedProduct) GetProductIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ProductId.Get(), o.ProductId.IsSet() +} + +// HasProductId returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedProduct) HasProductId() bool { + if o != nil && o.ProductId.IsSet() { + return true + } + + return false +} + +// SetProductId gets a reference to the given NullableString and assigns it to the ProductId field. +func (o *LicenseLicenseResponseLicensedProduct) SetProductId(v string) { + o.ProductId.Set(&v) +} + +// SetProductIdNil sets the value for ProductId to be an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) SetProductIdNil() { + o.ProductId.Set(nil) +} + +// UnsetProductId ensures that no value is present for ProductId, not even an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) UnsetProductId() { + o.ProductId.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedProduct) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedProduct) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedProduct) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *LicenseLicenseResponseLicensedProduct) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetMajorRev returns the MajorRev field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedProduct) GetMajorRev() string { + if o == nil || isNil(o.MajorRev.Get()) { + var ret string + return ret + } + return *o.MajorRev.Get() +} + +// GetMajorRevOk returns a tuple with the MajorRev field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedProduct) GetMajorRevOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MajorRev.Get(), o.MajorRev.IsSet() +} + +// HasMajorRev returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedProduct) HasMajorRev() bool { + if o != nil && o.MajorRev.IsSet() { + return true + } + + return false +} + +// SetMajorRev gets a reference to the given NullableString and assigns it to the MajorRev field. +func (o *LicenseLicenseResponseLicensedProduct) SetMajorRev(v string) { + o.MajorRev.Set(&v) +} + +// SetMajorRevNil sets the value for MajorRev to be an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) SetMajorRevNil() { + o.MajorRev.Set(nil) +} + +// UnsetMajorRev ensures that no value is present for MajorRev, not even an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) UnsetMajorRev() { + o.MajorRev.Unset() +} + +// GetMinorRev returns the MinorRev field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedProduct) GetMinorRev() string { + if o == nil || isNil(o.MinorRev.Get()) { + var ret string + return ret + } + return *o.MinorRev.Get() +} + +// GetMinorRevOk returns a tuple with the MinorRev field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedProduct) GetMinorRevOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MinorRev.Get(), o.MinorRev.IsSet() +} + +// HasMinorRev returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedProduct) HasMinorRev() bool { + if o != nil && o.MinorRev.IsSet() { + return true + } + + return false +} + +// SetMinorRev gets a reference to the given NullableString and assigns it to the MinorRev field. +func (o *LicenseLicenseResponseLicensedProduct) SetMinorRev(v string) { + o.MinorRev.Set(&v) +} + +// SetMinorRevNil sets the value for MinorRev to be an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) SetMinorRevNil() { + o.MinorRev.Set(nil) +} + +// UnsetMinorRev ensures that no value is present for MinorRev, not even an explicit nil +func (o *LicenseLicenseResponseLicensedProduct) UnsetMinorRev() { + o.MinorRev.Unset() +} + +// GetLicensedFeatures returns the LicensedFeatures field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LicenseLicenseResponseLicensedProduct) GetLicensedFeatures() []LicenseLicenseResponseLicensedFeature { + if o == nil { + var ret []LicenseLicenseResponseLicensedFeature + return ret + } + return o.LicensedFeatures +} + +// GetLicensedFeaturesOk returns a tuple with the LicensedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LicenseLicenseResponseLicensedProduct) GetLicensedFeaturesOk() ([]LicenseLicenseResponseLicensedFeature, bool) { + if o == nil || isNil(o.LicensedFeatures) { + return nil, false + } + return o.LicensedFeatures, true +} + +// HasLicensedFeatures returns a boolean if a field has been set. +func (o *LicenseLicenseResponseLicensedProduct) HasLicensedFeatures() bool { + if o != nil && isNil(o.LicensedFeatures) { + return true + } + + return false +} + +// SetLicensedFeatures gets a reference to the given []LicenseLicenseResponseLicensedFeature and assigns it to the LicensedFeatures field. +func (o *LicenseLicenseResponseLicensedProduct) SetLicensedFeatures(v []LicenseLicenseResponseLicensedFeature) { + o.LicensedFeatures = v +} + +func (o LicenseLicenseResponseLicensedProduct) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LicenseLicenseResponseLicensedProduct) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ProductId.IsSet() { + toSerialize["ProductId"] = o.ProductId.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.MajorRev.IsSet() { + toSerialize["MajorRev"] = o.MajorRev.Get() + } + if o.MinorRev.IsSet() { + toSerialize["MinorRev"] = o.MinorRev.Get() + } + if o.LicensedFeatures != nil { + toSerialize["LicensedFeatures"] = o.LicensedFeatures + } + return toSerialize, nil +} + +type NullableLicenseLicenseResponseLicensedProduct struct { + value *LicenseLicenseResponseLicensedProduct + isSet bool +} + +func (v NullableLicenseLicenseResponseLicensedProduct) Get() *LicenseLicenseResponseLicensedProduct { + return v.value +} + +func (v *NullableLicenseLicenseResponseLicensedProduct) Set(val *LicenseLicenseResponseLicensedProduct) { + v.value = val + v.isSet = true +} + +func (v NullableLicenseLicenseResponseLicensedProduct) IsSet() bool { + return v.isSet +} + +func (v *NullableLicenseLicenseResponseLicensedProduct) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLicenseLicenseResponseLicensedProduct(val *LicenseLicenseResponseLicensedProduct) *NullableLicenseLicenseResponseLicensedProduct { + return &NullableLicenseLicenseResponseLicensedProduct{value: val, isSet: true} +} + +func (v NullableLicenseLicenseResponseLicensedProduct) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLicenseLicenseResponseLicensedProduct) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_mac_enrollment_mac_enrollment_api_model.go b/v24/api/keyfactor/v1/model_mac_enrollment_mac_enrollment_api_model.go new file mode 100644 index 0000000..514ac35 --- /dev/null +++ b/v24/api/keyfactor/v1/model_mac_enrollment_mac_enrollment_api_model.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MacEnrollmentMacEnrollmentAPIModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MacEnrollmentMacEnrollmentAPIModel{} + +// MacEnrollmentMacEnrollmentAPIModel struct for MacEnrollmentMacEnrollmentAPIModel +type MacEnrollmentMacEnrollmentAPIModel struct { + Id *int32 `json:"Id,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + UseMetadata *bool `json:"UseMetadata,omitempty"` + MetadataField NullableString `json:"MetadataField,omitempty"` + MetadataValue NullableString `json:"MetadataValue,omitempty"` +} + +// NewMacEnrollmentMacEnrollmentAPIModel instantiates a new MacEnrollmentMacEnrollmentAPIModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMacEnrollmentMacEnrollmentAPIModel() *MacEnrollmentMacEnrollmentAPIModel { + this := MacEnrollmentMacEnrollmentAPIModel{} + return &this +} + +// NewMacEnrollmentMacEnrollmentAPIModelWithDefaults instantiates a new MacEnrollmentMacEnrollmentAPIModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMacEnrollmentMacEnrollmentAPIModelWithDefaults() *MacEnrollmentMacEnrollmentAPIModel { + this := MacEnrollmentMacEnrollmentAPIModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetId(v int32) { + o.Id = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetInterval() int32 { + if o == nil || isNil(o.Interval) { + var ret int32 + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetIntervalOk() (*int32, bool) { + if o == nil || isNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasInterval() bool { + if o != nil && !isNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given int32 and assigns it to the Interval field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetInterval(v int32) { + o.Interval = &v +} + +// GetUseMetadata returns the UseMetadata field value if set, zero value otherwise. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetUseMetadata() bool { + if o == nil || isNil(o.UseMetadata) { + var ret bool + return ret + } + return *o.UseMetadata +} + +// GetUseMetadataOk returns a tuple with the UseMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) GetUseMetadataOk() (*bool, bool) { + if o == nil || isNil(o.UseMetadata) { + return nil, false + } + return o.UseMetadata, true +} + +// HasUseMetadata returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasUseMetadata() bool { + if o != nil && !isNil(o.UseMetadata) { + return true + } + + return false +} + +// SetUseMetadata gets a reference to the given bool and assigns it to the UseMetadata field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetUseMetadata(v bool) { + o.UseMetadata = &v +} + +// GetMetadataField returns the MetadataField field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataField() string { + if o == nil || isNil(o.MetadataField.Get()) { + var ret string + return ret + } + return *o.MetadataField.Get() +} + +// GetMetadataFieldOk returns a tuple with the MetadataField field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataFieldOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MetadataField.Get(), o.MetadataField.IsSet() +} + +// HasMetadataField returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasMetadataField() bool { + if o != nil && o.MetadataField.IsSet() { + return true + } + + return false +} + +// SetMetadataField gets a reference to the given NullableString and assigns it to the MetadataField field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataField(v string) { + o.MetadataField.Set(&v) +} + +// SetMetadataFieldNil sets the value for MetadataField to be an explicit nil +func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataFieldNil() { + o.MetadataField.Set(nil) +} + +// UnsetMetadataField ensures that no value is present for MetadataField, not even an explicit nil +func (o *MacEnrollmentMacEnrollmentAPIModel) UnsetMetadataField() { + o.MetadataField.Unset() +} + +// GetMetadataValue returns the MetadataValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataValue() string { + if o == nil || isNil(o.MetadataValue.Get()) { + var ret string + return ret + } + return *o.MetadataValue.Get() +} + +// GetMetadataValueOk returns a tuple with the MetadataValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MacEnrollmentMacEnrollmentAPIModel) GetMetadataValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MetadataValue.Get(), o.MetadataValue.IsSet() +} + +// HasMetadataValue returns a boolean if a field has been set. +func (o *MacEnrollmentMacEnrollmentAPIModel) HasMetadataValue() bool { + if o != nil && o.MetadataValue.IsSet() { + return true + } + + return false +} + +// SetMetadataValue gets a reference to the given NullableString and assigns it to the MetadataValue field. +func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataValue(v string) { + o.MetadataValue.Set(&v) +} + +// SetMetadataValueNil sets the value for MetadataValue to be an explicit nil +func (o *MacEnrollmentMacEnrollmentAPIModel) SetMetadataValueNil() { + o.MetadataValue.Set(nil) +} + +// UnsetMetadataValue ensures that no value is present for MetadataValue, not even an explicit nil +func (o *MacEnrollmentMacEnrollmentAPIModel) UnsetMetadataValue() { + o.MetadataValue.Unset() +} + +func (o MacEnrollmentMacEnrollmentAPIModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MacEnrollmentMacEnrollmentAPIModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Interval) { + toSerialize["Interval"] = o.Interval + } + if !isNil(o.UseMetadata) { + toSerialize["UseMetadata"] = o.UseMetadata + } + if o.MetadataField.IsSet() { + toSerialize["MetadataField"] = o.MetadataField.Get() + } + if o.MetadataValue.IsSet() { + toSerialize["MetadataValue"] = o.MetadataValue.Get() + } + return toSerialize, nil +} + +type NullableMacEnrollmentMacEnrollmentAPIModel struct { + value *MacEnrollmentMacEnrollmentAPIModel + isSet bool +} + +func (v NullableMacEnrollmentMacEnrollmentAPIModel) Get() *MacEnrollmentMacEnrollmentAPIModel { + return v.value +} + +func (v *NullableMacEnrollmentMacEnrollmentAPIModel) Set(val *MacEnrollmentMacEnrollmentAPIModel) { + v.value = val + v.isSet = true +} + +func (v NullableMacEnrollmentMacEnrollmentAPIModel) IsSet() bool { + return v.isSet +} + +func (v *NullableMacEnrollmentMacEnrollmentAPIModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMacEnrollmentMacEnrollmentAPIModel(val *MacEnrollmentMacEnrollmentAPIModel) *NullableMacEnrollmentMacEnrollmentAPIModel { + return &NullableMacEnrollmentMacEnrollmentAPIModel{value: val, isSet: true} +} + +func (v NullableMacEnrollmentMacEnrollmentAPIModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMacEnrollmentMacEnrollmentAPIModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_metadata_field_metadata_field_create_request.go b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_create_request.go new file mode 100644 index 0000000..2947b67 --- /dev/null +++ b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_create_request.go @@ -0,0 +1,649 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MetadataFieldMetadataFieldCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataFieldMetadataFieldCreateRequest{} + +// MetadataFieldMetadataFieldCreateRequest struct for MetadataFieldMetadataFieldCreateRequest +type MetadataFieldMetadataFieldCreateRequest struct { + Name string `json:"Name"` + Description string `json:"Description"` + DataType CSSCMSCoreEnumsMetadataDataType `json:"DataType"` + Hint NullableString `json:"Hint,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` + Message NullableString `json:"Message,omitempty"` + Options NullableString `json:"Options,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + // Deprecated + AllowAPI *bool `json:"AllowAPI,omitempty"` + // Deprecated + ExplicitUpdate *bool `json:"ExplicitUpdate,omitempty"` + DisplayOrder NullableInt32 `json:"DisplayOrder,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + ExemptFromActionedCount *bool `json:"ExemptFromActionedCount,omitempty"` +} + +// NewMetadataFieldMetadataFieldCreateRequest instantiates a new MetadataFieldMetadataFieldCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetadataFieldMetadataFieldCreateRequest(name string, description string, dataType CSSCMSCoreEnumsMetadataDataType) *MetadataFieldMetadataFieldCreateRequest { + this := MetadataFieldMetadataFieldCreateRequest{} + this.Name = name + this.Description = description + this.DataType = dataType + return &this +} + +// NewMetadataFieldMetadataFieldCreateRequestWithDefaults instantiates a new MetadataFieldMetadataFieldCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetadataFieldMetadataFieldCreateRequestWithDefaults() *MetadataFieldMetadataFieldCreateRequest { + this := MetadataFieldMetadataFieldCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *MetadataFieldMetadataFieldCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *MetadataFieldMetadataFieldCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *MetadataFieldMetadataFieldCreateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *MetadataFieldMetadataFieldCreateRequest) SetDescription(v string) { + o.Description = v +} + +// GetDataType returns the DataType field value +func (o *MetadataFieldMetadataFieldCreateRequest) GetDataType() CSSCMSCoreEnumsMetadataDataType { + if o == nil { + var ret CSSCMSCoreEnumsMetadataDataType + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *MetadataFieldMetadataFieldCreateRequest) SetDataType(v CSSCMSCoreEnumsMetadataDataType) { + o.DataType = v +} + +// GetHint returns the Hint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetHint() string { + if o == nil || isNil(o.Hint.Get()) { + var ret string + return ret + } + return *o.Hint.Get() +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetHintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hint.Get(), o.Hint.IsSet() +} + +// HasHint returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasHint() bool { + if o != nil && o.Hint.IsSet() { + return true + } + + return false +} + +// SetHint gets a reference to the given NullableString and assigns it to the Hint field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetHint(v string) { + o.Hint.Set(&v) +} + +// SetHintNil sets the value for Hint to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetHintNil() { + o.Hint.Set(nil) +} + +// UnsetHint ensures that no value is present for Hint, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetHint() { + o.Hint.Unset() +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetValidation() { + o.Validation.Unset() +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldCreateRequest) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetOptions() string { + if o == nil || isNil(o.Options.Get()) { + var ret string + return ret + } + return *o.Options.Get() +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetOptionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Options.Get(), o.Options.IsSet() +} + +// HasOptions returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasOptions() bool { + if o != nil && o.Options.IsSet() { + return true + } + + return false +} + +// SetOptions gets a reference to the given NullableString and assigns it to the Options field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetOptions(v string) { + o.Options.Set(&v) +} + +// SetOptionsNil sets the value for Options to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetOptionsNil() { + o.Options.Set(nil) +} + +// UnsetOptions ensures that no value is present for Options, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetOptions() { + o.Options.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetAllowAPI returns the AllowAPI field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) GetAllowAPI() bool { + if o == nil || isNil(o.AllowAPI) { + var ret bool + return ret + } + return *o.AllowAPI +} + +// GetAllowAPIOk returns a tuple with the AllowAPI field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) GetAllowAPIOk() (*bool, bool) { + if o == nil || isNil(o.AllowAPI) { + return nil, false + } + return o.AllowAPI, true +} + +// HasAllowAPI returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasAllowAPI() bool { + if o != nil && !isNil(o.AllowAPI) { + return true + } + + return false +} + +// SetAllowAPI gets a reference to the given bool and assigns it to the AllowAPI field. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) SetAllowAPI(v bool) { + o.AllowAPI = &v +} + +// GetExplicitUpdate returns the ExplicitUpdate field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) GetExplicitUpdate() bool { + if o == nil || isNil(o.ExplicitUpdate) { + var ret bool + return ret + } + return *o.ExplicitUpdate +} + +// GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) GetExplicitUpdateOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitUpdate) { + return nil, false + } + return o.ExplicitUpdate, true +} + +// HasExplicitUpdate returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasExplicitUpdate() bool { + if o != nil && !isNil(o.ExplicitUpdate) { + return true + } + + return false +} + +// SetExplicitUpdate gets a reference to the given bool and assigns it to the ExplicitUpdate field. +// Deprecated +func (o *MetadataFieldMetadataFieldCreateRequest) SetExplicitUpdate(v bool) { + o.ExplicitUpdate = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldCreateRequest) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder.Get()) { + var ret int32 + return ret + } + return *o.DisplayOrder.Get() +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldCreateRequest) GetDisplayOrderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DisplayOrder.Get(), o.DisplayOrder.IsSet() +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasDisplayOrder() bool { + if o != nil && o.DisplayOrder.IsSet() { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given NullableInt32 and assigns it to the DisplayOrder field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetDisplayOrder(v int32) { + o.DisplayOrder.Set(&v) +} + +// SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) SetDisplayOrderNil() { + o.DisplayOrder.Set(nil) +} + +// UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +func (o *MetadataFieldMetadataFieldCreateRequest) UnsetDisplayOrder() { + o.DisplayOrder.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldCreateRequest) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetExemptFromActionedCount returns the ExemptFromActionedCount field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldCreateRequest) GetExemptFromActionedCount() bool { + if o == nil || isNil(o.ExemptFromActionedCount) { + var ret bool + return ret + } + return *o.ExemptFromActionedCount +} + +// GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) GetExemptFromActionedCountOk() (*bool, bool) { + if o == nil || isNil(o.ExemptFromActionedCount) { + return nil, false + } + return o.ExemptFromActionedCount, true +} + +// HasExemptFromActionedCount returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldCreateRequest) HasExemptFromActionedCount() bool { + if o != nil && !isNil(o.ExemptFromActionedCount) { + return true + } + + return false +} + +// SetExemptFromActionedCount gets a reference to the given bool and assigns it to the ExemptFromActionedCount field. +func (o *MetadataFieldMetadataFieldCreateRequest) SetExemptFromActionedCount(v bool) { + o.ExemptFromActionedCount = &v +} + +func (o MetadataFieldMetadataFieldCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetadataFieldMetadataFieldCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + toSerialize["DataType"] = o.DataType + if o.Hint.IsSet() { + toSerialize["Hint"] = o.Hint.Get() + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Options.IsSet() { + toSerialize["Options"] = o.Options.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.AllowAPI) { + toSerialize["AllowAPI"] = o.AllowAPI + } + if !isNil(o.ExplicitUpdate) { + toSerialize["ExplicitUpdate"] = o.ExplicitUpdate + } + if o.DisplayOrder.IsSet() { + toSerialize["DisplayOrder"] = o.DisplayOrder.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.ExemptFromActionedCount) { + toSerialize["ExemptFromActionedCount"] = o.ExemptFromActionedCount + } + return toSerialize, nil +} + +type NullableMetadataFieldMetadataFieldCreateRequest struct { + value *MetadataFieldMetadataFieldCreateRequest + isSet bool +} + +func (v NullableMetadataFieldMetadataFieldCreateRequest) Get() *MetadataFieldMetadataFieldCreateRequest { + return v.value +} + +func (v *NullableMetadataFieldMetadataFieldCreateRequest) Set(val *MetadataFieldMetadataFieldCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataFieldMetadataFieldCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataFieldMetadataFieldCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataFieldMetadataFieldCreateRequest(val *MetadataFieldMetadataFieldCreateRequest) *NullableMetadataFieldMetadataFieldCreateRequest { + return &NullableMetadataFieldMetadataFieldCreateRequest{value: val, isSet: true} +} + +func (v NullableMetadataFieldMetadataFieldCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataFieldMetadataFieldCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_metadata_field_metadata_field_response.go b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_response.go new file mode 100644 index 0000000..eb55cf7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_response.go @@ -0,0 +1,734 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MetadataFieldMetadataFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataFieldMetadataFieldResponse{} + +// MetadataFieldMetadataFieldResponse struct for MetadataFieldMetadataFieldResponse +type MetadataFieldMetadataFieldResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + DataType *CSSCMSCoreEnumsMetadataDataType `json:"DataType,omitempty"` + Hint NullableString `json:"Hint,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` + Message NullableString `json:"Message,omitempty"` + Options NullableString `json:"Options,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + // Deprecated + AllowAPI *bool `json:"AllowAPI,omitempty"` + // Deprecated + ExplicitUpdate *bool `json:"ExplicitUpdate,omitempty"` + DisplayOrder NullableInt32 `json:"DisplayOrder,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + ExemptFromActionedCount *bool `json:"ExemptFromActionedCount,omitempty"` +} + +// NewMetadataFieldMetadataFieldResponse instantiates a new MetadataFieldMetadataFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetadataFieldMetadataFieldResponse() *MetadataFieldMetadataFieldResponse { + this := MetadataFieldMetadataFieldResponse{} + return &this +} + +// NewMetadataFieldMetadataFieldResponseWithDefaults instantiates a new MetadataFieldMetadataFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetadataFieldMetadataFieldResponseWithDefaults() *MetadataFieldMetadataFieldResponse { + this := MetadataFieldMetadataFieldResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *MetadataFieldMetadataFieldResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *MetadataFieldMetadataFieldResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *MetadataFieldMetadataFieldResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldResponse) GetDataType() CSSCMSCoreEnumsMetadataDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSCoreEnumsMetadataDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldResponse) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSCoreEnumsMetadataDataType and assigns it to the DataType field. +func (o *MetadataFieldMetadataFieldResponse) SetDataType(v CSSCMSCoreEnumsMetadataDataType) { + o.DataType = &v +} + +// GetHint returns the Hint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetHint() string { + if o == nil || isNil(o.Hint.Get()) { + var ret string + return ret + } + return *o.Hint.Get() +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetHintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hint.Get(), o.Hint.IsSet() +} + +// HasHint returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasHint() bool { + if o != nil && o.Hint.IsSet() { + return true + } + + return false +} + +// SetHint gets a reference to the given NullableString and assigns it to the Hint field. +func (o *MetadataFieldMetadataFieldResponse) SetHint(v string) { + o.Hint.Set(&v) +} + +// SetHintNil sets the value for Hint to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetHintNil() { + o.Hint.Set(nil) +} + +// UnsetHint ensures that no value is present for Hint, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetHint() { + o.Hint.Unset() +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *MetadataFieldMetadataFieldResponse) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetValidation() { + o.Validation.Unset() +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldResponse) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldResponse) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *MetadataFieldMetadataFieldResponse) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *MetadataFieldMetadataFieldResponse) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetMessage() { + o.Message.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetOptions() string { + if o == nil || isNil(o.Options.Get()) { + var ret string + return ret + } + return *o.Options.Get() +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetOptionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Options.Get(), o.Options.IsSet() +} + +// HasOptions returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasOptions() bool { + if o != nil && o.Options.IsSet() { + return true + } + + return false +} + +// SetOptions gets a reference to the given NullableString and assigns it to the Options field. +func (o *MetadataFieldMetadataFieldResponse) SetOptions(v string) { + o.Options.Set(&v) +} + +// SetOptionsNil sets the value for Options to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetOptionsNil() { + o.Options.Set(nil) +} + +// UnsetOptions ensures that no value is present for Options, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetOptions() { + o.Options.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *MetadataFieldMetadataFieldResponse) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetAllowAPI returns the AllowAPI field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) GetAllowAPI() bool { + if o == nil || isNil(o.AllowAPI) { + var ret bool + return ret + } + return *o.AllowAPI +} + +// GetAllowAPIOk returns a tuple with the AllowAPI field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) GetAllowAPIOk() (*bool, bool) { + if o == nil || isNil(o.AllowAPI) { + return nil, false + } + return o.AllowAPI, true +} + +// HasAllowAPI returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasAllowAPI() bool { + if o != nil && !isNil(o.AllowAPI) { + return true + } + + return false +} + +// SetAllowAPI gets a reference to the given bool and assigns it to the AllowAPI field. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) SetAllowAPI(v bool) { + o.AllowAPI = &v +} + +// GetExplicitUpdate returns the ExplicitUpdate field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) GetExplicitUpdate() bool { + if o == nil || isNil(o.ExplicitUpdate) { + var ret bool + return ret + } + return *o.ExplicitUpdate +} + +// GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) GetExplicitUpdateOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitUpdate) { + return nil, false + } + return o.ExplicitUpdate, true +} + +// HasExplicitUpdate returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasExplicitUpdate() bool { + if o != nil && !isNil(o.ExplicitUpdate) { + return true + } + + return false +} + +// SetExplicitUpdate gets a reference to the given bool and assigns it to the ExplicitUpdate field. +// Deprecated +func (o *MetadataFieldMetadataFieldResponse) SetExplicitUpdate(v bool) { + o.ExplicitUpdate = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldResponse) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder.Get()) { + var ret int32 + return ret + } + return *o.DisplayOrder.Get() +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldResponse) GetDisplayOrderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DisplayOrder.Get(), o.DisplayOrder.IsSet() +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasDisplayOrder() bool { + if o != nil && o.DisplayOrder.IsSet() { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given NullableInt32 and assigns it to the DisplayOrder field. +func (o *MetadataFieldMetadataFieldResponse) SetDisplayOrder(v int32) { + o.DisplayOrder.Set(&v) +} + +// SetDisplayOrderNil sets the value for DisplayOrder to be an explicit nil +func (o *MetadataFieldMetadataFieldResponse) SetDisplayOrderNil() { + o.DisplayOrder.Set(nil) +} + +// UnsetDisplayOrder ensures that no value is present for DisplayOrder, not even an explicit nil +func (o *MetadataFieldMetadataFieldResponse) UnsetDisplayOrder() { + o.DisplayOrder.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldResponse) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldResponse) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *MetadataFieldMetadataFieldResponse) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetExemptFromActionedCount returns the ExemptFromActionedCount field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldResponse) GetExemptFromActionedCount() bool { + if o == nil || isNil(o.ExemptFromActionedCount) { + var ret bool + return ret + } + return *o.ExemptFromActionedCount +} + +// GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldResponse) GetExemptFromActionedCountOk() (*bool, bool) { + if o == nil || isNil(o.ExemptFromActionedCount) { + return nil, false + } + return o.ExemptFromActionedCount, true +} + +// HasExemptFromActionedCount returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldResponse) HasExemptFromActionedCount() bool { + if o != nil && !isNil(o.ExemptFromActionedCount) { + return true + } + + return false +} + +// SetExemptFromActionedCount gets a reference to the given bool and assigns it to the ExemptFromActionedCount field. +func (o *MetadataFieldMetadataFieldResponse) SetExemptFromActionedCount(v bool) { + o.ExemptFromActionedCount = &v +} + +func (o MetadataFieldMetadataFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetadataFieldMetadataFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if o.Hint.IsSet() { + toSerialize["Hint"] = o.Hint.Get() + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Options.IsSet() { + toSerialize["Options"] = o.Options.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.AllowAPI) { + toSerialize["AllowAPI"] = o.AllowAPI + } + if !isNil(o.ExplicitUpdate) { + toSerialize["ExplicitUpdate"] = o.ExplicitUpdate + } + if o.DisplayOrder.IsSet() { + toSerialize["DisplayOrder"] = o.DisplayOrder.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.ExemptFromActionedCount) { + toSerialize["ExemptFromActionedCount"] = o.ExemptFromActionedCount + } + return toSerialize, nil +} + +type NullableMetadataFieldMetadataFieldResponse struct { + value *MetadataFieldMetadataFieldResponse + isSet bool +} + +func (v NullableMetadataFieldMetadataFieldResponse) Get() *MetadataFieldMetadataFieldResponse { + return v.value +} + +func (v *NullableMetadataFieldMetadataFieldResponse) Set(val *MetadataFieldMetadataFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataFieldMetadataFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataFieldMetadataFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataFieldMetadataFieldResponse(val *MetadataFieldMetadataFieldResponse) *NullableMetadataFieldMetadataFieldResponse { + return &NullableMetadataFieldMetadataFieldResponse{value: val, isSet: true} +} + +func (v NullableMetadataFieldMetadataFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataFieldMetadataFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_metadata_field_metadata_field_update_request.go b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_update_request.go new file mode 100644 index 0000000..8b268c1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_metadata_field_metadata_field_update_request.go @@ -0,0 +1,656 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MetadataFieldMetadataFieldUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MetadataFieldMetadataFieldUpdateRequest{} + +// MetadataFieldMetadataFieldUpdateRequest struct for MetadataFieldMetadataFieldUpdateRequest +type MetadataFieldMetadataFieldUpdateRequest struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Description string `json:"Description"` + DataType CSSCMSCoreEnumsMetadataDataType `json:"DataType"` + Hint NullableString `json:"Hint,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` + Message NullableString `json:"Message,omitempty"` + Options NullableString `json:"Options,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + // Deprecated + AllowAPI *bool `json:"AllowAPI,omitempty"` + // Deprecated + ExplicitUpdate *bool `json:"ExplicitUpdate,omitempty"` + DisplayOrder int32 `json:"DisplayOrder"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + ExemptFromActionedCount *bool `json:"ExemptFromActionedCount,omitempty"` +} + +// NewMetadataFieldMetadataFieldUpdateRequest instantiates a new MetadataFieldMetadataFieldUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetadataFieldMetadataFieldUpdateRequest(id int32, name string, description string, dataType CSSCMSCoreEnumsMetadataDataType, displayOrder int32) *MetadataFieldMetadataFieldUpdateRequest { + this := MetadataFieldMetadataFieldUpdateRequest{} + this.Id = id + this.Name = name + this.Description = description + this.DataType = dataType + this.DisplayOrder = displayOrder + return &this +} + +// NewMetadataFieldMetadataFieldUpdateRequestWithDefaults instantiates a new MetadataFieldMetadataFieldUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetadataFieldMetadataFieldUpdateRequestWithDefaults() *MetadataFieldMetadataFieldUpdateRequest { + this := MetadataFieldMetadataFieldUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *MetadataFieldMetadataFieldUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MetadataFieldMetadataFieldUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *MetadataFieldMetadataFieldUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *MetadataFieldMetadataFieldUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *MetadataFieldMetadataFieldUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetDataType returns the DataType field value +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDataType() CSSCMSCoreEnumsMetadataDataType { + if o == nil { + var ret CSSCMSCoreEnumsMetadataDataType + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDataTypeOk() (*CSSCMSCoreEnumsMetadataDataType, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *MetadataFieldMetadataFieldUpdateRequest) SetDataType(v CSSCMSCoreEnumsMetadataDataType) { + o.DataType = v +} + +// GetHint returns the Hint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldUpdateRequest) GetHint() string { + if o == nil || isNil(o.Hint.Get()) { + var ret string + return ret + } + return *o.Hint.Get() +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldUpdateRequest) GetHintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hint.Get(), o.Hint.IsSet() +} + +// HasHint returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasHint() bool { + if o != nil && o.Hint.IsSet() { + return true + } + + return false +} + +// SetHint gets a reference to the given NullableString and assigns it to the Hint field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetHint(v string) { + o.Hint.Set(&v) +} + +// SetHintNil sets the value for Hint to be an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) SetHintNil() { + o.Hint.Set(nil) +} + +// UnsetHint ensures that no value is present for Hint, not even an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetHint() { + o.Hint.Unset() +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldUpdateRequest) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldUpdateRequest) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetValidation() { + o.Validation.Unset() +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldUpdateRequest) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetMessage() { + o.Message.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldUpdateRequest) GetOptions() string { + if o == nil || isNil(o.Options.Get()) { + var ret string + return ret + } + return *o.Options.Get() +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldUpdateRequest) GetOptionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Options.Get(), o.Options.IsSet() +} + +// HasOptions returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasOptions() bool { + if o != nil && o.Options.IsSet() { + return true + } + + return false +} + +// SetOptions gets a reference to the given NullableString and assigns it to the Options field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetOptions(v string) { + o.Options.Set(&v) +} + +// SetOptionsNil sets the value for Options to be an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) SetOptionsNil() { + o.Options.Set(nil) +} + +// UnsetOptions ensures that no value is present for Options, not even an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetOptions() { + o.Options.Unset() +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *MetadataFieldMetadataFieldUpdateRequest) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetAllowAPI returns the AllowAPI field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) GetAllowAPI() bool { + if o == nil || isNil(o.AllowAPI) { + var ret bool + return ret + } + return *o.AllowAPI +} + +// GetAllowAPIOk returns a tuple with the AllowAPI field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) GetAllowAPIOk() (*bool, bool) { + if o == nil || isNil(o.AllowAPI) { + return nil, false + } + return o.AllowAPI, true +} + +// HasAllowAPI returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasAllowAPI() bool { + if o != nil && !isNil(o.AllowAPI) { + return true + } + + return false +} + +// SetAllowAPI gets a reference to the given bool and assigns it to the AllowAPI field. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) SetAllowAPI(v bool) { + o.AllowAPI = &v +} + +// GetExplicitUpdate returns the ExplicitUpdate field value if set, zero value otherwise. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) GetExplicitUpdate() bool { + if o == nil || isNil(o.ExplicitUpdate) { + var ret bool + return ret + } + return *o.ExplicitUpdate +} + +// GetExplicitUpdateOk returns a tuple with the ExplicitUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) GetExplicitUpdateOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitUpdate) { + return nil, false + } + return o.ExplicitUpdate, true +} + +// HasExplicitUpdate returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasExplicitUpdate() bool { + if o != nil && !isNil(o.ExplicitUpdate) { + return true + } + + return false +} + +// SetExplicitUpdate gets a reference to the given bool and assigns it to the ExplicitUpdate field. +// Deprecated +func (o *MetadataFieldMetadataFieldUpdateRequest) SetExplicitUpdate(v bool) { + o.ExplicitUpdate = &v +} + +// GetDisplayOrder returns the DisplayOrder field value +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDisplayOrder() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetDisplayOrderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DisplayOrder, true +} + +// SetDisplayOrder sets field value +func (o *MetadataFieldMetadataFieldUpdateRequest) SetDisplayOrder(v int32) { + o.DisplayOrder = v +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetExemptFromActionedCount returns the ExemptFromActionedCount field value if set, zero value otherwise. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetExemptFromActionedCount() bool { + if o == nil || isNil(o.ExemptFromActionedCount) { + var ret bool + return ret + } + return *o.ExemptFromActionedCount +} + +// GetExemptFromActionedCountOk returns a tuple with the ExemptFromActionedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) GetExemptFromActionedCountOk() (*bool, bool) { + if o == nil || isNil(o.ExemptFromActionedCount) { + return nil, false + } + return o.ExemptFromActionedCount, true +} + +// HasExemptFromActionedCount returns a boolean if a field has been set. +func (o *MetadataFieldMetadataFieldUpdateRequest) HasExemptFromActionedCount() bool { + if o != nil && !isNil(o.ExemptFromActionedCount) { + return true + } + + return false +} + +// SetExemptFromActionedCount gets a reference to the given bool and assigns it to the ExemptFromActionedCount field. +func (o *MetadataFieldMetadataFieldUpdateRequest) SetExemptFromActionedCount(v bool) { + o.ExemptFromActionedCount = &v +} + +func (o MetadataFieldMetadataFieldUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MetadataFieldMetadataFieldUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + toSerialize["DataType"] = o.DataType + if o.Hint.IsSet() { + toSerialize["Hint"] = o.Hint.Get() + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if o.Options.IsSet() { + toSerialize["Options"] = o.Options.Get() + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.AllowAPI) { + toSerialize["AllowAPI"] = o.AllowAPI + } + if !isNil(o.ExplicitUpdate) { + toSerialize["ExplicitUpdate"] = o.ExplicitUpdate + } + toSerialize["DisplayOrder"] = o.DisplayOrder + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.ExemptFromActionedCount) { + toSerialize["ExemptFromActionedCount"] = o.ExemptFromActionedCount + } + return toSerialize, nil +} + +type NullableMetadataFieldMetadataFieldUpdateRequest struct { + value *MetadataFieldMetadataFieldUpdateRequest + isSet bool +} + +func (v NullableMetadataFieldMetadataFieldUpdateRequest) Get() *MetadataFieldMetadataFieldUpdateRequest { + return v.value +} + +func (v *NullableMetadataFieldMetadataFieldUpdateRequest) Set(val *MetadataFieldMetadataFieldUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMetadataFieldMetadataFieldUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMetadataFieldMetadataFieldUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetadataFieldMetadataFieldUpdateRequest(val *MetadataFieldMetadataFieldUpdateRequest) *NullableMetadataFieldMetadataFieldUpdateRequest { + return &NullableMetadataFieldMetadataFieldUpdateRequest{value: val, isSet: true} +} + +func (v NullableMetadataFieldMetadataFieldUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetadataFieldMetadataFieldUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_dashboard_request.go b/v24/api/keyfactor/v1/model_monitoring_dashboard_request.go new file mode 100644 index 0000000..71e7f10 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_dashboard_request.go @@ -0,0 +1,161 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringDashboardRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringDashboardRequest{} + +// MonitoringDashboardRequest struct for MonitoringDashboardRequest +type MonitoringDashboardRequest struct { + Show bool `json:"Show"` + WarningHours *int32 `json:"WarningHours,omitempty"` +} + +// NewMonitoringDashboardRequest instantiates a new MonitoringDashboardRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringDashboardRequest(show bool) *MonitoringDashboardRequest { + this := MonitoringDashboardRequest{} + this.Show = show + return &this +} + +// NewMonitoringDashboardRequestWithDefaults instantiates a new MonitoringDashboardRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringDashboardRequestWithDefaults() *MonitoringDashboardRequest { + this := MonitoringDashboardRequest{} + return &this +} + +// GetShow returns the Show field value +func (o *MonitoringDashboardRequest) GetShow() bool { + if o == nil { + var ret bool + return ret + } + + return o.Show +} + +// GetShowOk returns a tuple with the Show field value +// and a boolean to check if the value has been set. +func (o *MonitoringDashboardRequest) GetShowOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Show, true +} + +// SetShow sets field value +func (o *MonitoringDashboardRequest) SetShow(v bool) { + o.Show = v +} + +// GetWarningHours returns the WarningHours field value if set, zero value otherwise. +func (o *MonitoringDashboardRequest) GetWarningHours() int32 { + if o == nil || isNil(o.WarningHours) { + var ret int32 + return ret + } + return *o.WarningHours +} + +// GetWarningHoursOk returns a tuple with the WarningHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringDashboardRequest) GetWarningHoursOk() (*int32, bool) { + if o == nil || isNil(o.WarningHours) { + return nil, false + } + return o.WarningHours, true +} + +// HasWarningHours returns a boolean if a field has been set. +func (o *MonitoringDashboardRequest) HasWarningHours() bool { + if o != nil && !isNil(o.WarningHours) { + return true + } + + return false +} + +// SetWarningHours gets a reference to the given int32 and assigns it to the WarningHours field. +func (o *MonitoringDashboardRequest) SetWarningHours(v int32) { + o.WarningHours = &v +} + +func (o MonitoringDashboardRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringDashboardRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Show"] = o.Show + if !isNil(o.WarningHours) { + toSerialize["WarningHours"] = o.WarningHours + } + return toSerialize, nil +} + +type NullableMonitoringDashboardRequest struct { + value *MonitoringDashboardRequest + isSet bool +} + +func (v NullableMonitoringDashboardRequest) Get() *MonitoringDashboardRequest { + return v.value +} + +func (v *NullableMonitoringDashboardRequest) Set(val *MonitoringDashboardRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringDashboardRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringDashboardRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringDashboardRequest(val *MonitoringDashboardRequest) *NullableMonitoringDashboardRequest { + return &NullableMonitoringDashboardRequest{value: val, isSet: true} +} + +func (v NullableMonitoringDashboardRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringDashboardRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_dashboard_response.go b/v24/api/keyfactor/v1/model_monitoring_dashboard_response.go new file mode 100644 index 0000000..170d5c5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_dashboard_response.go @@ -0,0 +1,170 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringDashboardResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringDashboardResponse{} + +// MonitoringDashboardResponse struct for MonitoringDashboardResponse +type MonitoringDashboardResponse struct { + Show *bool `json:"Show,omitempty"` + WarningHours *int32 `json:"WarningHours,omitempty"` +} + +// NewMonitoringDashboardResponse instantiates a new MonitoringDashboardResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringDashboardResponse() *MonitoringDashboardResponse { + this := MonitoringDashboardResponse{} + return &this +} + +// NewMonitoringDashboardResponseWithDefaults instantiates a new MonitoringDashboardResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringDashboardResponseWithDefaults() *MonitoringDashboardResponse { + this := MonitoringDashboardResponse{} + return &this +} + +// GetShow returns the Show field value if set, zero value otherwise. +func (o *MonitoringDashboardResponse) GetShow() bool { + if o == nil || isNil(o.Show) { + var ret bool + return ret + } + return *o.Show +} + +// GetShowOk returns a tuple with the Show field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringDashboardResponse) GetShowOk() (*bool, bool) { + if o == nil || isNil(o.Show) { + return nil, false + } + return o.Show, true +} + +// HasShow returns a boolean if a field has been set. +func (o *MonitoringDashboardResponse) HasShow() bool { + if o != nil && !isNil(o.Show) { + return true + } + + return false +} + +// SetShow gets a reference to the given bool and assigns it to the Show field. +func (o *MonitoringDashboardResponse) SetShow(v bool) { + o.Show = &v +} + +// GetWarningHours returns the WarningHours field value if set, zero value otherwise. +func (o *MonitoringDashboardResponse) GetWarningHours() int32 { + if o == nil || isNil(o.WarningHours) { + var ret int32 + return ret + } + return *o.WarningHours +} + +// GetWarningHoursOk returns a tuple with the WarningHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringDashboardResponse) GetWarningHoursOk() (*int32, bool) { + if o == nil || isNil(o.WarningHours) { + return nil, false + } + return o.WarningHours, true +} + +// HasWarningHours returns a boolean if a field has been set. +func (o *MonitoringDashboardResponse) HasWarningHours() bool { + if o != nil && !isNil(o.WarningHours) { + return true + } + + return false +} + +// SetWarningHours gets a reference to the given int32 and assigns it to the WarningHours field. +func (o *MonitoringDashboardResponse) SetWarningHours(v int32) { + o.WarningHours = &v +} + +func (o MonitoringDashboardResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringDashboardResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Show) { + toSerialize["Show"] = o.Show + } + if !isNil(o.WarningHours) { + toSerialize["WarningHours"] = o.WarningHours + } + return toSerialize, nil +} + +type NullableMonitoringDashboardResponse struct { + value *MonitoringDashboardResponse + isSet bool +} + +func (v NullableMonitoringDashboardResponse) Get() *MonitoringDashboardResponse { + return v.value +} + +func (v *NullableMonitoringDashboardResponse) Set(val *MonitoringDashboardResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringDashboardResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringDashboardResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringDashboardResponse(val *MonitoringDashboardResponse) *NullableMonitoringDashboardResponse { + return &NullableMonitoringDashboardResponse{value: val, isSet: true} +} + +func (v NullableMonitoringDashboardResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringDashboardResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_email_request.go b/v24/api/keyfactor/v1/model_monitoring_email_request.go new file mode 100644 index 0000000..d685a16 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_email_request.go @@ -0,0 +1,207 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringEmailRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringEmailRequest{} + +// MonitoringEmailRequest struct for MonitoringEmailRequest +type MonitoringEmailRequest struct { + EnableReminder *bool `json:"EnableReminder,omitempty"` + WarningDays *int32 `json:"WarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` +} + +// NewMonitoringEmailRequest instantiates a new MonitoringEmailRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringEmailRequest() *MonitoringEmailRequest { + this := MonitoringEmailRequest{} + return &this +} + +// NewMonitoringEmailRequestWithDefaults instantiates a new MonitoringEmailRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringEmailRequestWithDefaults() *MonitoringEmailRequest { + this := MonitoringEmailRequest{} + return &this +} + +// GetEnableReminder returns the EnableReminder field value if set, zero value otherwise. +func (o *MonitoringEmailRequest) GetEnableReminder() bool { + if o == nil || isNil(o.EnableReminder) { + var ret bool + return ret + } + return *o.EnableReminder +} + +// GetEnableReminderOk returns a tuple with the EnableReminder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringEmailRequest) GetEnableReminderOk() (*bool, bool) { + if o == nil || isNil(o.EnableReminder) { + return nil, false + } + return o.EnableReminder, true +} + +// HasEnableReminder returns a boolean if a field has been set. +func (o *MonitoringEmailRequest) HasEnableReminder() bool { + if o != nil && !isNil(o.EnableReminder) { + return true + } + + return false +} + +// SetEnableReminder gets a reference to the given bool and assigns it to the EnableReminder field. +func (o *MonitoringEmailRequest) SetEnableReminder(v bool) { + o.EnableReminder = &v +} + +// GetWarningDays returns the WarningDays field value if set, zero value otherwise. +func (o *MonitoringEmailRequest) GetWarningDays() int32 { + if o == nil || isNil(o.WarningDays) { + var ret int32 + return ret + } + return *o.WarningDays +} + +// GetWarningDaysOk returns a tuple with the WarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringEmailRequest) GetWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.WarningDays) { + return nil, false + } + return o.WarningDays, true +} + +// HasWarningDays returns a boolean if a field has been set. +func (o *MonitoringEmailRequest) HasWarningDays() bool { + if o != nil && !isNil(o.WarningDays) { + return true + } + + return false +} + +// SetWarningDays gets a reference to the given int32 and assigns it to the WarningDays field. +func (o *MonitoringEmailRequest) SetWarningDays(v int32) { + o.WarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringEmailRequest) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringEmailRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *MonitoringEmailRequest) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *MonitoringEmailRequest) SetRecipients(v []string) { + o.Recipients = v +} + +func (o MonitoringEmailRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringEmailRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EnableReminder) { + toSerialize["EnableReminder"] = o.EnableReminder + } + if !isNil(o.WarningDays) { + toSerialize["WarningDays"] = o.WarningDays + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + return toSerialize, nil +} + +type NullableMonitoringEmailRequest struct { + value *MonitoringEmailRequest + isSet bool +} + +func (v NullableMonitoringEmailRequest) Get() *MonitoringEmailRequest { + return v.value +} + +func (v *NullableMonitoringEmailRequest) Set(val *MonitoringEmailRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringEmailRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringEmailRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringEmailRequest(val *MonitoringEmailRequest) *NullableMonitoringEmailRequest { + return &NullableMonitoringEmailRequest{value: val, isSet: true} +} + +func (v NullableMonitoringEmailRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringEmailRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_email_response.go b/v24/api/keyfactor/v1/model_monitoring_email_response.go new file mode 100644 index 0000000..ccf7545 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_email_response.go @@ -0,0 +1,207 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringEmailResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringEmailResponse{} + +// MonitoringEmailResponse struct for MonitoringEmailResponse +type MonitoringEmailResponse struct { + EnableReminder *bool `json:"EnableReminder,omitempty"` + WarningDays *int32 `json:"WarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` +} + +// NewMonitoringEmailResponse instantiates a new MonitoringEmailResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringEmailResponse() *MonitoringEmailResponse { + this := MonitoringEmailResponse{} + return &this +} + +// NewMonitoringEmailResponseWithDefaults instantiates a new MonitoringEmailResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringEmailResponseWithDefaults() *MonitoringEmailResponse { + this := MonitoringEmailResponse{} + return &this +} + +// GetEnableReminder returns the EnableReminder field value if set, zero value otherwise. +func (o *MonitoringEmailResponse) GetEnableReminder() bool { + if o == nil || isNil(o.EnableReminder) { + var ret bool + return ret + } + return *o.EnableReminder +} + +// GetEnableReminderOk returns a tuple with the EnableReminder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringEmailResponse) GetEnableReminderOk() (*bool, bool) { + if o == nil || isNil(o.EnableReminder) { + return nil, false + } + return o.EnableReminder, true +} + +// HasEnableReminder returns a boolean if a field has been set. +func (o *MonitoringEmailResponse) HasEnableReminder() bool { + if o != nil && !isNil(o.EnableReminder) { + return true + } + + return false +} + +// SetEnableReminder gets a reference to the given bool and assigns it to the EnableReminder field. +func (o *MonitoringEmailResponse) SetEnableReminder(v bool) { + o.EnableReminder = &v +} + +// GetWarningDays returns the WarningDays field value if set, zero value otherwise. +func (o *MonitoringEmailResponse) GetWarningDays() int32 { + if o == nil || isNil(o.WarningDays) { + var ret int32 + return ret + } + return *o.WarningDays +} + +// GetWarningDaysOk returns a tuple with the WarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringEmailResponse) GetWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.WarningDays) { + return nil, false + } + return o.WarningDays, true +} + +// HasWarningDays returns a boolean if a field has been set. +func (o *MonitoringEmailResponse) HasWarningDays() bool { + if o != nil && !isNil(o.WarningDays) { + return true + } + + return false +} + +// SetWarningDays gets a reference to the given int32 and assigns it to the WarningDays field. +func (o *MonitoringEmailResponse) SetWarningDays(v int32) { + o.WarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringEmailResponse) GetRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringEmailResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *MonitoringEmailResponse) HasRecipients() bool { + if o != nil && isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *MonitoringEmailResponse) SetRecipients(v []string) { + o.Recipients = v +} + +func (o MonitoringEmailResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringEmailResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EnableReminder) { + toSerialize["EnableReminder"] = o.EnableReminder + } + if !isNil(o.WarningDays) { + toSerialize["WarningDays"] = o.WarningDays + } + if o.Recipients != nil { + toSerialize["Recipients"] = o.Recipients + } + return toSerialize, nil +} + +type NullableMonitoringEmailResponse struct { + value *MonitoringEmailResponse + isSet bool +} + +func (v NullableMonitoringEmailResponse) Get() *MonitoringEmailResponse { + return v.value +} + +func (v *NullableMonitoringEmailResponse) Set(val *MonitoringEmailResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringEmailResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringEmailResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringEmailResponse(val *MonitoringEmailResponse) *NullableMonitoringEmailResponse { + return &NullableMonitoringEmailResponse{value: val, isSet: true} +} + +func (v NullableMonitoringEmailResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringEmailResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_request.go b/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_request.go new file mode 100644 index 0000000..f9df61b --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_request.go @@ -0,0 +1,427 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringOCSPParametersRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringOCSPParametersRequest{} + +// MonitoringOCSPParametersRequest struct for MonitoringOCSPParametersRequest +type MonitoringOCSPParametersRequest struct { + CertificateContents NullableString `json:"CertificateContents,omitempty"` + CertificateAuthorityId NullableInt32 `json:"CertificateAuthorityId,omitempty"` + AuthorityName NullableString `json:"AuthorityName,omitempty"` + AuthorityNameId NullableString `json:"AuthorityNameId,omitempty"` + AuthorityKeyId NullableString `json:"AuthorityKeyId,omitempty"` + SampleSerialNumber NullableString `json:"SampleSerialNumber,omitempty"` + FileName NullableString `json:"FileName,omitempty"` +} + +// NewMonitoringOCSPParametersRequest instantiates a new MonitoringOCSPParametersRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringOCSPParametersRequest() *MonitoringOCSPParametersRequest { + this := MonitoringOCSPParametersRequest{} + return &this +} + +// NewMonitoringOCSPParametersRequestWithDefaults instantiates a new MonitoringOCSPParametersRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringOCSPParametersRequestWithDefaults() *MonitoringOCSPParametersRequest { + this := MonitoringOCSPParametersRequest{} + return &this +} + +// GetCertificateContents returns the CertificateContents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetCertificateContents() string { + if o == nil || isNil(o.CertificateContents.Get()) { + var ret string + return ret + } + return *o.CertificateContents.Get() +} + +// GetCertificateContentsOk returns a tuple with the CertificateContents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetCertificateContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateContents.Get(), o.CertificateContents.IsSet() +} + +// HasCertificateContents returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasCertificateContents() bool { + if o != nil && o.CertificateContents.IsSet() { + return true + } + + return false +} + +// SetCertificateContents gets a reference to the given NullableString and assigns it to the CertificateContents field. +func (o *MonitoringOCSPParametersRequest) SetCertificateContents(v string) { + o.CertificateContents.Set(&v) +} + +// SetCertificateContentsNil sets the value for CertificateContents to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetCertificateContentsNil() { + o.CertificateContents.Set(nil) +} + +// UnsetCertificateContents ensures that no value is present for CertificateContents, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetCertificateContents() { + o.CertificateContents.Unset() +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId.Get()) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId.Get() +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthorityId.Get(), o.CertificateAuthorityId.IsSet() +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasCertificateAuthorityId() bool { + if o != nil && o.CertificateAuthorityId.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given NullableInt32 and assigns it to the CertificateAuthorityId field. +func (o *MonitoringOCSPParametersRequest) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId.Set(&v) +} + +// SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetCertificateAuthorityIdNil() { + o.CertificateAuthorityId.Set(nil) +} + +// UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetCertificateAuthorityId() { + o.CertificateAuthorityId.Unset() +} + +// GetAuthorityName returns the AuthorityName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetAuthorityName() string { + if o == nil || isNil(o.AuthorityName.Get()) { + var ret string + return ret + } + return *o.AuthorityName.Get() +} + +// GetAuthorityNameOk returns a tuple with the AuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetAuthorityNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityName.Get(), o.AuthorityName.IsSet() +} + +// HasAuthorityName returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasAuthorityName() bool { + if o != nil && o.AuthorityName.IsSet() { + return true + } + + return false +} + +// SetAuthorityName gets a reference to the given NullableString and assigns it to the AuthorityName field. +func (o *MonitoringOCSPParametersRequest) SetAuthorityName(v string) { + o.AuthorityName.Set(&v) +} + +// SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetAuthorityNameNil() { + o.AuthorityName.Set(nil) +} + +// UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetAuthorityName() { + o.AuthorityName.Unset() +} + +// GetAuthorityNameId returns the AuthorityNameId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetAuthorityNameId() string { + if o == nil || isNil(o.AuthorityNameId.Get()) { + var ret string + return ret + } + return *o.AuthorityNameId.Get() +} + +// GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetAuthorityNameIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityNameId.Get(), o.AuthorityNameId.IsSet() +} + +// HasAuthorityNameId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasAuthorityNameId() bool { + if o != nil && o.AuthorityNameId.IsSet() { + return true + } + + return false +} + +// SetAuthorityNameId gets a reference to the given NullableString and assigns it to the AuthorityNameId field. +func (o *MonitoringOCSPParametersRequest) SetAuthorityNameId(v string) { + o.AuthorityNameId.Set(&v) +} + +// SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetAuthorityNameIdNil() { + o.AuthorityNameId.Set(nil) +} + +// UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetAuthorityNameId() { + o.AuthorityNameId.Unset() +} + +// GetAuthorityKeyId returns the AuthorityKeyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetAuthorityKeyId() string { + if o == nil || isNil(o.AuthorityKeyId.Get()) { + var ret string + return ret + } + return *o.AuthorityKeyId.Get() +} + +// GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetAuthorityKeyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityKeyId.Get(), o.AuthorityKeyId.IsSet() +} + +// HasAuthorityKeyId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasAuthorityKeyId() bool { + if o != nil && o.AuthorityKeyId.IsSet() { + return true + } + + return false +} + +// SetAuthorityKeyId gets a reference to the given NullableString and assigns it to the AuthorityKeyId field. +func (o *MonitoringOCSPParametersRequest) SetAuthorityKeyId(v string) { + o.AuthorityKeyId.Set(&v) +} + +// SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetAuthorityKeyIdNil() { + o.AuthorityKeyId.Set(nil) +} + +// UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetAuthorityKeyId() { + o.AuthorityKeyId.Unset() +} + +// GetSampleSerialNumber returns the SampleSerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetSampleSerialNumber() string { + if o == nil || isNil(o.SampleSerialNumber.Get()) { + var ret string + return ret + } + return *o.SampleSerialNumber.Get() +} + +// GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetSampleSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SampleSerialNumber.Get(), o.SampleSerialNumber.IsSet() +} + +// HasSampleSerialNumber returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasSampleSerialNumber() bool { + if o != nil && o.SampleSerialNumber.IsSet() { + return true + } + + return false +} + +// SetSampleSerialNumber gets a reference to the given NullableString and assigns it to the SampleSerialNumber field. +func (o *MonitoringOCSPParametersRequest) SetSampleSerialNumber(v string) { + o.SampleSerialNumber.Set(&v) +} + +// SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetSampleSerialNumberNil() { + o.SampleSerialNumber.Set(nil) +} + +// UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetSampleSerialNumber() { + o.SampleSerialNumber.Unset() +} + +// GetFileName returns the FileName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersRequest) GetFileName() string { + if o == nil || isNil(o.FileName.Get()) { + var ret string + return ret + } + return *o.FileName.Get() +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersRequest) GetFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FileName.Get(), o.FileName.IsSet() +} + +// HasFileName returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersRequest) HasFileName() bool { + if o != nil && o.FileName.IsSet() { + return true + } + + return false +} + +// SetFileName gets a reference to the given NullableString and assigns it to the FileName field. +func (o *MonitoringOCSPParametersRequest) SetFileName(v string) { + o.FileName.Set(&v) +} + +// SetFileNameNil sets the value for FileName to be an explicit nil +func (o *MonitoringOCSPParametersRequest) SetFileNameNil() { + o.FileName.Set(nil) +} + +// UnsetFileName ensures that no value is present for FileName, not even an explicit nil +func (o *MonitoringOCSPParametersRequest) UnsetFileName() { + o.FileName.Unset() +} + +func (o MonitoringOCSPParametersRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringOCSPParametersRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CertificateContents.IsSet() { + toSerialize["CertificateContents"] = o.CertificateContents.Get() + } + if o.CertificateAuthorityId.IsSet() { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId.Get() + } + if o.AuthorityName.IsSet() { + toSerialize["AuthorityName"] = o.AuthorityName.Get() + } + if o.AuthorityNameId.IsSet() { + toSerialize["AuthorityNameId"] = o.AuthorityNameId.Get() + } + if o.AuthorityKeyId.IsSet() { + toSerialize["AuthorityKeyId"] = o.AuthorityKeyId.Get() + } + if o.SampleSerialNumber.IsSet() { + toSerialize["SampleSerialNumber"] = o.SampleSerialNumber.Get() + } + if o.FileName.IsSet() { + toSerialize["FileName"] = o.FileName.Get() + } + return toSerialize, nil +} + +type NullableMonitoringOCSPParametersRequest struct { + value *MonitoringOCSPParametersRequest + isSet bool +} + +func (v NullableMonitoringOCSPParametersRequest) Get() *MonitoringOCSPParametersRequest { + return v.value +} + +func (v *NullableMonitoringOCSPParametersRequest) Set(val *MonitoringOCSPParametersRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringOCSPParametersRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringOCSPParametersRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringOCSPParametersRequest(val *MonitoringOCSPParametersRequest) *NullableMonitoringOCSPParametersRequest { + return &NullableMonitoringOCSPParametersRequest{value: val, isSet: true} +} + +func (v NullableMonitoringOCSPParametersRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringOCSPParametersRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_response.go b/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_response.go new file mode 100644 index 0000000..6ca2ef1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_ocsp_parameters_response.go @@ -0,0 +1,380 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringOCSPParametersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringOCSPParametersResponse{} + +// MonitoringOCSPParametersResponse struct for MonitoringOCSPParametersResponse +type MonitoringOCSPParametersResponse struct { + CertificateAuthorityId NullableInt32 `json:"CertificateAuthorityId,omitempty"` + AuthorityName NullableString `json:"AuthorityName,omitempty"` + AuthorityNameId NullableString `json:"AuthorityNameId,omitempty"` + AuthorityKeyId NullableString `json:"AuthorityKeyId,omitempty"` + SampleSerialNumber NullableString `json:"SampleSerialNumber,omitempty"` + FileName NullableString `json:"FileName,omitempty"` +} + +// NewMonitoringOCSPParametersResponse instantiates a new MonitoringOCSPParametersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringOCSPParametersResponse() *MonitoringOCSPParametersResponse { + this := MonitoringOCSPParametersResponse{} + return &this +} + +// NewMonitoringOCSPParametersResponseWithDefaults instantiates a new MonitoringOCSPParametersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringOCSPParametersResponseWithDefaults() *MonitoringOCSPParametersResponse { + this := MonitoringOCSPParametersResponse{} + return &this +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId.Get()) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId.Get() +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthorityId.Get(), o.CertificateAuthorityId.IsSet() +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasCertificateAuthorityId() bool { + if o != nil && o.CertificateAuthorityId.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given NullableInt32 and assigns it to the CertificateAuthorityId field. +func (o *MonitoringOCSPParametersResponse) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId.Set(&v) +} + +// SetCertificateAuthorityIdNil sets the value for CertificateAuthorityId to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetCertificateAuthorityIdNil() { + o.CertificateAuthorityId.Set(nil) +} + +// UnsetCertificateAuthorityId ensures that no value is present for CertificateAuthorityId, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetCertificateAuthorityId() { + o.CertificateAuthorityId.Unset() +} + +// GetAuthorityName returns the AuthorityName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetAuthorityName() string { + if o == nil || isNil(o.AuthorityName.Get()) { + var ret string + return ret + } + return *o.AuthorityName.Get() +} + +// GetAuthorityNameOk returns a tuple with the AuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetAuthorityNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityName.Get(), o.AuthorityName.IsSet() +} + +// HasAuthorityName returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasAuthorityName() bool { + if o != nil && o.AuthorityName.IsSet() { + return true + } + + return false +} + +// SetAuthorityName gets a reference to the given NullableString and assigns it to the AuthorityName field. +func (o *MonitoringOCSPParametersResponse) SetAuthorityName(v string) { + o.AuthorityName.Set(&v) +} + +// SetAuthorityNameNil sets the value for AuthorityName to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetAuthorityNameNil() { + o.AuthorityName.Set(nil) +} + +// UnsetAuthorityName ensures that no value is present for AuthorityName, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetAuthorityName() { + o.AuthorityName.Unset() +} + +// GetAuthorityNameId returns the AuthorityNameId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetAuthorityNameId() string { + if o == nil || isNil(o.AuthorityNameId.Get()) { + var ret string + return ret + } + return *o.AuthorityNameId.Get() +} + +// GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetAuthorityNameIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityNameId.Get(), o.AuthorityNameId.IsSet() +} + +// HasAuthorityNameId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasAuthorityNameId() bool { + if o != nil && o.AuthorityNameId.IsSet() { + return true + } + + return false +} + +// SetAuthorityNameId gets a reference to the given NullableString and assigns it to the AuthorityNameId field. +func (o *MonitoringOCSPParametersResponse) SetAuthorityNameId(v string) { + o.AuthorityNameId.Set(&v) +} + +// SetAuthorityNameIdNil sets the value for AuthorityNameId to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetAuthorityNameIdNil() { + o.AuthorityNameId.Set(nil) +} + +// UnsetAuthorityNameId ensures that no value is present for AuthorityNameId, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetAuthorityNameId() { + o.AuthorityNameId.Unset() +} + +// GetAuthorityKeyId returns the AuthorityKeyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetAuthorityKeyId() string { + if o == nil || isNil(o.AuthorityKeyId.Get()) { + var ret string + return ret + } + return *o.AuthorityKeyId.Get() +} + +// GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetAuthorityKeyIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthorityKeyId.Get(), o.AuthorityKeyId.IsSet() +} + +// HasAuthorityKeyId returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasAuthorityKeyId() bool { + if o != nil && o.AuthorityKeyId.IsSet() { + return true + } + + return false +} + +// SetAuthorityKeyId gets a reference to the given NullableString and assigns it to the AuthorityKeyId field. +func (o *MonitoringOCSPParametersResponse) SetAuthorityKeyId(v string) { + o.AuthorityKeyId.Set(&v) +} + +// SetAuthorityKeyIdNil sets the value for AuthorityKeyId to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetAuthorityKeyIdNil() { + o.AuthorityKeyId.Set(nil) +} + +// UnsetAuthorityKeyId ensures that no value is present for AuthorityKeyId, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetAuthorityKeyId() { + o.AuthorityKeyId.Unset() +} + +// GetSampleSerialNumber returns the SampleSerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetSampleSerialNumber() string { + if o == nil || isNil(o.SampleSerialNumber.Get()) { + var ret string + return ret + } + return *o.SampleSerialNumber.Get() +} + +// GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetSampleSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SampleSerialNumber.Get(), o.SampleSerialNumber.IsSet() +} + +// HasSampleSerialNumber returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasSampleSerialNumber() bool { + if o != nil && o.SampleSerialNumber.IsSet() { + return true + } + + return false +} + +// SetSampleSerialNumber gets a reference to the given NullableString and assigns it to the SampleSerialNumber field. +func (o *MonitoringOCSPParametersResponse) SetSampleSerialNumber(v string) { + o.SampleSerialNumber.Set(&v) +} + +// SetSampleSerialNumberNil sets the value for SampleSerialNumber to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetSampleSerialNumberNil() { + o.SampleSerialNumber.Set(nil) +} + +// UnsetSampleSerialNumber ensures that no value is present for SampleSerialNumber, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetSampleSerialNumber() { + o.SampleSerialNumber.Unset() +} + +// GetFileName returns the FileName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringOCSPParametersResponse) GetFileName() string { + if o == nil || isNil(o.FileName.Get()) { + var ret string + return ret + } + return *o.FileName.Get() +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringOCSPParametersResponse) GetFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FileName.Get(), o.FileName.IsSet() +} + +// HasFileName returns a boolean if a field has been set. +func (o *MonitoringOCSPParametersResponse) HasFileName() bool { + if o != nil && o.FileName.IsSet() { + return true + } + + return false +} + +// SetFileName gets a reference to the given NullableString and assigns it to the FileName field. +func (o *MonitoringOCSPParametersResponse) SetFileName(v string) { + o.FileName.Set(&v) +} + +// SetFileNameNil sets the value for FileName to be an explicit nil +func (o *MonitoringOCSPParametersResponse) SetFileNameNil() { + o.FileName.Set(nil) +} + +// UnsetFileName ensures that no value is present for FileName, not even an explicit nil +func (o *MonitoringOCSPParametersResponse) UnsetFileName() { + o.FileName.Unset() +} + +func (o MonitoringOCSPParametersResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringOCSPParametersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CertificateAuthorityId.IsSet() { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId.Get() + } + if o.AuthorityName.IsSet() { + toSerialize["AuthorityName"] = o.AuthorityName.Get() + } + if o.AuthorityNameId.IsSet() { + toSerialize["AuthorityNameId"] = o.AuthorityNameId.Get() + } + if o.AuthorityKeyId.IsSet() { + toSerialize["AuthorityKeyId"] = o.AuthorityKeyId.Get() + } + if o.SampleSerialNumber.IsSet() { + toSerialize["SampleSerialNumber"] = o.SampleSerialNumber.Get() + } + if o.FileName.IsSet() { + toSerialize["FileName"] = o.FileName.Get() + } + return toSerialize, nil +} + +type NullableMonitoringOCSPParametersResponse struct { + value *MonitoringOCSPParametersResponse + isSet bool +} + +func (v NullableMonitoringOCSPParametersResponse) Get() *MonitoringOCSPParametersResponse { + return v.value +} + +func (v *NullableMonitoringOCSPParametersResponse) Set(val *MonitoringOCSPParametersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringOCSPParametersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringOCSPParametersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringOCSPParametersResponse(val *MonitoringOCSPParametersResponse) *NullableMonitoringOCSPParametersResponse { + return &NullableMonitoringOCSPParametersResponse{value: val, isSet: true} +} + +func (v NullableMonitoringOCSPParametersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringOCSPParametersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_all_request.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_all_request.go new file mode 100644 index 0000000..6cde2e3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_all_request.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the MonitoringRevocationMonitoringAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringAlertTestAllRequest{} + +// MonitoringRevocationMonitoringAlertTestAllRequest struct for MonitoringRevocationMonitoringAlertTestAllRequest +type MonitoringRevocationMonitoringAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewMonitoringRevocationMonitoringAlertTestAllRequest instantiates a new MonitoringRevocationMonitoringAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringAlertTestAllRequest() *MonitoringRevocationMonitoringAlertTestAllRequest { + this := MonitoringRevocationMonitoringAlertTestAllRequest{} + return &this +} + +// NewMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults() *MonitoringRevocationMonitoringAlertTestAllRequest { + this := MonitoringRevocationMonitoringAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *MonitoringRevocationMonitoringAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o MonitoringRevocationMonitoringAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringAlertTestAllRequest struct { + value *MonitoringRevocationMonitoringAlertTestAllRequest + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringAlertTestAllRequest) Get() *MonitoringRevocationMonitoringAlertTestAllRequest { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestAllRequest) Set(val *MonitoringRevocationMonitoringAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringAlertTestAllRequest(val *MonitoringRevocationMonitoringAlertTestAllRequest) *NullableMonitoringRevocationMonitoringAlertTestAllRequest { + return &NullableMonitoringRevocationMonitoringAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_request.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_request.go new file mode 100644 index 0000000..3814b6a --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_request.go @@ -0,0 +1,207 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the MonitoringRevocationMonitoringAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringAlertTestRequest{} + +// MonitoringRevocationMonitoringAlertTestRequest struct for MonitoringRevocationMonitoringAlertTestRequest +type MonitoringRevocationMonitoringAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` +} + +// NewMonitoringRevocationMonitoringAlertTestRequest instantiates a new MonitoringRevocationMonitoringAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringAlertTestRequest() *MonitoringRevocationMonitoringAlertTestRequest { + this := MonitoringRevocationMonitoringAlertTestRequest{} + return &this +} + +// NewMonitoringRevocationMonitoringAlertTestRequestWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringAlertTestRequestWithDefaults() *MonitoringRevocationMonitoringAlertTestRequest { + this := MonitoringRevocationMonitoringAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *MonitoringRevocationMonitoringAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *MonitoringRevocationMonitoringAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *MonitoringRevocationMonitoringAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o MonitoringRevocationMonitoringAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringAlertTestRequest struct { + value *MonitoringRevocationMonitoringAlertTestRequest + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringAlertTestRequest) Get() *MonitoringRevocationMonitoringAlertTestRequest { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestRequest) Set(val *MonitoringRevocationMonitoringAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringAlertTestRequest(val *MonitoringRevocationMonitoringAlertTestRequest) *NullableMonitoringRevocationMonitoringAlertTestRequest { + return &NullableMonitoringRevocationMonitoringAlertTestRequest{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_response.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_response.go new file mode 100644 index 0000000..5305550 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_alert_test_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringRevocationMonitoringAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringAlertTestResponse{} + +// MonitoringRevocationMonitoringAlertTestResponse struct for MonitoringRevocationMonitoringAlertTestResponse +type MonitoringRevocationMonitoringAlertTestResponse struct { + RevocationMonitoringAlerts []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse `json:"RevocationMonitoringAlerts,omitempty"` + AlertBuildResult *CSSCMSDataModelEnumsAlertBuildResult `json:"AlertBuildResult,omitempty"` +} + +// NewMonitoringRevocationMonitoringAlertTestResponse instantiates a new MonitoringRevocationMonitoringAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringAlertTestResponse() *MonitoringRevocationMonitoringAlertTestResponse { + this := MonitoringRevocationMonitoringAlertTestResponse{} + return &this +} + +// NewMonitoringRevocationMonitoringAlertTestResponseWithDefaults instantiates a new MonitoringRevocationMonitoringAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringAlertTestResponseWithDefaults() *MonitoringRevocationMonitoringAlertTestResponse { + this := MonitoringRevocationMonitoringAlertTestResponse{} + return &this +} + +// GetRevocationMonitoringAlerts returns the RevocationMonitoringAlerts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlerts() []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse { + if o == nil { + var ret []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse + return ret + } + return o.RevocationMonitoringAlerts +} + +// GetRevocationMonitoringAlertsOk returns a tuple with the RevocationMonitoringAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlertsOk() ([]CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse, bool) { + if o == nil || isNil(o.RevocationMonitoringAlerts) { + return nil, false + } + return o.RevocationMonitoringAlerts, true +} + +// HasRevocationMonitoringAlerts returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestResponse) HasRevocationMonitoringAlerts() bool { + if o != nil && isNil(o.RevocationMonitoringAlerts) { + return true + } + + return false +} + +// SetRevocationMonitoringAlerts gets a reference to the given []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse and assigns it to the RevocationMonitoringAlerts field. +func (o *MonitoringRevocationMonitoringAlertTestResponse) SetRevocationMonitoringAlerts(v []CSSCMSDataModelModelsMonitoringRevocationMonitoringAlertResponse) { + o.RevocationMonitoringAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResult() CSSCMSDataModelEnumsAlertBuildResult { + if o == nil || isNil(o.AlertBuildResult) { + var ret CSSCMSDataModelEnumsAlertBuildResult + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResultOk() (*CSSCMSDataModelEnumsAlertBuildResult, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given CSSCMSDataModelEnumsAlertBuildResult and assigns it to the AlertBuildResult field. +func (o *MonitoringRevocationMonitoringAlertTestResponse) SetAlertBuildResult(v CSSCMSDataModelEnumsAlertBuildResult) { + o.AlertBuildResult = &v +} + +func (o MonitoringRevocationMonitoringAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.RevocationMonitoringAlerts != nil { + toSerialize["RevocationMonitoringAlerts"] = o.RevocationMonitoringAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringAlertTestResponse struct { + value *MonitoringRevocationMonitoringAlertTestResponse + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringAlertTestResponse) Get() *MonitoringRevocationMonitoringAlertTestResponse { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestResponse) Set(val *MonitoringRevocationMonitoringAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringAlertTestResponse(val *MonitoringRevocationMonitoringAlertTestResponse) *NullableMonitoringRevocationMonitoringAlertTestResponse { + return &NullableMonitoringRevocationMonitoringAlertTestResponse{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_creation_request.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_creation_request.go new file mode 100644 index 0000000..7f954b8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_creation_request.go @@ -0,0 +1,350 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringRevocationMonitoringCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringCreationRequest{} + +// MonitoringRevocationMonitoringCreationRequest struct for MonitoringRevocationMonitoringCreationRequest +type MonitoringRevocationMonitoringCreationRequest struct { + Name string `json:"Name"` + EndpointType string `json:"EndpointType"` + Location string `json:"Location"` + Email *MonitoringEmailRequest `json:"Email,omitempty"` + Dashboard MonitoringDashboardRequest `json:"Dashboard"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *MonitoringOCSPParametersRequest `json:"OCSPParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewMonitoringRevocationMonitoringCreationRequest instantiates a new MonitoringRevocationMonitoringCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringCreationRequest(name string, endpointType string, location string, dashboard MonitoringDashboardRequest) *MonitoringRevocationMonitoringCreationRequest { + this := MonitoringRevocationMonitoringCreationRequest{} + this.Name = name + this.EndpointType = endpointType + this.Location = location + this.Dashboard = dashboard + return &this +} + +// NewMonitoringRevocationMonitoringCreationRequestWithDefaults instantiates a new MonitoringRevocationMonitoringCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringCreationRequestWithDefaults() *MonitoringRevocationMonitoringCreationRequest { + this := MonitoringRevocationMonitoringCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *MonitoringRevocationMonitoringCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *MonitoringRevocationMonitoringCreationRequest) SetName(v string) { + o.Name = v +} + +// GetEndpointType returns the EndpointType field value +func (o *MonitoringRevocationMonitoringCreationRequest) GetEndpointType() string { + if o == nil { + var ret string + return ret + } + + return o.EndpointType +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetEndpointTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndpointType, true +} + +// SetEndpointType sets field value +func (o *MonitoringRevocationMonitoringCreationRequest) SetEndpointType(v string) { + o.EndpointType = v +} + +// GetLocation returns the Location field value +func (o *MonitoringRevocationMonitoringCreationRequest) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *MonitoringRevocationMonitoringCreationRequest) SetLocation(v string) { + o.Location = v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringCreationRequest) GetEmail() MonitoringEmailRequest { + if o == nil || isNil(o.Email) { + var ret MonitoringEmailRequest + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetEmailOk() (*MonitoringEmailRequest, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given MonitoringEmailRequest and assigns it to the Email field. +func (o *MonitoringRevocationMonitoringCreationRequest) SetEmail(v MonitoringEmailRequest) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value +func (o *MonitoringRevocationMonitoringCreationRequest) GetDashboard() MonitoringDashboardRequest { + if o == nil { + var ret MonitoringDashboardRequest + return ret + } + + return o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetDashboardOk() (*MonitoringDashboardRequest, bool) { + if o == nil { + return nil, false + } + return &o.Dashboard, true +} + +// SetDashboard sets field value +func (o *MonitoringRevocationMonitoringCreationRequest) SetDashboard(v MonitoringDashboardRequest) { + o.Dashboard = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringCreationRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *MonitoringRevocationMonitoringCreationRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringCreationRequest) GetOCSPParameters() MonitoringOCSPParametersRequest { + if o == nil || isNil(o.OCSPParameters) { + var ret MonitoringOCSPParametersRequest + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetOCSPParametersOk() (*MonitoringOCSPParametersRequest, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given MonitoringOCSPParametersRequest and assigns it to the OCSPParameters field. +func (o *MonitoringRevocationMonitoringCreationRequest) SetOCSPParameters(v MonitoringOCSPParametersRequest) { + o.OCSPParameters = &v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringCreationRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringCreationRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *MonitoringRevocationMonitoringCreationRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o MonitoringRevocationMonitoringCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["EndpointType"] = o.EndpointType + toSerialize["Location"] = o.Location + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + toSerialize["Dashboard"] = o.Dashboard + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringCreationRequest struct { + value *MonitoringRevocationMonitoringCreationRequest + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringCreationRequest) Get() *MonitoringRevocationMonitoringCreationRequest { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringCreationRequest) Set(val *MonitoringRevocationMonitoringCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringCreationRequest(val *MonitoringRevocationMonitoringCreationRequest) *NullableMonitoringRevocationMonitoringCreationRequest { + return &NullableMonitoringRevocationMonitoringCreationRequest{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_definition_response.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_definition_response.go new file mode 100644 index 0000000..b000532 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_definition_response.go @@ -0,0 +1,643 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringRevocationMonitoringDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringDefinitionResponse{} + +// MonitoringRevocationMonitoringDefinitionResponse struct for MonitoringRevocationMonitoringDefinitionResponse +type MonitoringRevocationMonitoringDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + EndpointType NullableString `json:"EndpointType,omitempty"` + Location NullableString `json:"Location,omitempty"` + Email *MonitoringEmailResponse `json:"Email,omitempty"` + Dashboard *MonitoringDashboardResponse `json:"Dashboard,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *MonitoringOCSPParametersResponse `json:"OCSPParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` + WorkflowId NullableString `json:"WorkflowId,omitempty"` + WorkflowName NullableString `json:"WorkflowName,omitempty"` + WorkflowPublishedVersion NullableInt32 `json:"WorkflowPublishedVersion,omitempty"` + WorkflowEnabled NullableBool `json:"WorkflowEnabled,omitempty"` +} + +// NewMonitoringRevocationMonitoringDefinitionResponse instantiates a new MonitoringRevocationMonitoringDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringDefinitionResponse() *MonitoringRevocationMonitoringDefinitionResponse { + this := MonitoringRevocationMonitoringDefinitionResponse{} + return &this +} + +// NewMonitoringRevocationMonitoringDefinitionResponseWithDefaults instantiates a new MonitoringRevocationMonitoringDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringDefinitionResponseWithDefaults() *MonitoringRevocationMonitoringDefinitionResponse { + this := MonitoringRevocationMonitoringDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetName() { + o.Name.Unset() +} + +// GetEndpointType returns the EndpointType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEndpointType() string { + if o == nil || isNil(o.EndpointType.Get()) { + var ret string + return ret + } + return *o.EndpointType.Get() +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEndpointTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EndpointType.Get(), o.EndpointType.IsSet() +} + +// HasEndpointType returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasEndpointType() bool { + if o != nil && o.EndpointType.IsSet() { + return true + } + + return false +} + +// SetEndpointType gets a reference to the given NullableString and assigns it to the EndpointType field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEndpointType(v string) { + o.EndpointType.Set(&v) +} + +// SetEndpointTypeNil sets the value for EndpointType to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEndpointTypeNil() { + o.EndpointType.Set(nil) +} + +// UnsetEndpointType ensures that no value is present for EndpointType, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetEndpointType() { + o.EndpointType.Unset() +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetLocation() string { + if o == nil || isNil(o.Location.Get()) { + var ret string + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableString and assigns it to the Location field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetLocation(v string) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetLocation() { + o.Location.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEmail() MonitoringEmailResponse { + if o == nil || isNil(o.Email) { + var ret MonitoringEmailResponse + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetEmailOk() (*MonitoringEmailResponse, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given MonitoringEmailResponse and assigns it to the Email field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetEmail(v MonitoringEmailResponse) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetDashboard() MonitoringDashboardResponse { + if o == nil || isNil(o.Dashboard) { + var ret MonitoringDashboardResponse + return ret + } + return *o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetDashboardOk() (*MonitoringDashboardResponse, bool) { + if o == nil || isNil(o.Dashboard) { + return nil, false + } + return o.Dashboard, true +} + +// HasDashboard returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasDashboard() bool { + if o != nil && !isNil(o.Dashboard) { + return true + } + + return false +} + +// SetDashboard gets a reference to the given MonitoringDashboardResponse and assigns it to the Dashboard field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetDashboard(v MonitoringDashboardResponse) { + o.Dashboard = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetOCSPParameters() MonitoringOCSPParametersResponse { + if o == nil || isNil(o.OCSPParameters) { + var ret MonitoringOCSPParametersResponse + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetOCSPParametersOk() (*MonitoringOCSPParametersResponse, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given MonitoringOCSPParametersResponse and assigns it to the OCSPParameters field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetOCSPParameters(v MonitoringOCSPParametersResponse) { + o.OCSPParameters = &v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowId() string { + if o == nil || isNil(o.WorkflowId.Get()) { + var ret string + return ret + } + return *o.WorkflowId.Get() +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowId.Get(), o.WorkflowId.IsSet() +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowId() bool { + if o != nil && o.WorkflowId.IsSet() { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given NullableString and assigns it to the WorkflowId field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowId(v string) { + o.WorkflowId.Set(&v) +} + +// SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowIdNil() { + o.WorkflowId.Set(nil) +} + +// UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowId() { + o.WorkflowId.Unset() +} + +// GetWorkflowName returns the WorkflowName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowName() string { + if o == nil || isNil(o.WorkflowName.Get()) { + var ret string + return ret + } + return *o.WorkflowName.Get() +} + +// GetWorkflowNameOk returns a tuple with the WorkflowName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowName.Get(), o.WorkflowName.IsSet() +} + +// HasWorkflowName returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowName() bool { + if o != nil && o.WorkflowName.IsSet() { + return true + } + + return false +} + +// SetWorkflowName gets a reference to the given NullableString and assigns it to the WorkflowName field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowName(v string) { + o.WorkflowName.Set(&v) +} + +// SetWorkflowNameNil sets the value for WorkflowName to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowNameNil() { + o.WorkflowName.Set(nil) +} + +// UnsetWorkflowName ensures that no value is present for WorkflowName, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowName() { + o.WorkflowName.Unset() +} + +// GetWorkflowPublishedVersion returns the WorkflowPublishedVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowPublishedVersion() int32 { + if o == nil || isNil(o.WorkflowPublishedVersion.Get()) { + var ret int32 + return ret + } + return *o.WorkflowPublishedVersion.Get() +} + +// GetWorkflowPublishedVersionOk returns a tuple with the WorkflowPublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowPublishedVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.WorkflowPublishedVersion.Get(), o.WorkflowPublishedVersion.IsSet() +} + +// HasWorkflowPublishedVersion returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowPublishedVersion() bool { + if o != nil && o.WorkflowPublishedVersion.IsSet() { + return true + } + + return false +} + +// SetWorkflowPublishedVersion gets a reference to the given NullableInt32 and assigns it to the WorkflowPublishedVersion field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowPublishedVersion(v int32) { + o.WorkflowPublishedVersion.Set(&v) +} + +// SetWorkflowPublishedVersionNil sets the value for WorkflowPublishedVersion to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowPublishedVersionNil() { + o.WorkflowPublishedVersion.Set(nil) +} + +// UnsetWorkflowPublishedVersion ensures that no value is present for WorkflowPublishedVersion, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowPublishedVersion() { + o.WorkflowPublishedVersion.Unset() +} + +// GetWorkflowEnabled returns the WorkflowEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowEnabled() bool { + if o == nil || isNil(o.WorkflowEnabled.Get()) { + var ret bool + return ret + } + return *o.WorkflowEnabled.Get() +} + +// GetWorkflowEnabledOk returns a tuple with the WorkflowEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MonitoringRevocationMonitoringDefinitionResponse) GetWorkflowEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.WorkflowEnabled.Get(), o.WorkflowEnabled.IsSet() +} + +// HasWorkflowEnabled returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringDefinitionResponse) HasWorkflowEnabled() bool { + if o != nil && o.WorkflowEnabled.IsSet() { + return true + } + + return false +} + +// SetWorkflowEnabled gets a reference to the given NullableBool and assigns it to the WorkflowEnabled field. +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowEnabled(v bool) { + o.WorkflowEnabled.Set(&v) +} + +// SetWorkflowEnabledNil sets the value for WorkflowEnabled to be an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) SetWorkflowEnabledNil() { + o.WorkflowEnabled.Set(nil) +} + +// UnsetWorkflowEnabled ensures that no value is present for WorkflowEnabled, not even an explicit nil +func (o *MonitoringRevocationMonitoringDefinitionResponse) UnsetWorkflowEnabled() { + o.WorkflowEnabled.Unset() +} + +func (o MonitoringRevocationMonitoringDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.EndpointType.IsSet() { + toSerialize["EndpointType"] = o.EndpointType.Get() + } + if o.Location.IsSet() { + toSerialize["Location"] = o.Location.Get() + } + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + if !isNil(o.Dashboard) { + toSerialize["Dashboard"] = o.Dashboard + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + if o.WorkflowId.IsSet() { + toSerialize["WorkflowId"] = o.WorkflowId.Get() + } + if o.WorkflowName.IsSet() { + toSerialize["WorkflowName"] = o.WorkflowName.Get() + } + if o.WorkflowPublishedVersion.IsSet() { + toSerialize["WorkflowPublishedVersion"] = o.WorkflowPublishedVersion.Get() + } + if o.WorkflowEnabled.IsSet() { + toSerialize["WorkflowEnabled"] = o.WorkflowEnabled.Get() + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringDefinitionResponse struct { + value *MonitoringRevocationMonitoringDefinitionResponse + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringDefinitionResponse) Get() *MonitoringRevocationMonitoringDefinitionResponse { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringDefinitionResponse) Set(val *MonitoringRevocationMonitoringDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringDefinitionResponse(val *MonitoringRevocationMonitoringDefinitionResponse) *NullableMonitoringRevocationMonitoringDefinitionResponse { + return &NullableMonitoringRevocationMonitoringDefinitionResponse{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_request.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_request.go new file mode 100644 index 0000000..3690197 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_request.go @@ -0,0 +1,386 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringRevocationMonitoringUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringUpdateRequest{} + +// MonitoringRevocationMonitoringUpdateRequest struct for MonitoringRevocationMonitoringUpdateRequest +type MonitoringRevocationMonitoringUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + Name string `json:"Name"` + EndpointType string `json:"EndpointType"` + Location string `json:"Location"` + Email *MonitoringEmailRequest `json:"Email,omitempty"` + Dashboard MonitoringDashboardRequest `json:"Dashboard"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *MonitoringOCSPParametersRequest `json:"OCSPParameters,omitempty"` + UseWorkflows *bool `json:"UseWorkflows,omitempty"` +} + +// NewMonitoringRevocationMonitoringUpdateRequest instantiates a new MonitoringRevocationMonitoringUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringUpdateRequest(name string, endpointType string, location string, dashboard MonitoringDashboardRequest) *MonitoringRevocationMonitoringUpdateRequest { + this := MonitoringRevocationMonitoringUpdateRequest{} + this.Name = name + this.EndpointType = endpointType + this.Location = location + this.Dashboard = dashboard + return &this +} + +// NewMonitoringRevocationMonitoringUpdateRequestWithDefaults instantiates a new MonitoringRevocationMonitoringUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringUpdateRequestWithDefaults() *MonitoringRevocationMonitoringUpdateRequest { + this := MonitoringRevocationMonitoringUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *MonitoringRevocationMonitoringUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value +func (o *MonitoringRevocationMonitoringUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *MonitoringRevocationMonitoringUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetEndpointType returns the EndpointType field value +func (o *MonitoringRevocationMonitoringUpdateRequest) GetEndpointType() string { + if o == nil { + var ret string + return ret + } + + return o.EndpointType +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetEndpointTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndpointType, true +} + +// SetEndpointType sets field value +func (o *MonitoringRevocationMonitoringUpdateRequest) SetEndpointType(v string) { + o.EndpointType = v +} + +// GetLocation returns the Location field value +func (o *MonitoringRevocationMonitoringUpdateRequest) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *MonitoringRevocationMonitoringUpdateRequest) SetLocation(v string) { + o.Location = v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetEmail() MonitoringEmailRequest { + if o == nil || isNil(o.Email) { + var ret MonitoringEmailRequest + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetEmailOk() (*MonitoringEmailRequest, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given MonitoringEmailRequest and assigns it to the Email field. +func (o *MonitoringRevocationMonitoringUpdateRequest) SetEmail(v MonitoringEmailRequest) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value +func (o *MonitoringRevocationMonitoringUpdateRequest) GetDashboard() MonitoringDashboardRequest { + if o == nil { + var ret MonitoringDashboardRequest + return ret + } + + return o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetDashboardOk() (*MonitoringDashboardRequest, bool) { + if o == nil { + return nil, false + } + return &o.Dashboard, true +} + +// SetDashboard sets field value +func (o *MonitoringRevocationMonitoringUpdateRequest) SetDashboard(v MonitoringDashboardRequest) { + o.Dashboard = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *MonitoringRevocationMonitoringUpdateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetOCSPParameters() MonitoringOCSPParametersRequest { + if o == nil || isNil(o.OCSPParameters) { + var ret MonitoringOCSPParametersRequest + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetOCSPParametersOk() (*MonitoringOCSPParametersRequest, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given MonitoringOCSPParametersRequest and assigns it to the OCSPParameters field. +func (o *MonitoringRevocationMonitoringUpdateRequest) SetOCSPParameters(v MonitoringOCSPParametersRequest) { + o.OCSPParameters = &v +} + +// GetUseWorkflows returns the UseWorkflows field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetUseWorkflows() bool { + if o == nil || isNil(o.UseWorkflows) { + var ret bool + return ret + } + return *o.UseWorkflows +} + +// GetUseWorkflowsOk returns a tuple with the UseWorkflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) GetUseWorkflowsOk() (*bool, bool) { + if o == nil || isNil(o.UseWorkflows) { + return nil, false + } + return o.UseWorkflows, true +} + +// HasUseWorkflows returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateRequest) HasUseWorkflows() bool { + if o != nil && !isNil(o.UseWorkflows) { + return true + } + + return false +} + +// SetUseWorkflows gets a reference to the given bool and assigns it to the UseWorkflows field. +func (o *MonitoringRevocationMonitoringUpdateRequest) SetUseWorkflows(v bool) { + o.UseWorkflows = &v +} + +func (o MonitoringRevocationMonitoringUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Name"] = o.Name + toSerialize["EndpointType"] = o.EndpointType + toSerialize["Location"] = o.Location + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + toSerialize["Dashboard"] = o.Dashboard + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + if !isNil(o.UseWorkflows) { + toSerialize["UseWorkflows"] = o.UseWorkflows + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringUpdateRequest struct { + value *MonitoringRevocationMonitoringUpdateRequest + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringUpdateRequest) Get() *MonitoringRevocationMonitoringUpdateRequest { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringUpdateRequest) Set(val *MonitoringRevocationMonitoringUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringUpdateRequest(val *MonitoringRevocationMonitoringUpdateRequest) *NullableMonitoringRevocationMonitoringUpdateRequest { + return &NullableMonitoringRevocationMonitoringUpdateRequest{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_schedule_request.go b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_schedule_request.go new file mode 100644 index 0000000..0d7eb37 --- /dev/null +++ b/v24/api/keyfactor/v1/model_monitoring_revocation_monitoring_update_schedule_request.go @@ -0,0 +1,161 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the MonitoringRevocationMonitoringUpdateScheduleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MonitoringRevocationMonitoringUpdateScheduleRequest{} + +// MonitoringRevocationMonitoringUpdateScheduleRequest struct for MonitoringRevocationMonitoringUpdateScheduleRequest +type MonitoringRevocationMonitoringUpdateScheduleRequest struct { + Id int32 `json:"Id"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` +} + +// NewMonitoringRevocationMonitoringUpdateScheduleRequest instantiates a new MonitoringRevocationMonitoringUpdateScheduleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMonitoringRevocationMonitoringUpdateScheduleRequest(id int32) *MonitoringRevocationMonitoringUpdateScheduleRequest { + this := MonitoringRevocationMonitoringUpdateScheduleRequest{} + this.Id = id + return &this +} + +// NewMonitoringRevocationMonitoringUpdateScheduleRequestWithDefaults instantiates a new MonitoringRevocationMonitoringUpdateScheduleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMonitoringRevocationMonitoringUpdateScheduleRequestWithDefaults() *MonitoringRevocationMonitoringUpdateScheduleRequest { + this := MonitoringRevocationMonitoringUpdateScheduleRequest{} + return &this +} + +// GetId returns the Id field value +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) SetId(v int32) { + o.Id = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *MonitoringRevocationMonitoringUpdateScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o MonitoringRevocationMonitoringUpdateScheduleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MonitoringRevocationMonitoringUpdateScheduleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + return toSerialize, nil +} + +type NullableMonitoringRevocationMonitoringUpdateScheduleRequest struct { + value *MonitoringRevocationMonitoringUpdateScheduleRequest + isSet bool +} + +func (v NullableMonitoringRevocationMonitoringUpdateScheduleRequest) Get() *MonitoringRevocationMonitoringUpdateScheduleRequest { + return v.value +} + +func (v *NullableMonitoringRevocationMonitoringUpdateScheduleRequest) Set(val *MonitoringRevocationMonitoringUpdateScheduleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMonitoringRevocationMonitoringUpdateScheduleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMonitoringRevocationMonitoringUpdateScheduleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMonitoringRevocationMonitoringUpdateScheduleRequest(val *MonitoringRevocationMonitoringUpdateScheduleRequest) *NullableMonitoringRevocationMonitoringUpdateScheduleRequest { + return &NullableMonitoringRevocationMonitoringUpdateScheduleRequest{value: val, isSet: true} +} + +func (v NullableMonitoringRevocationMonitoringUpdateScheduleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMonitoringRevocationMonitoringUpdateScheduleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_acknowledge_job_request.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_acknowledge_job_request.go new file mode 100644 index 0000000..132b5bf --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_acknowledge_job_request.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsAcknowledgeJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsAcknowledgeJobRequest{} + +// OrchestratorJobsAcknowledgeJobRequest struct for OrchestratorJobsAcknowledgeJobRequest +type OrchestratorJobsAcknowledgeJobRequest struct { + // List of orchestrator job audit ids to be acknowledged + JobAuditIds []int64 `json:"JobAuditIds,omitempty"` + // Query identifying orchestrator jobs to be acknowledged + Query NullableString `json:"Query,omitempty"` +} + +// NewOrchestratorJobsAcknowledgeJobRequest instantiates a new OrchestratorJobsAcknowledgeJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsAcknowledgeJobRequest() *OrchestratorJobsAcknowledgeJobRequest { + this := OrchestratorJobsAcknowledgeJobRequest{} + return &this +} + +// NewOrchestratorJobsAcknowledgeJobRequestWithDefaults instantiates a new OrchestratorJobsAcknowledgeJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsAcknowledgeJobRequestWithDefaults() *OrchestratorJobsAcknowledgeJobRequest { + this := OrchestratorJobsAcknowledgeJobRequest{} + return &this +} + +// GetJobAuditIds returns the JobAuditIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsAcknowledgeJobRequest) GetJobAuditIds() []int64 { + if o == nil { + var ret []int64 + return ret + } + return o.JobAuditIds +} + +// GetJobAuditIdsOk returns a tuple with the JobAuditIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsAcknowledgeJobRequest) GetJobAuditIdsOk() ([]int64, bool) { + if o == nil || isNil(o.JobAuditIds) { + return nil, false + } + return o.JobAuditIds, true +} + +// HasJobAuditIds returns a boolean if a field has been set. +func (o *OrchestratorJobsAcknowledgeJobRequest) HasJobAuditIds() bool { + if o != nil && isNil(o.JobAuditIds) { + return true + } + + return false +} + +// SetJobAuditIds gets a reference to the given []int64 and assigns it to the JobAuditIds field. +func (o *OrchestratorJobsAcknowledgeJobRequest) SetJobAuditIds(v []int64) { + o.JobAuditIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsAcknowledgeJobRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsAcknowledgeJobRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *OrchestratorJobsAcknowledgeJobRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *OrchestratorJobsAcknowledgeJobRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *OrchestratorJobsAcknowledgeJobRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *OrchestratorJobsAcknowledgeJobRequest) UnsetQuery() { + o.Query.Unset() +} + +func (o OrchestratorJobsAcknowledgeJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsAcknowledgeJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.JobAuditIds != nil { + toSerialize["JobAuditIds"] = o.JobAuditIds + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorJobsAcknowledgeJobRequest struct { + value *OrchestratorJobsAcknowledgeJobRequest + isSet bool +} + +func (v NullableOrchestratorJobsAcknowledgeJobRequest) Get() *OrchestratorJobsAcknowledgeJobRequest { + return v.value +} + +func (v *NullableOrchestratorJobsAcknowledgeJobRequest) Set(val *OrchestratorJobsAcknowledgeJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsAcknowledgeJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsAcknowledgeJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsAcknowledgeJobRequest(val *OrchestratorJobsAcknowledgeJobRequest) *NullableOrchestratorJobsAcknowledgeJobRequest { + return &NullableOrchestratorJobsAcknowledgeJobRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsAcknowledgeJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsAcknowledgeJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_bulk_job_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_bulk_job_response.go new file mode 100644 index 0000000..b94785a --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_bulk_job_response.go @@ -0,0 +1,329 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the OrchestratorJobsBulkJobResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsBulkJobResponse{} + +// OrchestratorJobsBulkJobResponse struct for OrchestratorJobsBulkJobResponse +type OrchestratorJobsBulkJobResponse struct { + OrchestratorJobPairs []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair `json:"OrchestratorJobPairs,omitempty"` + FailedOrchestratorIds []string `json:"FailedOrchestratorIds,omitempty"` + JobTypeName NullableString `json:"JobTypeName,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields []OrchestratorJobsJobFieldResponse `json:"JobFields,omitempty"` + RequestTimestamp *time.Time `json:"RequestTimestamp,omitempty"` +} + +// NewOrchestratorJobsBulkJobResponse instantiates a new OrchestratorJobsBulkJobResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsBulkJobResponse() *OrchestratorJobsBulkJobResponse { + this := OrchestratorJobsBulkJobResponse{} + return &this +} + +// NewOrchestratorJobsBulkJobResponseWithDefaults instantiates a new OrchestratorJobsBulkJobResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsBulkJobResponseWithDefaults() *OrchestratorJobsBulkJobResponse { + this := OrchestratorJobsBulkJobResponse{} + return &this +} + +// GetOrchestratorJobPairs returns the OrchestratorJobPairs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsBulkJobResponse) GetOrchestratorJobPairs() []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair { + if o == nil { + var ret []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair + return ret + } + return o.OrchestratorJobPairs +} + +// GetOrchestratorJobPairsOk returns a tuple with the OrchestratorJobPairs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsBulkJobResponse) GetOrchestratorJobPairsOk() ([]CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair, bool) { + if o == nil || isNil(o.OrchestratorJobPairs) { + return nil, false + } + return o.OrchestratorJobPairs, true +} + +// HasOrchestratorJobPairs returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasOrchestratorJobPairs() bool { + if o != nil && isNil(o.OrchestratorJobPairs) { + return true + } + + return false +} + +// SetOrchestratorJobPairs gets a reference to the given []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair and assigns it to the OrchestratorJobPairs field. +func (o *OrchestratorJobsBulkJobResponse) SetOrchestratorJobPairs(v []CSSCMSDataModelModelsOrchestratorJobsBulkOrchestratorJobPair) { + o.OrchestratorJobPairs = v +} + +// GetFailedOrchestratorIds returns the FailedOrchestratorIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsBulkJobResponse) GetFailedOrchestratorIds() []string { + if o == nil { + var ret []string + return ret + } + return o.FailedOrchestratorIds +} + +// GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsBulkJobResponse) GetFailedOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.FailedOrchestratorIds) { + return nil, false + } + return o.FailedOrchestratorIds, true +} + +// HasFailedOrchestratorIds returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasFailedOrchestratorIds() bool { + if o != nil && isNil(o.FailedOrchestratorIds) { + return true + } + + return false +} + +// SetFailedOrchestratorIds gets a reference to the given []string and assigns it to the FailedOrchestratorIds field. +func (o *OrchestratorJobsBulkJobResponse) SetFailedOrchestratorIds(v []string) { + o.FailedOrchestratorIds = v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsBulkJobResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName.Get()) { + var ret string + return ret + } + return *o.JobTypeName.Get() +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsBulkJobResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobTypeName.Get(), o.JobTypeName.IsSet() +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasJobTypeName() bool { + if o != nil && o.JobTypeName.IsSet() { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given NullableString and assigns it to the JobTypeName field. +func (o *OrchestratorJobsBulkJobResponse) SetJobTypeName(v string) { + o.JobTypeName.Set(&v) +} + +// SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil +func (o *OrchestratorJobsBulkJobResponse) SetJobTypeNameNil() { + o.JobTypeName.Set(nil) +} + +// UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +func (o *OrchestratorJobsBulkJobResponse) UnsetJobTypeName() { + o.JobTypeName.Unset() +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *OrchestratorJobsBulkJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsBulkJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *OrchestratorJobsBulkJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsBulkJobResponse) GetJobFields() []OrchestratorJobsJobFieldResponse { + if o == nil { + var ret []OrchestratorJobsJobFieldResponse + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsBulkJobResponse) GetJobFieldsOk() ([]OrchestratorJobsJobFieldResponse, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given []OrchestratorJobsJobFieldResponse and assigns it to the JobFields field. +func (o *OrchestratorJobsBulkJobResponse) SetJobFields(v []OrchestratorJobsJobFieldResponse) { + o.JobFields = v +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise. +func (o *OrchestratorJobsBulkJobResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp) { + var ret time.Time + return ret + } + return *o.RequestTimestamp +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsBulkJobResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTimestamp) { + return nil, false + } + return o.RequestTimestamp, true +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *OrchestratorJobsBulkJobResponse) HasRequestTimestamp() bool { + if o != nil && !isNil(o.RequestTimestamp) { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given time.Time and assigns it to the RequestTimestamp field. +func (o *OrchestratorJobsBulkJobResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp = &v +} + +func (o OrchestratorJobsBulkJobResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsBulkJobResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.OrchestratorJobPairs != nil { + toSerialize["OrchestratorJobPairs"] = o.OrchestratorJobPairs + } + if o.FailedOrchestratorIds != nil { + toSerialize["FailedOrchestratorIds"] = o.FailedOrchestratorIds + } + if o.JobTypeName.IsSet() { + toSerialize["JobTypeName"] = o.JobTypeName.Get() + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.RequestTimestamp) { + toSerialize["RequestTimestamp"] = o.RequestTimestamp + } + return toSerialize, nil +} + +type NullableOrchestratorJobsBulkJobResponse struct { + value *OrchestratorJobsBulkJobResponse + isSet bool +} + +func (v NullableOrchestratorJobsBulkJobResponse) Get() *OrchestratorJobsBulkJobResponse { + return v.value +} + +func (v *NullableOrchestratorJobsBulkJobResponse) Set(val *OrchestratorJobsBulkJobResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsBulkJobResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsBulkJobResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsBulkJobResponse(val *OrchestratorJobsBulkJobResponse) *NullableOrchestratorJobsBulkJobResponse { + return &NullableOrchestratorJobsBulkJobResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsBulkJobResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsBulkJobResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_custom_job_result_data_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_custom_job_result_data_response.go new file mode 100644 index 0000000..58ee6fa --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_custom_job_result_data_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsCustomJobResultDataResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsCustomJobResultDataResponse{} + +// OrchestratorJobsCustomJobResultDataResponse struct for OrchestratorJobsCustomJobResultDataResponse +type OrchestratorJobsCustomJobResultDataResponse struct { + JobHistoryId *int64 `json:"JobHistoryId,omitempty"` + Data NullableString `json:"Data,omitempty"` +} + +// NewOrchestratorJobsCustomJobResultDataResponse instantiates a new OrchestratorJobsCustomJobResultDataResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsCustomJobResultDataResponse() *OrchestratorJobsCustomJobResultDataResponse { + this := OrchestratorJobsCustomJobResultDataResponse{} + return &this +} + +// NewOrchestratorJobsCustomJobResultDataResponseWithDefaults instantiates a new OrchestratorJobsCustomJobResultDataResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsCustomJobResultDataResponseWithDefaults() *OrchestratorJobsCustomJobResultDataResponse { + this := OrchestratorJobsCustomJobResultDataResponse{} + return &this +} + +// GetJobHistoryId returns the JobHistoryId field value if set, zero value otherwise. +func (o *OrchestratorJobsCustomJobResultDataResponse) GetJobHistoryId() int64 { + if o == nil || isNil(o.JobHistoryId) { + var ret int64 + return ret + } + return *o.JobHistoryId +} + +// GetJobHistoryIdOk returns a tuple with the JobHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsCustomJobResultDataResponse) GetJobHistoryIdOk() (*int64, bool) { + if o == nil || isNil(o.JobHistoryId) { + return nil, false + } + return o.JobHistoryId, true +} + +// HasJobHistoryId returns a boolean if a field has been set. +func (o *OrchestratorJobsCustomJobResultDataResponse) HasJobHistoryId() bool { + if o != nil && !isNil(o.JobHistoryId) { + return true + } + + return false +} + +// SetJobHistoryId gets a reference to the given int64 and assigns it to the JobHistoryId field. +func (o *OrchestratorJobsCustomJobResultDataResponse) SetJobHistoryId(v int64) { + o.JobHistoryId = &v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsCustomJobResultDataResponse) GetData() string { + if o == nil || isNil(o.Data.Get()) { + var ret string + return ret + } + return *o.Data.Get() +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsCustomJobResultDataResponse) GetDataOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Data.Get(), o.Data.IsSet() +} + +// HasData returns a boolean if a field has been set. +func (o *OrchestratorJobsCustomJobResultDataResponse) HasData() bool { + if o != nil && o.Data.IsSet() { + return true + } + + return false +} + +// SetData gets a reference to the given NullableString and assigns it to the Data field. +func (o *OrchestratorJobsCustomJobResultDataResponse) SetData(v string) { + o.Data.Set(&v) +} + +// SetDataNil sets the value for Data to be an explicit nil +func (o *OrchestratorJobsCustomJobResultDataResponse) SetDataNil() { + o.Data.Set(nil) +} + +// UnsetData ensures that no value is present for Data, not even an explicit nil +func (o *OrchestratorJobsCustomJobResultDataResponse) UnsetData() { + o.Data.Unset() +} + +func (o OrchestratorJobsCustomJobResultDataResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsCustomJobResultDataResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobHistoryId) { + toSerialize["JobHistoryId"] = o.JobHistoryId + } + if o.Data.IsSet() { + toSerialize["Data"] = o.Data.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorJobsCustomJobResultDataResponse struct { + value *OrchestratorJobsCustomJobResultDataResponse + isSet bool +} + +func (v NullableOrchestratorJobsCustomJobResultDataResponse) Get() *OrchestratorJobsCustomJobResultDataResponse { + return v.value +} + +func (v *NullableOrchestratorJobsCustomJobResultDataResponse) Set(val *OrchestratorJobsCustomJobResultDataResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsCustomJobResultDataResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsCustomJobResultDataResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsCustomJobResultDataResponse(val *OrchestratorJobsCustomJobResultDataResponse) *NullableOrchestratorJobsCustomJobResultDataResponse { + return &NullableOrchestratorJobsCustomJobResultDataResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsCustomJobResultDataResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsCustomJobResultDataResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_job_field_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_field_response.go new file mode 100644 index 0000000..b958897 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_field_response.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsJobFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsJobFieldResponse{} + +// OrchestratorJobsJobFieldResponse struct for OrchestratorJobsJobFieldResponse +type OrchestratorJobsJobFieldResponse struct { + JobTypeField NullableString `json:"JobTypeField,omitempty"` + Value NullableString `json:"Value,omitempty"` +} + +// NewOrchestratorJobsJobFieldResponse instantiates a new OrchestratorJobsJobFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsJobFieldResponse() *OrchestratorJobsJobFieldResponse { + this := OrchestratorJobsJobFieldResponse{} + return &this +} + +// NewOrchestratorJobsJobFieldResponseWithDefaults instantiates a new OrchestratorJobsJobFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsJobFieldResponseWithDefaults() *OrchestratorJobsJobFieldResponse { + this := OrchestratorJobsJobFieldResponse{} + return &this +} + +// GetJobTypeField returns the JobTypeField field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobFieldResponse) GetJobTypeField() string { + if o == nil || isNil(o.JobTypeField.Get()) { + var ret string + return ret + } + return *o.JobTypeField.Get() +} + +// GetJobTypeFieldOk returns a tuple with the JobTypeField field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobFieldResponse) GetJobTypeFieldOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobTypeField.Get(), o.JobTypeField.IsSet() +} + +// HasJobTypeField returns a boolean if a field has been set. +func (o *OrchestratorJobsJobFieldResponse) HasJobTypeField() bool { + if o != nil && o.JobTypeField.IsSet() { + return true + } + + return false +} + +// SetJobTypeField gets a reference to the given NullableString and assigns it to the JobTypeField field. +func (o *OrchestratorJobsJobFieldResponse) SetJobTypeField(v string) { + o.JobTypeField.Set(&v) +} + +// SetJobTypeFieldNil sets the value for JobTypeField to be an explicit nil +func (o *OrchestratorJobsJobFieldResponse) SetJobTypeFieldNil() { + o.JobTypeField.Set(nil) +} + +// UnsetJobTypeField ensures that no value is present for JobTypeField, not even an explicit nil +func (o *OrchestratorJobsJobFieldResponse) UnsetJobTypeField() { + o.JobTypeField.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobFieldResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobFieldResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *OrchestratorJobsJobFieldResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *OrchestratorJobsJobFieldResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *OrchestratorJobsJobFieldResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *OrchestratorJobsJobFieldResponse) UnsetValue() { + o.Value.Unset() +} + +func (o OrchestratorJobsJobFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsJobFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.JobTypeField.IsSet() { + toSerialize["JobTypeField"] = o.JobTypeField.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorJobsJobFieldResponse struct { + value *OrchestratorJobsJobFieldResponse + isSet bool +} + +func (v NullableOrchestratorJobsJobFieldResponse) Get() *OrchestratorJobsJobFieldResponse { + return v.value +} + +func (v *NullableOrchestratorJobsJobFieldResponse) Set(val *OrchestratorJobsJobFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsJobFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsJobFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsJobFieldResponse(val *OrchestratorJobsJobFieldResponse) *NullableOrchestratorJobsJobFieldResponse { + return &NullableOrchestratorJobsJobFieldResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsJobFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsJobFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_job_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_response.go new file mode 100644 index 0000000..3b60d0f --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_response.go @@ -0,0 +1,327 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the OrchestratorJobsJobResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsJobResponse{} + +// OrchestratorJobsJobResponse struct for OrchestratorJobsJobResponse +type OrchestratorJobsJobResponse struct { + JobId *string `json:"JobId,omitempty"` + OrchestratorId *string `json:"OrchestratorId,omitempty"` + JobTypeName NullableString `json:"JobTypeName,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields []OrchestratorJobsJobFieldResponse `json:"JobFields,omitempty"` + RequestTimestamp *time.Time `json:"RequestTimestamp,omitempty"` +} + +// NewOrchestratorJobsJobResponse instantiates a new OrchestratorJobsJobResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsJobResponse() *OrchestratorJobsJobResponse { + this := OrchestratorJobsJobResponse{} + return &this +} + +// NewOrchestratorJobsJobResponseWithDefaults instantiates a new OrchestratorJobsJobResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsJobResponseWithDefaults() *OrchestratorJobsJobResponse { + this := OrchestratorJobsJobResponse{} + return &this +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *OrchestratorJobsJobResponse) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobResponse) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *OrchestratorJobsJobResponse) SetJobId(v string) { + o.JobId = &v +} + +// GetOrchestratorId returns the OrchestratorId field value if set, zero value otherwise. +func (o *OrchestratorJobsJobResponse) GetOrchestratorId() string { + if o == nil || isNil(o.OrchestratorId) { + var ret string + return ret + } + return *o.OrchestratorId +} + +// GetOrchestratorIdOk returns a tuple with the OrchestratorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobResponse) GetOrchestratorIdOk() (*string, bool) { + if o == nil || isNil(o.OrchestratorId) { + return nil, false + } + return o.OrchestratorId, true +} + +// HasOrchestratorId returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasOrchestratorId() bool { + if o != nil && !isNil(o.OrchestratorId) { + return true + } + + return false +} + +// SetOrchestratorId gets a reference to the given string and assigns it to the OrchestratorId field. +func (o *OrchestratorJobsJobResponse) SetOrchestratorId(v string) { + o.OrchestratorId = &v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName.Get()) { + var ret string + return ret + } + return *o.JobTypeName.Get() +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobTypeName.Get(), o.JobTypeName.IsSet() +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasJobTypeName() bool { + if o != nil && o.JobTypeName.IsSet() { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given NullableString and assigns it to the JobTypeName field. +func (o *OrchestratorJobsJobResponse) SetJobTypeName(v string) { + o.JobTypeName.Set(&v) +} + +// SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil +func (o *OrchestratorJobsJobResponse) SetJobTypeNameNil() { + o.JobTypeName.Set(nil) +} + +// UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +func (o *OrchestratorJobsJobResponse) UnsetJobTypeName() { + o.JobTypeName.Unset() +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *OrchestratorJobsJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *OrchestratorJobsJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobResponse) GetJobFields() []OrchestratorJobsJobFieldResponse { + if o == nil { + var ret []OrchestratorJobsJobFieldResponse + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobResponse) GetJobFieldsOk() ([]OrchestratorJobsJobFieldResponse, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasJobFields() bool { + if o != nil && isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given []OrchestratorJobsJobFieldResponse and assigns it to the JobFields field. +func (o *OrchestratorJobsJobResponse) SetJobFields(v []OrchestratorJobsJobFieldResponse) { + o.JobFields = v +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise. +func (o *OrchestratorJobsJobResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp) { + var ret time.Time + return ret + } + return *o.RequestTimestamp +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTimestamp) { + return nil, false + } + return o.RequestTimestamp, true +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *OrchestratorJobsJobResponse) HasRequestTimestamp() bool { + if o != nil && !isNil(o.RequestTimestamp) { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given time.Time and assigns it to the RequestTimestamp field. +func (o *OrchestratorJobsJobResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp = &v +} + +func (o OrchestratorJobsJobResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsJobResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.OrchestratorId) { + toSerialize["OrchestratorId"] = o.OrchestratorId + } + if o.JobTypeName.IsSet() { + toSerialize["JobTypeName"] = o.JobTypeName.Get() + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.JobFields != nil { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.RequestTimestamp) { + toSerialize["RequestTimestamp"] = o.RequestTimestamp + } + return toSerialize, nil +} + +type NullableOrchestratorJobsJobResponse struct { + value *OrchestratorJobsJobResponse + isSet bool +} + +func (v NullableOrchestratorJobsJobResponse) Get() *OrchestratorJobsJobResponse { + return v.value +} + +func (v *NullableOrchestratorJobsJobResponse) Set(val *OrchestratorJobsJobResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsJobResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsJobResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsJobResponse(val *OrchestratorJobsJobResponse) *NullableOrchestratorJobsJobResponse { + return &NullableOrchestratorJobsJobResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsJobResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsJobResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_field_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_field_response.go new file mode 100644 index 0000000..d2a889e --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_field_response.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsJobTypeFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsJobTypeFieldResponse{} + +// OrchestratorJobsJobTypeFieldResponse struct for OrchestratorJobsJobTypeFieldResponse +type OrchestratorJobsJobTypeFieldResponse struct { + Name NullableString `json:"Name,omitempty"` + Type *CSSCMSDataModelEnumsDataType `json:"Type,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` +} + +// NewOrchestratorJobsJobTypeFieldResponse instantiates a new OrchestratorJobsJobTypeFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsJobTypeFieldResponse() *OrchestratorJobsJobTypeFieldResponse { + this := OrchestratorJobsJobTypeFieldResponse{} + return &this +} + +// NewOrchestratorJobsJobTypeFieldResponseWithDefaults instantiates a new OrchestratorJobsJobTypeFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsJobTypeFieldResponseWithDefaults() *OrchestratorJobsJobTypeFieldResponse { + this := OrchestratorJobsJobTypeFieldResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeFieldResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeFieldResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *OrchestratorJobsJobTypeFieldResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *OrchestratorJobsJobTypeFieldResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *OrchestratorJobsJobTypeFieldResponse) UnsetName() { + o.Name.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *OrchestratorJobsJobTypeFieldResponse) GetType() CSSCMSDataModelEnumsDataType { + if o == nil || isNil(o.Type) { + var ret CSSCMSDataModelEnumsDataType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) GetTypeOk() (*CSSCMSDataModelEnumsDataType, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CSSCMSDataModelEnumsDataType and assigns it to the Type field. +func (o *OrchestratorJobsJobTypeFieldResponse) SetType(v CSSCMSDataModelEnumsDataType) { + o.Type = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeFieldResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeFieldResponse) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *OrchestratorJobsJobTypeFieldResponse) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *OrchestratorJobsJobTypeFieldResponse) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *OrchestratorJobsJobTypeFieldResponse) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *OrchestratorJobsJobTypeFieldResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeFieldResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *OrchestratorJobsJobTypeFieldResponse) SetRequired(v bool) { + o.Required = &v +} + +func (o OrchestratorJobsJobTypeFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsJobTypeFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + return toSerialize, nil +} + +type NullableOrchestratorJobsJobTypeFieldResponse struct { + value *OrchestratorJobsJobTypeFieldResponse + isSet bool +} + +func (v NullableOrchestratorJobsJobTypeFieldResponse) Get() *OrchestratorJobsJobTypeFieldResponse { + return v.value +} + +func (v *NullableOrchestratorJobsJobTypeFieldResponse) Set(val *OrchestratorJobsJobTypeFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsJobTypeFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsJobTypeFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsJobTypeFieldResponse(val *OrchestratorJobsJobTypeFieldResponse) *NullableOrchestratorJobsJobTypeFieldResponse { + return &NullableOrchestratorJobsJobTypeFieldResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsJobTypeFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsJobTypeFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_response.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_response.go new file mode 100644 index 0000000..af5c604 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_job_type_response.go @@ -0,0 +1,276 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsJobTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsJobTypeResponse{} + +// OrchestratorJobsJobTypeResponse struct for OrchestratorJobsJobTypeResponse +type OrchestratorJobsJobTypeResponse struct { + Id NullableString `json:"Id,omitempty"` + JobTypeName NullableString `json:"JobTypeName,omitempty"` + Description NullableString `json:"Description,omitempty"` + JobTypeFields []OrchestratorJobsJobTypeFieldResponse `json:"JobTypeFields,omitempty"` +} + +// NewOrchestratorJobsJobTypeResponse instantiates a new OrchestratorJobsJobTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsJobTypeResponse() *OrchestratorJobsJobTypeResponse { + this := OrchestratorJobsJobTypeResponse{} + return &this +} + +// NewOrchestratorJobsJobTypeResponseWithDefaults instantiates a new OrchestratorJobsJobTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsJobTypeResponseWithDefaults() *OrchestratorJobsJobTypeResponse { + this := OrchestratorJobsJobTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeResponse) GetId() string { + if o == nil || isNil(o.Id.Get()) { + var ret string + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeResponse) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableString and assigns it to the Id field. +func (o *OrchestratorJobsJobTypeResponse) SetId(v string) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *OrchestratorJobsJobTypeResponse) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *OrchestratorJobsJobTypeResponse) UnsetId() { + o.Id.Unset() +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName.Get()) { + var ret string + return ret + } + return *o.JobTypeName.Get() +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobTypeName.Get(), o.JobTypeName.IsSet() +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeResponse) HasJobTypeName() bool { + if o != nil && o.JobTypeName.IsSet() { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given NullableString and assigns it to the JobTypeName field. +func (o *OrchestratorJobsJobTypeResponse) SetJobTypeName(v string) { + o.JobTypeName.Set(&v) +} + +// SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil +func (o *OrchestratorJobsJobTypeResponse) SetJobTypeNameNil() { + o.JobTypeName.Set(nil) +} + +// UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +func (o *OrchestratorJobsJobTypeResponse) UnsetJobTypeName() { + o.JobTypeName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *OrchestratorJobsJobTypeResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *OrchestratorJobsJobTypeResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *OrchestratorJobsJobTypeResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsJobTypeResponse) GetJobTypeFields() []OrchestratorJobsJobTypeFieldResponse { + if o == nil { + var ret []OrchestratorJobsJobTypeFieldResponse + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsJobTypeResponse) GetJobTypeFieldsOk() ([]OrchestratorJobsJobTypeFieldResponse, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *OrchestratorJobsJobTypeResponse) HasJobTypeFields() bool { + if o != nil && isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []OrchestratorJobsJobTypeFieldResponse and assigns it to the JobTypeFields field. +func (o *OrchestratorJobsJobTypeResponse) SetJobTypeFields(v []OrchestratorJobsJobTypeFieldResponse) { + o.JobTypeFields = v +} + +func (o OrchestratorJobsJobTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsJobTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + if o.JobTypeName.IsSet() { + toSerialize["JobTypeName"] = o.JobTypeName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.JobTypeFields != nil { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + return toSerialize, nil +} + +type NullableOrchestratorJobsJobTypeResponse struct { + value *OrchestratorJobsJobTypeResponse + isSet bool +} + +func (v NullableOrchestratorJobsJobTypeResponse) Get() *OrchestratorJobsJobTypeResponse { + return v.value +} + +func (v *NullableOrchestratorJobsJobTypeResponse) Set(val *OrchestratorJobsJobTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsJobTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsJobTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsJobTypeResponse(val *OrchestratorJobsJobTypeResponse) *NullableOrchestratorJobsJobTypeResponse { + return &NullableOrchestratorJobsJobTypeResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsJobTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsJobTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_reschedule_job_request.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_reschedule_job_request.go new file mode 100644 index 0000000..fbdbbc5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_reschedule_job_request.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsRescheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsRescheduleJobRequest{} + +// OrchestratorJobsRescheduleJobRequest Class representing orchestrator jobs to be rescheduled +type OrchestratorJobsRescheduleJobRequest struct { + // List of orchestrator job audit ids to be rescheduled + JobAuditIds []int64 `json:"JobAuditIds,omitempty"` + // Query identifying orchestrator jobs to be rescheduled + Query NullableString `json:"Query,omitempty"` +} + +// NewOrchestratorJobsRescheduleJobRequest instantiates a new OrchestratorJobsRescheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsRescheduleJobRequest() *OrchestratorJobsRescheduleJobRequest { + this := OrchestratorJobsRescheduleJobRequest{} + return &this +} + +// NewOrchestratorJobsRescheduleJobRequestWithDefaults instantiates a new OrchestratorJobsRescheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsRescheduleJobRequestWithDefaults() *OrchestratorJobsRescheduleJobRequest { + this := OrchestratorJobsRescheduleJobRequest{} + return &this +} + +// GetJobAuditIds returns the JobAuditIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsRescheduleJobRequest) GetJobAuditIds() []int64 { + if o == nil { + var ret []int64 + return ret + } + return o.JobAuditIds +} + +// GetJobAuditIdsOk returns a tuple with the JobAuditIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsRescheduleJobRequest) GetJobAuditIdsOk() ([]int64, bool) { + if o == nil || isNil(o.JobAuditIds) { + return nil, false + } + return o.JobAuditIds, true +} + +// HasJobAuditIds returns a boolean if a field has been set. +func (o *OrchestratorJobsRescheduleJobRequest) HasJobAuditIds() bool { + if o != nil && isNil(o.JobAuditIds) { + return true + } + + return false +} + +// SetJobAuditIds gets a reference to the given []int64 and assigns it to the JobAuditIds field. +func (o *OrchestratorJobsRescheduleJobRequest) SetJobAuditIds(v []int64) { + o.JobAuditIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsRescheduleJobRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsRescheduleJobRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *OrchestratorJobsRescheduleJobRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *OrchestratorJobsRescheduleJobRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *OrchestratorJobsRescheduleJobRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *OrchestratorJobsRescheduleJobRequest) UnsetQuery() { + o.Query.Unset() +} + +func (o OrchestratorJobsRescheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsRescheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.JobAuditIds != nil { + toSerialize["JobAuditIds"] = o.JobAuditIds + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorJobsRescheduleJobRequest struct { + value *OrchestratorJobsRescheduleJobRequest + isSet bool +} + +func (v NullableOrchestratorJobsRescheduleJobRequest) Get() *OrchestratorJobsRescheduleJobRequest { + return v.value +} + +func (v *NullableOrchestratorJobsRescheduleJobRequest) Set(val *OrchestratorJobsRescheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsRescheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsRescheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsRescheduleJobRequest(val *OrchestratorJobsRescheduleJobRequest) *NullableOrchestratorJobsRescheduleJobRequest { + return &NullableOrchestratorJobsRescheduleJobRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsRescheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsRescheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_jobs_unschedule_job_request.go b/v24/api/keyfactor/v1/model_orchestrator_jobs_unschedule_job_request.go new file mode 100644 index 0000000..8e593a6 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_jobs_unschedule_job_request.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorJobsUnscheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorJobsUnscheduleJobRequest{} + +// OrchestratorJobsUnscheduleJobRequest Class representing orchestrator jobs to be unscheduled +type OrchestratorJobsUnscheduleJobRequest struct { + // List of orchestrator job ids to be unscheduled + JobIds []string `json:"JobIds,omitempty"` + // Query identifying orchestrator jobs to be unscheduled + Query NullableString `json:"Query,omitempty"` +} + +// NewOrchestratorJobsUnscheduleJobRequest instantiates a new OrchestratorJobsUnscheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorJobsUnscheduleJobRequest() *OrchestratorJobsUnscheduleJobRequest { + this := OrchestratorJobsUnscheduleJobRequest{} + return &this +} + +// NewOrchestratorJobsUnscheduleJobRequestWithDefaults instantiates a new OrchestratorJobsUnscheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorJobsUnscheduleJobRequestWithDefaults() *OrchestratorJobsUnscheduleJobRequest { + this := OrchestratorJobsUnscheduleJobRequest{} + return &this +} + +// GetJobIds returns the JobIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsUnscheduleJobRequest) GetJobIds() []string { + if o == nil { + var ret []string + return ret + } + return o.JobIds +} + +// GetJobIdsOk returns a tuple with the JobIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsUnscheduleJobRequest) GetJobIdsOk() ([]string, bool) { + if o == nil || isNil(o.JobIds) { + return nil, false + } + return o.JobIds, true +} + +// HasJobIds returns a boolean if a field has been set. +func (o *OrchestratorJobsUnscheduleJobRequest) HasJobIds() bool { + if o != nil && isNil(o.JobIds) { + return true + } + + return false +} + +// SetJobIds gets a reference to the given []string and assigns it to the JobIds field. +func (o *OrchestratorJobsUnscheduleJobRequest) SetJobIds(v []string) { + o.JobIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorJobsUnscheduleJobRequest) GetQuery() string { + if o == nil || isNil(o.Query.Get()) { + var ret string + return ret + } + return *o.Query.Get() +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorJobsUnscheduleJobRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Query.Get(), o.Query.IsSet() +} + +// HasQuery returns a boolean if a field has been set. +func (o *OrchestratorJobsUnscheduleJobRequest) HasQuery() bool { + if o != nil && o.Query.IsSet() { + return true + } + + return false +} + +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. +func (o *OrchestratorJobsUnscheduleJobRequest) SetQuery(v string) { + o.Query.Set(&v) +} + +// SetQueryNil sets the value for Query to be an explicit nil +func (o *OrchestratorJobsUnscheduleJobRequest) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *OrchestratorJobsUnscheduleJobRequest) UnsetQuery() { + o.Query.Unset() +} + +func (o OrchestratorJobsUnscheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorJobsUnscheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.JobIds != nil { + toSerialize["JobIds"] = o.JobIds + } + if o.Query.IsSet() { + toSerialize["Query"] = o.Query.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorJobsUnscheduleJobRequest struct { + value *OrchestratorJobsUnscheduleJobRequest + isSet bool +} + +func (v NullableOrchestratorJobsUnscheduleJobRequest) Get() *OrchestratorJobsUnscheduleJobRequest { + return v.value +} + +func (v *NullableOrchestratorJobsUnscheduleJobRequest) Set(val *OrchestratorJobsUnscheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorJobsUnscheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorJobsUnscheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorJobsUnscheduleJobRequest(val *OrchestratorJobsUnscheduleJobRequest) *NullableOrchestratorJobsUnscheduleJobRequest { + return &NullableOrchestratorJobsUnscheduleJobRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorJobsUnscheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorJobsUnscheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_creation_request.go b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_creation_request.go new file mode 100644 index 0000000..58cc3c4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_creation_request.go @@ -0,0 +1,206 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorPoolsAgentPoolAgentCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorPoolsAgentPoolAgentCreationRequest{} + +// OrchestratorPoolsAgentPoolAgentCreationRequest struct for OrchestratorPoolsAgentPoolAgentCreationRequest +type OrchestratorPoolsAgentPoolAgentCreationRequest struct { + AgentId *string `json:"AgentId,omitempty"` + EnableDiscover *bool `json:"EnableDiscover,omitempty"` + EnableMonitor *bool `json:"EnableMonitor,omitempty"` +} + +// NewOrchestratorPoolsAgentPoolAgentCreationRequest instantiates a new OrchestratorPoolsAgentPoolAgentCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorPoolsAgentPoolAgentCreationRequest() *OrchestratorPoolsAgentPoolAgentCreationRequest { + this := OrchestratorPoolsAgentPoolAgentCreationRequest{} + return &this +} + +// NewOrchestratorPoolsAgentPoolAgentCreationRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolAgentCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorPoolsAgentPoolAgentCreationRequestWithDefaults() *OrchestratorPoolsAgentPoolAgentCreationRequest { + this := OrchestratorPoolsAgentPoolAgentCreationRequest{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetAgentId(v string) { + o.AgentId = &v +} + +// GetEnableDiscover returns the EnableDiscover field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableDiscover() bool { + if o == nil || isNil(o.EnableDiscover) { + var ret bool + return ret + } + return *o.EnableDiscover +} + +// GetEnableDiscoverOk returns a tuple with the EnableDiscover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableDiscoverOk() (*bool, bool) { + if o == nil || isNil(o.EnableDiscover) { + return nil, false + } + return o.EnableDiscover, true +} + +// HasEnableDiscover returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasEnableDiscover() bool { + if o != nil && !isNil(o.EnableDiscover) { + return true + } + + return false +} + +// SetEnableDiscover gets a reference to the given bool and assigns it to the EnableDiscover field. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetEnableDiscover(v bool) { + o.EnableDiscover = &v +} + +// GetEnableMonitor returns the EnableMonitor field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableMonitor() bool { + if o == nil || isNil(o.EnableMonitor) { + var ret bool + return ret + } + return *o.EnableMonitor +} + +// GetEnableMonitorOk returns a tuple with the EnableMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) GetEnableMonitorOk() (*bool, bool) { + if o == nil || isNil(o.EnableMonitor) { + return nil, false + } + return o.EnableMonitor, true +} + +// HasEnableMonitor returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) HasEnableMonitor() bool { + if o != nil && !isNil(o.EnableMonitor) { + return true + } + + return false +} + +// SetEnableMonitor gets a reference to the given bool and assigns it to the EnableMonitor field. +func (o *OrchestratorPoolsAgentPoolAgentCreationRequest) SetEnableMonitor(v bool) { + o.EnableMonitor = &v +} + +func (o OrchestratorPoolsAgentPoolAgentCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorPoolsAgentPoolAgentCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.EnableDiscover) { + toSerialize["EnableDiscover"] = o.EnableDiscover + } + if !isNil(o.EnableMonitor) { + toSerialize["EnableMonitor"] = o.EnableMonitor + } + return toSerialize, nil +} + +type NullableOrchestratorPoolsAgentPoolAgentCreationRequest struct { + value *OrchestratorPoolsAgentPoolAgentCreationRequest + isSet bool +} + +func (v NullableOrchestratorPoolsAgentPoolAgentCreationRequest) Get() *OrchestratorPoolsAgentPoolAgentCreationRequest { + return v.value +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentCreationRequest) Set(val *OrchestratorPoolsAgentPoolAgentCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorPoolsAgentPoolAgentCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorPoolsAgentPoolAgentCreationRequest(val *OrchestratorPoolsAgentPoolAgentCreationRequest) *NullableOrchestratorPoolsAgentPoolAgentCreationRequest { + return &NullableOrchestratorPoolsAgentPoolAgentCreationRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorPoolsAgentPoolAgentCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_get_response.go b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_get_response.go new file mode 100644 index 0000000..7b157fa --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_agent_get_response.go @@ -0,0 +1,372 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorPoolsAgentPoolAgentGetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorPoolsAgentPoolAgentGetResponse{} + +// OrchestratorPoolsAgentPoolAgentGetResponse struct for OrchestratorPoolsAgentPoolAgentGetResponse +type OrchestratorPoolsAgentPoolAgentGetResponse struct { + AgentId *string `json:"AgentId,omitempty"` + EnableDiscover *bool `json:"EnableDiscover,omitempty"` + EnableMonitor *bool `json:"EnableMonitor,omitempty"` + Version NullableString `json:"Version,omitempty"` + AllowsDiscover *bool `json:"AllowsDiscover,omitempty"` + AllowsMonitor *bool `json:"AllowsMonitor,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` +} + +// NewOrchestratorPoolsAgentPoolAgentGetResponse instantiates a new OrchestratorPoolsAgentPoolAgentGetResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorPoolsAgentPoolAgentGetResponse() *OrchestratorPoolsAgentPoolAgentGetResponse { + this := OrchestratorPoolsAgentPoolAgentGetResponse{} + return &this +} + +// NewOrchestratorPoolsAgentPoolAgentGetResponseWithDefaults instantiates a new OrchestratorPoolsAgentPoolAgentGetResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorPoolsAgentPoolAgentGetResponseWithDefaults() *OrchestratorPoolsAgentPoolAgentGetResponse { + this := OrchestratorPoolsAgentPoolAgentGetResponse{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAgentId(v string) { + o.AgentId = &v +} + +// GetEnableDiscover returns the EnableDiscover field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableDiscover() bool { + if o == nil || isNil(o.EnableDiscover) { + var ret bool + return ret + } + return *o.EnableDiscover +} + +// GetEnableDiscoverOk returns a tuple with the EnableDiscover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableDiscoverOk() (*bool, bool) { + if o == nil || isNil(o.EnableDiscover) { + return nil, false + } + return o.EnableDiscover, true +} + +// HasEnableDiscover returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasEnableDiscover() bool { + if o != nil && !isNil(o.EnableDiscover) { + return true + } + + return false +} + +// SetEnableDiscover gets a reference to the given bool and assigns it to the EnableDiscover field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetEnableDiscover(v bool) { + o.EnableDiscover = &v +} + +// GetEnableMonitor returns the EnableMonitor field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableMonitor() bool { + if o == nil || isNil(o.EnableMonitor) { + var ret bool + return ret + } + return *o.EnableMonitor +} + +// GetEnableMonitorOk returns a tuple with the EnableMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetEnableMonitorOk() (*bool, bool) { + if o == nil || isNil(o.EnableMonitor) { + return nil, false + } + return o.EnableMonitor, true +} + +// HasEnableMonitor returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasEnableMonitor() bool { + if o != nil && !isNil(o.EnableMonitor) { + return true + } + + return false +} + +// SetEnableMonitor gets a reference to the given bool and assigns it to the EnableMonitor field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetEnableMonitor(v bool) { + o.EnableMonitor = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetVersion() string { + if o == nil || isNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) UnsetVersion() { + o.Version.Unset() +} + +// GetAllowsDiscover returns the AllowsDiscover field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsDiscover() bool { + if o == nil || isNil(o.AllowsDiscover) { + var ret bool + return ret + } + return *o.AllowsDiscover +} + +// GetAllowsDiscoverOk returns a tuple with the AllowsDiscover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsDiscoverOk() (*bool, bool) { + if o == nil || isNil(o.AllowsDiscover) { + return nil, false + } + return o.AllowsDiscover, true +} + +// HasAllowsDiscover returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAllowsDiscover() bool { + if o != nil && !isNil(o.AllowsDiscover) { + return true + } + + return false +} + +// SetAllowsDiscover gets a reference to the given bool and assigns it to the AllowsDiscover field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAllowsDiscover(v bool) { + o.AllowsDiscover = &v +} + +// GetAllowsMonitor returns the AllowsMonitor field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsMonitor() bool { + if o == nil || isNil(o.AllowsMonitor) { + var ret bool + return ret + } + return *o.AllowsMonitor +} + +// GetAllowsMonitorOk returns a tuple with the AllowsMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetAllowsMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AllowsMonitor) { + return nil, false + } + return o.AllowsMonitor, true +} + +// HasAllowsMonitor returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasAllowsMonitor() bool { + if o != nil && !isNil(o.AllowsMonitor) { + return true + } + + return false +} + +// SetAllowsMonitor gets a reference to the given bool and assigns it to the AllowsMonitor field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetAllowsMonitor(v bool) { + o.AllowsMonitor = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *OrchestratorPoolsAgentPoolAgentGetResponse) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +func (o OrchestratorPoolsAgentPoolAgentGetResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorPoolsAgentPoolAgentGetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.EnableDiscover) { + toSerialize["EnableDiscover"] = o.EnableDiscover + } + if !isNil(o.EnableMonitor) { + toSerialize["EnableMonitor"] = o.EnableMonitor + } + if o.Version.IsSet() { + toSerialize["Version"] = o.Version.Get() + } + if !isNil(o.AllowsDiscover) { + toSerialize["AllowsDiscover"] = o.AllowsDiscover + } + if !isNil(o.AllowsMonitor) { + toSerialize["AllowsMonitor"] = o.AllowsMonitor + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorPoolsAgentPoolAgentGetResponse struct { + value *OrchestratorPoolsAgentPoolAgentGetResponse + isSet bool +} + +func (v NullableOrchestratorPoolsAgentPoolAgentGetResponse) Get() *OrchestratorPoolsAgentPoolAgentGetResponse { + return v.value +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentGetResponse) Set(val *OrchestratorPoolsAgentPoolAgentGetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorPoolsAgentPoolAgentGetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentGetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorPoolsAgentPoolAgentGetResponse(val *OrchestratorPoolsAgentPoolAgentGetResponse) *NullableOrchestratorPoolsAgentPoolAgentGetResponse { + return &NullableOrchestratorPoolsAgentPoolAgentGetResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorPoolsAgentPoolAgentGetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorPoolsAgentPoolAgentGetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_creation_request.go b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_creation_request.go new file mode 100644 index 0000000..7d843ef --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_creation_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorPoolsAgentPoolCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorPoolsAgentPoolCreationRequest{} + +// OrchestratorPoolsAgentPoolCreationRequest struct for OrchestratorPoolsAgentPoolCreationRequest +type OrchestratorPoolsAgentPoolCreationRequest struct { + Name string `json:"Name"` + Agents []OrchestratorPoolsAgentPoolAgentCreationRequest `json:"Agents,omitempty"` +} + +// NewOrchestratorPoolsAgentPoolCreationRequest instantiates a new OrchestratorPoolsAgentPoolCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorPoolsAgentPoolCreationRequest(name string) *OrchestratorPoolsAgentPoolCreationRequest { + this := OrchestratorPoolsAgentPoolCreationRequest{} + this.Name = name + return &this +} + +// NewOrchestratorPoolsAgentPoolCreationRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorPoolsAgentPoolCreationRequestWithDefaults() *OrchestratorPoolsAgentPoolCreationRequest { + this := OrchestratorPoolsAgentPoolCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *OrchestratorPoolsAgentPoolCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OrchestratorPoolsAgentPoolCreationRequest) SetName(v string) { + o.Name = v +} + +// GetAgents returns the Agents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolCreationRequest) GetAgents() []OrchestratorPoolsAgentPoolAgentCreationRequest { + if o == nil { + var ret []OrchestratorPoolsAgentPoolAgentCreationRequest + return ret + } + return o.Agents +} + +// GetAgentsOk returns a tuple with the Agents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolCreationRequest) GetAgentsOk() ([]OrchestratorPoolsAgentPoolAgentCreationRequest, bool) { + if o == nil || isNil(o.Agents) { + return nil, false + } + return o.Agents, true +} + +// HasAgents returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolCreationRequest) HasAgents() bool { + if o != nil && isNil(o.Agents) { + return true + } + + return false +} + +// SetAgents gets a reference to the given []OrchestratorPoolsAgentPoolAgentCreationRequest and assigns it to the Agents field. +func (o *OrchestratorPoolsAgentPoolCreationRequest) SetAgents(v []OrchestratorPoolsAgentPoolAgentCreationRequest) { + o.Agents = v +} + +func (o OrchestratorPoolsAgentPoolCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorPoolsAgentPoolCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if o.Agents != nil { + toSerialize["Agents"] = o.Agents + } + return toSerialize, nil +} + +type NullableOrchestratorPoolsAgentPoolCreationRequest struct { + value *OrchestratorPoolsAgentPoolCreationRequest + isSet bool +} + +func (v NullableOrchestratorPoolsAgentPoolCreationRequest) Get() *OrchestratorPoolsAgentPoolCreationRequest { + return v.value +} + +func (v *NullableOrchestratorPoolsAgentPoolCreationRequest) Set(val *OrchestratorPoolsAgentPoolCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorPoolsAgentPoolCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorPoolsAgentPoolCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorPoolsAgentPoolCreationRequest(val *OrchestratorPoolsAgentPoolCreationRequest) *NullableOrchestratorPoolsAgentPoolCreationRequest { + return &NullableOrchestratorPoolsAgentPoolCreationRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorPoolsAgentPoolCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorPoolsAgentPoolCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_get_response.go b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_get_response.go new file mode 100644 index 0000000..9cdb7cc --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_get_response.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorPoolsAgentPoolGetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorPoolsAgentPoolGetResponse{} + +// OrchestratorPoolsAgentPoolGetResponse struct for OrchestratorPoolsAgentPoolGetResponse +type OrchestratorPoolsAgentPoolGetResponse struct { + AgentPoolId *string `json:"AgentPoolId,omitempty"` + Name NullableString `json:"Name,omitempty"` + DiscoverAgentsCount *int32 `json:"DiscoverAgentsCount,omitempty"` + MonitorAgentsCount *int32 `json:"MonitorAgentsCount,omitempty"` + Agents []OrchestratorPoolsAgentPoolAgentGetResponse `json:"Agents,omitempty"` +} + +// NewOrchestratorPoolsAgentPoolGetResponse instantiates a new OrchestratorPoolsAgentPoolGetResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorPoolsAgentPoolGetResponse() *OrchestratorPoolsAgentPoolGetResponse { + this := OrchestratorPoolsAgentPoolGetResponse{} + return &this +} + +// NewOrchestratorPoolsAgentPoolGetResponseWithDefaults instantiates a new OrchestratorPoolsAgentPoolGetResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorPoolsAgentPoolGetResponseWithDefaults() *OrchestratorPoolsAgentPoolGetResponse { + this := OrchestratorPoolsAgentPoolGetResponse{} + return &this +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId) { + var ret string + return ret + } + return *o.AgentPoolId +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentPoolIdOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolId) { + return nil, false + } + return o.AgentPoolId, true +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) HasAgentPoolId() bool { + if o != nil && !isNil(o.AgentPoolId) { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given string and assigns it to the AgentPoolId field. +func (o *OrchestratorPoolsAgentPoolGetResponse) SetAgentPoolId(v string) { + o.AgentPoolId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolGetResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolGetResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *OrchestratorPoolsAgentPoolGetResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *OrchestratorPoolsAgentPoolGetResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *OrchestratorPoolsAgentPoolGetResponse) UnsetName() { + o.Name.Unset() +} + +// GetDiscoverAgentsCount returns the DiscoverAgentsCount field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetDiscoverAgentsCount() int32 { + if o == nil || isNil(o.DiscoverAgentsCount) { + var ret int32 + return ret + } + return *o.DiscoverAgentsCount +} + +// GetDiscoverAgentsCountOk returns a tuple with the DiscoverAgentsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetDiscoverAgentsCountOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverAgentsCount) { + return nil, false + } + return o.DiscoverAgentsCount, true +} + +// HasDiscoverAgentsCount returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) HasDiscoverAgentsCount() bool { + if o != nil && !isNil(o.DiscoverAgentsCount) { + return true + } + + return false +} + +// SetDiscoverAgentsCount gets a reference to the given int32 and assigns it to the DiscoverAgentsCount field. +func (o *OrchestratorPoolsAgentPoolGetResponse) SetDiscoverAgentsCount(v int32) { + o.DiscoverAgentsCount = &v +} + +// GetMonitorAgentsCount returns the MonitorAgentsCount field value if set, zero value otherwise. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetMonitorAgentsCount() int32 { + if o == nil || isNil(o.MonitorAgentsCount) { + var ret int32 + return ret + } + return *o.MonitorAgentsCount +} + +// GetMonitorAgentsCountOk returns a tuple with the MonitorAgentsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) GetMonitorAgentsCountOk() (*int32, bool) { + if o == nil || isNil(o.MonitorAgentsCount) { + return nil, false + } + return o.MonitorAgentsCount, true +} + +// HasMonitorAgentsCount returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) HasMonitorAgentsCount() bool { + if o != nil && !isNil(o.MonitorAgentsCount) { + return true + } + + return false +} + +// SetMonitorAgentsCount gets a reference to the given int32 and assigns it to the MonitorAgentsCount field. +func (o *OrchestratorPoolsAgentPoolGetResponse) SetMonitorAgentsCount(v int32) { + o.MonitorAgentsCount = &v +} + +// GetAgents returns the Agents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgents() []OrchestratorPoolsAgentPoolAgentGetResponse { + if o == nil { + var ret []OrchestratorPoolsAgentPoolAgentGetResponse + return ret + } + return o.Agents +} + +// GetAgentsOk returns a tuple with the Agents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolGetResponse) GetAgentsOk() ([]OrchestratorPoolsAgentPoolAgentGetResponse, bool) { + if o == nil || isNil(o.Agents) { + return nil, false + } + return o.Agents, true +} + +// HasAgents returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolGetResponse) HasAgents() bool { + if o != nil && isNil(o.Agents) { + return true + } + + return false +} + +// SetAgents gets a reference to the given []OrchestratorPoolsAgentPoolAgentGetResponse and assigns it to the Agents field. +func (o *OrchestratorPoolsAgentPoolGetResponse) SetAgents(v []OrchestratorPoolsAgentPoolAgentGetResponse) { + o.Agents = v +} + +func (o OrchestratorPoolsAgentPoolGetResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorPoolsAgentPoolGetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentPoolId) { + toSerialize["AgentPoolId"] = o.AgentPoolId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.DiscoverAgentsCount) { + toSerialize["DiscoverAgentsCount"] = o.DiscoverAgentsCount + } + if !isNil(o.MonitorAgentsCount) { + toSerialize["MonitorAgentsCount"] = o.MonitorAgentsCount + } + if o.Agents != nil { + toSerialize["Agents"] = o.Agents + } + return toSerialize, nil +} + +type NullableOrchestratorPoolsAgentPoolGetResponse struct { + value *OrchestratorPoolsAgentPoolGetResponse + isSet bool +} + +func (v NullableOrchestratorPoolsAgentPoolGetResponse) Get() *OrchestratorPoolsAgentPoolGetResponse { + return v.value +} + +func (v *NullableOrchestratorPoolsAgentPoolGetResponse) Set(val *OrchestratorPoolsAgentPoolGetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorPoolsAgentPoolGetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorPoolsAgentPoolGetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorPoolsAgentPoolGetResponse(val *OrchestratorPoolsAgentPoolGetResponse) *NullableOrchestratorPoolsAgentPoolGetResponse { + return &NullableOrchestratorPoolsAgentPoolGetResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorPoolsAgentPoolGetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorPoolsAgentPoolGetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_update_request.go b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_update_request.go new file mode 100644 index 0000000..e4d8d17 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrator_pools_agent_pool_update_request.go @@ -0,0 +1,189 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorPoolsAgentPoolUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorPoolsAgentPoolUpdateRequest{} + +// OrchestratorPoolsAgentPoolUpdateRequest struct for OrchestratorPoolsAgentPoolUpdateRequest +type OrchestratorPoolsAgentPoolUpdateRequest struct { + AgentPoolId string `json:"AgentPoolId"` + Name string `json:"Name"` + Agents []OrchestratorPoolsAgentPoolAgentCreationRequest `json:"Agents,omitempty"` +} + +// NewOrchestratorPoolsAgentPoolUpdateRequest instantiates a new OrchestratorPoolsAgentPoolUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorPoolsAgentPoolUpdateRequest(agentPoolId string, name string) *OrchestratorPoolsAgentPoolUpdateRequest { + this := OrchestratorPoolsAgentPoolUpdateRequest{} + this.AgentPoolId = agentPoolId + this.Name = name + return &this +} + +// NewOrchestratorPoolsAgentPoolUpdateRequestWithDefaults instantiates a new OrchestratorPoolsAgentPoolUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorPoolsAgentPoolUpdateRequestWithDefaults() *OrchestratorPoolsAgentPoolUpdateRequest { + this := OrchestratorPoolsAgentPoolUpdateRequest{} + return &this +} + +// GetAgentPoolId returns the AgentPoolId field value +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentPoolId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentPoolId +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentPoolIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentPoolId, true +} + +// SetAgentPoolId sets field value +func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetAgentPoolId(v string) { + o.AgentPoolId = v +} + +// GetName returns the Name field value +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetAgents returns the Agents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgents() []OrchestratorPoolsAgentPoolAgentCreationRequest { + if o == nil { + var ret []OrchestratorPoolsAgentPoolAgentCreationRequest + return ret + } + return o.Agents +} + +// GetAgentsOk returns a tuple with the Agents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorPoolsAgentPoolUpdateRequest) GetAgentsOk() ([]OrchestratorPoolsAgentPoolAgentCreationRequest, bool) { + if o == nil || isNil(o.Agents) { + return nil, false + } + return o.Agents, true +} + +// HasAgents returns a boolean if a field has been set. +func (o *OrchestratorPoolsAgentPoolUpdateRequest) HasAgents() bool { + if o != nil && isNil(o.Agents) { + return true + } + + return false +} + +// SetAgents gets a reference to the given []OrchestratorPoolsAgentPoolAgentCreationRequest and assigns it to the Agents field. +func (o *OrchestratorPoolsAgentPoolUpdateRequest) SetAgents(v []OrchestratorPoolsAgentPoolAgentCreationRequest) { + o.Agents = v +} + +func (o OrchestratorPoolsAgentPoolUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorPoolsAgentPoolUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AgentPoolId"] = o.AgentPoolId + toSerialize["Name"] = o.Name + if o.Agents != nil { + toSerialize["Agents"] = o.Agents + } + return toSerialize, nil +} + +type NullableOrchestratorPoolsAgentPoolUpdateRequest struct { + value *OrchestratorPoolsAgentPoolUpdateRequest + isSet bool +} + +func (v NullableOrchestratorPoolsAgentPoolUpdateRequest) Get() *OrchestratorPoolsAgentPoolUpdateRequest { + return v.value +} + +func (v *NullableOrchestratorPoolsAgentPoolUpdateRequest) Set(val *OrchestratorPoolsAgentPoolUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorPoolsAgentPoolUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorPoolsAgentPoolUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorPoolsAgentPoolUpdateRequest(val *OrchestratorPoolsAgentPoolUpdateRequest) *NullableOrchestratorPoolsAgentPoolUpdateRequest { + return &NullableOrchestratorPoolsAgentPoolUpdateRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorPoolsAgentPoolUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorPoolsAgentPoolUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_jobs_response.go b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_jobs_response.go new file mode 100644 index 0000000..c2ab2a5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_jobs_response.go @@ -0,0 +1,1114 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the OrchestratorsAgentBlueprintJobsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsAgentBlueprintJobsResponse{} + +// OrchestratorsAgentBlueprintJobsResponse struct for OrchestratorsAgentBlueprintJobsResponse +type OrchestratorsAgentBlueprintJobsResponse struct { + AgentBlueprintJobId *string `json:"AgentBlueprintJobId,omitempty"` + AgentBlueprintStoreId *string `json:"AgentBlueprintStoreId,omitempty"` + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + JobType *string `json:"JobType,omitempty"` + JobTypeName NullableString `json:"JobTypeName,omitempty"` + OperationType NullableInt32 `json:"OperationType,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + Contents NullableString `json:"Contents,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + PrivateKeyEntry NullableBool `json:"PrivateKeyEntry,omitempty"` + Overwrite NullableBool `json:"Overwrite,omitempty"` + HasEntryPassword NullableBool `json:"HasEntryPassword,omitempty"` + HasPfxPassword NullableBool `json:"HasPfxPassword,omitempty"` + RequestTimestamp NullableTime `json:"RequestTimestamp,omitempty"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + Subject NullableString `json:"Subject,omitempty"` + Directories NullableString `json:"Directories,omitempty"` + IgnoredDirectories NullableString `json:"IgnoredDirectories,omitempty"` + SymLinks NullableBool `json:"SymLinks,omitempty"` + Compatibility NullableBool `json:"Compatibility,omitempty"` + FileExtensions NullableString `json:"FileExtensions,omitempty"` + FileNamePatterns NullableString `json:"FileNamePatterns,omitempty"` + AgentBlueprintStores *OrchestratorsAgentBlueprintStoresResponse `json:"AgentBlueprintStores,omitempty"` +} + +// NewOrchestratorsAgentBlueprintJobsResponse instantiates a new OrchestratorsAgentBlueprintJobsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsAgentBlueprintJobsResponse() *OrchestratorsAgentBlueprintJobsResponse { + this := OrchestratorsAgentBlueprintJobsResponse{} + return &this +} + +// NewOrchestratorsAgentBlueprintJobsResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintJobsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsAgentBlueprintJobsResponseWithDefaults() *OrchestratorsAgentBlueprintJobsResponse { + this := OrchestratorsAgentBlueprintJobsResponse{} + return &this +} + +// GetAgentBlueprintJobId returns the AgentBlueprintJobId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobId() string { + if o == nil || isNil(o.AgentBlueprintJobId) { + var ret string + return ret + } + return *o.AgentBlueprintJobId +} + +// GetAgentBlueprintJobIdOk returns a tuple with the AgentBlueprintJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintJobId) { + return nil, false + } + return o.AgentBlueprintJobId, true +} + +// HasAgentBlueprintJobId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintJobId() bool { + if o != nil && !isNil(o.AgentBlueprintJobId) { + return true + } + + return false +} + +// SetAgentBlueprintJobId gets a reference to the given string and assigns it to the AgentBlueprintJobId field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintJobId(v string) { + o.AgentBlueprintJobId = &v +} + +// GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreId() string { + if o == nil || isNil(o.AgentBlueprintStoreId) { + var ret string + return ret + } + return *o.AgentBlueprintStoreId +} + +// GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintStoreId) { + return nil, false + } + return o.AgentBlueprintStoreId, true +} + +// HasAgentBlueprintStoreId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStoreId() bool { + if o != nil && !isNil(o.AgentBlueprintStoreId) { + return true + } + + return false +} + +// SetAgentBlueprintStoreId gets a reference to the given string and assigns it to the AgentBlueprintStoreId field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStoreId(v string) { + o.AgentBlueprintStoreId = &v +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobType() string { + if o == nil || isNil(o.JobType) { + var ret string + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeOk() (*string, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given string and assigns it to the JobType field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobType(v string) { + o.JobType = &v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName.Get()) { + var ret string + return ret + } + return *o.JobTypeName.Get() +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.JobTypeName.Get(), o.JobTypeName.IsSet() +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasJobTypeName() bool { + if o != nil && o.JobTypeName.IsSet() { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given NullableString and assigns it to the JobTypeName field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobTypeName(v string) { + o.JobTypeName.Set(&v) +} + +// SetJobTypeNameNil sets the value for JobTypeName to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetJobTypeNameNil() { + o.JobTypeName.Set(nil) +} + +// UnsetJobTypeName ensures that no value is present for JobTypeName, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetJobTypeName() { + o.JobTypeName.Unset() +} + +// GetOperationType returns the OperationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetOperationType() int32 { + if o == nil || isNil(o.OperationType.Get()) { + var ret int32 + return ret + } + return *o.OperationType.Get() +} + +// GetOperationTypeOk returns a tuple with the OperationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetOperationTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OperationType.Get(), o.OperationType.IsSet() +} + +// HasOperationType returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasOperationType() bool { + if o != nil && o.OperationType.IsSet() { + return true + } + + return false +} + +// SetOperationType gets a reference to the given NullableInt32 and assigns it to the OperationType field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetOperationType(v int32) { + o.OperationType.Set(&v) +} + +// SetOperationTypeNil sets the value for OperationType to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetOperationTypeNil() { + o.OperationType.Set(nil) +} + +// UnsetOperationType ensures that no value is present for OperationType, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetOperationType() { + o.OperationType.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetContents returns the Contents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetContents() string { + if o == nil || isNil(o.Contents.Get()) { + var ret string + return ret + } + return *o.Contents.Get() +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Contents.Get(), o.Contents.IsSet() +} + +// HasContents returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasContents() bool { + if o != nil && o.Contents.IsSet() { + return true + } + + return false +} + +// SetContents gets a reference to the given NullableString and assigns it to the Contents field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetContents(v string) { + o.Contents.Set(&v) +} + +// SetContentsNil sets the value for Contents to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetContentsNil() { + o.Contents.Set(nil) +} + +// UnsetContents ensures that no value is present for Contents, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetContents() { + o.Contents.Unset() +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetAlias() { + o.Alias.Unset() +} + +// GetPrivateKeyEntry returns the PrivateKeyEntry field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntry() bool { + if o == nil || isNil(o.PrivateKeyEntry.Get()) { + var ret bool + return ret + } + return *o.PrivateKeyEntry.Get() +} + +// GetPrivateKeyEntryOk returns a tuple with the PrivateKeyEntry field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntryOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PrivateKeyEntry.Get(), o.PrivateKeyEntry.IsSet() +} + +// HasPrivateKeyEntry returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasPrivateKeyEntry() bool { + if o != nil && o.PrivateKeyEntry.IsSet() { + return true + } + + return false +} + +// SetPrivateKeyEntry gets a reference to the given NullableBool and assigns it to the PrivateKeyEntry field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntry(v bool) { + o.PrivateKeyEntry.Set(&v) +} + +// SetPrivateKeyEntryNil sets the value for PrivateKeyEntry to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntryNil() { + o.PrivateKeyEntry.Set(nil) +} + +// UnsetPrivateKeyEntry ensures that no value is present for PrivateKeyEntry, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetPrivateKeyEntry() { + o.PrivateKeyEntry.Unset() +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite.Get()) { + var ret bool + return ret + } + return *o.Overwrite.Get() +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetOverwriteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Overwrite.Get(), o.Overwrite.IsSet() +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasOverwrite() bool { + if o != nil && o.Overwrite.IsSet() { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given NullableBool and assigns it to the Overwrite field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetOverwrite(v bool) { + o.Overwrite.Set(&v) +} + +// SetOverwriteNil sets the value for Overwrite to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetOverwriteNil() { + o.Overwrite.Set(nil) +} + +// UnsetOverwrite ensures that no value is present for Overwrite, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetOverwrite() { + o.Overwrite.Unset() +} + +// GetHasEntryPassword returns the HasEntryPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasEntryPassword() bool { + if o == nil || isNil(o.HasEntryPassword.Get()) { + var ret bool + return ret + } + return *o.HasEntryPassword.Get() +} + +// GetHasEntryPasswordOk returns a tuple with the HasEntryPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasEntryPasswordOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.HasEntryPassword.Get(), o.HasEntryPassword.IsSet() +} + +// HasHasEntryPassword returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasHasEntryPassword() bool { + if o != nil && o.HasEntryPassword.IsSet() { + return true + } + + return false +} + +// SetHasEntryPassword gets a reference to the given NullableBool and assigns it to the HasEntryPassword field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasEntryPassword(v bool) { + o.HasEntryPassword.Set(&v) +} + +// SetHasEntryPasswordNil sets the value for HasEntryPassword to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasEntryPasswordNil() { + o.HasEntryPassword.Set(nil) +} + +// UnsetHasEntryPassword ensures that no value is present for HasEntryPassword, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetHasEntryPassword() { + o.HasEntryPassword.Unset() +} + +// GetHasPfxPassword returns the HasPfxPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasPfxPassword() bool { + if o == nil || isNil(o.HasPfxPassword.Get()) { + var ret bool + return ret + } + return *o.HasPfxPassword.Get() +} + +// GetHasPfxPasswordOk returns a tuple with the HasPfxPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetHasPfxPasswordOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.HasPfxPassword.Get(), o.HasPfxPassword.IsSet() +} + +// HasHasPfxPassword returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasHasPfxPassword() bool { + if o != nil && o.HasPfxPassword.IsSet() { + return true + } + + return false +} + +// SetHasPfxPassword gets a reference to the given NullableBool and assigns it to the HasPfxPassword field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasPfxPassword(v bool) { + o.HasPfxPassword.Set(&v) +} + +// SetHasPfxPasswordNil sets the value for HasPfxPassword to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetHasPfxPasswordNil() { + o.HasPfxPassword.Set(nil) +} + +// UnsetHasPfxPassword ensures that no value is present for HasPfxPassword, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetHasPfxPassword() { + o.HasPfxPassword.Unset() +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp.Get()) { + var ret time.Time + return ret + } + return *o.RequestTimestamp.Get() +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.RequestTimestamp.Get(), o.RequestTimestamp.IsSet() +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasRequestTimestamp() bool { + if o != nil && o.RequestTimestamp.IsSet() { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given NullableTime and assigns it to the RequestTimestamp field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp.Set(&v) +} + +// SetRequestTimestampNil sets the value for RequestTimestamp to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetRequestTimestampNil() { + o.RequestTimestamp.Set(nil) +} + +// UnsetRequestTimestamp ensures that no value is present for RequestTimestamp, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetRequestTimestamp() { + o.RequestTimestamp.Unset() +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetSubject() { + o.Subject.Unset() +} + +// GetDirectories returns the Directories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetDirectories() string { + if o == nil || isNil(o.Directories.Get()) { + var ret string + return ret + } + return *o.Directories.Get() +} + +// GetDirectoriesOk returns a tuple with the Directories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetDirectoriesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Directories.Get(), o.Directories.IsSet() +} + +// HasDirectories returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasDirectories() bool { + if o != nil && o.Directories.IsSet() { + return true + } + + return false +} + +// SetDirectories gets a reference to the given NullableString and assigns it to the Directories field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetDirectories(v string) { + o.Directories.Set(&v) +} + +// SetDirectoriesNil sets the value for Directories to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetDirectoriesNil() { + o.Directories.Set(nil) +} + +// UnsetDirectories ensures that no value is present for Directories, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetDirectories() { + o.Directories.Unset() +} + +// GetIgnoredDirectories returns the IgnoredDirectories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectories() string { + if o == nil || isNil(o.IgnoredDirectories.Get()) { + var ret string + return ret + } + return *o.IgnoredDirectories.Get() +} + +// GetIgnoredDirectoriesOk returns a tuple with the IgnoredDirectories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectoriesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IgnoredDirectories.Get(), o.IgnoredDirectories.IsSet() +} + +// HasIgnoredDirectories returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasIgnoredDirectories() bool { + if o != nil && o.IgnoredDirectories.IsSet() { + return true + } + + return false +} + +// SetIgnoredDirectories gets a reference to the given NullableString and assigns it to the IgnoredDirectories field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectories(v string) { + o.IgnoredDirectories.Set(&v) +} + +// SetIgnoredDirectoriesNil sets the value for IgnoredDirectories to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectoriesNil() { + o.IgnoredDirectories.Set(nil) +} + +// UnsetIgnoredDirectories ensures that no value is present for IgnoredDirectories, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetIgnoredDirectories() { + o.IgnoredDirectories.Unset() +} + +// GetSymLinks returns the SymLinks field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetSymLinks() bool { + if o == nil || isNil(o.SymLinks.Get()) { + var ret bool + return ret + } + return *o.SymLinks.Get() +} + +// GetSymLinksOk returns a tuple with the SymLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetSymLinksOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.SymLinks.Get(), o.SymLinks.IsSet() +} + +// HasSymLinks returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasSymLinks() bool { + if o != nil && o.SymLinks.IsSet() { + return true + } + + return false +} + +// SetSymLinks gets a reference to the given NullableBool and assigns it to the SymLinks field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetSymLinks(v bool) { + o.SymLinks.Set(&v) +} + +// SetSymLinksNil sets the value for SymLinks to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetSymLinksNil() { + o.SymLinks.Set(nil) +} + +// UnsetSymLinks ensures that no value is present for SymLinks, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetSymLinks() { + o.SymLinks.Unset() +} + +// GetCompatibility returns the Compatibility field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetCompatibility() bool { + if o == nil || isNil(o.Compatibility.Get()) { + var ret bool + return ret + } + return *o.Compatibility.Get() +} + +// GetCompatibilityOk returns a tuple with the Compatibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetCompatibilityOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Compatibility.Get(), o.Compatibility.IsSet() +} + +// HasCompatibility returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasCompatibility() bool { + if o != nil && o.Compatibility.IsSet() { + return true + } + + return false +} + +// SetCompatibility gets a reference to the given NullableBool and assigns it to the Compatibility field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetCompatibility(v bool) { + o.Compatibility.Set(&v) +} + +// SetCompatibilityNil sets the value for Compatibility to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetCompatibilityNil() { + o.Compatibility.Set(nil) +} + +// UnsetCompatibility ensures that no value is present for Compatibility, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetCompatibility() { + o.Compatibility.Unset() +} + +// GetFileExtensions returns the FileExtensions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileExtensions() string { + if o == nil || isNil(o.FileExtensions.Get()) { + var ret string + return ret + } + return *o.FileExtensions.Get() +} + +// GetFileExtensionsOk returns a tuple with the FileExtensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileExtensionsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FileExtensions.Get(), o.FileExtensions.IsSet() +} + +// HasFileExtensions returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasFileExtensions() bool { + if o != nil && o.FileExtensions.IsSet() { + return true + } + + return false +} + +// SetFileExtensions gets a reference to the given NullableString and assigns it to the FileExtensions field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileExtensions(v string) { + o.FileExtensions.Set(&v) +} + +// SetFileExtensionsNil sets the value for FileExtensions to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileExtensionsNil() { + o.FileExtensions.Set(nil) +} + +// UnsetFileExtensions ensures that no value is present for FileExtensions, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetFileExtensions() { + o.FileExtensions.Unset() +} + +// GetFileNamePatterns returns the FileNamePatterns field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileNamePatterns() string { + if o == nil || isNil(o.FileNamePatterns.Get()) { + var ret string + return ret + } + return *o.FileNamePatterns.Get() +} + +// GetFileNamePatternsOk returns a tuple with the FileNamePatterns field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintJobsResponse) GetFileNamePatternsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FileNamePatterns.Get(), o.FileNamePatterns.IsSet() +} + +// HasFileNamePatterns returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasFileNamePatterns() bool { + if o != nil && o.FileNamePatterns.IsSet() { + return true + } + + return false +} + +// SetFileNamePatterns gets a reference to the given NullableString and assigns it to the FileNamePatterns field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileNamePatterns(v string) { + o.FileNamePatterns.Set(&v) +} + +// SetFileNamePatternsNil sets the value for FileNamePatterns to be an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) SetFileNamePatternsNil() { + o.FileNamePatterns.Set(nil) +} + +// UnsetFileNamePatterns ensures that no value is present for FileNamePatterns, not even an explicit nil +func (o *OrchestratorsAgentBlueprintJobsResponse) UnsetFileNamePatterns() { + o.FileNamePatterns.Unset() +} + +// GetAgentBlueprintStores returns the AgentBlueprintStores field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStores() OrchestratorsAgentBlueprintStoresResponse { + if o == nil || isNil(o.AgentBlueprintStores) { + var ret OrchestratorsAgentBlueprintStoresResponse + return ret + } + return *o.AgentBlueprintStores +} + +// GetAgentBlueprintStoresOk returns a tuple with the AgentBlueprintStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoresOk() (*OrchestratorsAgentBlueprintStoresResponse, bool) { + if o == nil || isNil(o.AgentBlueprintStores) { + return nil, false + } + return o.AgentBlueprintStores, true +} + +// HasAgentBlueprintStores returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStores() bool { + if o != nil && !isNil(o.AgentBlueprintStores) { + return true + } + + return false +} + +// SetAgentBlueprintStores gets a reference to the given OrchestratorsAgentBlueprintStoresResponse and assigns it to the AgentBlueprintStores field. +func (o *OrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStores(v OrchestratorsAgentBlueprintStoresResponse) { + o.AgentBlueprintStores = &v +} + +func (o OrchestratorsAgentBlueprintJobsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsAgentBlueprintJobsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintJobId) { + toSerialize["AgentBlueprintJobId"] = o.AgentBlueprintJobId + } + if !isNil(o.AgentBlueprintStoreId) { + toSerialize["AgentBlueprintStoreId"] = o.AgentBlueprintStoreId + } + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if o.JobTypeName.IsSet() { + toSerialize["JobTypeName"] = o.JobTypeName.Get() + } + if o.OperationType.IsSet() { + toSerialize["OperationType"] = o.OperationType.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.Contents.IsSet() { + toSerialize["Contents"] = o.Contents.Get() + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if o.PrivateKeyEntry.IsSet() { + toSerialize["PrivateKeyEntry"] = o.PrivateKeyEntry.Get() + } + if o.Overwrite.IsSet() { + toSerialize["Overwrite"] = o.Overwrite.Get() + } + if o.HasEntryPassword.IsSet() { + toSerialize["HasEntryPassword"] = o.HasEntryPassword.Get() + } + if o.HasPfxPassword.IsSet() { + toSerialize["HasPfxPassword"] = o.HasPfxPassword.Get() + } + if o.RequestTimestamp.IsSet() { + toSerialize["RequestTimestamp"] = o.RequestTimestamp.Get() + } + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if o.Directories.IsSet() { + toSerialize["Directories"] = o.Directories.Get() + } + if o.IgnoredDirectories.IsSet() { + toSerialize["IgnoredDirectories"] = o.IgnoredDirectories.Get() + } + if o.SymLinks.IsSet() { + toSerialize["SymLinks"] = o.SymLinks.Get() + } + if o.Compatibility.IsSet() { + toSerialize["Compatibility"] = o.Compatibility.Get() + } + if o.FileExtensions.IsSet() { + toSerialize["FileExtensions"] = o.FileExtensions.Get() + } + if o.FileNamePatterns.IsSet() { + toSerialize["FileNamePatterns"] = o.FileNamePatterns.Get() + } + if !isNil(o.AgentBlueprintStores) { + toSerialize["AgentBlueprintStores"] = o.AgentBlueprintStores + } + return toSerialize, nil +} + +type NullableOrchestratorsAgentBlueprintJobsResponse struct { + value *OrchestratorsAgentBlueprintJobsResponse + isSet bool +} + +func (v NullableOrchestratorsAgentBlueprintJobsResponse) Get() *OrchestratorsAgentBlueprintJobsResponse { + return v.value +} + +func (v *NullableOrchestratorsAgentBlueprintJobsResponse) Set(val *OrchestratorsAgentBlueprintJobsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsAgentBlueprintJobsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsAgentBlueprintJobsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsAgentBlueprintJobsResponse(val *OrchestratorsAgentBlueprintJobsResponse) *NullableOrchestratorsAgentBlueprintJobsResponse { + return &NullableOrchestratorsAgentBlueprintJobsResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsAgentBlueprintJobsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsAgentBlueprintJobsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_response.go b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_response.go new file mode 100644 index 0000000..3a016d8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_response.go @@ -0,0 +1,255 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the OrchestratorsAgentBlueprintResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsAgentBlueprintResponse{} + +// OrchestratorsAgentBlueprintResponse struct for OrchestratorsAgentBlueprintResponse +type OrchestratorsAgentBlueprintResponse struct { + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + Name NullableString `json:"Name,omitempty"` + RequiredCapabilities []string `json:"RequiredCapabilities,omitempty"` + LastModified *time.Time `json:"LastModified,omitempty"` +} + +// NewOrchestratorsAgentBlueprintResponse instantiates a new OrchestratorsAgentBlueprintResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsAgentBlueprintResponse() *OrchestratorsAgentBlueprintResponse { + this := OrchestratorsAgentBlueprintResponse{} + return &this +} + +// NewOrchestratorsAgentBlueprintResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsAgentBlueprintResponseWithDefaults() *OrchestratorsAgentBlueprintResponse { + this := OrchestratorsAgentBlueprintResponse{} + return &this +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *OrchestratorsAgentBlueprintResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *OrchestratorsAgentBlueprintResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *OrchestratorsAgentBlueprintResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *OrchestratorsAgentBlueprintResponse) UnsetName() { + o.Name.Unset() +} + +// GetRequiredCapabilities returns the RequiredCapabilities field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintResponse) GetRequiredCapabilities() []string { + if o == nil { + var ret []string + return ret + } + return o.RequiredCapabilities +} + +// GetRequiredCapabilitiesOk returns a tuple with the RequiredCapabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintResponse) GetRequiredCapabilitiesOk() ([]string, bool) { + if o == nil || isNil(o.RequiredCapabilities) { + return nil, false + } + return o.RequiredCapabilities, true +} + +// HasRequiredCapabilities returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintResponse) HasRequiredCapabilities() bool { + if o != nil && isNil(o.RequiredCapabilities) { + return true + } + + return false +} + +// SetRequiredCapabilities gets a reference to the given []string and assigns it to the RequiredCapabilities field. +func (o *OrchestratorsAgentBlueprintResponse) SetRequiredCapabilities(v []string) { + o.RequiredCapabilities = v +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified) { + var ret time.Time + return ret + } + return *o.LastModified +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil || isNil(o.LastModified) { + return nil, false + } + return o.LastModified, true +} + +// HasLastModified returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintResponse) HasLastModified() bool { + if o != nil && !isNil(o.LastModified) { + return true + } + + return false +} + +// SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field. +func (o *OrchestratorsAgentBlueprintResponse) SetLastModified(v time.Time) { + o.LastModified = &v +} + +func (o OrchestratorsAgentBlueprintResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsAgentBlueprintResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.RequiredCapabilities != nil { + toSerialize["RequiredCapabilities"] = o.RequiredCapabilities + } + if !isNil(o.LastModified) { + toSerialize["LastModified"] = o.LastModified + } + return toSerialize, nil +} + +type NullableOrchestratorsAgentBlueprintResponse struct { + value *OrchestratorsAgentBlueprintResponse + isSet bool +} + +func (v NullableOrchestratorsAgentBlueprintResponse) Get() *OrchestratorsAgentBlueprintResponse { + return v.value +} + +func (v *NullableOrchestratorsAgentBlueprintResponse) Set(val *OrchestratorsAgentBlueprintResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsAgentBlueprintResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsAgentBlueprintResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsAgentBlueprintResponse(val *OrchestratorsAgentBlueprintResponse) *NullableOrchestratorsAgentBlueprintResponse { + return &NullableOrchestratorsAgentBlueprintResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsAgentBlueprintResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsAgentBlueprintResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_stores_response.go b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_stores_response.go new file mode 100644 index 0000000..0b56cbb --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_agent_blueprint_stores_response.go @@ -0,0 +1,455 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorsAgentBlueprintStoresResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsAgentBlueprintStoresResponse{} + +// OrchestratorsAgentBlueprintStoresResponse struct for OrchestratorsAgentBlueprintStoresResponse +type OrchestratorsAgentBlueprintStoresResponse struct { + AgentBlueprintStoreId *string `json:"AgentBlueprintStoreId,omitempty"` + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + StorePath NullableString `json:"StorePath,omitempty"` + ContainerId *int32 `json:"ContainerId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CertStoreTypeName NullableString `json:"CertStoreTypeName,omitempty"` + Approved *bool `json:"Approved,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties NullableString `json:"Properties,omitempty"` +} + +// NewOrchestratorsAgentBlueprintStoresResponse instantiates a new OrchestratorsAgentBlueprintStoresResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsAgentBlueprintStoresResponse() *OrchestratorsAgentBlueprintStoresResponse { + this := OrchestratorsAgentBlueprintStoresResponse{} + return &this +} + +// NewOrchestratorsAgentBlueprintStoresResponseWithDefaults instantiates a new OrchestratorsAgentBlueprintStoresResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsAgentBlueprintStoresResponseWithDefaults() *OrchestratorsAgentBlueprintStoresResponse { + this := OrchestratorsAgentBlueprintStoresResponse{} + return &this +} + +// GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreId() string { + if o == nil || isNil(o.AgentBlueprintStoreId) { + var ret string + return ret + } + return *o.AgentBlueprintStoreId +} + +// GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintStoreId) { + return nil, false + } + return o.AgentBlueprintStoreId, true +} + +// HasAgentBlueprintStoreId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintStoreId() bool { + if o != nil && !isNil(o.AgentBlueprintStoreId) { + return true + } + + return false +} + +// SetAgentBlueprintStoreId gets a reference to the given string and assigns it to the AgentBlueprintStoreId field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintStoreId(v string) { + o.AgentBlueprintStoreId = &v +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintStoresResponse) GetStorePath() string { + if o == nil || isNil(o.StorePath.Get()) { + var ret string + return ret + } + return *o.StorePath.Get() +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintStoresResponse) GetStorePathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StorePath.Get(), o.StorePath.IsSet() +} + +// HasStorePath returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasStorePath() bool { + if o != nil && o.StorePath.IsSet() { + return true + } + + return false +} + +// SetStorePath gets a reference to the given NullableString and assigns it to the StorePath field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetStorePath(v string) { + o.StorePath.Set(&v) +} + +// SetStorePathNil sets the value for StorePath to be an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) SetStorePathNil() { + o.StorePath.Set(nil) +} + +// UnsetStorePath ensures that no value is present for StorePath, not even an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetStorePath() { + o.StorePath.Unset() +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCertStoreTypeName returns the CertStoreTypeName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeName() string { + if o == nil || isNil(o.CertStoreTypeName.Get()) { + var ret string + return ret + } + return *o.CertStoreTypeName.Get() +} + +// GetCertStoreTypeNameOk returns a tuple with the CertStoreTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStoreTypeName.Get(), o.CertStoreTypeName.IsSet() +} + +// HasCertStoreTypeName returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasCertStoreTypeName() bool { + if o != nil && o.CertStoreTypeName.IsSet() { + return true + } + + return false +} + +// SetCertStoreTypeName gets a reference to the given NullableString and assigns it to the CertStoreTypeName field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeName(v string) { + o.CertStoreTypeName.Set(&v) +} + +// SetCertStoreTypeNameNil sets the value for CertStoreTypeName to be an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeNameNil() { + o.CertStoreTypeName.Set(nil) +} + +// UnsetCertStoreTypeName ensures that no value is present for CertStoreTypeName, not even an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetCertStoreTypeName() { + o.CertStoreTypeName.Unset() +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetApproved() bool { + if o == nil || isNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetApprovedOk() (*bool, bool) { + if o == nil || isNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasApproved() bool { + if o != nil && !isNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetApproved(v bool) { + o.Approved = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentBlueprintStoresResponse) GetProperties() string { + if o == nil || isNil(o.Properties.Get()) { + var ret string + return ret + } + return *o.Properties.Get() +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentBlueprintStoresResponse) GetPropertiesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Properties.Get(), o.Properties.IsSet() +} + +// HasProperties returns a boolean if a field has been set. +func (o *OrchestratorsAgentBlueprintStoresResponse) HasProperties() bool { + if o != nil && o.Properties.IsSet() { + return true + } + + return false +} + +// SetProperties gets a reference to the given NullableString and assigns it to the Properties field. +func (o *OrchestratorsAgentBlueprintStoresResponse) SetProperties(v string) { + o.Properties.Set(&v) +} + +// SetPropertiesNil sets the value for Properties to be an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) SetPropertiesNil() { + o.Properties.Set(nil) +} + +// UnsetProperties ensures that no value is present for Properties, not even an explicit nil +func (o *OrchestratorsAgentBlueprintStoresResponse) UnsetProperties() { + o.Properties.Unset() +} + +func (o OrchestratorsAgentBlueprintStoresResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsAgentBlueprintStoresResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintStoreId) { + toSerialize["AgentBlueprintStoreId"] = o.AgentBlueprintStoreId + } + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if o.StorePath.IsSet() { + toSerialize["StorePath"] = o.StorePath.Get() + } + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if o.CertStoreTypeName.IsSet() { + toSerialize["CertStoreTypeName"] = o.CertStoreTypeName.Get() + } + if !isNil(o.Approved) { + toSerialize["Approved"] = o.Approved + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if o.Properties.IsSet() { + toSerialize["Properties"] = o.Properties.Get() + } + return toSerialize, nil +} + +type NullableOrchestratorsAgentBlueprintStoresResponse struct { + value *OrchestratorsAgentBlueprintStoresResponse + isSet bool +} + +func (v NullableOrchestratorsAgentBlueprintStoresResponse) Get() *OrchestratorsAgentBlueprintStoresResponse { + return v.value +} + +func (v *NullableOrchestratorsAgentBlueprintStoresResponse) Set(val *OrchestratorsAgentBlueprintStoresResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsAgentBlueprintStoresResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsAgentBlueprintStoresResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsAgentBlueprintStoresResponse(val *OrchestratorsAgentBlueprintStoresResponse) *NullableOrchestratorsAgentBlueprintStoresResponse { + return &NullableOrchestratorsAgentBlueprintStoresResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsAgentBlueprintStoresResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsAgentBlueprintStoresResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_agent_response.go b/v24/api/keyfactor/v1/model_orchestrators_agent_response.go new file mode 100644 index 0000000..c964342 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_agent_response.go @@ -0,0 +1,787 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the OrchestratorsAgentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsAgentResponse{} + +// OrchestratorsAgentResponse struct for OrchestratorsAgentResponse +type OrchestratorsAgentResponse struct { + AgentId *string `json:"AgentId,omitempty"` + ClientMachine NullableString `json:"ClientMachine,omitempty"` + Username NullableString `json:"Username,omitempty"` + AgentPlatform *CSSCMSCoreEnumsAgentPlatformType `json:"AgentPlatform,omitempty"` + Version NullableString `json:"Version,omitempty"` + Status *CSSCMSCoreEnumsAgentStatusType `json:"Status,omitempty"` + LastSeen *time.Time `json:"LastSeen,omitempty"` + Capabilities []string `json:"Capabilities,omitempty"` + Blueprint NullableString `json:"Blueprint,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + LegacyThumbprint NullableString `json:"LegacyThumbprint,omitempty"` + AuthCertificateReenrollment NullableString `json:"AuthCertificateReenrollment,omitempty"` + LastThumbprintUsed NullableString `json:"LastThumbprintUsed,omitempty"` + LastErrorCode NullableInt64 `json:"LastErrorCode,omitempty"` + LastErrorMessage NullableString `json:"LastErrorMessage,omitempty"` + JobTypes []OrchestratorsJobTypesResponse `json:"JobTypes,omitempty"` +} + +// NewOrchestratorsAgentResponse instantiates a new OrchestratorsAgentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsAgentResponse() *OrchestratorsAgentResponse { + this := OrchestratorsAgentResponse{} + return &this +} + +// NewOrchestratorsAgentResponseWithDefaults instantiates a new OrchestratorsAgentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsAgentResponseWithDefaults() *OrchestratorsAgentResponse { + this := OrchestratorsAgentResponse{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *OrchestratorsAgentResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentResponse) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *OrchestratorsAgentResponse) SetAgentId(v string) { + o.AgentId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine.Get()) { + var ret string + return ret + } + return *o.ClientMachine.Get() +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetClientMachineOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientMachine.Get(), o.ClientMachine.IsSet() +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasClientMachine() bool { + if o != nil && o.ClientMachine.IsSet() { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given NullableString and assigns it to the ClientMachine field. +func (o *OrchestratorsAgentResponse) SetClientMachine(v string) { + o.ClientMachine.Set(&v) +} + +// SetClientMachineNil sets the value for ClientMachine to be an explicit nil +func (o *OrchestratorsAgentResponse) SetClientMachineNil() { + o.ClientMachine.Set(nil) +} + +// UnsetClientMachine ensures that no value is present for ClientMachine, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetClientMachine() { + o.ClientMachine.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *OrchestratorsAgentResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *OrchestratorsAgentResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetAgentPlatform returns the AgentPlatform field value if set, zero value otherwise. +func (o *OrchestratorsAgentResponse) GetAgentPlatform() CSSCMSCoreEnumsAgentPlatformType { + if o == nil || isNil(o.AgentPlatform) { + var ret CSSCMSCoreEnumsAgentPlatformType + return ret + } + return *o.AgentPlatform +} + +// GetAgentPlatformOk returns a tuple with the AgentPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentResponse) GetAgentPlatformOk() (*CSSCMSCoreEnumsAgentPlatformType, bool) { + if o == nil || isNil(o.AgentPlatform) { + return nil, false + } + return o.AgentPlatform, true +} + +// HasAgentPlatform returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasAgentPlatform() bool { + if o != nil && !isNil(o.AgentPlatform) { + return true + } + + return false +} + +// SetAgentPlatform gets a reference to the given CSSCMSCoreEnumsAgentPlatformType and assigns it to the AgentPlatform field. +func (o *OrchestratorsAgentResponse) SetAgentPlatform(v CSSCMSCoreEnumsAgentPlatformType) { + o.AgentPlatform = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetVersion() string { + if o == nil || isNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *OrchestratorsAgentResponse) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *OrchestratorsAgentResponse) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetVersion() { + o.Version.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *OrchestratorsAgentResponse) GetStatus() CSSCMSCoreEnumsAgentStatusType { + if o == nil || isNil(o.Status) { + var ret CSSCMSCoreEnumsAgentStatusType + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentResponse) GetStatusOk() (*CSSCMSCoreEnumsAgentStatusType, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CSSCMSCoreEnumsAgentStatusType and assigns it to the Status field. +func (o *OrchestratorsAgentResponse) SetStatus(v CSSCMSCoreEnumsAgentStatusType) { + o.Status = &v +} + +// GetLastSeen returns the LastSeen field value if set, zero value otherwise. +func (o *OrchestratorsAgentResponse) GetLastSeen() time.Time { + if o == nil || isNil(o.LastSeen) { + var ret time.Time + return ret + } + return *o.LastSeen +} + +// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsAgentResponse) GetLastSeenOk() (*time.Time, bool) { + if o == nil || isNil(o.LastSeen) { + return nil, false + } + return o.LastSeen, true +} + +// HasLastSeen returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasLastSeen() bool { + if o != nil && !isNil(o.LastSeen) { + return true + } + + return false +} + +// SetLastSeen gets a reference to the given time.Time and assigns it to the LastSeen field. +func (o *OrchestratorsAgentResponse) SetLastSeen(v time.Time) { + o.LastSeen = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetCapabilities() []string { + if o == nil { + var ret []string + return ret + } + return o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetCapabilitiesOk() ([]string, bool) { + if o == nil || isNil(o.Capabilities) { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasCapabilities() bool { + if o != nil && isNil(o.Capabilities) { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field. +func (o *OrchestratorsAgentResponse) SetCapabilities(v []string) { + o.Capabilities = v +} + +// GetBlueprint returns the Blueprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetBlueprint() string { + if o == nil || isNil(o.Blueprint.Get()) { + var ret string + return ret + } + return *o.Blueprint.Get() +} + +// GetBlueprintOk returns a tuple with the Blueprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetBlueprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Blueprint.Get(), o.Blueprint.IsSet() +} + +// HasBlueprint returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasBlueprint() bool { + if o != nil && o.Blueprint.IsSet() { + return true + } + + return false +} + +// SetBlueprint gets a reference to the given NullableString and assigns it to the Blueprint field. +func (o *OrchestratorsAgentResponse) SetBlueprint(v string) { + o.Blueprint.Set(&v) +} + +// SetBlueprintNil sets the value for Blueprint to be an explicit nil +func (o *OrchestratorsAgentResponse) SetBlueprintNil() { + o.Blueprint.Set(nil) +} + +// UnsetBlueprint ensures that no value is present for Blueprint, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetBlueprint() { + o.Blueprint.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *OrchestratorsAgentResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *OrchestratorsAgentResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetLegacyThumbprint returns the LegacyThumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetLegacyThumbprint() string { + if o == nil || isNil(o.LegacyThumbprint.Get()) { + var ret string + return ret + } + return *o.LegacyThumbprint.Get() +} + +// GetLegacyThumbprintOk returns a tuple with the LegacyThumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetLegacyThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LegacyThumbprint.Get(), o.LegacyThumbprint.IsSet() +} + +// HasLegacyThumbprint returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasLegacyThumbprint() bool { + if o != nil && o.LegacyThumbprint.IsSet() { + return true + } + + return false +} + +// SetLegacyThumbprint gets a reference to the given NullableString and assigns it to the LegacyThumbprint field. +func (o *OrchestratorsAgentResponse) SetLegacyThumbprint(v string) { + o.LegacyThumbprint.Set(&v) +} + +// SetLegacyThumbprintNil sets the value for LegacyThumbprint to be an explicit nil +func (o *OrchestratorsAgentResponse) SetLegacyThumbprintNil() { + o.LegacyThumbprint.Set(nil) +} + +// UnsetLegacyThumbprint ensures that no value is present for LegacyThumbprint, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetLegacyThumbprint() { + o.LegacyThumbprint.Unset() +} + +// GetAuthCertificateReenrollment returns the AuthCertificateReenrollment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetAuthCertificateReenrollment() string { + if o == nil || isNil(o.AuthCertificateReenrollment.Get()) { + var ret string + return ret + } + return *o.AuthCertificateReenrollment.Get() +} + +// GetAuthCertificateReenrollmentOk returns a tuple with the AuthCertificateReenrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetAuthCertificateReenrollmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthCertificateReenrollment.Get(), o.AuthCertificateReenrollment.IsSet() +} + +// HasAuthCertificateReenrollment returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasAuthCertificateReenrollment() bool { + if o != nil && o.AuthCertificateReenrollment.IsSet() { + return true + } + + return false +} + +// SetAuthCertificateReenrollment gets a reference to the given NullableString and assigns it to the AuthCertificateReenrollment field. +func (o *OrchestratorsAgentResponse) SetAuthCertificateReenrollment(v string) { + o.AuthCertificateReenrollment.Set(&v) +} + +// SetAuthCertificateReenrollmentNil sets the value for AuthCertificateReenrollment to be an explicit nil +func (o *OrchestratorsAgentResponse) SetAuthCertificateReenrollmentNil() { + o.AuthCertificateReenrollment.Set(nil) +} + +// UnsetAuthCertificateReenrollment ensures that no value is present for AuthCertificateReenrollment, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetAuthCertificateReenrollment() { + o.AuthCertificateReenrollment.Unset() +} + +// GetLastThumbprintUsed returns the LastThumbprintUsed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetLastThumbprintUsed() string { + if o == nil || isNil(o.LastThumbprintUsed.Get()) { + var ret string + return ret + } + return *o.LastThumbprintUsed.Get() +} + +// GetLastThumbprintUsedOk returns a tuple with the LastThumbprintUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetLastThumbprintUsedOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LastThumbprintUsed.Get(), o.LastThumbprintUsed.IsSet() +} + +// HasLastThumbprintUsed returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasLastThumbprintUsed() bool { + if o != nil && o.LastThumbprintUsed.IsSet() { + return true + } + + return false +} + +// SetLastThumbprintUsed gets a reference to the given NullableString and assigns it to the LastThumbprintUsed field. +func (o *OrchestratorsAgentResponse) SetLastThumbprintUsed(v string) { + o.LastThumbprintUsed.Set(&v) +} + +// SetLastThumbprintUsedNil sets the value for LastThumbprintUsed to be an explicit nil +func (o *OrchestratorsAgentResponse) SetLastThumbprintUsedNil() { + o.LastThumbprintUsed.Set(nil) +} + +// UnsetLastThumbprintUsed ensures that no value is present for LastThumbprintUsed, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetLastThumbprintUsed() { + o.LastThumbprintUsed.Unset() +} + +// GetLastErrorCode returns the LastErrorCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetLastErrorCode() int64 { + if o == nil || isNil(o.LastErrorCode.Get()) { + var ret int64 + return ret + } + return *o.LastErrorCode.Get() +} + +// GetLastErrorCodeOk returns a tuple with the LastErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetLastErrorCodeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.LastErrorCode.Get(), o.LastErrorCode.IsSet() +} + +// HasLastErrorCode returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasLastErrorCode() bool { + if o != nil && o.LastErrorCode.IsSet() { + return true + } + + return false +} + +// SetLastErrorCode gets a reference to the given NullableInt64 and assigns it to the LastErrorCode field. +func (o *OrchestratorsAgentResponse) SetLastErrorCode(v int64) { + o.LastErrorCode.Set(&v) +} + +// SetLastErrorCodeNil sets the value for LastErrorCode to be an explicit nil +func (o *OrchestratorsAgentResponse) SetLastErrorCodeNil() { + o.LastErrorCode.Set(nil) +} + +// UnsetLastErrorCode ensures that no value is present for LastErrorCode, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetLastErrorCode() { + o.LastErrorCode.Unset() +} + +// GetLastErrorMessage returns the LastErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetLastErrorMessage() string { + if o == nil || isNil(o.LastErrorMessage.Get()) { + var ret string + return ret + } + return *o.LastErrorMessage.Get() +} + +// GetLastErrorMessageOk returns a tuple with the LastErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetLastErrorMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LastErrorMessage.Get(), o.LastErrorMessage.IsSet() +} + +// HasLastErrorMessage returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasLastErrorMessage() bool { + if o != nil && o.LastErrorMessage.IsSet() { + return true + } + + return false +} + +// SetLastErrorMessage gets a reference to the given NullableString and assigns it to the LastErrorMessage field. +func (o *OrchestratorsAgentResponse) SetLastErrorMessage(v string) { + o.LastErrorMessage.Set(&v) +} + +// SetLastErrorMessageNil sets the value for LastErrorMessage to be an explicit nil +func (o *OrchestratorsAgentResponse) SetLastErrorMessageNil() { + o.LastErrorMessage.Set(nil) +} + +// UnsetLastErrorMessage ensures that no value is present for LastErrorMessage, not even an explicit nil +func (o *OrchestratorsAgentResponse) UnsetLastErrorMessage() { + o.LastErrorMessage.Unset() +} + +// GetJobTypes returns the JobTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsAgentResponse) GetJobTypes() []OrchestratorsJobTypesResponse { + if o == nil { + var ret []OrchestratorsJobTypesResponse + return ret + } + return o.JobTypes +} + +// GetJobTypesOk returns a tuple with the JobTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsAgentResponse) GetJobTypesOk() ([]OrchestratorsJobTypesResponse, bool) { + if o == nil || isNil(o.JobTypes) { + return nil, false + } + return o.JobTypes, true +} + +// HasJobTypes returns a boolean if a field has been set. +func (o *OrchestratorsAgentResponse) HasJobTypes() bool { + if o != nil && isNil(o.JobTypes) { + return true + } + + return false +} + +// SetJobTypes gets a reference to the given []OrchestratorsJobTypesResponse and assigns it to the JobTypes field. +func (o *OrchestratorsAgentResponse) SetJobTypes(v []OrchestratorsJobTypesResponse) { + o.JobTypes = v +} + +func (o OrchestratorsAgentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsAgentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if o.ClientMachine.IsSet() { + toSerialize["ClientMachine"] = o.ClientMachine.Get() + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if !isNil(o.AgentPlatform) { + toSerialize["AgentPlatform"] = o.AgentPlatform + } + if o.Version.IsSet() { + toSerialize["Version"] = o.Version.Get() + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.LastSeen) { + toSerialize["LastSeen"] = o.LastSeen + } + if o.Capabilities != nil { + toSerialize["Capabilities"] = o.Capabilities + } + if o.Blueprint.IsSet() { + toSerialize["Blueprint"] = o.Blueprint.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if o.LegacyThumbprint.IsSet() { + toSerialize["LegacyThumbprint"] = o.LegacyThumbprint.Get() + } + if o.AuthCertificateReenrollment.IsSet() { + toSerialize["AuthCertificateReenrollment"] = o.AuthCertificateReenrollment.Get() + } + if o.LastThumbprintUsed.IsSet() { + toSerialize["LastThumbprintUsed"] = o.LastThumbprintUsed.Get() + } + if o.LastErrorCode.IsSet() { + toSerialize["LastErrorCode"] = o.LastErrorCode.Get() + } + if o.LastErrorMessage.IsSet() { + toSerialize["LastErrorMessage"] = o.LastErrorMessage.Get() + } + if o.JobTypes != nil { + toSerialize["JobTypes"] = o.JobTypes + } + return toSerialize, nil +} + +type NullableOrchestratorsAgentResponse struct { + value *OrchestratorsAgentResponse + isSet bool +} + +func (v NullableOrchestratorsAgentResponse) Get() *OrchestratorsAgentResponse { + return v.value +} + +func (v *NullableOrchestratorsAgentResponse) Set(val *OrchestratorsAgentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsAgentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsAgentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsAgentResponse(val *OrchestratorsAgentResponse) *NullableOrchestratorsAgentResponse { + return &NullableOrchestratorsAgentResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsAgentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsAgentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_job_types_response.go b/v24/api/keyfactor/v1/model_orchestrators_job_types_response.go new file mode 100644 index 0000000..bb5d56c --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_job_types_response.go @@ -0,0 +1,275 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorsJobTypesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsJobTypesResponse{} + +// OrchestratorsJobTypesResponse struct for OrchestratorsJobTypesResponse +type OrchestratorsJobTypesResponse struct { + Name NullableString `json:"Name,omitempty"` + CertStoreTypeShortName NullableString `json:"CertStoreTypeShortName,omitempty"` + CertStoreJobType NullableString `json:"CertStoreJobType,omitempty"` + JobTypeId *string `json:"JobTypeId,omitempty"` +} + +// NewOrchestratorsJobTypesResponse instantiates a new OrchestratorsJobTypesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsJobTypesResponse() *OrchestratorsJobTypesResponse { + this := OrchestratorsJobTypesResponse{} + return &this +} + +// NewOrchestratorsJobTypesResponseWithDefaults instantiates a new OrchestratorsJobTypesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsJobTypesResponseWithDefaults() *OrchestratorsJobTypesResponse { + this := OrchestratorsJobTypesResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsJobTypesResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsJobTypesResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *OrchestratorsJobTypesResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *OrchestratorsJobTypesResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *OrchestratorsJobTypesResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *OrchestratorsJobTypesResponse) UnsetName() { + o.Name.Unset() +} + +// GetCertStoreTypeShortName returns the CertStoreTypeShortName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsJobTypesResponse) GetCertStoreTypeShortName() string { + if o == nil || isNil(o.CertStoreTypeShortName.Get()) { + var ret string + return ret + } + return *o.CertStoreTypeShortName.Get() +} + +// GetCertStoreTypeShortNameOk returns a tuple with the CertStoreTypeShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsJobTypesResponse) GetCertStoreTypeShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStoreTypeShortName.Get(), o.CertStoreTypeShortName.IsSet() +} + +// HasCertStoreTypeShortName returns a boolean if a field has been set. +func (o *OrchestratorsJobTypesResponse) HasCertStoreTypeShortName() bool { + if o != nil && o.CertStoreTypeShortName.IsSet() { + return true + } + + return false +} + +// SetCertStoreTypeShortName gets a reference to the given NullableString and assigns it to the CertStoreTypeShortName field. +func (o *OrchestratorsJobTypesResponse) SetCertStoreTypeShortName(v string) { + o.CertStoreTypeShortName.Set(&v) +} + +// SetCertStoreTypeShortNameNil sets the value for CertStoreTypeShortName to be an explicit nil +func (o *OrchestratorsJobTypesResponse) SetCertStoreTypeShortNameNil() { + o.CertStoreTypeShortName.Set(nil) +} + +// UnsetCertStoreTypeShortName ensures that no value is present for CertStoreTypeShortName, not even an explicit nil +func (o *OrchestratorsJobTypesResponse) UnsetCertStoreTypeShortName() { + o.CertStoreTypeShortName.Unset() +} + +// GetCertStoreJobType returns the CertStoreJobType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsJobTypesResponse) GetCertStoreJobType() string { + if o == nil || isNil(o.CertStoreJobType.Get()) { + var ret string + return ret + } + return *o.CertStoreJobType.Get() +} + +// GetCertStoreJobTypeOk returns a tuple with the CertStoreJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsJobTypesResponse) GetCertStoreJobTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertStoreJobType.Get(), o.CertStoreJobType.IsSet() +} + +// HasCertStoreJobType returns a boolean if a field has been set. +func (o *OrchestratorsJobTypesResponse) HasCertStoreJobType() bool { + if o != nil && o.CertStoreJobType.IsSet() { + return true + } + + return false +} + +// SetCertStoreJobType gets a reference to the given NullableString and assigns it to the CertStoreJobType field. +func (o *OrchestratorsJobTypesResponse) SetCertStoreJobType(v string) { + o.CertStoreJobType.Set(&v) +} + +// SetCertStoreJobTypeNil sets the value for CertStoreJobType to be an explicit nil +func (o *OrchestratorsJobTypesResponse) SetCertStoreJobTypeNil() { + o.CertStoreJobType.Set(nil) +} + +// UnsetCertStoreJobType ensures that no value is present for CertStoreJobType, not even an explicit nil +func (o *OrchestratorsJobTypesResponse) UnsetCertStoreJobType() { + o.CertStoreJobType.Unset() +} + +// GetJobTypeId returns the JobTypeId field value if set, zero value otherwise. +func (o *OrchestratorsJobTypesResponse) GetJobTypeId() string { + if o == nil || isNil(o.JobTypeId) { + var ret string + return ret + } + return *o.JobTypeId +} + +// GetJobTypeIdOk returns a tuple with the JobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsJobTypesResponse) GetJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.JobTypeId) { + return nil, false + } + return o.JobTypeId, true +} + +// HasJobTypeId returns a boolean if a field has been set. +func (o *OrchestratorsJobTypesResponse) HasJobTypeId() bool { + if o != nil && !isNil(o.JobTypeId) { + return true + } + + return false +} + +// SetJobTypeId gets a reference to the given string and assigns it to the JobTypeId field. +func (o *OrchestratorsJobTypesResponse) SetJobTypeId(v string) { + o.JobTypeId = &v +} + +func (o OrchestratorsJobTypesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsJobTypesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.CertStoreTypeShortName.IsSet() { + toSerialize["CertStoreTypeShortName"] = o.CertStoreTypeShortName.Get() + } + if o.CertStoreJobType.IsSet() { + toSerialize["CertStoreJobType"] = o.CertStoreJobType.Get() + } + if !isNil(o.JobTypeId) { + toSerialize["JobTypeId"] = o.JobTypeId + } + return toSerialize, nil +} + +type NullableOrchestratorsJobTypesResponse struct { + value *OrchestratorsJobTypesResponse + isSet bool +} + +func (v NullableOrchestratorsJobTypesResponse) Get() *OrchestratorsJobTypesResponse { + return v.value +} + +func (v *NullableOrchestratorsJobTypesResponse) Set(val *OrchestratorsJobTypesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsJobTypesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsJobTypesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsJobTypesResponse(val *OrchestratorsJobTypesResponse) *NullableOrchestratorsJobTypesResponse { + return &NullableOrchestratorsJobTypesResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsJobTypesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsJobTypesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go b/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go new file mode 100644 index 0000000..cc2f24e --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + +// OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct for OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest +type OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct { + OrchestratorIds []string `json:"OrchestratorIds,omitempty"` + Status string `json:"Status"` +} + +// NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(status string) *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + this := OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + this.Status = status + return &this +} + +// NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + this := OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + return &this +} + +// GetOrchestratorIds returns the OrchestratorIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIds() []string { + if o == nil { + var ret []string + return ret + } + return o.OrchestratorIds +} + +// GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.OrchestratorIds) { + return nil, false + } + return o.OrchestratorIds, true +} + +// HasOrchestratorIds returns a boolean if a field has been set. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) HasOrchestratorIds() bool { + if o != nil && isNil(o.OrchestratorIds) { + return true + } + + return false +} + +// SetOrchestratorIds gets a reference to the given []string and assigns it to the OrchestratorIds field. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetOrchestratorIds(v []string) { + o.OrchestratorIds = v +} + +// GetStatus returns the Status field value +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetStatus(v string) { + o.Status = v +} + +func (o OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.OrchestratorIds != nil { + toSerialize["OrchestratorIds"] = o.OrchestratorIds + } + toSerialize["Status"] = o.Status + return toSerialize, nil +} + +type NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct { + value *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + isSet bool +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Get() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + return v.value +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Set(val *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(val *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + return &NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{value: val, isSet: true} +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go b/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go new file mode 100644 index 0000000..1419a17 --- /dev/null +++ b/v24/api/keyfactor/v1/model_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + +// OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct for OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse +type OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct { + FailedOrchestratorIds []string `json:"FailedOrchestratorIds,omitempty"` + Status *CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment `json:"Status,omitempty"` +} + +// NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + this := OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + return &this +} + +// NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults instantiates a new OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + this := OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + return &this +} + +// GetFailedOrchestratorIds returns the FailedOrchestratorIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIds() []string { + if o == nil { + var ret []string + return ret + } + return o.FailedOrchestratorIds +} + +// GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.FailedOrchestratorIds) { + return nil, false + } + return o.FailedOrchestratorIds, true +} + +// HasFailedOrchestratorIds returns a boolean if a field has been set. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasFailedOrchestratorIds() bool { + if o != nil && isNil(o.FailedOrchestratorIds) { + return true + } + + return false +} + +// SetFailedOrchestratorIds gets a reference to the given []string and assigns it to the FailedOrchestratorIds field. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetFailedOrchestratorIds(v []string) { + o.FailedOrchestratorIds = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatus() CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment { + if o == nil || isNil(o.Status) { + var ret CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatusOk() (*CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment and assigns it to the Status field. +func (o *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetStatus(v CSSCMSCoreEnumsOrchestratorAuthCertificateReenrollment) { + o.Status = &v +} + +func (o OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.FailedOrchestratorIds != nil { + toSerialize["FailedOrchestratorIds"] = o.FailedOrchestratorIds + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + return toSerialize, nil +} + +type NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct { + value *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + isSet bool +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Get() *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + return v.value +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Set(val *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse(val *OrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + return &NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{value: val, isSet: true} +} + +func (v NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_create_request.go b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_create_request.go new file mode 100644 index 0000000..e61116e --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_create_request.go @@ -0,0 +1,199 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMLocalLocalPAMEntryCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMLocalLocalPAMEntryCreateRequest{} + +// PAMLocalLocalPAMEntryCreateRequest struct for PAMLocalLocalPAMEntryCreateRequest +type PAMLocalLocalPAMEntryCreateRequest struct { + SecretName string `json:"SecretName"` + Description NullableString `json:"Description,omitempty"` + SecretValue string `json:"SecretValue"` +} + +// NewPAMLocalLocalPAMEntryCreateRequest instantiates a new PAMLocalLocalPAMEntryCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMLocalLocalPAMEntryCreateRequest(secretName string, secretValue string) *PAMLocalLocalPAMEntryCreateRequest { + this := PAMLocalLocalPAMEntryCreateRequest{} + this.SecretName = secretName + this.SecretValue = secretValue + return &this +} + +// NewPAMLocalLocalPAMEntryCreateRequestWithDefaults instantiates a new PAMLocalLocalPAMEntryCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMLocalLocalPAMEntryCreateRequestWithDefaults() *PAMLocalLocalPAMEntryCreateRequest { + this := PAMLocalLocalPAMEntryCreateRequest{} + return &this +} + +// GetSecretName returns the SecretName field value +func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretName() string { + if o == nil { + var ret string + return ret + } + + return o.SecretName +} + +// GetSecretNameOk returns a tuple with the SecretName field value +// and a boolean to check if the value has been set. +func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SecretName, true +} + +// SetSecretName sets field value +func (o *PAMLocalLocalPAMEntryCreateRequest) SetSecretName(v string) { + o.SecretName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMLocalLocalPAMEntryCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMLocalLocalPAMEntryCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *PAMLocalLocalPAMEntryCreateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *PAMLocalLocalPAMEntryCreateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *PAMLocalLocalPAMEntryCreateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *PAMLocalLocalPAMEntryCreateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetSecretValue returns the SecretValue field value +func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretValue() string { + if o == nil { + var ret string + return ret + } + + return o.SecretValue +} + +// GetSecretValueOk returns a tuple with the SecretValue field value +// and a boolean to check if the value has been set. +func (o *PAMLocalLocalPAMEntryCreateRequest) GetSecretValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SecretValue, true +} + +// SetSecretValue sets field value +func (o *PAMLocalLocalPAMEntryCreateRequest) SetSecretValue(v string) { + o.SecretValue = v +} + +func (o PAMLocalLocalPAMEntryCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMLocalLocalPAMEntryCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SecretName"] = o.SecretName + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + toSerialize["SecretValue"] = o.SecretValue + return toSerialize, nil +} + +type NullablePAMLocalLocalPAMEntryCreateRequest struct { + value *PAMLocalLocalPAMEntryCreateRequest + isSet bool +} + +func (v NullablePAMLocalLocalPAMEntryCreateRequest) Get() *PAMLocalLocalPAMEntryCreateRequest { + return v.value +} + +func (v *NullablePAMLocalLocalPAMEntryCreateRequest) Set(val *PAMLocalLocalPAMEntryCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMLocalLocalPAMEntryCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMLocalLocalPAMEntryCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMLocalLocalPAMEntryCreateRequest(val *PAMLocalLocalPAMEntryCreateRequest) *NullablePAMLocalLocalPAMEntryCreateRequest { + return &NullablePAMLocalLocalPAMEntryCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMLocalLocalPAMEntryCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMLocalLocalPAMEntryCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_response.go b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_response.go new file mode 100644 index 0000000..0d9e7f5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_response.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMLocalLocalPAMEntryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMLocalLocalPAMEntryResponse{} + +// PAMLocalLocalPAMEntryResponse struct for PAMLocalLocalPAMEntryResponse +type PAMLocalLocalPAMEntryResponse struct { + ProviderId *int32 `json:"ProviderId,omitempty"` + SecretName NullableString `json:"SecretName,omitempty"` + Description NullableString `json:"Description,omitempty"` +} + +// NewPAMLocalLocalPAMEntryResponse instantiates a new PAMLocalLocalPAMEntryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMLocalLocalPAMEntryResponse() *PAMLocalLocalPAMEntryResponse { + this := PAMLocalLocalPAMEntryResponse{} + return &this +} + +// NewPAMLocalLocalPAMEntryResponseWithDefaults instantiates a new PAMLocalLocalPAMEntryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMLocalLocalPAMEntryResponseWithDefaults() *PAMLocalLocalPAMEntryResponse { + this := PAMLocalLocalPAMEntryResponse{} + return &this +} + +// GetProviderId returns the ProviderId field value if set, zero value otherwise. +func (o *PAMLocalLocalPAMEntryResponse) GetProviderId() int32 { + if o == nil || isNil(o.ProviderId) { + var ret int32 + return ret + } + return *o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMLocalLocalPAMEntryResponse) GetProviderIdOk() (*int32, bool) { + if o == nil || isNil(o.ProviderId) { + return nil, false + } + return o.ProviderId, true +} + +// HasProviderId returns a boolean if a field has been set. +func (o *PAMLocalLocalPAMEntryResponse) HasProviderId() bool { + if o != nil && !isNil(o.ProviderId) { + return true + } + + return false +} + +// SetProviderId gets a reference to the given int32 and assigns it to the ProviderId field. +func (o *PAMLocalLocalPAMEntryResponse) SetProviderId(v int32) { + o.ProviderId = &v +} + +// GetSecretName returns the SecretName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMLocalLocalPAMEntryResponse) GetSecretName() string { + if o == nil || isNil(o.SecretName.Get()) { + var ret string + return ret + } + return *o.SecretName.Get() +} + +// GetSecretNameOk returns a tuple with the SecretName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMLocalLocalPAMEntryResponse) GetSecretNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecretName.Get(), o.SecretName.IsSet() +} + +// HasSecretName returns a boolean if a field has been set. +func (o *PAMLocalLocalPAMEntryResponse) HasSecretName() bool { + if o != nil && o.SecretName.IsSet() { + return true + } + + return false +} + +// SetSecretName gets a reference to the given NullableString and assigns it to the SecretName field. +func (o *PAMLocalLocalPAMEntryResponse) SetSecretName(v string) { + o.SecretName.Set(&v) +} + +// SetSecretNameNil sets the value for SecretName to be an explicit nil +func (o *PAMLocalLocalPAMEntryResponse) SetSecretNameNil() { + o.SecretName.Set(nil) +} + +// UnsetSecretName ensures that no value is present for SecretName, not even an explicit nil +func (o *PAMLocalLocalPAMEntryResponse) UnsetSecretName() { + o.SecretName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMLocalLocalPAMEntryResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMLocalLocalPAMEntryResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *PAMLocalLocalPAMEntryResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *PAMLocalLocalPAMEntryResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *PAMLocalLocalPAMEntryResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *PAMLocalLocalPAMEntryResponse) UnsetDescription() { + o.Description.Unset() +} + +func (o PAMLocalLocalPAMEntryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMLocalLocalPAMEntryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ProviderId) { + toSerialize["ProviderId"] = o.ProviderId + } + if o.SecretName.IsSet() { + toSerialize["SecretName"] = o.SecretName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + return toSerialize, nil +} + +type NullablePAMLocalLocalPAMEntryResponse struct { + value *PAMLocalLocalPAMEntryResponse + isSet bool +} + +func (v NullablePAMLocalLocalPAMEntryResponse) Get() *PAMLocalLocalPAMEntryResponse { + return v.value +} + +func (v *NullablePAMLocalLocalPAMEntryResponse) Set(val *PAMLocalLocalPAMEntryResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMLocalLocalPAMEntryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMLocalLocalPAMEntryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMLocalLocalPAMEntryResponse(val *PAMLocalLocalPAMEntryResponse) *NullablePAMLocalLocalPAMEntryResponse { + return &NullablePAMLocalLocalPAMEntryResponse{value: val, isSet: true} +} + +func (v NullablePAMLocalLocalPAMEntryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMLocalLocalPAMEntryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_update_request.go b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_update_request.go new file mode 100644 index 0000000..382f93a --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_local_local_pam_entry_update_request.go @@ -0,0 +1,199 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMLocalLocalPAMEntryUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMLocalLocalPAMEntryUpdateRequest{} + +// PAMLocalLocalPAMEntryUpdateRequest struct for PAMLocalLocalPAMEntryUpdateRequest +type PAMLocalLocalPAMEntryUpdateRequest struct { + SecretName string `json:"SecretName"` + Description NullableString `json:"Description,omitempty"` + SecretValue string `json:"SecretValue"` +} + +// NewPAMLocalLocalPAMEntryUpdateRequest instantiates a new PAMLocalLocalPAMEntryUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMLocalLocalPAMEntryUpdateRequest(secretName string, secretValue string) *PAMLocalLocalPAMEntryUpdateRequest { + this := PAMLocalLocalPAMEntryUpdateRequest{} + this.SecretName = secretName + this.SecretValue = secretValue + return &this +} + +// NewPAMLocalLocalPAMEntryUpdateRequestWithDefaults instantiates a new PAMLocalLocalPAMEntryUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMLocalLocalPAMEntryUpdateRequestWithDefaults() *PAMLocalLocalPAMEntryUpdateRequest { + this := PAMLocalLocalPAMEntryUpdateRequest{} + return &this +} + +// GetSecretName returns the SecretName field value +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretName() string { + if o == nil { + var ret string + return ret + } + + return o.SecretName +} + +// GetSecretNameOk returns a tuple with the SecretName field value +// and a boolean to check if the value has been set. +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SecretName, true +} + +// SetSecretName sets field value +func (o *PAMLocalLocalPAMEntryUpdateRequest) SetSecretName(v string) { + o.SecretName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *PAMLocalLocalPAMEntryUpdateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *PAMLocalLocalPAMEntryUpdateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *PAMLocalLocalPAMEntryUpdateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *PAMLocalLocalPAMEntryUpdateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetSecretValue returns the SecretValue field value +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretValue() string { + if o == nil { + var ret string + return ret + } + + return o.SecretValue +} + +// GetSecretValueOk returns a tuple with the SecretValue field value +// and a boolean to check if the value has been set. +func (o *PAMLocalLocalPAMEntryUpdateRequest) GetSecretValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SecretValue, true +} + +// SetSecretValue sets field value +func (o *PAMLocalLocalPAMEntryUpdateRequest) SetSecretValue(v string) { + o.SecretValue = v +} + +func (o PAMLocalLocalPAMEntryUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMLocalLocalPAMEntryUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SecretName"] = o.SecretName + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + toSerialize["SecretValue"] = o.SecretValue + return toSerialize, nil +} + +type NullablePAMLocalLocalPAMEntryUpdateRequest struct { + value *PAMLocalLocalPAMEntryUpdateRequest + isSet bool +} + +func (v NullablePAMLocalLocalPAMEntryUpdateRequest) Get() *PAMLocalLocalPAMEntryUpdateRequest { + return v.value +} + +func (v *NullablePAMLocalLocalPAMEntryUpdateRequest) Set(val *PAMLocalLocalPAMEntryUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMLocalLocalPAMEntryUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMLocalLocalPAMEntryUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMLocalLocalPAMEntryUpdateRequest(val *PAMLocalLocalPAMEntryUpdateRequest) *NullablePAMLocalLocalPAMEntryUpdateRequest { + return &NullablePAMLocalLocalPAMEntryUpdateRequest{value: val, isSet: true} +} + +func (v NullablePAMLocalLocalPAMEntryUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMLocalLocalPAMEntryUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_pam_provider_type_param_value_response.go b/v24/api/keyfactor/v1/model_pam_pam_provider_type_param_value_response.go new file mode 100644 index 0000000..bbc4c41 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_pam_provider_type_param_value_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMPamProviderTypeParamValueResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMPamProviderTypeParamValueResponse{} + +// PAMPamProviderTypeParamValueResponse struct for PAMPamProviderTypeParamValueResponse +type PAMPamProviderTypeParamValueResponse struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + ProviderTypeParam *PAMProviderTypeParameterResponse `json:"ProviderTypeParam,omitempty"` +} + +// NewPAMPamProviderTypeParamValueResponse instantiates a new PAMPamProviderTypeParamValueResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMPamProviderTypeParamValueResponse() *PAMPamProviderTypeParamValueResponse { + this := PAMPamProviderTypeParamValueResponse{} + return &this +} + +// NewPAMPamProviderTypeParamValueResponseWithDefaults instantiates a new PAMPamProviderTypeParamValueResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMPamProviderTypeParamValueResponseWithDefaults() *PAMPamProviderTypeParamValueResponse { + this := PAMPamProviderTypeParamValueResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMPamProviderTypeParamValueResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMPamProviderTypeParamValueResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMPamProviderTypeParamValueResponse) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *PAMPamProviderTypeParamValueResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetValue() { + o.Value.Unset() +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProviderTypeParam returns the ProviderTypeParam field value if set, zero value otherwise. +func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParam() PAMProviderTypeParameterResponse { + if o == nil || isNil(o.ProviderTypeParam) { + var ret PAMProviderTypeParameterResponse + return ret + } + return *o.ProviderTypeParam +} + +// GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParamOk() (*PAMProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.ProviderTypeParam) { + return nil, false + } + return o.ProviderTypeParam, true +} + +// HasProviderTypeParam returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasProviderTypeParam() bool { + if o != nil && !isNil(o.ProviderTypeParam) { + return true + } + + return false +} + +// SetProviderTypeParam gets a reference to the given PAMProviderTypeParameterResponse and assigns it to the ProviderTypeParam field. +func (o *PAMPamProviderTypeParamValueResponse) SetProviderTypeParam(v PAMProviderTypeParameterResponse) { + o.ProviderTypeParam = &v +} + +func (o PAMPamProviderTypeParamValueResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMPamProviderTypeParamValueResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if !isNil(o.ProviderTypeParam) { + toSerialize["ProviderTypeParam"] = o.ProviderTypeParam + } + return toSerialize, nil +} + +type NullablePAMPamProviderTypeParamValueResponse struct { + value *PAMPamProviderTypeParamValueResponse + isSet bool +} + +func (v NullablePAMPamProviderTypeParamValueResponse) Get() *PAMPamProviderTypeParamValueResponse { + return v.value +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) Set(val *PAMPamProviderTypeParamValueResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMPamProviderTypeParamValueResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMPamProviderTypeParamValueResponse(val *PAMPamProviderTypeParamValueResponse) *NullablePAMPamProviderTypeParamValueResponse { + return &NullablePAMPamProviderTypeParamValueResponse{value: val, isSet: true} +} + +func (v NullablePAMPamProviderTypeParamValueResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_create_request.go b/v24/api/keyfactor/v1/model_pam_provider_create_request.go new file mode 100644 index 0000000..1d3b6a5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_create_request.go @@ -0,0 +1,308 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequest{} + +// PAMProviderCreateRequest struct for PAMProviderCreateRequest +type PAMProviderCreateRequest struct { + Name string `json:"Name"` + Remote *bool `json:"Remote,omitempty"` + Area *int32 `json:"Area,omitempty"` + ProviderType PAMProviderCreateRequestProviderType `json:"ProviderType"` + ProviderTypeParamValues []PAMProviderCreateRequestTypeParamValue `json:"ProviderTypeParamValues,omitempty"` + SecuredAreaId NullableInt32 `json:"SecuredAreaId,omitempty"` +} + +// NewPAMProviderCreateRequest instantiates a new PAMProviderCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequest(name string, providerType PAMProviderCreateRequestProviderType) *PAMProviderCreateRequest { + this := PAMProviderCreateRequest{} + this.Name = name + this.ProviderType = providerType + return &this +} + +// NewPAMProviderCreateRequestWithDefaults instantiates a new PAMProviderCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestWithDefaults() *PAMProviderCreateRequest { + this := PAMProviderCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderCreateRequest) SetName(v string) { + o.Name = v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *PAMProviderCreateRequest) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *PAMProviderCreateRequest) SetRemote(v bool) { + o.Remote = &v +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *PAMProviderCreateRequest) GetArea() int32 { + if o == nil || isNil(o.Area) { + var ret int32 + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetAreaOk() (*int32, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given int32 and assigns it to the Area field. +func (o *PAMProviderCreateRequest) SetArea(v int32) { + o.Area = &v +} + +// GetProviderType returns the ProviderType field value +func (o *PAMProviderCreateRequest) GetProviderType() PAMProviderCreateRequestProviderType { + if o == nil { + var ret PAMProviderCreateRequestProviderType + return ret + } + + return o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool) { + if o == nil { + return nil, false + } + return &o.ProviderType, true +} + +// SetProviderType sets field value +func (o *PAMProviderCreateRequest) SetProviderType(v PAMProviderCreateRequestProviderType) { + o.ProviderType = v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue { + if o == nil { + var ret []PAMProviderCreateRequestTypeParamValue + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequest) GetProviderTypeParamValuesOk() ([]PAMProviderCreateRequestTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMProviderCreateRequestTypeParamValue and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderCreateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue) { + o.ProviderTypeParamValues = v +} + +// GetSecuredAreaId returns the SecuredAreaId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequest) GetSecuredAreaId() int32 { + if o == nil || isNil(o.SecuredAreaId.Get()) { + var ret int32 + return ret + } + return *o.SecuredAreaId.Get() +} + +// GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequest) GetSecuredAreaIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SecuredAreaId.Get(), o.SecuredAreaId.IsSet() +} + +// HasSecuredAreaId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasSecuredAreaId() bool { + if o != nil && o.SecuredAreaId.IsSet() { + return true + } + + return false +} + +// SetSecuredAreaId gets a reference to the given NullableInt32 and assigns it to the SecuredAreaId field. +func (o *PAMProviderCreateRequest) SetSecuredAreaId(v int32) { + o.SecuredAreaId.Set(&v) +} + +// SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil +func (o *PAMProviderCreateRequest) SetSecuredAreaIdNil() { + o.SecuredAreaId.Set(nil) +} + +// UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +func (o *PAMProviderCreateRequest) UnsetSecuredAreaId() { + o.SecuredAreaId.Unset() +} + +func (o PAMProviderCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + toSerialize["ProviderType"] = o.ProviderType + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if o.SecuredAreaId.IsSet() { + toSerialize["SecuredAreaId"] = o.SecuredAreaId.Get() + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequest struct { + value *PAMProviderCreateRequest + isSet bool +} + +func (v NullablePAMProviderCreateRequest) Get() *PAMProviderCreateRequest { + return v.value +} + +func (v *NullablePAMProviderCreateRequest) Set(val *PAMProviderCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequest(val *PAMProviderCreateRequest) *NullablePAMProviderCreateRequest { + return &NullablePAMProviderCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type.go b/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type.go new file mode 100644 index 0000000..242f27d --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestProviderType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestProviderType{} + +// PAMProviderCreateRequestProviderType struct for PAMProviderCreateRequestProviderType +type PAMProviderCreateRequestProviderType struct { + Id *string `json:"Id,omitempty"` +} + +// NewPAMProviderCreateRequestProviderType instantiates a new PAMProviderCreateRequestProviderType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestProviderType() *PAMProviderCreateRequestProviderType { + this := PAMProviderCreateRequestProviderType{} + return &this +} + +// NewPAMProviderCreateRequestProviderTypeWithDefaults instantiates a new PAMProviderCreateRequestProviderType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestProviderTypeWithDefaults() *PAMProviderCreateRequestProviderType { + this := PAMProviderCreateRequestProviderType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderType) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderType) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderType) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *PAMProviderCreateRequestProviderType) SetId(v string) { + o.Id = &v +} + +func (o PAMProviderCreateRequestProviderType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestProviderType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestProviderType struct { + value *PAMProviderCreateRequestProviderType + isSet bool +} + +func (v NullablePAMProviderCreateRequestProviderType) Get() *PAMProviderCreateRequestProviderType { + return v.value +} + +func (v *NullablePAMProviderCreateRequestProviderType) Set(val *PAMProviderCreateRequestProviderType) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestProviderType) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestProviderType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestProviderType(val *PAMProviderCreateRequestProviderType) *NullablePAMProviderCreateRequestProviderType { + return &NullablePAMProviderCreateRequestProviderType{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestProviderType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestProviderType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type_param.go b/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type_param.go new file mode 100644 index 0000000..c925df0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_create_request_provider_type_param.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestProviderTypeParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestProviderTypeParam{} + +// PAMProviderCreateRequestProviderTypeParam struct for PAMProviderCreateRequestProviderTypeParam +type PAMProviderCreateRequestProviderTypeParam struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderCreateRequestProviderTypeParam instantiates a new PAMProviderCreateRequestProviderTypeParam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestProviderTypeParam() *PAMProviderCreateRequestProviderTypeParam { + this := PAMProviderCreateRequestProviderTypeParam{} + return &this +} + +// NewPAMProviderCreateRequestProviderTypeParamWithDefaults instantiates a new PAMProviderCreateRequestProviderTypeParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestProviderTypeParamWithDefaults() *PAMProviderCreateRequestProviderTypeParam { + this := PAMProviderCreateRequestProviderTypeParam{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderTypeParam) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestProviderTypeParam) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestProviderTypeParam) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderCreateRequestProviderTypeParam) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestProviderTypeParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestProviderTypeParam struct { + value *PAMProviderCreateRequestProviderTypeParam + isSet bool +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) Get() *PAMProviderCreateRequestProviderTypeParam { + return v.value +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) Set(val *PAMProviderCreateRequestProviderTypeParam) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestProviderTypeParam(val *PAMProviderCreateRequestProviderTypeParam) *NullablePAMProviderCreateRequestProviderTypeParam { + return &NullablePAMProviderCreateRequestProviderTypeParam{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_create_request_type_param_value.go b/v24/api/keyfactor/v1/model_pam_provider_create_request_type_param_value.go new file mode 100644 index 0000000..c1742ec --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_create_request_type_param_value.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestTypeParamValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestTypeParamValue{} + +// PAMProviderCreateRequestTypeParamValue struct for PAMProviderCreateRequestTypeParamValue +type PAMProviderCreateRequestTypeParamValue struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + ProviderTypeParam *PAMProviderCreateRequestProviderTypeParam `json:"ProviderTypeParam,omitempty"` +} + +// NewPAMProviderCreateRequestTypeParamValue instantiates a new PAMProviderCreateRequestTypeParamValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestTypeParamValue() *PAMProviderCreateRequestTypeParamValue { + this := PAMProviderCreateRequestTypeParamValue{} + return &this +} + +// NewPAMProviderCreateRequestTypeParamValueWithDefaults instantiates a new PAMProviderCreateRequestTypeParamValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestTypeParamValueWithDefaults() *PAMProviderCreateRequestTypeParamValue { + this := PAMProviderCreateRequestTypeParamValue{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestTypeParamValue) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestTypeParamValue) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderCreateRequestTypeParamValue) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *PAMProviderCreateRequestTypeParamValue) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetValue() { + o.Value.Unset() +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProviderTypeParam returns the ProviderTypeParam field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParam() PAMProviderCreateRequestProviderTypeParam { + if o == nil || isNil(o.ProviderTypeParam) { + var ret PAMProviderCreateRequestProviderTypeParam + return ret + } + return *o.ProviderTypeParam +} + +// GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParamOk() (*PAMProviderCreateRequestProviderTypeParam, bool) { + if o == nil || isNil(o.ProviderTypeParam) { + return nil, false + } + return o.ProviderTypeParam, true +} + +// HasProviderTypeParam returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasProviderTypeParam() bool { + if o != nil && !isNil(o.ProviderTypeParam) { + return true + } + + return false +} + +// SetProviderTypeParam gets a reference to the given PAMProviderCreateRequestProviderTypeParam and assigns it to the ProviderTypeParam field. +func (o *PAMProviderCreateRequestTypeParamValue) SetProviderTypeParam(v PAMProviderCreateRequestProviderTypeParam) { + o.ProviderTypeParam = &v +} + +func (o PAMProviderCreateRequestTypeParamValue) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestTypeParamValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if !isNil(o.ProviderTypeParam) { + toSerialize["ProviderTypeParam"] = o.ProviderTypeParam + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestTypeParamValue struct { + value *PAMProviderCreateRequestTypeParamValue + isSet bool +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) Get() *PAMProviderCreateRequestTypeParamValue { + return v.value +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) Set(val *PAMProviderCreateRequestTypeParamValue) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestTypeParamValue(val *PAMProviderCreateRequestTypeParamValue) *NullablePAMProviderCreateRequestTypeParamValue { + return &NullablePAMProviderCreateRequestTypeParamValue{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_response_legacy.go b/v24/api/keyfactor/v1/model_pam_provider_response_legacy.go new file mode 100644 index 0000000..7033231 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_response_legacy.go @@ -0,0 +1,373 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderResponseLegacy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderResponseLegacy{} + +// PAMProviderResponseLegacy struct for PAMProviderResponseLegacy +type PAMProviderResponseLegacy struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Area *int32 `json:"Area,omitempty"` + ProviderType *CSSCMSDataModelModelsProviderType `json:"ProviderType,omitempty"` + ProviderTypeParamValues []PAMPamProviderTypeParamValueResponse `json:"ProviderTypeParamValues,omitempty"` + SecuredAreaId NullableInt32 `json:"SecuredAreaId,omitempty"` + Remote *bool `json:"Remote,omitempty"` +} + +// NewPAMProviderResponseLegacy instantiates a new PAMProviderResponseLegacy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderResponseLegacy() *PAMProviderResponseLegacy { + this := PAMProviderResponseLegacy{} + return &this +} + +// NewPAMProviderResponseLegacyWithDefaults instantiates a new PAMProviderResponseLegacy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderResponseLegacyWithDefaults() *PAMProviderResponseLegacy { + this := PAMProviderResponseLegacy{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderResponseLegacy) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponseLegacy) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderResponseLegacy) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderResponseLegacy) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderResponseLegacy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderResponseLegacy) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderResponseLegacy) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderResponseLegacy) UnsetName() { + o.Name.Unset() +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *PAMProviderResponseLegacy) GetArea() int32 { + if o == nil || isNil(o.Area) { + var ret int32 + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponseLegacy) GetAreaOk() (*int32, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given int32 and assigns it to the Area field. +func (o *PAMProviderResponseLegacy) SetArea(v int32) { + o.Area = &v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *PAMProviderResponseLegacy) GetProviderType() CSSCMSDataModelModelsProviderType { + if o == nil || isNil(o.ProviderType) { + var ret CSSCMSDataModelModelsProviderType + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponseLegacy) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool) { + if o == nil || isNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasProviderType() bool { + if o != nil && !isNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given CSSCMSDataModelModelsProviderType and assigns it to the ProviderType field. +func (o *PAMProviderResponseLegacy) SetProviderType(v CSSCMSDataModelModelsProviderType) { + o.ProviderType = &v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderResponseLegacy) GetProviderTypeParamValues() []PAMPamProviderTypeParamValueResponse { + if o == nil { + var ret []PAMPamProviderTypeParamValueResponse + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderResponseLegacy) GetProviderTypeParamValuesOk() ([]PAMPamProviderTypeParamValueResponse, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMPamProviderTypeParamValueResponse and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderResponseLegacy) SetProviderTypeParamValues(v []PAMPamProviderTypeParamValueResponse) { + o.ProviderTypeParamValues = v +} + +// GetSecuredAreaId returns the SecuredAreaId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderResponseLegacy) GetSecuredAreaId() int32 { + if o == nil || isNil(o.SecuredAreaId.Get()) { + var ret int32 + return ret + } + return *o.SecuredAreaId.Get() +} + +// GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderResponseLegacy) GetSecuredAreaIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SecuredAreaId.Get(), o.SecuredAreaId.IsSet() +} + +// HasSecuredAreaId returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasSecuredAreaId() bool { + if o != nil && o.SecuredAreaId.IsSet() { + return true + } + + return false +} + +// SetSecuredAreaId gets a reference to the given NullableInt32 and assigns it to the SecuredAreaId field. +func (o *PAMProviderResponseLegacy) SetSecuredAreaId(v int32) { + o.SecuredAreaId.Set(&v) +} + +// SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil +func (o *PAMProviderResponseLegacy) SetSecuredAreaIdNil() { + o.SecuredAreaId.Set(nil) +} + +// UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +func (o *PAMProviderResponseLegacy) UnsetSecuredAreaId() { + o.SecuredAreaId.Unset() +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *PAMProviderResponseLegacy) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponseLegacy) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *PAMProviderResponseLegacy) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *PAMProviderResponseLegacy) SetRemote(v bool) { + o.Remote = &v +} + +func (o PAMProviderResponseLegacy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderResponseLegacy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + if !isNil(o.ProviderType) { + toSerialize["ProviderType"] = o.ProviderType + } + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if o.SecuredAreaId.IsSet() { + toSerialize["SecuredAreaId"] = o.SecuredAreaId.Get() + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + return toSerialize, nil +} + +type NullablePAMProviderResponseLegacy struct { + value *PAMProviderResponseLegacy + isSet bool +} + +func (v NullablePAMProviderResponseLegacy) Get() *PAMProviderResponseLegacy { + return v.value +} + +func (v *NullablePAMProviderResponseLegacy) Set(val *PAMProviderResponseLegacy) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderResponseLegacy) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderResponseLegacy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderResponseLegacy(val *PAMProviderResponseLegacy) *NullablePAMProviderResponseLegacy { + return &NullablePAMProviderResponseLegacy{value: val, isSet: true} +} + +func (v NullablePAMProviderResponseLegacy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderResponseLegacy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_type_create_request.go b/v24/api/keyfactor/v1/model_pam_provider_type_create_request.go new file mode 100644 index 0000000..9d8e76b --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_type_create_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeCreateRequest{} + +// PAMProviderTypeCreateRequest struct for PAMProviderTypeCreateRequest +type PAMProviderTypeCreateRequest struct { + Name string `json:"Name"` + Parameters []PAMProviderTypeParameterCreateRequest `json:"Parameters,omitempty"` +} + +// NewPAMProviderTypeCreateRequest instantiates a new PAMProviderTypeCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeCreateRequest(name string) *PAMProviderTypeCreateRequest { + this := PAMProviderTypeCreateRequest{} + this.Name = name + return &this +} + +// NewPAMProviderTypeCreateRequestWithDefaults instantiates a new PAMProviderTypeCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeCreateRequestWithDefaults() *PAMProviderTypeCreateRequest { + this := PAMProviderTypeCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderTypeCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderTypeCreateRequest) SetName(v string) { + o.Name = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeCreateRequest) GetParameters() []PAMProviderTypeParameterCreateRequest { + if o == nil { + var ret []PAMProviderTypeParameterCreateRequest + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeCreateRequest) GetParametersOk() ([]PAMProviderTypeParameterCreateRequest, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PAMProviderTypeCreateRequest) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []PAMProviderTypeParameterCreateRequest and assigns it to the Parameters field. +func (o *PAMProviderTypeCreateRequest) SetParameters(v []PAMProviderTypeParameterCreateRequest) { + o.Parameters = v +} + +func (o PAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullablePAMProviderTypeCreateRequest struct { + value *PAMProviderTypeCreateRequest + isSet bool +} + +func (v NullablePAMProviderTypeCreateRequest) Get() *PAMProviderTypeCreateRequest { + return v.value +} + +func (v *NullablePAMProviderTypeCreateRequest) Set(val *PAMProviderTypeCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeCreateRequest(val *PAMProviderTypeCreateRequest) *NullablePAMProviderTypeCreateRequest { + return &NullablePAMProviderTypeCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_type_parameter_create_request.go b/v24/api/keyfactor/v1/model_pam_provider_type_parameter_create_request.go new file mode 100644 index 0000000..05fcf17 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_type_parameter_create_request.go @@ -0,0 +1,244 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeParameterCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeParameterCreateRequest{} + +// PAMProviderTypeParameterCreateRequest struct for PAMProviderTypeParameterCreateRequest +type PAMProviderTypeParameterCreateRequest struct { + Name string `json:"Name"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderTypeParameterCreateRequest instantiates a new PAMProviderTypeParameterCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeParameterCreateRequest(name string) *PAMProviderTypeParameterCreateRequest { + this := PAMProviderTypeParameterCreateRequest{} + this.Name = name + return &this +} + +// NewPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new PAMProviderTypeParameterCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeParameterCreateRequestWithDefaults() *PAMProviderTypeParameterCreateRequest { + this := PAMProviderTypeParameterCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderTypeParameterCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderTypeParameterCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterCreateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderTypeParameterCreateRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderTypeParameterCreateRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderTypeParameterCreateRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterCreateRequest) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *PAMProviderTypeParameterCreateRequest) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeParameterCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderTypeParameterCreateRequest struct { + value *PAMProviderTypeParameterCreateRequest + isSet bool +} + +func (v NullablePAMProviderTypeParameterCreateRequest) Get() *PAMProviderTypeParameterCreateRequest { + return v.value +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) Set(val *PAMProviderTypeParameterCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeParameterCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeParameterCreateRequest(val *PAMProviderTypeParameterCreateRequest) *NullablePAMProviderTypeParameterCreateRequest { + return &NullablePAMProviderTypeParameterCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_type_parameter_response.go b/v24/api/keyfactor/v1/model_pam_provider_type_parameter_response.go new file mode 100644 index 0000000..a484b07 --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_type_parameter_response.go @@ -0,0 +1,300 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeParameterResponse{} + +// PAMProviderTypeParameterResponse struct for PAMProviderTypeParameterResponse +type PAMProviderTypeParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderTypeParameterResponse instantiates a new PAMProviderTypeParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeParameterResponse() *PAMProviderTypeParameterResponse { + this := PAMProviderTypeParameterResponse{} + return &this +} + +// NewPAMProviderTypeParameterResponseWithDefaults instantiates a new PAMProviderTypeParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeParameterResponseWithDefaults() *PAMProviderTypeParameterResponse { + this := PAMProviderTypeParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderTypeParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderTypeParameterResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderTypeParameterResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderTypeParameterResponse) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderTypeParameterResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderTypeParameterResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderTypeParameterResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *PAMProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderTypeParameterResponse) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderTypeParameterResponse struct { + value *PAMProviderTypeParameterResponse + isSet bool +} + +func (v NullablePAMProviderTypeParameterResponse) Get() *PAMProviderTypeParameterResponse { + return v.value +} + +func (v *NullablePAMProviderTypeParameterResponse) Set(val *PAMProviderTypeParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeParameterResponse(val *PAMProviderTypeParameterResponse) *NullablePAMProviderTypeParameterResponse { + return &NullablePAMProviderTypeParameterResponse{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_type_response.go b/v24/api/keyfactor/v1/model_pam_provider_type_response.go new file mode 100644 index 0000000..55745ab --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_type_response.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeResponse{} + +// PAMProviderTypeResponse struct for PAMProviderTypeResponse +type PAMProviderTypeResponse struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Parameters []PAMProviderTypeParameterResponse `json:"Parameters,omitempty"` +} + +// NewPAMProviderTypeResponse instantiates a new PAMProviderTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeResponse() *PAMProviderTypeResponse { + this := PAMProviderTypeResponse{} + return &this +} + +// NewPAMProviderTypeResponseWithDefaults instantiates a new PAMProviderTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeResponseWithDefaults() *PAMProviderTypeResponse { + this := PAMProviderTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderTypeResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *PAMProviderTypeResponse) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderTypeResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderTypeResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderTypeResponse) UnsetName() { + o.Name.Unset() +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeResponse) GetParameters() []PAMProviderTypeParameterResponse { + if o == nil { + var ret []PAMProviderTypeParameterResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeResponse) GetParametersOk() ([]PAMProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []PAMProviderTypeParameterResponse and assigns it to the Parameters field. +func (o *PAMProviderTypeResponse) SetParameters(v []PAMProviderTypeParameterResponse) { + o.Parameters = v +} + +func (o PAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullablePAMProviderTypeResponse struct { + value *PAMProviderTypeResponse + isSet bool +} + +func (v NullablePAMProviderTypeResponse) Get() *PAMProviderTypeResponse { + return v.value +} + +func (v *NullablePAMProviderTypeResponse) Set(val *PAMProviderTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeResponse(val *PAMProviderTypeResponse) *NullablePAMProviderTypeResponse { + return &NullablePAMProviderTypeResponse{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_pam_provider_update_request_legacy.go b/v24/api/keyfactor/v1/model_pam_provider_update_request_legacy.go new file mode 100644 index 0000000..062700b --- /dev/null +++ b/v24/api/keyfactor/v1/model_pam_provider_update_request_legacy.go @@ -0,0 +1,335 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PAMProviderUpdateRequestLegacy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderUpdateRequestLegacy{} + +// PAMProviderUpdateRequestLegacy struct for PAMProviderUpdateRequestLegacy +type PAMProviderUpdateRequestLegacy struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Remote *bool `json:"Remote,omitempty"` + Area *int32 `json:"Area,omitempty"` + ProviderType PAMProviderCreateRequestProviderType `json:"ProviderType"` + ProviderTypeParamValues []PAMProviderCreateRequestTypeParamValue `json:"ProviderTypeParamValues,omitempty"` + SecuredAreaId NullableInt32 `json:"SecuredAreaId,omitempty"` +} + +// NewPAMProviderUpdateRequestLegacy instantiates a new PAMProviderUpdateRequestLegacy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderUpdateRequestLegacy(id int32, name string, providerType PAMProviderCreateRequestProviderType) *PAMProviderUpdateRequestLegacy { + this := PAMProviderUpdateRequestLegacy{} + this.Id = id + this.Name = name + this.ProviderType = providerType + return &this +} + +// NewPAMProviderUpdateRequestLegacyWithDefaults instantiates a new PAMProviderUpdateRequestLegacy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderUpdateRequestLegacyWithDefaults() *PAMProviderUpdateRequestLegacy { + this := PAMProviderUpdateRequestLegacy{} + return &this +} + +// GetId returns the Id field value +func (o *PAMProviderUpdateRequestLegacy) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequestLegacy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PAMProviderUpdateRequestLegacy) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *PAMProviderUpdateRequestLegacy) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequestLegacy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderUpdateRequestLegacy) SetName(v string) { + o.Name = v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *PAMProviderUpdateRequestLegacy) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequestLegacy) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *PAMProviderUpdateRequestLegacy) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *PAMProviderUpdateRequestLegacy) SetRemote(v bool) { + o.Remote = &v +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *PAMProviderUpdateRequestLegacy) GetArea() int32 { + if o == nil || isNil(o.Area) { + var ret int32 + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequestLegacy) GetAreaOk() (*int32, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *PAMProviderUpdateRequestLegacy) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given int32 and assigns it to the Area field. +func (o *PAMProviderUpdateRequestLegacy) SetArea(v int32) { + o.Area = &v +} + +// GetProviderType returns the ProviderType field value +func (o *PAMProviderUpdateRequestLegacy) GetProviderType() PAMProviderCreateRequestProviderType { + if o == nil { + var ret PAMProviderCreateRequestProviderType + return ret + } + + return o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool) { + if o == nil { + return nil, false + } + return &o.ProviderType, true +} + +// SetProviderType sets field value +func (o *PAMProviderUpdateRequestLegacy) SetProviderType(v PAMProviderCreateRequestProviderType) { + o.ProviderType = v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue { + if o == nil { + var ret []PAMProviderCreateRequestTypeParamValue + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderUpdateRequestLegacy) GetProviderTypeParamValuesOk() ([]PAMProviderCreateRequestTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderUpdateRequestLegacy) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMProviderCreateRequestTypeParamValue and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderUpdateRequestLegacy) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue) { + o.ProviderTypeParamValues = v +} + +// GetSecuredAreaId returns the SecuredAreaId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderUpdateRequestLegacy) GetSecuredAreaId() int32 { + if o == nil || isNil(o.SecuredAreaId.Get()) { + var ret int32 + return ret + } + return *o.SecuredAreaId.Get() +} + +// GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderUpdateRequestLegacy) GetSecuredAreaIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SecuredAreaId.Get(), o.SecuredAreaId.IsSet() +} + +// HasSecuredAreaId returns a boolean if a field has been set. +func (o *PAMProviderUpdateRequestLegacy) HasSecuredAreaId() bool { + if o != nil && o.SecuredAreaId.IsSet() { + return true + } + + return false +} + +// SetSecuredAreaId gets a reference to the given NullableInt32 and assigns it to the SecuredAreaId field. +func (o *PAMProviderUpdateRequestLegacy) SetSecuredAreaId(v int32) { + o.SecuredAreaId.Set(&v) +} + +// SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil +func (o *PAMProviderUpdateRequestLegacy) SetSecuredAreaIdNil() { + o.SecuredAreaId.Set(nil) +} + +// UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +func (o *PAMProviderUpdateRequestLegacy) UnsetSecuredAreaId() { + o.SecuredAreaId.Unset() +} + +func (o PAMProviderUpdateRequestLegacy) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderUpdateRequestLegacy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + toSerialize["ProviderType"] = o.ProviderType + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if o.SecuredAreaId.IsSet() { + toSerialize["SecuredAreaId"] = o.SecuredAreaId.Get() + } + return toSerialize, nil +} + +type NullablePAMProviderUpdateRequestLegacy struct { + value *PAMProviderUpdateRequestLegacy + isSet bool +} + +func (v NullablePAMProviderUpdateRequestLegacy) Get() *PAMProviderUpdateRequestLegacy { + return v.value +} + +func (v *NullablePAMProviderUpdateRequestLegacy) Set(val *PAMProviderUpdateRequestLegacy) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderUpdateRequestLegacy) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderUpdateRequestLegacy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderUpdateRequestLegacy(val *PAMProviderUpdateRequestLegacy) *NullablePAMProviderUpdateRequestLegacy { + return &NullablePAMProviderUpdateRequestLegacy{value: val, isSet: true} +} + +func (v NullablePAMProviderUpdateRequestLegacy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderUpdateRequestLegacy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_permission_sets_permission_set_create_request.go b/v24/api/keyfactor/v1/model_permission_sets_permission_set_create_request.go new file mode 100644 index 0000000..c246761 --- /dev/null +++ b/v24/api/keyfactor/v1/model_permission_sets_permission_set_create_request.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PermissionSetsPermissionSetCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionSetsPermissionSetCreateRequest{} + +// PermissionSetsPermissionSetCreateRequest struct for PermissionSetsPermissionSetCreateRequest +type PermissionSetsPermissionSetCreateRequest struct { + // The name of the permission set. + Name string `json:"Name"` + // The permissions within the set. + Permissions []string `json:"Permissions"` +} + +// NewPermissionSetsPermissionSetCreateRequest instantiates a new PermissionSetsPermissionSetCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionSetsPermissionSetCreateRequest(name string, permissions []string) *PermissionSetsPermissionSetCreateRequest { + this := PermissionSetsPermissionSetCreateRequest{} + this.Name = name + this.Permissions = permissions + return &this +} + +// NewPermissionSetsPermissionSetCreateRequestWithDefaults instantiates a new PermissionSetsPermissionSetCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionSetsPermissionSetCreateRequestWithDefaults() *PermissionSetsPermissionSetCreateRequest { + this := PermissionSetsPermissionSetCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PermissionSetsPermissionSetCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PermissionSetsPermissionSetCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PermissionSetsPermissionSetCreateRequest) SetName(v string) { + o.Name = v +} + +// GetPermissions returns the Permissions field value +func (o *PermissionSetsPermissionSetCreateRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value +// and a boolean to check if the value has been set. +func (o *PermissionSetsPermissionSetCreateRequest) GetPermissionsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Permissions, true +} + +// SetPermissions sets field value +func (o *PermissionSetsPermissionSetCreateRequest) SetPermissions(v []string) { + o.Permissions = v +} + +func (o PermissionSetsPermissionSetCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionSetsPermissionSetCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Permissions"] = o.Permissions + return toSerialize, nil +} + +type NullablePermissionSetsPermissionSetCreateRequest struct { + value *PermissionSetsPermissionSetCreateRequest + isSet bool +} + +func (v NullablePermissionSetsPermissionSetCreateRequest) Get() *PermissionSetsPermissionSetCreateRequest { + return v.value +} + +func (v *NullablePermissionSetsPermissionSetCreateRequest) Set(val *PermissionSetsPermissionSetCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionSetsPermissionSetCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionSetsPermissionSetCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionSetsPermissionSetCreateRequest(val *PermissionSetsPermissionSetCreateRequest) *NullablePermissionSetsPermissionSetCreateRequest { + return &NullablePermissionSetsPermissionSetCreateRequest{value: val, isSet: true} +} + +func (v NullablePermissionSetsPermissionSetCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionSetsPermissionSetCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_permission_sets_permission_set_response.go b/v24/api/keyfactor/v1/model_permission_sets_permission_set_response.go new file mode 100644 index 0000000..7197cdb --- /dev/null +++ b/v24/api/keyfactor/v1/model_permission_sets_permission_set_response.go @@ -0,0 +1,221 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PermissionSetsPermissionSetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionSetsPermissionSetResponse{} + +// PermissionSetsPermissionSetResponse struct for PermissionSetsPermissionSetResponse +type PermissionSetsPermissionSetResponse struct { + // The Id of the permission set. + Id *string `json:"Id,omitempty"` + // The name of the permission set. + Name NullableString `json:"Name,omitempty"` + // The permissions within the set. + Permissions []string `json:"Permissions,omitempty"` +} + +// NewPermissionSetsPermissionSetResponse instantiates a new PermissionSetsPermissionSetResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionSetsPermissionSetResponse() *PermissionSetsPermissionSetResponse { + this := PermissionSetsPermissionSetResponse{} + return &this +} + +// NewPermissionSetsPermissionSetResponseWithDefaults instantiates a new PermissionSetsPermissionSetResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionSetsPermissionSetResponseWithDefaults() *PermissionSetsPermissionSetResponse { + this := PermissionSetsPermissionSetResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PermissionSetsPermissionSetResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionSetsPermissionSetResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PermissionSetsPermissionSetResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *PermissionSetsPermissionSetResponse) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PermissionSetsPermissionSetResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PermissionSetsPermissionSetResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PermissionSetsPermissionSetResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PermissionSetsPermissionSetResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PermissionSetsPermissionSetResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PermissionSetsPermissionSetResponse) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PermissionSetsPermissionSetResponse) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PermissionSetsPermissionSetResponse) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *PermissionSetsPermissionSetResponse) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *PermissionSetsPermissionSetResponse) SetPermissions(v []string) { + o.Permissions = v +} + +func (o PermissionSetsPermissionSetResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionSetsPermissionSetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullablePermissionSetsPermissionSetResponse struct { + value *PermissionSetsPermissionSetResponse + isSet bool +} + +func (v NullablePermissionSetsPermissionSetResponse) Get() *PermissionSetsPermissionSetResponse { + return v.value +} + +func (v *NullablePermissionSetsPermissionSetResponse) Set(val *PermissionSetsPermissionSetResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionSetsPermissionSetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionSetsPermissionSetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionSetsPermissionSetResponse(val *PermissionSetsPermissionSetResponse) *NullablePermissionSetsPermissionSetResponse { + return &NullablePermissionSetsPermissionSetResponse{value: val, isSet: true} +} + +func (v NullablePermissionSetsPermissionSetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionSetsPermissionSetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_permission_sets_permission_set_update_request.go b/v24/api/keyfactor/v1/model_permission_sets_permission_set_update_request.go new file mode 100644 index 0000000..d5763d7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_permission_sets_permission_set_update_request.go @@ -0,0 +1,154 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the PermissionSetsPermissionSetUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionSetsPermissionSetUpdateRequest{} + +// PermissionSetsPermissionSetUpdateRequest struct for PermissionSetsPermissionSetUpdateRequest +type PermissionSetsPermissionSetUpdateRequest struct { + // The Id of the permission set. + Id string `json:"Id"` + // The permissions within the set. + Permissions []string `json:"Permissions"` +} + +// NewPermissionSetsPermissionSetUpdateRequest instantiates a new PermissionSetsPermissionSetUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionSetsPermissionSetUpdateRequest(id string, permissions []string) *PermissionSetsPermissionSetUpdateRequest { + this := PermissionSetsPermissionSetUpdateRequest{} + this.Id = id + this.Permissions = permissions + return &this +} + +// NewPermissionSetsPermissionSetUpdateRequestWithDefaults instantiates a new PermissionSetsPermissionSetUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionSetsPermissionSetUpdateRequestWithDefaults() *PermissionSetsPermissionSetUpdateRequest { + this := PermissionSetsPermissionSetUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *PermissionSetsPermissionSetUpdateRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PermissionSetsPermissionSetUpdateRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PermissionSetsPermissionSetUpdateRequest) SetId(v string) { + o.Id = v +} + +// GetPermissions returns the Permissions field value +func (o *PermissionSetsPermissionSetUpdateRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value +// and a boolean to check if the value has been set. +func (o *PermissionSetsPermissionSetUpdateRequest) GetPermissionsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Permissions, true +} + +// SetPermissions sets field value +func (o *PermissionSetsPermissionSetUpdateRequest) SetPermissions(v []string) { + o.Permissions = v +} + +func (o PermissionSetsPermissionSetUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionSetsPermissionSetUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Permissions"] = o.Permissions + return toSerialize, nil +} + +type NullablePermissionSetsPermissionSetUpdateRequest struct { + value *PermissionSetsPermissionSetUpdateRequest + isSet bool +} + +func (v NullablePermissionSetsPermissionSetUpdateRequest) Get() *PermissionSetsPermissionSetUpdateRequest { + return v.value +} + +func (v *NullablePermissionSetsPermissionSetUpdateRequest) Set(val *PermissionSetsPermissionSetUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionSetsPermissionSetUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionSetsPermissionSetUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionSetsPermissionSetUpdateRequest(val *PermissionSetsPermissionSetUpdateRequest) *NullablePermissionSetsPermissionSetUpdateRequest { + return &NullablePermissionSetsPermissionSetUpdateRequest{value: val, isSet: true} +} + +func (v NullablePermissionSetsPermissionSetUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionSetsPermissionSetUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_request.go b/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_request.go new file mode 100644 index 0000000..40350c9 --- /dev/null +++ b/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_request.go @@ -0,0 +1,499 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the RabbitMQJobQueueRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RabbitMQJobQueueRequest{} + +// RabbitMQJobQueueRequest struct for RabbitMQJobQueueRequest +type RabbitMQJobQueueRequest struct { + AuthType NullableString `json:"AuthType,omitempty"` + TaskQueueURL NullableString `json:"TaskQueueURL,omitempty"` + TokenURL NullableString `json:"TokenURL,omitempty"` + ClientID NullableString `json:"ClientID,omitempty"` + ClientSecret *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret,omitempty"` + Scope NullableString `json:"Scope,omitempty"` + Audience NullableString `json:"Audience,omitempty"` + Username NullableString `json:"Username,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorAPISecret `json:"Password,omitempty"` +} + +// NewRabbitMQJobQueueRequest instantiates a new RabbitMQJobQueueRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRabbitMQJobQueueRequest() *RabbitMQJobQueueRequest { + this := RabbitMQJobQueueRequest{} + return &this +} + +// NewRabbitMQJobQueueRequestWithDefaults instantiates a new RabbitMQJobQueueRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRabbitMQJobQueueRequestWithDefaults() *RabbitMQJobQueueRequest { + this := RabbitMQJobQueueRequest{} + return &this +} + +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetAuthType() string { + if o == nil || isNil(o.AuthType.Get()) { + var ret string + return ret + } + return *o.AuthType.Get() +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthType.Get(), o.AuthType.IsSet() +} + +// HasAuthType returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasAuthType() bool { + if o != nil && o.AuthType.IsSet() { + return true + } + + return false +} + +// SetAuthType gets a reference to the given NullableString and assigns it to the AuthType field. +func (o *RabbitMQJobQueueRequest) SetAuthType(v string) { + o.AuthType.Set(&v) +} + +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetAuthType() { + o.AuthType.Unset() +} + +// GetTaskQueueURL returns the TaskQueueURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetTaskQueueURL() string { + if o == nil || isNil(o.TaskQueueURL.Get()) { + var ret string + return ret + } + return *o.TaskQueueURL.Get() +} + +// GetTaskQueueURLOk returns a tuple with the TaskQueueURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetTaskQueueURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskQueueURL.Get(), o.TaskQueueURL.IsSet() +} + +// HasTaskQueueURL returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasTaskQueueURL() bool { + if o != nil && o.TaskQueueURL.IsSet() { + return true + } + + return false +} + +// SetTaskQueueURL gets a reference to the given NullableString and assigns it to the TaskQueueURL field. +func (o *RabbitMQJobQueueRequest) SetTaskQueueURL(v string) { + o.TaskQueueURL.Set(&v) +} + +// SetTaskQueueURLNil sets the value for TaskQueueURL to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetTaskQueueURLNil() { + o.TaskQueueURL.Set(nil) +} + +// UnsetTaskQueueURL ensures that no value is present for TaskQueueURL, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetTaskQueueURL() { + o.TaskQueueURL.Unset() +} + +// GetTokenURL returns the TokenURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetTokenURL() string { + if o == nil || isNil(o.TokenURL.Get()) { + var ret string + return ret + } + return *o.TokenURL.Get() +} + +// GetTokenURLOk returns a tuple with the TokenURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetTokenURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TokenURL.Get(), o.TokenURL.IsSet() +} + +// HasTokenURL returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasTokenURL() bool { + if o != nil && o.TokenURL.IsSet() { + return true + } + + return false +} + +// SetTokenURL gets a reference to the given NullableString and assigns it to the TokenURL field. +func (o *RabbitMQJobQueueRequest) SetTokenURL(v string) { + o.TokenURL.Set(&v) +} + +// SetTokenURLNil sets the value for TokenURL to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetTokenURLNil() { + o.TokenURL.Set(nil) +} + +// UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetTokenURL() { + o.TokenURL.Unset() +} + +// GetClientID returns the ClientID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetClientID() string { + if o == nil || isNil(o.ClientID.Get()) { + var ret string + return ret + } + return *o.ClientID.Get() +} + +// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetClientIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientID.Get(), o.ClientID.IsSet() +} + +// HasClientID returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasClientID() bool { + if o != nil && o.ClientID.IsSet() { + return true + } + + return false +} + +// SetClientID gets a reference to the given NullableString and assigns it to the ClientID field. +func (o *RabbitMQJobQueueRequest) SetClientID(v string) { + o.ClientID.Set(&v) +} + +// SetClientIDNil sets the value for ClientID to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetClientIDNil() { + o.ClientID.Set(nil) +} + +// UnsetClientID ensures that no value is present for ClientID, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetClientID() { + o.ClientID.Unset() +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *RabbitMQJobQueueRequest) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ClientSecret) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQJobQueueRequest) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasClientSecret() bool { + if o != nil && !isNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ClientSecret field. +func (o *RabbitMQJobQueueRequest) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetScope() string { + if o == nil || isNil(o.Scope.Get()) { + var ret string + return ret + } + return *o.Scope.Get() +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Scope.Get(), o.Scope.IsSet() +} + +// HasScope returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasScope() bool { + if o != nil && o.Scope.IsSet() { + return true + } + + return false +} + +// SetScope gets a reference to the given NullableString and assigns it to the Scope field. +func (o *RabbitMQJobQueueRequest) SetScope(v string) { + o.Scope.Set(&v) +} + +// SetScopeNil sets the value for Scope to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetScopeNil() { + o.Scope.Set(nil) +} + +// UnsetScope ensures that no value is present for Scope, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetScope() { + o.Scope.Unset() +} + +// GetAudience returns the Audience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetAudience() string { + if o == nil || isNil(o.Audience.Get()) { + var ret string + return ret + } + return *o.Audience.Get() +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Audience.Get(), o.Audience.IsSet() +} + +// HasAudience returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasAudience() bool { + if o != nil && o.Audience.IsSet() { + return true + } + + return false +} + +// SetAudience gets a reference to the given NullableString and assigns it to the Audience field. +func (o *RabbitMQJobQueueRequest) SetAudience(v string) { + o.Audience.Set(&v) +} + +// SetAudienceNil sets the value for Audience to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetAudienceNil() { + o.Audience.Set(nil) +} + +// UnsetAudience ensures that no value is present for Audience, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetAudience() { + o.Audience.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueRequest) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *RabbitMQJobQueueRequest) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *RabbitMQJobQueueRequest) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *RabbitMQJobQueueRequest) UnsetUsername() { + o.Username.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *RabbitMQJobQueueRequest) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQJobQueueRequest) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *RabbitMQJobQueueRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *RabbitMQJobQueueRequest) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o RabbitMQJobQueueRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RabbitMQJobQueueRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.AuthType.IsSet() { + toSerialize["AuthType"] = o.AuthType.Get() + } + if o.TaskQueueURL.IsSet() { + toSerialize["TaskQueueURL"] = o.TaskQueueURL.Get() + } + if o.TokenURL.IsSet() { + toSerialize["TokenURL"] = o.TokenURL.Get() + } + if o.ClientID.IsSet() { + toSerialize["ClientID"] = o.ClientID.Get() + } + if !isNil(o.ClientSecret) { + toSerialize["ClientSecret"] = o.ClientSecret + } + if o.Scope.IsSet() { + toSerialize["Scope"] = o.Scope.Get() + } + if o.Audience.IsSet() { + toSerialize["Audience"] = o.Audience.Get() + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + return toSerialize, nil +} + +type NullableRabbitMQJobQueueRequest struct { + value *RabbitMQJobQueueRequest + isSet bool +} + +func (v NullableRabbitMQJobQueueRequest) Get() *RabbitMQJobQueueRequest { + return v.value +} + +func (v *NullableRabbitMQJobQueueRequest) Set(val *RabbitMQJobQueueRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRabbitMQJobQueueRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRabbitMQJobQueueRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRabbitMQJobQueueRequest(val *RabbitMQJobQueueRequest) *NullableRabbitMQJobQueueRequest { + return &NullableRabbitMQJobQueueRequest{value: val, isSet: true} +} + +func (v NullableRabbitMQJobQueueRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRabbitMQJobQueueRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_response.go b/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_response.go new file mode 100644 index 0000000..f8345e4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_rabbit_mq_job_queue_response.go @@ -0,0 +1,499 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the RabbitMQJobQueueResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RabbitMQJobQueueResponse{} + +// RabbitMQJobQueueResponse struct for RabbitMQJobQueueResponse +type RabbitMQJobQueueResponse struct { + TaskQueueURL NullableString `json:"TaskQueueURL,omitempty"` + TokenURL NullableString `json:"TokenURL,omitempty"` + ClientID NullableString `json:"ClientID,omitempty"` + ClientSecret *CSSCMSDataModelModelsKeyfactorAPISecret `json:"ClientSecret,omitempty"` + Scope NullableString `json:"Scope,omitempty"` + Username NullableString `json:"Username,omitempty"` + Audience NullableString `json:"Audience,omitempty"` + Password *CSSCMSDataModelModelsKeyfactorAPISecret `json:"Password,omitempty"` + AuthType NullableString `json:"AuthType,omitempty"` +} + +// NewRabbitMQJobQueueResponse instantiates a new RabbitMQJobQueueResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRabbitMQJobQueueResponse() *RabbitMQJobQueueResponse { + this := RabbitMQJobQueueResponse{} + return &this +} + +// NewRabbitMQJobQueueResponseWithDefaults instantiates a new RabbitMQJobQueueResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRabbitMQJobQueueResponseWithDefaults() *RabbitMQJobQueueResponse { + this := RabbitMQJobQueueResponse{} + return &this +} + +// GetTaskQueueURL returns the TaskQueueURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetTaskQueueURL() string { + if o == nil || isNil(o.TaskQueueURL.Get()) { + var ret string + return ret + } + return *o.TaskQueueURL.Get() +} + +// GetTaskQueueURLOk returns a tuple with the TaskQueueURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetTaskQueueURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskQueueURL.Get(), o.TaskQueueURL.IsSet() +} + +// HasTaskQueueURL returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasTaskQueueURL() bool { + if o != nil && o.TaskQueueURL.IsSet() { + return true + } + + return false +} + +// SetTaskQueueURL gets a reference to the given NullableString and assigns it to the TaskQueueURL field. +func (o *RabbitMQJobQueueResponse) SetTaskQueueURL(v string) { + o.TaskQueueURL.Set(&v) +} + +// SetTaskQueueURLNil sets the value for TaskQueueURL to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetTaskQueueURLNil() { + o.TaskQueueURL.Set(nil) +} + +// UnsetTaskQueueURL ensures that no value is present for TaskQueueURL, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetTaskQueueURL() { + o.TaskQueueURL.Unset() +} + +// GetTokenURL returns the TokenURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetTokenURL() string { + if o == nil || isNil(o.TokenURL.Get()) { + var ret string + return ret + } + return *o.TokenURL.Get() +} + +// GetTokenURLOk returns a tuple with the TokenURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetTokenURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TokenURL.Get(), o.TokenURL.IsSet() +} + +// HasTokenURL returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasTokenURL() bool { + if o != nil && o.TokenURL.IsSet() { + return true + } + + return false +} + +// SetTokenURL gets a reference to the given NullableString and assigns it to the TokenURL field. +func (o *RabbitMQJobQueueResponse) SetTokenURL(v string) { + o.TokenURL.Set(&v) +} + +// SetTokenURLNil sets the value for TokenURL to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetTokenURLNil() { + o.TokenURL.Set(nil) +} + +// UnsetTokenURL ensures that no value is present for TokenURL, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetTokenURL() { + o.TokenURL.Unset() +} + +// GetClientID returns the ClientID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetClientID() string { + if o == nil || isNil(o.ClientID.Get()) { + var ret string + return ret + } + return *o.ClientID.Get() +} + +// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetClientIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientID.Get(), o.ClientID.IsSet() +} + +// HasClientID returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasClientID() bool { + if o != nil && o.ClientID.IsSet() { + return true + } + + return false +} + +// SetClientID gets a reference to the given NullableString and assigns it to the ClientID field. +func (o *RabbitMQJobQueueResponse) SetClientID(v string) { + o.ClientID.Set(&v) +} + +// SetClientIDNil sets the value for ClientID to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetClientIDNil() { + o.ClientID.Set(nil) +} + +// UnsetClientID ensures that no value is present for ClientID, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetClientID() { + o.ClientID.Unset() +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *RabbitMQJobQueueResponse) GetClientSecret() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.ClientSecret) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQJobQueueResponse) GetClientSecretOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ClientSecret) { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasClientSecret() bool { + if o != nil && !isNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the ClientSecret field. +func (o *RabbitMQJobQueueResponse) SetClientSecret(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.ClientSecret = &v +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetScope() string { + if o == nil || isNil(o.Scope.Get()) { + var ret string + return ret + } + return *o.Scope.Get() +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetScopeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Scope.Get(), o.Scope.IsSet() +} + +// HasScope returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasScope() bool { + if o != nil && o.Scope.IsSet() { + return true + } + + return false +} + +// SetScope gets a reference to the given NullableString and assigns it to the Scope field. +func (o *RabbitMQJobQueueResponse) SetScope(v string) { + o.Scope.Set(&v) +} + +// SetScopeNil sets the value for Scope to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetScopeNil() { + o.Scope.Set(nil) +} + +// UnsetScope ensures that no value is present for Scope, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetScope() { + o.Scope.Unset() +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *RabbitMQJobQueueResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetAudience returns the Audience field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetAudience() string { + if o == nil || isNil(o.Audience.Get()) { + var ret string + return ret + } + return *o.Audience.Get() +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Audience.Get(), o.Audience.IsSet() +} + +// HasAudience returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasAudience() bool { + if o != nil && o.Audience.IsSet() { + return true + } + + return false +} + +// SetAudience gets a reference to the given NullableString and assigns it to the Audience field. +func (o *RabbitMQJobQueueResponse) SetAudience(v string) { + o.Audience.Set(&v) +} + +// SetAudienceNil sets the value for Audience to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetAudienceNil() { + o.Audience.Set(nil) +} + +// UnsetAudience ensures that no value is present for Audience, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetAudience() { + o.Audience.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *RabbitMQJobQueueResponse) GetPassword() CSSCMSDataModelModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret CSSCMSDataModelModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RabbitMQJobQueueResponse) GetPasswordOk() (*CSSCMSDataModelModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given CSSCMSDataModelModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *RabbitMQJobQueueResponse) SetPassword(v CSSCMSDataModelModelsKeyfactorAPISecret) { + o.Password = &v +} + +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RabbitMQJobQueueResponse) GetAuthType() string { + if o == nil || isNil(o.AuthType.Get()) { + var ret string + return ret + } + return *o.AuthType.Get() +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RabbitMQJobQueueResponse) GetAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthType.Get(), o.AuthType.IsSet() +} + +// HasAuthType returns a boolean if a field has been set. +func (o *RabbitMQJobQueueResponse) HasAuthType() bool { + if o != nil && o.AuthType.IsSet() { + return true + } + + return false +} + +// SetAuthType gets a reference to the given NullableString and assigns it to the AuthType field. +func (o *RabbitMQJobQueueResponse) SetAuthType(v string) { + o.AuthType.Set(&v) +} + +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *RabbitMQJobQueueResponse) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *RabbitMQJobQueueResponse) UnsetAuthType() { + o.AuthType.Unset() +} + +func (o RabbitMQJobQueueResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RabbitMQJobQueueResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TaskQueueURL.IsSet() { + toSerialize["TaskQueueURL"] = o.TaskQueueURL.Get() + } + if o.TokenURL.IsSet() { + toSerialize["TokenURL"] = o.TokenURL.Get() + } + if o.ClientID.IsSet() { + toSerialize["ClientID"] = o.ClientID.Get() + } + if !isNil(o.ClientSecret) { + toSerialize["ClientSecret"] = o.ClientSecret + } + if o.Scope.IsSet() { + toSerialize["Scope"] = o.Scope.Get() + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.Audience.IsSet() { + toSerialize["Audience"] = o.Audience.Get() + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + if o.AuthType.IsSet() { + toSerialize["AuthType"] = o.AuthType.Get() + } + return toSerialize, nil +} + +type NullableRabbitMQJobQueueResponse struct { + value *RabbitMQJobQueueResponse + isSet bool +} + +func (v NullableRabbitMQJobQueueResponse) Get() *RabbitMQJobQueueResponse { + return v.value +} + +func (v *NullableRabbitMQJobQueueResponse) Set(val *RabbitMQJobQueueResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRabbitMQJobQueueResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRabbitMQJobQueueResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRabbitMQJobQueueResponse(val *RabbitMQJobQueueResponse) *NullableRabbitMQJobQueueResponse { + return &NullableRabbitMQJobQueueResponse{value: val, isSet: true} +} + +func (v NullableRabbitMQJobQueueResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRabbitMQJobQueueResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_creation_request.go b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_creation_request.go new file mode 100644 index 0000000..6d02321 --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_creation_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsCustomReportsCustomReportCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsCustomReportsCustomReportCreationRequest{} + +// ReportsCustomReportsCustomReportCreationRequest struct for ReportsCustomReportsCustomReportCreationRequest +type ReportsCustomReportsCustomReportCreationRequest struct { + CustomURL string `json:"CustomURL"` + DisplayName string `json:"DisplayName"` + Description string `json:"Description"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` +} + +// NewReportsCustomReportsCustomReportCreationRequest instantiates a new ReportsCustomReportsCustomReportCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsCustomReportsCustomReportCreationRequest(customURL string, displayName string, description string) *ReportsCustomReportsCustomReportCreationRequest { + this := ReportsCustomReportsCustomReportCreationRequest{} + this.CustomURL = customURL + this.DisplayName = displayName + this.Description = description + return &this +} + +// NewReportsCustomReportsCustomReportCreationRequestWithDefaults instantiates a new ReportsCustomReportsCustomReportCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsCustomReportsCustomReportCreationRequestWithDefaults() *ReportsCustomReportsCustomReportCreationRequest { + this := ReportsCustomReportsCustomReportCreationRequest{} + return &this +} + +// GetCustomURL returns the CustomURL field value +func (o *ReportsCustomReportsCustomReportCreationRequest) GetCustomURL() string { + if o == nil { + var ret string + return ret + } + + return o.CustomURL +} + +// GetCustomURLOk returns a tuple with the CustomURL field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetCustomURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustomURL, true +} + +// SetCustomURL sets field value +func (o *ReportsCustomReportsCustomReportCreationRequest) SetCustomURL(v string) { + o.CustomURL = v +} + +// GetDisplayName returns the DisplayName field value +func (o *ReportsCustomReportsCustomReportCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ReportsCustomReportsCustomReportCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetDescription returns the Description field value +func (o *ReportsCustomReportsCustomReportCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ReportsCustomReportsCustomReportCreationRequest) SetDescription(v string) { + o.Description = v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ReportsCustomReportsCustomReportCreationRequest) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportCreationRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ReportsCustomReportsCustomReportCreationRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ReportsCustomReportsCustomReportCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsCustomReportsCustomReportCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CustomURL"] = o.CustomURL + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Description"] = o.Description + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + return toSerialize, nil +} + +type NullableReportsCustomReportsCustomReportCreationRequest struct { + value *ReportsCustomReportsCustomReportCreationRequest + isSet bool +} + +func (v NullableReportsCustomReportsCustomReportCreationRequest) Get() *ReportsCustomReportsCustomReportCreationRequest { + return v.value +} + +func (v *NullableReportsCustomReportsCustomReportCreationRequest) Set(val *ReportsCustomReportsCustomReportCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReportsCustomReportsCustomReportCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsCustomReportsCustomReportCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsCustomReportsCustomReportCreationRequest(val *ReportsCustomReportsCustomReportCreationRequest) *NullableReportsCustomReportsCustomReportCreationRequest { + return &NullableReportsCustomReportsCustomReportCreationRequest{value: val, isSet: true} +} + +func (v NullableReportsCustomReportsCustomReportCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsCustomReportsCustomReportCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_response.go b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_response.go new file mode 100644 index 0000000..28c6124 --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_response.go @@ -0,0 +1,347 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsCustomReportsCustomReportResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsCustomReportsCustomReportResponse{} + +// ReportsCustomReportsCustomReportResponse struct for ReportsCustomReportsCustomReportResponse +type ReportsCustomReportsCustomReportResponse struct { + CustomURL NullableString `json:"CustomURL,omitempty"` + Id *int32 `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` +} + +// NewReportsCustomReportsCustomReportResponse instantiates a new ReportsCustomReportsCustomReportResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsCustomReportsCustomReportResponse() *ReportsCustomReportsCustomReportResponse { + this := ReportsCustomReportsCustomReportResponse{} + return &this +} + +// NewReportsCustomReportsCustomReportResponseWithDefaults instantiates a new ReportsCustomReportsCustomReportResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsCustomReportsCustomReportResponseWithDefaults() *ReportsCustomReportsCustomReportResponse { + this := ReportsCustomReportsCustomReportResponse{} + return &this +} + +// GetCustomURL returns the CustomURL field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsCustomReportsCustomReportResponse) GetCustomURL() string { + if o == nil || isNil(o.CustomURL.Get()) { + var ret string + return ret + } + return *o.CustomURL.Get() +} + +// GetCustomURLOk returns a tuple with the CustomURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsCustomReportsCustomReportResponse) GetCustomURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CustomURL.Get(), o.CustomURL.IsSet() +} + +// HasCustomURL returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasCustomURL() bool { + if o != nil && o.CustomURL.IsSet() { + return true + } + + return false +} + +// SetCustomURL gets a reference to the given NullableString and assigns it to the CustomURL field. +func (o *ReportsCustomReportsCustomReportResponse) SetCustomURL(v string) { + o.CustomURL.Set(&v) +} + +// SetCustomURLNil sets the value for CustomURL to be an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) SetCustomURLNil() { + o.CustomURL.Set(nil) +} + +// UnsetCustomURL ensures that no value is present for CustomURL, not even an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) UnsetCustomURL() { + o.CustomURL.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ReportsCustomReportsCustomReportResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ReportsCustomReportsCustomReportResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsCustomReportsCustomReportResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsCustomReportsCustomReportResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *ReportsCustomReportsCustomReportResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsCustomReportsCustomReportResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsCustomReportsCustomReportResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *ReportsCustomReportsCustomReportResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *ReportsCustomReportsCustomReportResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ReportsCustomReportsCustomReportResponse) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportResponse) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ReportsCustomReportsCustomReportResponse) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ReportsCustomReportsCustomReportResponse) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportResponse) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ReportsCustomReportsCustomReportResponse) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ReportsCustomReportsCustomReportResponse) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ReportsCustomReportsCustomReportResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsCustomReportsCustomReportResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CustomURL.IsSet() { + toSerialize["CustomURL"] = o.CustomURL.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + return toSerialize, nil +} + +type NullableReportsCustomReportsCustomReportResponse struct { + value *ReportsCustomReportsCustomReportResponse + isSet bool +} + +func (v NullableReportsCustomReportsCustomReportResponse) Get() *ReportsCustomReportsCustomReportResponse { + return v.value +} + +func (v *NullableReportsCustomReportsCustomReportResponse) Set(val *ReportsCustomReportsCustomReportResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReportsCustomReportsCustomReportResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsCustomReportsCustomReportResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsCustomReportsCustomReportResponse(val *ReportsCustomReportsCustomReportResponse) *NullableReportsCustomReportsCustomReportResponse { + return &NullableReportsCustomReportsCustomReportResponse{value: val, isSet: true} +} + +func (v NullableReportsCustomReportsCustomReportResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsCustomReportsCustomReportResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_update_request.go b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_update_request.go new file mode 100644 index 0000000..dcc174b --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_custom_reports_custom_report_update_request.go @@ -0,0 +1,260 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsCustomReportsCustomReportUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsCustomReportsCustomReportUpdateRequest{} + +// ReportsCustomReportsCustomReportUpdateRequest struct for ReportsCustomReportsCustomReportUpdateRequest +type ReportsCustomReportsCustomReportUpdateRequest struct { + Id int32 `json:"Id"` + CustomURL string `json:"CustomURL"` + DisplayName string `json:"DisplayName"` + Description string `json:"Description"` + InNavigator bool `json:"InNavigator"` + Favorite bool `json:"Favorite"` +} + +// NewReportsCustomReportsCustomReportUpdateRequest instantiates a new ReportsCustomReportsCustomReportUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsCustomReportsCustomReportUpdateRequest(id int32, customURL string, displayName string, description string, inNavigator bool, favorite bool) *ReportsCustomReportsCustomReportUpdateRequest { + this := ReportsCustomReportsCustomReportUpdateRequest{} + this.Id = id + this.CustomURL = customURL + this.DisplayName = displayName + this.Description = description + this.InNavigator = inNavigator + this.Favorite = favorite + return &this +} + +// NewReportsCustomReportsCustomReportUpdateRequestWithDefaults instantiates a new ReportsCustomReportsCustomReportUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsCustomReportsCustomReportUpdateRequestWithDefaults() *ReportsCustomReportsCustomReportUpdateRequest { + this := ReportsCustomReportsCustomReportUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetCustomURL returns the CustomURL field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetCustomURL() string { + if o == nil { + var ret string + return ret + } + + return o.CustomURL +} + +// GetCustomURLOk returns a tuple with the CustomURL field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetCustomURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustomURL, true +} + +// SetCustomURL sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetCustomURL(v string) { + o.CustomURL = v +} + +// GetDisplayName returns the DisplayName field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetDescription returns the Description field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetInNavigator returns the InNavigator field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetInNavigator() bool { + if o == nil { + var ret bool + return ret + } + + return o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetInNavigatorOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.InNavigator, true +} + +// SetInNavigator sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetInNavigator(v bool) { + o.InNavigator = v +} + +// GetFavorite returns the Favorite field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetFavorite() bool { + if o == nil { + var ret bool + return ret + } + + return o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value +// and a boolean to check if the value has been set. +func (o *ReportsCustomReportsCustomReportUpdateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Favorite, true +} + +// SetFavorite sets field value +func (o *ReportsCustomReportsCustomReportUpdateRequest) SetFavorite(v bool) { + o.Favorite = v +} + +func (o ReportsCustomReportsCustomReportUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsCustomReportsCustomReportUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["CustomURL"] = o.CustomURL + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Description"] = o.Description + toSerialize["InNavigator"] = o.InNavigator + toSerialize["Favorite"] = o.Favorite + return toSerialize, nil +} + +type NullableReportsCustomReportsCustomReportUpdateRequest struct { + value *ReportsCustomReportsCustomReportUpdateRequest + isSet bool +} + +func (v NullableReportsCustomReportsCustomReportUpdateRequest) Get() *ReportsCustomReportsCustomReportUpdateRequest { + return v.value +} + +func (v *NullableReportsCustomReportsCustomReportUpdateRequest) Set(val *ReportsCustomReportsCustomReportUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReportsCustomReportsCustomReportUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsCustomReportsCustomReportUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsCustomReportsCustomReportUpdateRequest(val *ReportsCustomReportsCustomReportUpdateRequest) *NullableReportsCustomReportsCustomReportUpdateRequest { + return &NullableReportsCustomReportsCustomReportUpdateRequest{value: val, isSet: true} +} + +func (v NullableReportsCustomReportsCustomReportUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsCustomReportsCustomReportUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_creation_request.go b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_creation_request.go new file mode 100644 index 0000000..244283e --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_creation_request.go @@ -0,0 +1,391 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsReportSchedulesReportScheduleCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsReportSchedulesReportScheduleCreationRequest{} + +// ReportsReportSchedulesReportScheduleCreationRequest struct for ReportsReportSchedulesReportScheduleCreationRequest +type ReportsReportSchedulesReportScheduleCreationRequest struct { + SendReport *bool `json:"SendReport,omitempty"` + SaveReport *bool `json:"SaveReport,omitempty"` + SaveReportPath NullableString `json:"SaveReportPath,omitempty"` + ReportFormat string `json:"ReportFormat"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + CertificateCollectionId NullableInt32 `json:"CertificateCollectionId,omitempty"` + EmailRecipients []string `json:"EmailRecipients,omitempty"` + RuntimeParameters map[string]string `json:"RuntimeParameters"` +} + +// NewReportsReportSchedulesReportScheduleCreationRequest instantiates a new ReportsReportSchedulesReportScheduleCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsReportSchedulesReportScheduleCreationRequest(reportFormat string, runtimeParameters map[string]string) *ReportsReportSchedulesReportScheduleCreationRequest { + this := ReportsReportSchedulesReportScheduleCreationRequest{} + this.ReportFormat = reportFormat + this.RuntimeParameters = runtimeParameters + return &this +} + +// NewReportsReportSchedulesReportScheduleCreationRequestWithDefaults instantiates a new ReportsReportSchedulesReportScheduleCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsReportSchedulesReportScheduleCreationRequestWithDefaults() *ReportsReportSchedulesReportScheduleCreationRequest { + this := ReportsReportSchedulesReportScheduleCreationRequest{} + return &this +} + +// GetSendReport returns the SendReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSendReport() bool { + if o == nil || isNil(o.SendReport) { + var ret bool + return ret + } + return *o.SendReport +} + +// GetSendReportOk returns a tuple with the SendReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSendReportOk() (*bool, bool) { + if o == nil || isNil(o.SendReport) { + return nil, false + } + return o.SendReport, true +} + +// HasSendReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSendReport() bool { + if o != nil && !isNil(o.SendReport) { + return true + } + + return false +} + +// SetSendReport gets a reference to the given bool and assigns it to the SendReport field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSendReport(v bool) { + o.SendReport = &v +} + +// GetSaveReport returns the SaveReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReport() bool { + if o == nil || isNil(o.SaveReport) { + var ret bool + return ret + } + return *o.SaveReport +} + +// GetSaveReportOk returns a tuple with the SaveReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportOk() (*bool, bool) { + if o == nil || isNil(o.SaveReport) { + return nil, false + } + return o.SaveReport, true +} + +// HasSaveReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSaveReport() bool { + if o != nil && !isNil(o.SaveReport) { + return true + } + + return false +} + +// SetSaveReport gets a reference to the given bool and assigns it to the SaveReport field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReport(v bool) { + o.SaveReport = &v +} + +// GetSaveReportPath returns the SaveReportPath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportPath() string { + if o == nil || isNil(o.SaveReportPath.Get()) { + var ret string + return ret + } + return *o.SaveReportPath.Get() +} + +// GetSaveReportPathOk returns a tuple with the SaveReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetSaveReportPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SaveReportPath.Get(), o.SaveReportPath.IsSet() +} + +// HasSaveReportPath returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasSaveReportPath() bool { + if o != nil && o.SaveReportPath.IsSet() { + return true + } + + return false +} + +// SetSaveReportPath gets a reference to the given NullableString and assigns it to the SaveReportPath field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReportPath(v string) { + o.SaveReportPath.Set(&v) +} + +// SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetSaveReportPathNil() { + o.SaveReportPath.Set(nil) +} + +// UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleCreationRequest) UnsetSaveReportPath() { + o.SaveReportPath.Unset() +} + +// GetReportFormat returns the ReportFormat field value +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetReportFormat() string { + if o == nil { + var ret string + return ret + } + + return o.ReportFormat +} + +// GetReportFormatOk returns a tuple with the ReportFormat field value +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetReportFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReportFormat, true +} + +// SetReportFormat sets field value +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetReportFormat(v string) { + o.ReportFormat = v +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetCertificateCollectionId returns the CertificateCollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetCertificateCollectionId() int32 { + if o == nil || isNil(o.CertificateCollectionId.Get()) { + var ret int32 + return ret + } + return *o.CertificateCollectionId.Get() +} + +// GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetCertificateCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateCollectionId.Get(), o.CertificateCollectionId.IsSet() +} + +// HasCertificateCollectionId returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasCertificateCollectionId() bool { + if o != nil && o.CertificateCollectionId.IsSet() { + return true + } + + return false +} + +// SetCertificateCollectionId gets a reference to the given NullableInt32 and assigns it to the CertificateCollectionId field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetCertificateCollectionId(v int32) { + o.CertificateCollectionId.Set(&v) +} + +// SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetCertificateCollectionIdNil() { + o.CertificateCollectionId.Set(nil) +} + +// UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleCreationRequest) UnsetCertificateCollectionId() { + o.CertificateCollectionId.Unset() +} + +// GetEmailRecipients returns the EmailRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetEmailRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.EmailRecipients +} + +// GetEmailRecipientsOk returns a tuple with the EmailRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetEmailRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.EmailRecipients) { + return nil, false + } + return o.EmailRecipients, true +} + +// HasEmailRecipients returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) HasEmailRecipients() bool { + if o != nil && isNil(o.EmailRecipients) { + return true + } + + return false +} + +// SetEmailRecipients gets a reference to the given []string and assigns it to the EmailRecipients field. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetEmailRecipients(v []string) { + o.EmailRecipients = v +} + +// GetRuntimeParameters returns the RuntimeParameters field value +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetRuntimeParameters() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.RuntimeParameters +} + +// GetRuntimeParametersOk returns a tuple with the RuntimeParameters field value +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleCreationRequest) GetRuntimeParametersOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.RuntimeParameters, true +} + +// SetRuntimeParameters sets field value +func (o *ReportsReportSchedulesReportScheduleCreationRequest) SetRuntimeParameters(v map[string]string) { + o.RuntimeParameters = v +} + +func (o ReportsReportSchedulesReportScheduleCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsReportSchedulesReportScheduleCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SendReport) { + toSerialize["SendReport"] = o.SendReport + } + if !isNil(o.SaveReport) { + toSerialize["SaveReport"] = o.SaveReport + } + if o.SaveReportPath.IsSet() { + toSerialize["SaveReportPath"] = o.SaveReportPath.Get() + } + toSerialize["ReportFormat"] = o.ReportFormat + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if o.CertificateCollectionId.IsSet() { + toSerialize["CertificateCollectionId"] = o.CertificateCollectionId.Get() + } + if o.EmailRecipients != nil { + toSerialize["EmailRecipients"] = o.EmailRecipients + } + toSerialize["RuntimeParameters"] = o.RuntimeParameters + return toSerialize, nil +} + +type NullableReportsReportSchedulesReportScheduleCreationRequest struct { + value *ReportsReportSchedulesReportScheduleCreationRequest + isSet bool +} + +func (v NullableReportsReportSchedulesReportScheduleCreationRequest) Get() *ReportsReportSchedulesReportScheduleCreationRequest { + return v.value +} + +func (v *NullableReportsReportSchedulesReportScheduleCreationRequest) Set(val *ReportsReportSchedulesReportScheduleCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReportsReportSchedulesReportScheduleCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsReportSchedulesReportScheduleCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsReportSchedulesReportScheduleCreationRequest(val *ReportsReportSchedulesReportScheduleCreationRequest) *NullableReportsReportSchedulesReportScheduleCreationRequest { + return &NullableReportsReportSchedulesReportScheduleCreationRequest{value: val, isSet: true} +} + +func (v NullableReportsReportSchedulesReportScheduleCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsReportSchedulesReportScheduleCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_response.go b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_response.go new file mode 100644 index 0000000..a84a654 --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_response.go @@ -0,0 +1,446 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsReportSchedulesReportScheduleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsReportSchedulesReportScheduleResponse{} + +// ReportsReportSchedulesReportScheduleResponse struct for ReportsReportSchedulesReportScheduleResponse +type ReportsReportSchedulesReportScheduleResponse struct { + Id *int32 `json:"Id,omitempty"` + SendReport *bool `json:"SendReport,omitempty"` + SaveReport *bool `json:"SaveReport,omitempty"` + SaveReportPath NullableString `json:"SaveReportPath,omitempty"` + ReportFormat NullableString `json:"ReportFormat,omitempty"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + CertificateCollectionId *int32 `json:"CertificateCollectionId,omitempty"` + EmailRecipients []string `json:"EmailRecipients,omitempty"` + RuntimeParameters map[string]string `json:"RuntimeParameters,omitempty"` +} + +// NewReportsReportSchedulesReportScheduleResponse instantiates a new ReportsReportSchedulesReportScheduleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsReportSchedulesReportScheduleResponse() *ReportsReportSchedulesReportScheduleResponse { + this := ReportsReportSchedulesReportScheduleResponse{} + return &this +} + +// NewReportsReportSchedulesReportScheduleResponseWithDefaults instantiates a new ReportsReportSchedulesReportScheduleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsReportSchedulesReportScheduleResponseWithDefaults() *ReportsReportSchedulesReportScheduleResponse { + this := ReportsReportSchedulesReportScheduleResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetId(v int32) { + o.Id = &v +} + +// GetSendReport returns the SendReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleResponse) GetSendReport() bool { + if o == nil || isNil(o.SendReport) { + var ret bool + return ret + } + return *o.SendReport +} + +// GetSendReportOk returns a tuple with the SendReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) GetSendReportOk() (*bool, bool) { + if o == nil || isNil(o.SendReport) { + return nil, false + } + return o.SendReport, true +} + +// HasSendReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasSendReport() bool { + if o != nil && !isNil(o.SendReport) { + return true + } + + return false +} + +// SetSendReport gets a reference to the given bool and assigns it to the SendReport field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetSendReport(v bool) { + o.SendReport = &v +} + +// GetSaveReport returns the SaveReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReport() bool { + if o == nil || isNil(o.SaveReport) { + var ret bool + return ret + } + return *o.SaveReport +} + +// GetSaveReportOk returns a tuple with the SaveReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportOk() (*bool, bool) { + if o == nil || isNil(o.SaveReport) { + return nil, false + } + return o.SaveReport, true +} + +// HasSaveReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasSaveReport() bool { + if o != nil && !isNil(o.SaveReport) { + return true + } + + return false +} + +// SetSaveReport gets a reference to the given bool and assigns it to the SaveReport field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReport(v bool) { + o.SaveReport = &v +} + +// GetSaveReportPath returns the SaveReportPath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportPath() string { + if o == nil || isNil(o.SaveReportPath.Get()) { + var ret string + return ret + } + return *o.SaveReportPath.Get() +} + +// GetSaveReportPathOk returns a tuple with the SaveReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleResponse) GetSaveReportPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SaveReportPath.Get(), o.SaveReportPath.IsSet() +} + +// HasSaveReportPath returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasSaveReportPath() bool { + if o != nil && o.SaveReportPath.IsSet() { + return true + } + + return false +} + +// SetSaveReportPath gets a reference to the given NullableString and assigns it to the SaveReportPath field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReportPath(v string) { + o.SaveReportPath.Set(&v) +} + +// SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleResponse) SetSaveReportPathNil() { + o.SaveReportPath.Set(nil) +} + +// UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleResponse) UnsetSaveReportPath() { + o.SaveReportPath.Unset() +} + +// GetReportFormat returns the ReportFormat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleResponse) GetReportFormat() string { + if o == nil || isNil(o.ReportFormat.Get()) { + var ret string + return ret + } + return *o.ReportFormat.Get() +} + +// GetReportFormatOk returns a tuple with the ReportFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleResponse) GetReportFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ReportFormat.Get(), o.ReportFormat.IsSet() +} + +// HasReportFormat returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasReportFormat() bool { + if o != nil && o.ReportFormat.IsSet() { + return true + } + + return false +} + +// SetReportFormat gets a reference to the given NullableString and assigns it to the ReportFormat field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetReportFormat(v string) { + o.ReportFormat.Set(&v) +} + +// SetReportFormatNil sets the value for ReportFormat to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleResponse) SetReportFormatNil() { + o.ReportFormat.Set(nil) +} + +// UnsetReportFormat ensures that no value is present for ReportFormat, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleResponse) UnsetReportFormat() { + o.ReportFormat.Unset() +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetCertificateCollectionId returns the CertificateCollectionId field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleResponse) GetCertificateCollectionId() int32 { + if o == nil || isNil(o.CertificateCollectionId) { + var ret int32 + return ret + } + return *o.CertificateCollectionId +} + +// GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) GetCertificateCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateCollectionId) { + return nil, false + } + return o.CertificateCollectionId, true +} + +// HasCertificateCollectionId returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasCertificateCollectionId() bool { + if o != nil && !isNil(o.CertificateCollectionId) { + return true + } + + return false +} + +// SetCertificateCollectionId gets a reference to the given int32 and assigns it to the CertificateCollectionId field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetCertificateCollectionId(v int32) { + o.CertificateCollectionId = &v +} + +// GetEmailRecipients returns the EmailRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleResponse) GetEmailRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.EmailRecipients +} + +// GetEmailRecipientsOk returns a tuple with the EmailRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleResponse) GetEmailRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.EmailRecipients) { + return nil, false + } + return o.EmailRecipients, true +} + +// HasEmailRecipients returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasEmailRecipients() bool { + if o != nil && isNil(o.EmailRecipients) { + return true + } + + return false +} + +// SetEmailRecipients gets a reference to the given []string and assigns it to the EmailRecipients field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetEmailRecipients(v []string) { + o.EmailRecipients = v +} + +// GetRuntimeParameters returns the RuntimeParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleResponse) GetRuntimeParameters() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.RuntimeParameters +} + +// GetRuntimeParametersOk returns a tuple with the RuntimeParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleResponse) GetRuntimeParametersOk() (*map[string]string, bool) { + if o == nil || isNil(o.RuntimeParameters) { + return nil, false + } + return &o.RuntimeParameters, true +} + +// HasRuntimeParameters returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleResponse) HasRuntimeParameters() bool { + if o != nil && isNil(o.RuntimeParameters) { + return true + } + + return false +} + +// SetRuntimeParameters gets a reference to the given map[string]string and assigns it to the RuntimeParameters field. +func (o *ReportsReportSchedulesReportScheduleResponse) SetRuntimeParameters(v map[string]string) { + o.RuntimeParameters = v +} + +func (o ReportsReportSchedulesReportScheduleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsReportSchedulesReportScheduleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.SendReport) { + toSerialize["SendReport"] = o.SendReport + } + if !isNil(o.SaveReport) { + toSerialize["SaveReport"] = o.SaveReport + } + if o.SaveReportPath.IsSet() { + toSerialize["SaveReportPath"] = o.SaveReportPath.Get() + } + if o.ReportFormat.IsSet() { + toSerialize["ReportFormat"] = o.ReportFormat.Get() + } + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if !isNil(o.CertificateCollectionId) { + toSerialize["CertificateCollectionId"] = o.CertificateCollectionId + } + if o.EmailRecipients != nil { + toSerialize["EmailRecipients"] = o.EmailRecipients + } + if o.RuntimeParameters != nil { + toSerialize["RuntimeParameters"] = o.RuntimeParameters + } + return toSerialize, nil +} + +type NullableReportsReportSchedulesReportScheduleResponse struct { + value *ReportsReportSchedulesReportScheduleResponse + isSet bool +} + +func (v NullableReportsReportSchedulesReportScheduleResponse) Get() *ReportsReportSchedulesReportScheduleResponse { + return v.value +} + +func (v *NullableReportsReportSchedulesReportScheduleResponse) Set(val *ReportsReportSchedulesReportScheduleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReportsReportSchedulesReportScheduleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsReportSchedulesReportScheduleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsReportSchedulesReportScheduleResponse(val *ReportsReportSchedulesReportScheduleResponse) *NullableReportsReportSchedulesReportScheduleResponse { + return &NullableReportsReportSchedulesReportScheduleResponse{value: val, isSet: true} +} + +func (v NullableReportsReportSchedulesReportScheduleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsReportSchedulesReportScheduleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_update_request.go b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_update_request.go new file mode 100644 index 0000000..a290c05 --- /dev/null +++ b/v24/api/keyfactor/v1/model_reports_report_schedules_report_schedule_update_request.go @@ -0,0 +1,418 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ReportsReportSchedulesReportScheduleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReportsReportSchedulesReportScheduleUpdateRequest{} + +// ReportsReportSchedulesReportScheduleUpdateRequest struct for ReportsReportSchedulesReportScheduleUpdateRequest +type ReportsReportSchedulesReportScheduleUpdateRequest struct { + Id int32 `json:"Id"` + SendReport *bool `json:"SendReport,omitempty"` + SaveReport *bool `json:"SaveReport,omitempty"` + SaveReportPath NullableString `json:"SaveReportPath,omitempty"` + ReportFormat string `json:"ReportFormat"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + CertificateCollectionId NullableInt32 `json:"CertificateCollectionId,omitempty"` + EmailRecipients []string `json:"EmailRecipients,omitempty"` + RuntimeParameters map[string]string `json:"RuntimeParameters"` +} + +// NewReportsReportSchedulesReportScheduleUpdateRequest instantiates a new ReportsReportSchedulesReportScheduleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReportsReportSchedulesReportScheduleUpdateRequest(id int32, reportFormat string, runtimeParameters map[string]string) *ReportsReportSchedulesReportScheduleUpdateRequest { + this := ReportsReportSchedulesReportScheduleUpdateRequest{} + this.Id = id + this.ReportFormat = reportFormat + this.RuntimeParameters = runtimeParameters + return &this +} + +// NewReportsReportSchedulesReportScheduleUpdateRequestWithDefaults instantiates a new ReportsReportSchedulesReportScheduleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReportsReportSchedulesReportScheduleUpdateRequestWithDefaults() *ReportsReportSchedulesReportScheduleUpdateRequest { + this := ReportsReportSchedulesReportScheduleUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetSendReport returns the SendReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSendReport() bool { + if o == nil || isNil(o.SendReport) { + var ret bool + return ret + } + return *o.SendReport +} + +// GetSendReportOk returns a tuple with the SendReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSendReportOk() (*bool, bool) { + if o == nil || isNil(o.SendReport) { + return nil, false + } + return o.SendReport, true +} + +// HasSendReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSendReport() bool { + if o != nil && !isNil(o.SendReport) { + return true + } + + return false +} + +// SetSendReport gets a reference to the given bool and assigns it to the SendReport field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSendReport(v bool) { + o.SendReport = &v +} + +// GetSaveReport returns the SaveReport field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReport() bool { + if o == nil || isNil(o.SaveReport) { + var ret bool + return ret + } + return *o.SaveReport +} + +// GetSaveReportOk returns a tuple with the SaveReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportOk() (*bool, bool) { + if o == nil || isNil(o.SaveReport) { + return nil, false + } + return o.SaveReport, true +} + +// HasSaveReport returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSaveReport() bool { + if o != nil && !isNil(o.SaveReport) { + return true + } + + return false +} + +// SetSaveReport gets a reference to the given bool and assigns it to the SaveReport field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReport(v bool) { + o.SaveReport = &v +} + +// GetSaveReportPath returns the SaveReportPath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportPath() string { + if o == nil || isNil(o.SaveReportPath.Get()) { + var ret string + return ret + } + return *o.SaveReportPath.Get() +} + +// GetSaveReportPathOk returns a tuple with the SaveReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetSaveReportPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SaveReportPath.Get(), o.SaveReportPath.IsSet() +} + +// HasSaveReportPath returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasSaveReportPath() bool { + if o != nil && o.SaveReportPath.IsSet() { + return true + } + + return false +} + +// SetSaveReportPath gets a reference to the given NullableString and assigns it to the SaveReportPath field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReportPath(v string) { + o.SaveReportPath.Set(&v) +} + +// SetSaveReportPathNil sets the value for SaveReportPath to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetSaveReportPathNil() { + o.SaveReportPath.Set(nil) +} + +// UnsetSaveReportPath ensures that no value is present for SaveReportPath, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) UnsetSaveReportPath() { + o.SaveReportPath.Unset() +} + +// GetReportFormat returns the ReportFormat field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetReportFormat() string { + if o == nil { + var ret string + return ret + } + + return o.ReportFormat +} + +// GetReportFormatOk returns a tuple with the ReportFormat field value +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetReportFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReportFormat, true +} + +// SetReportFormat sets field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetReportFormat(v string) { + o.ReportFormat = v +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetCertificateCollectionId returns the CertificateCollectionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetCertificateCollectionId() int32 { + if o == nil || isNil(o.CertificateCollectionId.Get()) { + var ret int32 + return ret + } + return *o.CertificateCollectionId.Get() +} + +// GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetCertificateCollectionIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CertificateCollectionId.Get(), o.CertificateCollectionId.IsSet() +} + +// HasCertificateCollectionId returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasCertificateCollectionId() bool { + if o != nil && o.CertificateCollectionId.IsSet() { + return true + } + + return false +} + +// SetCertificateCollectionId gets a reference to the given NullableInt32 and assigns it to the CertificateCollectionId field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetCertificateCollectionId(v int32) { + o.CertificateCollectionId.Set(&v) +} + +// SetCertificateCollectionIdNil sets the value for CertificateCollectionId to be an explicit nil +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetCertificateCollectionIdNil() { + o.CertificateCollectionId.Set(nil) +} + +// UnsetCertificateCollectionId ensures that no value is present for CertificateCollectionId, not even an explicit nil +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) UnsetCertificateCollectionId() { + o.CertificateCollectionId.Unset() +} + +// GetEmailRecipients returns the EmailRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetEmailRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.EmailRecipients +} + +// GetEmailRecipientsOk returns a tuple with the EmailRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetEmailRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.EmailRecipients) { + return nil, false + } + return o.EmailRecipients, true +} + +// HasEmailRecipients returns a boolean if a field has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) HasEmailRecipients() bool { + if o != nil && isNil(o.EmailRecipients) { + return true + } + + return false +} + +// SetEmailRecipients gets a reference to the given []string and assigns it to the EmailRecipients field. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetEmailRecipients(v []string) { + o.EmailRecipients = v +} + +// GetRuntimeParameters returns the RuntimeParameters field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetRuntimeParameters() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.RuntimeParameters +} + +// GetRuntimeParametersOk returns a tuple with the RuntimeParameters field value +// and a boolean to check if the value has been set. +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) GetRuntimeParametersOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.RuntimeParameters, true +} + +// SetRuntimeParameters sets field value +func (o *ReportsReportSchedulesReportScheduleUpdateRequest) SetRuntimeParameters(v map[string]string) { + o.RuntimeParameters = v +} + +func (o ReportsReportSchedulesReportScheduleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReportsReportSchedulesReportScheduleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if !isNil(o.SendReport) { + toSerialize["SendReport"] = o.SendReport + } + if !isNil(o.SaveReport) { + toSerialize["SaveReport"] = o.SaveReport + } + if o.SaveReportPath.IsSet() { + toSerialize["SaveReportPath"] = o.SaveReportPath.Get() + } + toSerialize["ReportFormat"] = o.ReportFormat + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if o.CertificateCollectionId.IsSet() { + toSerialize["CertificateCollectionId"] = o.CertificateCollectionId.Get() + } + if o.EmailRecipients != nil { + toSerialize["EmailRecipients"] = o.EmailRecipients + } + toSerialize["RuntimeParameters"] = o.RuntimeParameters + return toSerialize, nil +} + +type NullableReportsReportSchedulesReportScheduleUpdateRequest struct { + value *ReportsReportSchedulesReportScheduleUpdateRequest + isSet bool +} + +func (v NullableReportsReportSchedulesReportScheduleUpdateRequest) Get() *ReportsReportSchedulesReportScheduleUpdateRequest { + return v.value +} + +func (v *NullableReportsReportSchedulesReportScheduleUpdateRequest) Set(val *ReportsReportSchedulesReportScheduleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReportsReportSchedulesReportScheduleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReportsReportSchedulesReportScheduleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReportsReportSchedulesReportScheduleUpdateRequest(val *ReportsReportSchedulesReportScheduleUpdateRequest) *NullableReportsReportSchedulesReportScheduleUpdateRequest { + return &NullableReportsReportSchedulesReportScheduleUpdateRequest{value: val, isSet: true} +} + +func (v NullableReportsReportSchedulesReportScheduleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReportsReportSchedulesReportScheduleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scheduling_scheduled_task_request.go b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_request.go new file mode 100644 index 0000000..397b281 --- /dev/null +++ b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_request.go @@ -0,0 +1,292 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SchedulingScheduledTaskRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchedulingScheduledTaskRequest{} + +// SchedulingScheduledTaskRequest struct for SchedulingScheduledTaskRequest +type SchedulingScheduledTaskRequest struct { + Id *int32 `json:"Id,omitempty"` + ScheduleType CSSCMSCoreEnumsScheduledTaskType `json:"ScheduleType"` + Enabled *bool `json:"Enabled,omitempty"` + Interval NullableInt32 `json:"Interval,omitempty"` + TimeOfDay NullableTime `json:"TimeOfDay,omitempty"` +} + +// NewSchedulingScheduledTaskRequest instantiates a new SchedulingScheduledTaskRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchedulingScheduledTaskRequest(scheduleType CSSCMSCoreEnumsScheduledTaskType) *SchedulingScheduledTaskRequest { + this := SchedulingScheduledTaskRequest{} + this.ScheduleType = scheduleType + return &this +} + +// NewSchedulingScheduledTaskRequestWithDefaults instantiates a new SchedulingScheduledTaskRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchedulingScheduledTaskRequestWithDefaults() *SchedulingScheduledTaskRequest { + this := SchedulingScheduledTaskRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SchedulingScheduledTaskRequest) SetId(v int32) { + o.Id = &v +} + +// GetScheduleType returns the ScheduleType field value +func (o *SchedulingScheduledTaskRequest) GetScheduleType() CSSCMSCoreEnumsScheduledTaskType { + if o == nil { + var ret CSSCMSCoreEnumsScheduledTaskType + return ret + } + + return o.ScheduleType +} + +// GetScheduleTypeOk returns a tuple with the ScheduleType field value +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskRequest) GetScheduleTypeOk() (*CSSCMSCoreEnumsScheduledTaskType, bool) { + if o == nil { + return nil, false + } + return &o.ScheduleType, true +} + +// SetScheduleType sets field value +func (o *SchedulingScheduledTaskRequest) SetScheduleType(v CSSCMSCoreEnumsScheduledTaskType) { + o.ScheduleType = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SchedulingScheduledTaskRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskRequest) GetInterval() int32 { + if o == nil || isNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *SchedulingScheduledTaskRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} + +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *SchedulingScheduledTaskRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *SchedulingScheduledTaskRequest) UnsetInterval() { + o.Interval.Unset() +} + +// GetTimeOfDay returns the TimeOfDay field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskRequest) GetTimeOfDay() time.Time { + if o == nil || isNil(o.TimeOfDay.Get()) { + var ret time.Time + return ret + } + return *o.TimeOfDay.Get() +} + +// GetTimeOfDayOk returns a tuple with the TimeOfDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskRequest) GetTimeOfDayOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.TimeOfDay.Get(), o.TimeOfDay.IsSet() +} + +// HasTimeOfDay returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskRequest) HasTimeOfDay() bool { + if o != nil && o.TimeOfDay.IsSet() { + return true + } + + return false +} + +// SetTimeOfDay gets a reference to the given NullableTime and assigns it to the TimeOfDay field. +func (o *SchedulingScheduledTaskRequest) SetTimeOfDay(v time.Time) { + o.TimeOfDay.Set(&v) +} + +// SetTimeOfDayNil sets the value for TimeOfDay to be an explicit nil +func (o *SchedulingScheduledTaskRequest) SetTimeOfDayNil() { + o.TimeOfDay.Set(nil) +} + +// UnsetTimeOfDay ensures that no value is present for TimeOfDay, not even an explicit nil +func (o *SchedulingScheduledTaskRequest) UnsetTimeOfDay() { + o.TimeOfDay.Unset() +} + +func (o SchedulingScheduledTaskRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchedulingScheduledTaskRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["ScheduleType"] = o.ScheduleType + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.Interval.IsSet() { + toSerialize["Interval"] = o.Interval.Get() + } + if o.TimeOfDay.IsSet() { + toSerialize["TimeOfDay"] = o.TimeOfDay.Get() + } + return toSerialize, nil +} + +type NullableSchedulingScheduledTaskRequest struct { + value *SchedulingScheduledTaskRequest + isSet bool +} + +func (v NullableSchedulingScheduledTaskRequest) Get() *SchedulingScheduledTaskRequest { + return v.value +} + +func (v *NullableSchedulingScheduledTaskRequest) Set(val *SchedulingScheduledTaskRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchedulingScheduledTaskRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchedulingScheduledTaskRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchedulingScheduledTaskRequest(val *SchedulingScheduledTaskRequest) *NullableSchedulingScheduledTaskRequest { + return &NullableSchedulingScheduledTaskRequest{value: val, isSet: true} +} + +func (v NullableSchedulingScheduledTaskRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchedulingScheduledTaskRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scheduling_scheduled_task_response.go b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_response.go new file mode 100644 index 0000000..083f93b --- /dev/null +++ b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_response.go @@ -0,0 +1,395 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SchedulingScheduledTaskResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchedulingScheduledTaskResponse{} + +// SchedulingScheduledTaskResponse struct for SchedulingScheduledTaskResponse +type SchedulingScheduledTaskResponse struct { + Id *int32 `json:"Id,omitempty"` + Schedule NullableString `json:"Schedule,omitempty"` + ScheduleType *CSSCMSCoreEnumsScheduledTaskType `json:"ScheduleType,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Name NullableString `json:"Name,omitempty"` + EntityId NullableInt64 `json:"EntityId,omitempty"` + LastRun NullableTime `json:"LastRun,omitempty"` +} + +// NewSchedulingScheduledTaskResponse instantiates a new SchedulingScheduledTaskResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchedulingScheduledTaskResponse() *SchedulingScheduledTaskResponse { + this := SchedulingScheduledTaskResponse{} + return &this +} + +// NewSchedulingScheduledTaskResponseWithDefaults instantiates a new SchedulingScheduledTaskResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchedulingScheduledTaskResponseWithDefaults() *SchedulingScheduledTaskResponse { + this := SchedulingScheduledTaskResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SchedulingScheduledTaskResponse) SetId(v int32) { + o.Id = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskResponse) GetSchedule() string { + if o == nil || isNil(o.Schedule.Get()) { + var ret string + return ret + } + return *o.Schedule.Get() +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskResponse) GetScheduleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Schedule.Get(), o.Schedule.IsSet() +} + +// HasSchedule returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasSchedule() bool { + if o != nil && o.Schedule.IsSet() { + return true + } + + return false +} + +// SetSchedule gets a reference to the given NullableString and assigns it to the Schedule field. +func (o *SchedulingScheduledTaskResponse) SetSchedule(v string) { + o.Schedule.Set(&v) +} + +// SetScheduleNil sets the value for Schedule to be an explicit nil +func (o *SchedulingScheduledTaskResponse) SetScheduleNil() { + o.Schedule.Set(nil) +} + +// UnsetSchedule ensures that no value is present for Schedule, not even an explicit nil +func (o *SchedulingScheduledTaskResponse) UnsetSchedule() { + o.Schedule.Unset() +} + +// GetScheduleType returns the ScheduleType field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskResponse) GetScheduleType() CSSCMSCoreEnumsScheduledTaskType { + if o == nil || isNil(o.ScheduleType) { + var ret CSSCMSCoreEnumsScheduledTaskType + return ret + } + return *o.ScheduleType +} + +// GetScheduleTypeOk returns a tuple with the ScheduleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskResponse) GetScheduleTypeOk() (*CSSCMSCoreEnumsScheduledTaskType, bool) { + if o == nil || isNil(o.ScheduleType) { + return nil, false + } + return o.ScheduleType, true +} + +// HasScheduleType returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasScheduleType() bool { + if o != nil && !isNil(o.ScheduleType) { + return true + } + + return false +} + +// SetScheduleType gets a reference to the given CSSCMSCoreEnumsScheduledTaskType and assigns it to the ScheduleType field. +func (o *SchedulingScheduledTaskResponse) SetScheduleType(v CSSCMSCoreEnumsScheduledTaskType) { + o.ScheduleType = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SchedulingScheduledTaskResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SchedulingScheduledTaskResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SchedulingScheduledTaskResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SchedulingScheduledTaskResponse) UnsetName() { + o.Name.Unset() +} + +// GetEntityId returns the EntityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskResponse) GetEntityId() int64 { + if o == nil || isNil(o.EntityId.Get()) { + var ret int64 + return ret + } + return *o.EntityId.Get() +} + +// GetEntityIdOk returns a tuple with the EntityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskResponse) GetEntityIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.EntityId.Get(), o.EntityId.IsSet() +} + +// HasEntityId returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasEntityId() bool { + if o != nil && o.EntityId.IsSet() { + return true + } + + return false +} + +// SetEntityId gets a reference to the given NullableInt64 and assigns it to the EntityId field. +func (o *SchedulingScheduledTaskResponse) SetEntityId(v int64) { + o.EntityId.Set(&v) +} + +// SetEntityIdNil sets the value for EntityId to be an explicit nil +func (o *SchedulingScheduledTaskResponse) SetEntityIdNil() { + o.EntityId.Set(nil) +} + +// UnsetEntityId ensures that no value is present for EntityId, not even an explicit nil +func (o *SchedulingScheduledTaskResponse) UnsetEntityId() { + o.EntityId.Unset() +} + +// GetLastRun returns the LastRun field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskResponse) GetLastRun() time.Time { + if o == nil || isNil(o.LastRun.Get()) { + var ret time.Time + return ret + } + return *o.LastRun.Get() +} + +// GetLastRunOk returns a tuple with the LastRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskResponse) GetLastRunOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastRun.Get(), o.LastRun.IsSet() +} + +// HasLastRun returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskResponse) HasLastRun() bool { + if o != nil && o.LastRun.IsSet() { + return true + } + + return false +} + +// SetLastRun gets a reference to the given NullableTime and assigns it to the LastRun field. +func (o *SchedulingScheduledTaskResponse) SetLastRun(v time.Time) { + o.LastRun.Set(&v) +} + +// SetLastRunNil sets the value for LastRun to be an explicit nil +func (o *SchedulingScheduledTaskResponse) SetLastRunNil() { + o.LastRun.Set(nil) +} + +// UnsetLastRun ensures that no value is present for LastRun, not even an explicit nil +func (o *SchedulingScheduledTaskResponse) UnsetLastRun() { + o.LastRun.Unset() +} + +func (o SchedulingScheduledTaskResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchedulingScheduledTaskResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Schedule.IsSet() { + toSerialize["Schedule"] = o.Schedule.Get() + } + if !isNil(o.ScheduleType) { + toSerialize["ScheduleType"] = o.ScheduleType + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.EntityId.IsSet() { + toSerialize["EntityId"] = o.EntityId.Get() + } + if o.LastRun.IsSet() { + toSerialize["LastRun"] = o.LastRun.Get() + } + return toSerialize, nil +} + +type NullableSchedulingScheduledTaskResponse struct { + value *SchedulingScheduledTaskResponse + isSet bool +} + +func (v NullableSchedulingScheduledTaskResponse) Get() *SchedulingScheduledTaskResponse { + return v.value +} + +func (v *NullableSchedulingScheduledTaskResponse) Set(val *SchedulingScheduledTaskResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSchedulingScheduledTaskResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSchedulingScheduledTaskResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchedulingScheduledTaskResponse(val *SchedulingScheduledTaskResponse) *NullableSchedulingScheduledTaskResponse { + return &NullableSchedulingScheduledTaskResponse{value: val, isSet: true} +} + +func (v NullableSchedulingScheduledTaskResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchedulingScheduledTaskResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scheduling_scheduled_task_schedule_response.go b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_schedule_response.go new file mode 100644 index 0000000..cb69788 --- /dev/null +++ b/v24/api/keyfactor/v1/model_scheduling_scheduled_task_schedule_response.go @@ -0,0 +1,182 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SchedulingScheduledTaskScheduleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchedulingScheduledTaskScheduleResponse{} + +// SchedulingScheduledTaskScheduleResponse struct for SchedulingScheduledTaskScheduleResponse +type SchedulingScheduledTaskScheduleResponse struct { + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + LastEstimated NullableTime `json:"LastEstimated,omitempty"` +} + +// NewSchedulingScheduledTaskScheduleResponse instantiates a new SchedulingScheduledTaskScheduleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchedulingScheduledTaskScheduleResponse() *SchedulingScheduledTaskScheduleResponse { + this := SchedulingScheduledTaskScheduleResponse{} + return &this +} + +// NewSchedulingScheduledTaskScheduleResponseWithDefaults instantiates a new SchedulingScheduledTaskScheduleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchedulingScheduledTaskScheduleResponseWithDefaults() *SchedulingScheduledTaskScheduleResponse { + this := SchedulingScheduledTaskScheduleResponse{} + return &this +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *SchedulingScheduledTaskScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchedulingScheduledTaskScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskScheduleResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *SchedulingScheduledTaskScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetLastEstimated returns the LastEstimated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SchedulingScheduledTaskScheduleResponse) GetLastEstimated() time.Time { + if o == nil || isNil(o.LastEstimated.Get()) { + var ret time.Time + return ret + } + return *o.LastEstimated.Get() +} + +// GetLastEstimatedOk returns a tuple with the LastEstimated field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SchedulingScheduledTaskScheduleResponse) GetLastEstimatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastEstimated.Get(), o.LastEstimated.IsSet() +} + +// HasLastEstimated returns a boolean if a field has been set. +func (o *SchedulingScheduledTaskScheduleResponse) HasLastEstimated() bool { + if o != nil && o.LastEstimated.IsSet() { + return true + } + + return false +} + +// SetLastEstimated gets a reference to the given NullableTime and assigns it to the LastEstimated field. +func (o *SchedulingScheduledTaskScheduleResponse) SetLastEstimated(v time.Time) { + o.LastEstimated.Set(&v) +} + +// SetLastEstimatedNil sets the value for LastEstimated to be an explicit nil +func (o *SchedulingScheduledTaskScheduleResponse) SetLastEstimatedNil() { + o.LastEstimated.Set(nil) +} + +// UnsetLastEstimated ensures that no value is present for LastEstimated, not even an explicit nil +func (o *SchedulingScheduledTaskScheduleResponse) UnsetLastEstimated() { + o.LastEstimated.Unset() +} + +func (o SchedulingScheduledTaskScheduleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchedulingScheduledTaskScheduleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if o.LastEstimated.IsSet() { + toSerialize["LastEstimated"] = o.LastEstimated.Get() + } + return toSerialize, nil +} + +type NullableSchedulingScheduledTaskScheduleResponse struct { + value *SchedulingScheduledTaskScheduleResponse + isSet bool +} + +func (v NullableSchedulingScheduledTaskScheduleResponse) Get() *SchedulingScheduledTaskScheduleResponse { + return v.value +} + +func (v *NullableSchedulingScheduledTaskScheduleResponse) Set(val *SchedulingScheduledTaskScheduleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSchedulingScheduledTaskScheduleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSchedulingScheduledTaskScheduleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchedulingScheduledTaskScheduleResponse(val *SchedulingScheduledTaskScheduleResponse) *NullableSchedulingScheduledTaskScheduleResponse { + return &NullableSchedulingScheduledTaskScheduleResponse{value: val, isSet: true} +} + +func (v NullableSchedulingScheduledTaskScheduleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchedulingScheduledTaskScheduleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scripts_script_create_request.go b/v24/api/keyfactor/v1/model_scripts_script_create_request.go new file mode 100644 index 0000000..37000c8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_scripts_script_create_request.go @@ -0,0 +1,189 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ScriptsScriptCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptsScriptCreateRequest{} + +// ScriptsScriptCreateRequest struct for ScriptsScriptCreateRequest +type ScriptsScriptCreateRequest struct { + Name string `json:"Name"` + Contents string `json:"Contents"` + Categories []CSSCMSDataModelEnumsScriptCategories `json:"Categories,omitempty"` +} + +// NewScriptsScriptCreateRequest instantiates a new ScriptsScriptCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptsScriptCreateRequest(name string, contents string) *ScriptsScriptCreateRequest { + this := ScriptsScriptCreateRequest{} + this.Name = name + this.Contents = contents + return &this +} + +// NewScriptsScriptCreateRequestWithDefaults instantiates a new ScriptsScriptCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptsScriptCreateRequestWithDefaults() *ScriptsScriptCreateRequest { + this := ScriptsScriptCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ScriptsScriptCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ScriptsScriptCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ScriptsScriptCreateRequest) SetName(v string) { + o.Name = v +} + +// GetContents returns the Contents field value +func (o *ScriptsScriptCreateRequest) GetContents() string { + if o == nil { + var ret string + return ret + } + + return o.Contents +} + +// GetContentsOk returns a tuple with the Contents field value +// and a boolean to check if the value has been set. +func (o *ScriptsScriptCreateRequest) GetContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Contents, true +} + +// SetContents sets field value +func (o *ScriptsScriptCreateRequest) SetContents(v string) { + o.Contents = v +} + +// GetCategories returns the Categories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptCreateRequest) GetCategories() []CSSCMSDataModelEnumsScriptCategories { + if o == nil { + var ret []CSSCMSDataModelEnumsScriptCategories + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptCreateRequest) GetCategoriesOk() ([]CSSCMSDataModelEnumsScriptCategories, bool) { + if o == nil || isNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ScriptsScriptCreateRequest) HasCategories() bool { + if o != nil && isNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []CSSCMSDataModelEnumsScriptCategories and assigns it to the Categories field. +func (o *ScriptsScriptCreateRequest) SetCategories(v []CSSCMSDataModelEnumsScriptCategories) { + o.Categories = v +} + +func (o ScriptsScriptCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptsScriptCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Contents"] = o.Contents + if o.Categories != nil { + toSerialize["Categories"] = o.Categories + } + return toSerialize, nil +} + +type NullableScriptsScriptCreateRequest struct { + value *ScriptsScriptCreateRequest + isSet bool +} + +func (v NullableScriptsScriptCreateRequest) Get() *ScriptsScriptCreateRequest { + return v.value +} + +func (v *NullableScriptsScriptCreateRequest) Set(val *ScriptsScriptCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableScriptsScriptCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptsScriptCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptsScriptCreateRequest(val *ScriptsScriptCreateRequest) *NullableScriptsScriptCreateRequest { + return &NullableScriptsScriptCreateRequest{value: val, isSet: true} +} + +func (v NullableScriptsScriptCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptsScriptCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scripts_script_query_response.go b/v24/api/keyfactor/v1/model_scripts_script_query_response.go new file mode 100644 index 0000000..ec2a43a --- /dev/null +++ b/v24/api/keyfactor/v1/model_scripts_script_query_response.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ScriptsScriptQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptsScriptQueryResponse{} + +// ScriptsScriptQueryResponse struct for ScriptsScriptQueryResponse +type ScriptsScriptQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Categories []CSSCMSDataModelEnumsScriptCategories `json:"Categories,omitempty"` +} + +// NewScriptsScriptQueryResponse instantiates a new ScriptsScriptQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptsScriptQueryResponse() *ScriptsScriptQueryResponse { + this := ScriptsScriptQueryResponse{} + return &this +} + +// NewScriptsScriptQueryResponseWithDefaults instantiates a new ScriptsScriptQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptsScriptQueryResponseWithDefaults() *ScriptsScriptQueryResponse { + this := ScriptsScriptQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ScriptsScriptQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScriptsScriptQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ScriptsScriptQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ScriptsScriptQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptQueryResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptQueryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *ScriptsScriptQueryResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *ScriptsScriptQueryResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *ScriptsScriptQueryResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *ScriptsScriptQueryResponse) UnsetName() { + o.Name.Unset() +} + +// GetCategories returns the Categories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptQueryResponse) GetCategories() []CSSCMSDataModelEnumsScriptCategories { + if o == nil { + var ret []CSSCMSDataModelEnumsScriptCategories + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptQueryResponse) GetCategoriesOk() ([]CSSCMSDataModelEnumsScriptCategories, bool) { + if o == nil || isNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ScriptsScriptQueryResponse) HasCategories() bool { + if o != nil && isNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []CSSCMSDataModelEnumsScriptCategories and assigns it to the Categories field. +func (o *ScriptsScriptQueryResponse) SetCategories(v []CSSCMSDataModelEnumsScriptCategories) { + o.Categories = v +} + +func (o ScriptsScriptQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptsScriptQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Categories != nil { + toSerialize["Categories"] = o.Categories + } + return toSerialize, nil +} + +type NullableScriptsScriptQueryResponse struct { + value *ScriptsScriptQueryResponse + isSet bool +} + +func (v NullableScriptsScriptQueryResponse) Get() *ScriptsScriptQueryResponse { + return v.value +} + +func (v *NullableScriptsScriptQueryResponse) Set(val *ScriptsScriptQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableScriptsScriptQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptsScriptQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptsScriptQueryResponse(val *ScriptsScriptQueryResponse) *NullableScriptsScriptQueryResponse { + return &NullableScriptsScriptQueryResponse{value: val, isSet: true} +} + +func (v NullableScriptsScriptQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptsScriptQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scripts_script_response.go b/v24/api/keyfactor/v1/model_scripts_script_response.go new file mode 100644 index 0000000..14fd6ab --- /dev/null +++ b/v24/api/keyfactor/v1/model_scripts_script_response.go @@ -0,0 +1,265 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ScriptsScriptResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptsScriptResponse{} + +// ScriptsScriptResponse struct for ScriptsScriptResponse +type ScriptsScriptResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Contents NullableString `json:"Contents,omitempty"` + Categories []CSSCMSDataModelEnumsScriptCategories `json:"Categories,omitempty"` +} + +// NewScriptsScriptResponse instantiates a new ScriptsScriptResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptsScriptResponse() *ScriptsScriptResponse { + this := ScriptsScriptResponse{} + return &this +} + +// NewScriptsScriptResponseWithDefaults instantiates a new ScriptsScriptResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptsScriptResponseWithDefaults() *ScriptsScriptResponse { + this := ScriptsScriptResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ScriptsScriptResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScriptsScriptResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ScriptsScriptResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ScriptsScriptResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *ScriptsScriptResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *ScriptsScriptResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *ScriptsScriptResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *ScriptsScriptResponse) UnsetName() { + o.Name.Unset() +} + +// GetContents returns the Contents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptResponse) GetContents() string { + if o == nil || isNil(o.Contents.Get()) { + var ret string + return ret + } + return *o.Contents.Get() +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptResponse) GetContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Contents.Get(), o.Contents.IsSet() +} + +// HasContents returns a boolean if a field has been set. +func (o *ScriptsScriptResponse) HasContents() bool { + if o != nil && o.Contents.IsSet() { + return true + } + + return false +} + +// SetContents gets a reference to the given NullableString and assigns it to the Contents field. +func (o *ScriptsScriptResponse) SetContents(v string) { + o.Contents.Set(&v) +} + +// SetContentsNil sets the value for Contents to be an explicit nil +func (o *ScriptsScriptResponse) SetContentsNil() { + o.Contents.Set(nil) +} + +// UnsetContents ensures that no value is present for Contents, not even an explicit nil +func (o *ScriptsScriptResponse) UnsetContents() { + o.Contents.Unset() +} + +// GetCategories returns the Categories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptResponse) GetCategories() []CSSCMSDataModelEnumsScriptCategories { + if o == nil { + var ret []CSSCMSDataModelEnumsScriptCategories + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptResponse) GetCategoriesOk() ([]CSSCMSDataModelEnumsScriptCategories, bool) { + if o == nil || isNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ScriptsScriptResponse) HasCategories() bool { + if o != nil && isNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []CSSCMSDataModelEnumsScriptCategories and assigns it to the Categories field. +func (o *ScriptsScriptResponse) SetCategories(v []CSSCMSDataModelEnumsScriptCategories) { + o.Categories = v +} + +func (o ScriptsScriptResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptsScriptResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Contents.IsSet() { + toSerialize["Contents"] = o.Contents.Get() + } + if o.Categories != nil { + toSerialize["Categories"] = o.Categories + } + return toSerialize, nil +} + +type NullableScriptsScriptResponse struct { + value *ScriptsScriptResponse + isSet bool +} + +func (v NullableScriptsScriptResponse) Get() *ScriptsScriptResponse { + return v.value +} + +func (v *NullableScriptsScriptResponse) Set(val *ScriptsScriptResponse) { + v.value = val + v.isSet = true +} + +func (v NullableScriptsScriptResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptsScriptResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptsScriptResponse(val *ScriptsScriptResponse) *NullableScriptsScriptResponse { + return &NullableScriptsScriptResponse{value: val, isSet: true} +} + +func (v NullableScriptsScriptResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptsScriptResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_scripts_scripts_update_request.go b/v24/api/keyfactor/v1/model_scripts_scripts_update_request.go new file mode 100644 index 0000000..9428a8b --- /dev/null +++ b/v24/api/keyfactor/v1/model_scripts_scripts_update_request.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the ScriptsScriptsUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptsScriptsUpdateRequest{} + +// ScriptsScriptsUpdateRequest struct for ScriptsScriptsUpdateRequest +type ScriptsScriptsUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + Contents NullableString `json:"Contents,omitempty"` + Categories []CSSCMSDataModelEnumsScriptCategories `json:"Categories,omitempty"` +} + +// NewScriptsScriptsUpdateRequest instantiates a new ScriptsScriptsUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptsScriptsUpdateRequest() *ScriptsScriptsUpdateRequest { + this := ScriptsScriptsUpdateRequest{} + return &this +} + +// NewScriptsScriptsUpdateRequestWithDefaults instantiates a new ScriptsScriptsUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptsScriptsUpdateRequestWithDefaults() *ScriptsScriptsUpdateRequest { + this := ScriptsScriptsUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ScriptsScriptsUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScriptsScriptsUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ScriptsScriptsUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ScriptsScriptsUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetContents returns the Contents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptsUpdateRequest) GetContents() string { + if o == nil || isNil(o.Contents.Get()) { + var ret string + return ret + } + return *o.Contents.Get() +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptsUpdateRequest) GetContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Contents.Get(), o.Contents.IsSet() +} + +// HasContents returns a boolean if a field has been set. +func (o *ScriptsScriptsUpdateRequest) HasContents() bool { + if o != nil && o.Contents.IsSet() { + return true + } + + return false +} + +// SetContents gets a reference to the given NullableString and assigns it to the Contents field. +func (o *ScriptsScriptsUpdateRequest) SetContents(v string) { + o.Contents.Set(&v) +} + +// SetContentsNil sets the value for Contents to be an explicit nil +func (o *ScriptsScriptsUpdateRequest) SetContentsNil() { + o.Contents.Set(nil) +} + +// UnsetContents ensures that no value is present for Contents, not even an explicit nil +func (o *ScriptsScriptsUpdateRequest) UnsetContents() { + o.Contents.Unset() +} + +// GetCategories returns the Categories field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptsScriptsUpdateRequest) GetCategories() []CSSCMSDataModelEnumsScriptCategories { + if o == nil { + var ret []CSSCMSDataModelEnumsScriptCategories + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptsScriptsUpdateRequest) GetCategoriesOk() ([]CSSCMSDataModelEnumsScriptCategories, bool) { + if o == nil || isNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ScriptsScriptsUpdateRequest) HasCategories() bool { + if o != nil && isNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []CSSCMSDataModelEnumsScriptCategories and assigns it to the Categories field. +func (o *ScriptsScriptsUpdateRequest) SetCategories(v []CSSCMSDataModelEnumsScriptCategories) { + o.Categories = v +} + +func (o ScriptsScriptsUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptsScriptsUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Contents.IsSet() { + toSerialize["Contents"] = o.Contents.Get() + } + if o.Categories != nil { + toSerialize["Categories"] = o.Categories + } + return toSerialize, nil +} + +type NullableScriptsScriptsUpdateRequest struct { + value *ScriptsScriptsUpdateRequest + isSet bool +} + +func (v NullableScriptsScriptsUpdateRequest) Get() *ScriptsScriptsUpdateRequest { + return v.value +} + +func (v *NullableScriptsScriptsUpdateRequest) Set(val *ScriptsScriptsUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableScriptsScriptsUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptsScriptsUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptsScriptsUpdateRequest(val *ScriptsScriptsUpdateRequest) *NullableScriptsScriptsUpdateRequest { + return &NullableScriptsScriptsUpdateRequest{value: val, isSet: true} +} + +func (v NullableScriptsScriptsUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptsScriptsUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_request.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_request.go new file mode 100644 index 0000000..793b3bf --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_request.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesRoleIdentitiesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesRoleIdentitiesRequest{} + +// SecurityLegacySecurityRolesRoleIdentitiesRequest struct for SecurityLegacySecurityRolesRoleIdentitiesRequest +type SecurityLegacySecurityRolesRoleIdentitiesRequest struct { + Ids []int32 `json:"Ids,omitempty"` +} + +// NewSecurityLegacySecurityRolesRoleIdentitiesRequest instantiates a new SecurityLegacySecurityRolesRoleIdentitiesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesRoleIdentitiesRequest() *SecurityLegacySecurityRolesRoleIdentitiesRequest { + this := SecurityLegacySecurityRolesRoleIdentitiesRequest{} + return &this +} + +// NewSecurityLegacySecurityRolesRoleIdentitiesRequestWithDefaults instantiates a new SecurityLegacySecurityRolesRoleIdentitiesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesRoleIdentitiesRequestWithDefaults() *SecurityLegacySecurityRolesRoleIdentitiesRequest { + this := SecurityLegacySecurityRolesRoleIdentitiesRequest{} + return &this +} + +// GetIds returns the Ids field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) GetIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) GetIdsOk() ([]int32, bool) { + if o == nil || isNil(o.Ids) { + return nil, false + } + return o.Ids, true +} + +// HasIds returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) HasIds() bool { + if o != nil && isNil(o.Ids) { + return true + } + + return false +} + +// SetIds gets a reference to the given []int32 and assigns it to the Ids field. +func (o *SecurityLegacySecurityRolesRoleIdentitiesRequest) SetIds(v []int32) { + o.Ids = v +} + +func (o SecurityLegacySecurityRolesRoleIdentitiesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesRoleIdentitiesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Ids != nil { + toSerialize["Ids"] = o.Ids + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesRoleIdentitiesRequest struct { + value *SecurityLegacySecurityRolesRoleIdentitiesRequest + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) Get() *SecurityLegacySecurityRolesRoleIdentitiesRequest { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) Set(val *SecurityLegacySecurityRolesRoleIdentitiesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesRoleIdentitiesRequest(val *SecurityLegacySecurityRolesRoleIdentitiesRequest) *NullableSecurityLegacySecurityRolesRoleIdentitiesRequest { + return &NullableSecurityLegacySecurityRolesRoleIdentitiesRequest{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_response.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_response.go new file mode 100644 index 0000000..238272c --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_role_identities_response.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesRoleIdentitiesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesRoleIdentitiesResponse{} + +// SecurityLegacySecurityRolesRoleIdentitiesResponse struct for SecurityLegacySecurityRolesRoleIdentitiesResponse +type SecurityLegacySecurityRolesRoleIdentitiesResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` +} + +// NewSecurityLegacySecurityRolesRoleIdentitiesResponse instantiates a new SecurityLegacySecurityRolesRoleIdentitiesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesRoleIdentitiesResponse() *SecurityLegacySecurityRolesRoleIdentitiesResponse { + this := SecurityLegacySecurityRolesRoleIdentitiesResponse{} + return &this +} + +// NewSecurityLegacySecurityRolesRoleIdentitiesResponseWithDefaults instantiates a new SecurityLegacySecurityRolesRoleIdentitiesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesRoleIdentitiesResponseWithDefaults() *SecurityLegacySecurityRolesRoleIdentitiesResponse { + this := SecurityLegacySecurityRolesRoleIdentitiesResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecurityLegacySecurityRolesRoleIdentitiesResponse) UnsetName() { + o.Name.Unset() +} + +func (o SecurityLegacySecurityRolesRoleIdentitiesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesRoleIdentitiesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesRoleIdentitiesResponse struct { + value *SecurityLegacySecurityRolesRoleIdentitiesResponse + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) Get() *SecurityLegacySecurityRolesRoleIdentitiesResponse { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) Set(val *SecurityLegacySecurityRolesRoleIdentitiesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesRoleIdentitiesResponse(val *SecurityLegacySecurityRolesRoleIdentitiesResponse) *NullableSecurityLegacySecurityRolesRoleIdentitiesResponse { + return &NullableSecurityLegacySecurityRolesRoleIdentitiesResponse{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesRoleIdentitiesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_identity_response.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_identity_response.go new file mode 100644 index 0000000..f15f74b --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_identity_response.go @@ -0,0 +1,365 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityIdentityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityIdentityResponse{} + +// SecurityLegacySecurityRolesSecurityIdentityResponse Public DTO for handling responses that include a security identity. +type SecurityLegacySecurityRolesSecurityIdentityResponse struct { + // The ID of the security identity. + Id *int32 `json:"Id,omitempty"` + // The username associated with the account. + AccountName NullableString `json:"AccountName,omitempty"` + // The type of the identity. + IdentityType NullableString `json:"IdentityType,omitempty"` + // The roles this identity belongs to. + Roles []SecurityLegacySecurityRolesSecurityRoleResponse `json:"Roles,omitempty"` + // Whether or not the identity's role XML is valid. + Valid NullableBool `json:"Valid,omitempty"` + // The security identifier for the identity. + SID NullableString `json:"SID,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityIdentityResponse instantiates a new SecurityLegacySecurityRolesSecurityIdentityResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityIdentityResponse() *SecurityLegacySecurityRolesSecurityIdentityResponse { + this := SecurityLegacySecurityRolesSecurityIdentityResponse{} + return &this +} + +// NewSecurityLegacySecurityRolesSecurityIdentityResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityIdentityResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityIdentityResponseWithDefaults() *SecurityLegacySecurityRolesSecurityIdentityResponse { + this := SecurityLegacySecurityRolesSecurityIdentityResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetId(v int32) { + o.Id = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetAccountName() string { + if o == nil || isNil(o.AccountName.Get()) { + var ret string + return ret + } + return *o.AccountName.Get() +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountName.Get(), o.AccountName.IsSet() +} + +// HasAccountName returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasAccountName() bool { + if o != nil && o.AccountName.IsSet() { + return true + } + + return false +} + +// SetAccountName gets a reference to the given NullableString and assigns it to the AccountName field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetAccountName(v string) { + o.AccountName.Set(&v) +} + +// SetAccountNameNil sets the value for AccountName to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetAccountNameNil() { + o.AccountName.Set(nil) +} + +// UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetAccountName() { + o.AccountName.Unset() +} + +// GetIdentityType returns the IdentityType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdentityType() string { + if o == nil || isNil(o.IdentityType.Get()) { + var ret string + return ret + } + return *o.IdentityType.Get() +} + +// GetIdentityTypeOk returns a tuple with the IdentityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetIdentityTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IdentityType.Get(), o.IdentityType.IsSet() +} + +// HasIdentityType returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasIdentityType() bool { + if o != nil && o.IdentityType.IsSet() { + return true + } + + return false +} + +// SetIdentityType gets a reference to the given NullableString and assigns it to the IdentityType field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetIdentityType(v string) { + o.IdentityType.Set(&v) +} + +// SetIdentityTypeNil sets the value for IdentityType to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetIdentityTypeNil() { + o.IdentityType.Set(nil) +} + +// UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetIdentityType() { + o.IdentityType.Unset() +} + +// GetRoles returns the Roles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetRoles() []SecurityLegacySecurityRolesSecurityRoleResponse { + if o == nil { + var ret []SecurityLegacySecurityRolesSecurityRoleResponse + return ret + } + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetRolesOk() ([]SecurityLegacySecurityRolesSecurityRoleResponse, bool) { + if o == nil || isNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasRoles() bool { + if o != nil && isNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []SecurityLegacySecurityRolesSecurityRoleResponse and assigns it to the Roles field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetRoles(v []SecurityLegacySecurityRolesSecurityRoleResponse) { + o.Roles = v +} + +// GetValid returns the Valid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetValid() bool { + if o == nil || isNil(o.Valid.Get()) { + var ret bool + return ret + } + return *o.Valid.Get() +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetValidOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Valid.Get(), o.Valid.IsSet() +} + +// HasValid returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasValid() bool { + if o != nil && o.Valid.IsSet() { + return true + } + + return false +} + +// SetValid gets a reference to the given NullableBool and assigns it to the Valid field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetValid(v bool) { + o.Valid.Set(&v) +} + +// SetValidNil sets the value for Valid to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetValidNil() { + o.Valid.Set(nil) +} + +// UnsetValid ensures that no value is present for Valid, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetValid() { + o.Valid.Unset() +} + +// GetSID returns the SID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetSID() string { + if o == nil || isNil(o.SID.Get()) { + var ret string + return ret + } + return *o.SID.Get() +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) GetSIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SID.Get(), o.SID.IsSet() +} + +// HasSID returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) HasSID() bool { + if o != nil && o.SID.IsSet() { + return true + } + + return false +} + +// SetSID gets a reference to the given NullableString and assigns it to the SID field. +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetSID(v string) { + o.SID.Set(&v) +} + +// SetSIDNil sets the value for SID to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) SetSIDNil() { + o.SID.Set(nil) +} + +// UnsetSID ensures that no value is present for SID, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityIdentityResponse) UnsetSID() { + o.SID.Unset() +} + +func (o SecurityLegacySecurityRolesSecurityIdentityResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityIdentityResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AccountName.IsSet() { + toSerialize["AccountName"] = o.AccountName.Get() + } + if o.IdentityType.IsSet() { + toSerialize["IdentityType"] = o.IdentityType.Get() + } + if o.Roles != nil { + toSerialize["Roles"] = o.Roles + } + if o.Valid.IsSet() { + toSerialize["Valid"] = o.Valid.Get() + } + if o.SID.IsSet() { + toSerialize["SID"] = o.SID.Get() + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityIdentityResponse struct { + value *SecurityLegacySecurityRolesSecurityIdentityResponse + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityIdentityResponse) Get() *SecurityLegacySecurityRolesSecurityIdentityResponse { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityIdentityResponse) Set(val *SecurityLegacySecurityRolesSecurityIdentityResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityIdentityResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityIdentityResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityIdentityResponse(val *SecurityLegacySecurityRolesSecurityIdentityResponse) *NullableSecurityLegacySecurityRolesSecurityIdentityResponse { + return &NullableSecurityLegacySecurityRolesSecurityIdentityResponse{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityIdentityResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityIdentityResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_my_response.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_my_response.go new file mode 100644 index 0000000..37a5785 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_my_response.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityMyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityMyResponse{} + +// SecurityLegacySecurityRolesSecurityMyResponse struct for SecurityLegacySecurityRolesSecurityMyResponse +type SecurityLegacySecurityRolesSecurityMyResponse struct { + Roles []string `json:"Roles,omitempty"` + GlobalPermissions []GlobalPermissionsGlobalPermissionResponse `json:"GlobalPermissions,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityMyResponse instantiates a new SecurityLegacySecurityRolesSecurityMyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityMyResponse() *SecurityLegacySecurityRolesSecurityMyResponse { + this := SecurityLegacySecurityRolesSecurityMyResponse{} + return &this +} + +// NewSecurityLegacySecurityRolesSecurityMyResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityMyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityMyResponseWithDefaults() *SecurityLegacySecurityRolesSecurityMyResponse { + this := SecurityLegacySecurityRolesSecurityMyResponse{} + return &this +} + +// GetRoles returns the Roles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetRoles() []string { + if o == nil { + var ret []string + return ret + } + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetRolesOk() ([]string, bool) { + if o == nil || isNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityMyResponse) HasRoles() bool { + if o != nil && isNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []string and assigns it to the Roles field. +func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetRoles(v []string) { + o.Roles = v +} + +// GetGlobalPermissions returns the GlobalPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetGlobalPermissions() []GlobalPermissionsGlobalPermissionResponse { + if o == nil { + var ret []GlobalPermissionsGlobalPermissionResponse + return ret + } + return o.GlobalPermissions +} + +// GetGlobalPermissionsOk returns a tuple with the GlobalPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityMyResponse) GetGlobalPermissionsOk() ([]GlobalPermissionsGlobalPermissionResponse, bool) { + if o == nil || isNil(o.GlobalPermissions) { + return nil, false + } + return o.GlobalPermissions, true +} + +// HasGlobalPermissions returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityMyResponse) HasGlobalPermissions() bool { + if o != nil && isNil(o.GlobalPermissions) { + return true + } + + return false +} + +// SetGlobalPermissions gets a reference to the given []GlobalPermissionsGlobalPermissionResponse and assigns it to the GlobalPermissions field. +func (o *SecurityLegacySecurityRolesSecurityMyResponse) SetGlobalPermissions(v []GlobalPermissionsGlobalPermissionResponse) { + o.GlobalPermissions = v +} + +func (o SecurityLegacySecurityRolesSecurityMyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityMyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Roles != nil { + toSerialize["Roles"] = o.Roles + } + if o.GlobalPermissions != nil { + toSerialize["GlobalPermissions"] = o.GlobalPermissions + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityMyResponse struct { + value *SecurityLegacySecurityRolesSecurityMyResponse + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityMyResponse) Get() *SecurityLegacySecurityRolesSecurityMyResponse { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityMyResponse) Set(val *SecurityLegacySecurityRolesSecurityMyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityMyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityMyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityMyResponse(val *SecurityLegacySecurityRolesSecurityMyResponse) *NullableSecurityLegacySecurityRolesSecurityMyResponse { + return &NullableSecurityLegacySecurityRolesSecurityMyResponse{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityMyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityMyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_copy_request.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_copy_request.go new file mode 100644 index 0000000..a025071 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_copy_request.go @@ -0,0 +1,239 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityRoleCopyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityRoleCopyRequest{} + +// SecurityLegacySecurityRolesSecurityRoleCopyRequest struct for SecurityLegacySecurityRolesSecurityRoleCopyRequest +type SecurityLegacySecurityRolesSecurityRoleCopyRequest struct { + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + EmailAddress NullableString `json:"EmailAddress,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityRoleCopyRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleCopyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityRoleCopyRequest() *SecurityLegacySecurityRolesSecurityRoleCopyRequest { + this := SecurityLegacySecurityRolesSecurityRoleCopyRequest{} + return &this +} + +// NewSecurityLegacySecurityRolesSecurityRoleCopyRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleCopyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityRoleCopyRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleCopyRequest { + this := SecurityLegacySecurityRolesSecurityRoleCopyRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCopyRequest) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +func (o SecurityLegacySecurityRolesSecurityRoleCopyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityRoleCopyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest struct { + value *SecurityLegacySecurityRolesSecurityRoleCopyRequest + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) Get() *SecurityLegacySecurityRolesSecurityRoleCopyRequest { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) Set(val *SecurityLegacySecurityRolesSecurityRoleCopyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityRoleCopyRequest(val *SecurityLegacySecurityRolesSecurityRoleCopyRequest) *NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest { + return &NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCopyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_creation_request.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_creation_request.go new file mode 100644 index 0000000..517c2ec --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_creation_request.go @@ -0,0 +1,389 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityRoleCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityRoleCreationRequest{} + +// SecurityLegacySecurityRolesSecurityRoleCreationRequest struct for SecurityLegacySecurityRolesSecurityRoleCreationRequest +type SecurityLegacySecurityRolesSecurityRoleCreationRequest struct { + // The name of the security role to create + Name string `json:"Name"` + // The description to be used on the created security role + Description string `json:"Description"` + // The email address to be used on the created security role + EmailAddress NullableString `json:"EmailAddress,omitempty"` + // Whether or not the security role should be enabled + Enabled *bool `json:"Enabled,omitempty"` + // Whether or not the security role should be private + Private *bool `json:"Private,omitempty"` + // The permissions to include in the role. These must be supplied in the format \"Area:Permission\" + Permissions []string `json:"Permissions,omitempty"` + // The Id of the permission set the role belongs to. + PermissionSetId *string `json:"PermissionSetId,omitempty"` + // The Keyfactor identities to assign to the created role + Identities []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier `json:"Identities,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityRoleCreationRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityRoleCreationRequest(name string, description string) *SecurityLegacySecurityRolesSecurityRoleCreationRequest { + this := SecurityLegacySecurityRolesSecurityRoleCreationRequest{} + this.Name = name + this.Description = description + return &this +} + +// NewSecurityLegacySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityRoleCreationRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleCreationRequest { + this := SecurityLegacySecurityRolesSecurityRoleCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetDescription(v string) { + o.Description = v +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPrivate() bool { + if o == nil || isNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPrivateOk() (*bool, bool) { + if o == nil || isNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPrivate() bool { + if o != nil && !isNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPrivate(v bool) { + o.Private = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetIdentities returns the Identities field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetIdentities() []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + if o == nil { + var ret []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier + return ret + } + return o.Identities +} + +// GetIdentitiesOk returns a tuple with the Identities field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) GetIdentitiesOk() ([]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier, bool) { + if o == nil || isNil(o.Identities) { + return nil, false + } + return o.Identities, true +} + +// HasIdentities returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) HasIdentities() bool { + if o != nil && isNil(o.Identities) { + return true + } + + return false +} + +// SetIdentities gets a reference to the given []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier and assigns it to the Identities field. +func (o *SecurityLegacySecurityRolesSecurityRoleCreationRequest) SetIdentities(v []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) { + o.Identities = v +} + +func (o SecurityLegacySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityRoleCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Private) { + toSerialize["Private"] = o.Private + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if o.Identities != nil { + toSerialize["Identities"] = o.Identities + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest struct { + value *SecurityLegacySecurityRolesSecurityRoleCreationRequest + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) Get() *SecurityLegacySecurityRolesSecurityRoleCreationRequest { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) Set(val *SecurityLegacySecurityRolesSecurityRoleCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityRoleCreationRequest(val *SecurityLegacySecurityRolesSecurityRoleCreationRequest) *NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest { + return &NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_response.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_response.go new file mode 100644 index 0000000..4d0994c --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_response.go @@ -0,0 +1,595 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityRoleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityRoleResponse{} + +// SecurityLegacySecurityRolesSecurityRoleResponse A public DTO representing a security identity's role. +type SecurityLegacySecurityRolesSecurityRoleResponse struct { + // The Id of the created role + Id NullableInt32 `json:"Id,omitempty"` + // The description of the created role + Description NullableString `json:"Description,omitempty"` + // The email address to be used on the created security role + EmailAddress NullableString `json:"EmailAddress,omitempty"` + // A boolean indicating whether or not the created role is enabled + Enabled NullableBool `json:"Enabled,omitempty"` + // A boolean indicating whther or not the security role will be read-only + Immutable NullableBool `json:"Immutable,omitempty"` + // A boolean that indicates whether or not the Audit XML was able to be verified + Valid NullableBool `json:"Valid,omitempty"` + // A boolean that indicates whether or not the created security role is private + Private NullableBool `json:"Private,omitempty"` + // The Id of the permission set the role belongs to. + PermissionSetId *string `json:"PermissionSetId,omitempty"` + // The identities assigned to the created security role + Identities []SecurityLegacySecurityRolesSecurityIdentityResponse `json:"Identities,omitempty"` + // The name of the created role + Name NullableString `json:"Name,omitempty"` + // The permissions included in the created security role + Permissions []string `json:"Permissions,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityRoleResponse instantiates a new SecurityLegacySecurityRolesSecurityRoleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityRoleResponse() *SecurityLegacySecurityRolesSecurityRoleResponse { + this := SecurityLegacySecurityRolesSecurityRoleResponse{} + return &this +} + +// NewSecurityLegacySecurityRolesSecurityRoleResponseWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityRoleResponseWithDefaults() *SecurityLegacySecurityRolesSecurityRoleResponse { + this := SecurityLegacySecurityRolesSecurityRoleResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetId() int32 { + if o == nil || isNil(o.Id.Get()) { + var ret int32 + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableInt32 and assigns it to the Id field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetId(v int32) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetId() { + o.Id.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled.Get()) { + var ret bool + return ret + } + return *o.Enabled.Get() +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Enabled.Get(), o.Enabled.IsSet() +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasEnabled() bool { + if o != nil && o.Enabled.IsSet() { + return true + } + + return false +} + +// SetEnabled gets a reference to the given NullableBool and assigns it to the Enabled field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEnabled(v bool) { + o.Enabled.Set(&v) +} + +// SetEnabledNil sets the value for Enabled to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetEnabledNil() { + o.Enabled.Set(nil) +} + +// UnsetEnabled ensures that no value is present for Enabled, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetEnabled() { + o.Enabled.Unset() +} + +// GetImmutable returns the Immutable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetImmutable() bool { + if o == nil || isNil(o.Immutable.Get()) { + var ret bool + return ret + } + return *o.Immutable.Get() +} + +// GetImmutableOk returns a tuple with the Immutable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetImmutableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Immutable.Get(), o.Immutable.IsSet() +} + +// HasImmutable returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasImmutable() bool { + if o != nil && o.Immutable.IsSet() { + return true + } + + return false +} + +// SetImmutable gets a reference to the given NullableBool and assigns it to the Immutable field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetImmutable(v bool) { + o.Immutable.Set(&v) +} + +// SetImmutableNil sets the value for Immutable to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetImmutableNil() { + o.Immutable.Set(nil) +} + +// UnsetImmutable ensures that no value is present for Immutable, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetImmutable() { + o.Immutable.Unset() +} + +// GetValid returns the Valid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetValid() bool { + if o == nil || isNil(o.Valid.Get()) { + var ret bool + return ret + } + return *o.Valid.Get() +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetValidOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Valid.Get(), o.Valid.IsSet() +} + +// HasValid returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasValid() bool { + if o != nil && o.Valid.IsSet() { + return true + } + + return false +} + +// SetValid gets a reference to the given NullableBool and assigns it to the Valid field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetValid(v bool) { + o.Valid.Set(&v) +} + +// SetValidNil sets the value for Valid to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetValidNil() { + o.Valid.Set(nil) +} + +// UnsetValid ensures that no value is present for Valid, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetValid() { + o.Valid.Unset() +} + +// GetPrivate returns the Private field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPrivate() bool { + if o == nil || isNil(o.Private.Get()) { + var ret bool + return ret + } + return *o.Private.Get() +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPrivateOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Private.Get(), o.Private.IsSet() +} + +// HasPrivate returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPrivate() bool { + if o != nil && o.Private.IsSet() { + return true + } + + return false +} + +// SetPrivate gets a reference to the given NullableBool and assigns it to the Private field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPrivate(v bool) { + o.Private.Set(&v) +} + +// SetPrivateNil sets the value for Private to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPrivateNil() { + o.Private.Set(nil) +} + +// UnsetPrivate ensures that no value is present for Private, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetPrivate() { + o.Private.Unset() +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetIdentities returns the Identities field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdentities() []SecurityLegacySecurityRolesSecurityIdentityResponse { + if o == nil { + var ret []SecurityLegacySecurityRolesSecurityIdentityResponse + return ret + } + return o.Identities +} + +// GetIdentitiesOk returns a tuple with the Identities field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetIdentitiesOk() ([]SecurityLegacySecurityRolesSecurityIdentityResponse, bool) { + if o == nil || isNil(o.Identities) { + return nil, false + } + return o.Identities, true +} + +// HasIdentities returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasIdentities() bool { + if o != nil && isNil(o.Identities) { + return true + } + + return false +} + +// SetIdentities gets a reference to the given []SecurityLegacySecurityRolesSecurityIdentityResponse and assigns it to the Identities field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetIdentities(v []SecurityLegacySecurityRolesSecurityIdentityResponse) { + o.Identities = v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecurityLegacySecurityRolesSecurityRoleResponse) SetPermissions(v []string) { + o.Permissions = v +} + +func (o SecurityLegacySecurityRolesSecurityRoleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityRoleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + if o.Enabled.IsSet() { + toSerialize["Enabled"] = o.Enabled.Get() + } + if o.Immutable.IsSet() { + toSerialize["Immutable"] = o.Immutable.Get() + } + if o.Valid.IsSet() { + toSerialize["Valid"] = o.Valid.Get() + } + if o.Private.IsSet() { + toSerialize["Private"] = o.Private.Get() + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if o.Identities != nil { + toSerialize["Identities"] = o.Identities + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityRoleResponse struct { + value *SecurityLegacySecurityRolesSecurityRoleResponse + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleResponse) Get() *SecurityLegacySecurityRolesSecurityRoleResponse { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleResponse) Set(val *SecurityLegacySecurityRolesSecurityRoleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityRoleResponse(val *SecurityLegacySecurityRolesSecurityRoleResponse) *NullableSecurityLegacySecurityRolesSecurityRoleResponse { + return &NullableSecurityLegacySecurityRolesSecurityRoleResponse{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_update_request.go b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_update_request.go new file mode 100644 index 0000000..fb6f3ac --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_legacy_security_roles_security_role_update_request.go @@ -0,0 +1,417 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityLegacySecurityRolesSecurityRoleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityLegacySecurityRolesSecurityRoleUpdateRequest{} + +// SecurityLegacySecurityRolesSecurityRoleUpdateRequest struct for SecurityLegacySecurityRolesSecurityRoleUpdateRequest +type SecurityLegacySecurityRolesSecurityRoleUpdateRequest struct { + // The Id of the security role to update + Id int32 `json:"Id"` + // The name of the security role to update + Name string `json:"Name"` + // The description to be used on the updated security role + Description string `json:"Description"` + // The email address to be used on the updated security role + EmailAddress NullableString `json:"EmailAddress,omitempty"` + // Whether or not the security role should be enabled + Enabled *bool `json:"Enabled,omitempty"` + // Whether or not the security role should be private + Private *bool `json:"Private,omitempty"` + // The permissions to include in the role. These must be supplied in the format \"Area:Permission\" + Permissions []string `json:"Permissions,omitempty"` + // The Id of the permission set the role belongs to. + PermissionSetId *string `json:"PermissionSetId,omitempty"` + // The Keyfactor identities to assign to the updated role + Identities []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier `json:"Identities,omitempty"` +} + +// NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest instantiates a new SecurityLegacySecurityRolesSecurityRoleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityLegacySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string) *SecurityLegacySecurityRolesSecurityRoleUpdateRequest { + this := SecurityLegacySecurityRolesSecurityRoleUpdateRequest{} + this.Id = id + this.Name = name + this.Description = description + return &this +} + +// NewSecurityLegacySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new SecurityLegacySecurityRolesSecurityRoleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityLegacySecurityRolesSecurityRoleUpdateRequestWithDefaults() *SecurityLegacySecurityRolesSecurityRoleUpdateRequest { + this := SecurityLegacySecurityRolesSecurityRoleUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPrivate() bool { + if o == nil || isNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPrivateOk() (*bool, bool) { + if o == nil || isNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPrivate() bool { + if o != nil && !isNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPrivate(v bool) { + o.Private = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetIdentities returns the Identities field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdentities() []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier { + if o == nil { + var ret []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier + return ret + } + return o.Identities +} + +// GetIdentitiesOk returns a tuple with the Identities field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) GetIdentitiesOk() ([]CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier, bool) { + if o == nil || isNil(o.Identities) { + return nil, false + } + return o.Identities, true +} + +// HasIdentities returns a boolean if a field has been set. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) HasIdentities() bool { + if o != nil && isNil(o.Identities) { + return true + } + + return false +} + +// SetIdentities gets a reference to the given []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier and assigns it to the Identities field. +func (o *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) SetIdentities(v []CSSCMSDataModelModelsSecurityIdentitiesSecurityIdentityIdentifier) { + o.Identities = v +} + +func (o SecurityLegacySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityLegacySecurityRolesSecurityRoleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Private) { + toSerialize["Private"] = o.Private + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if o.Identities != nil { + toSerialize["Identities"] = o.Identities + } + return toSerialize, nil +} + +type NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest struct { + value *SecurityLegacySecurityRolesSecurityRoleUpdateRequest + isSet bool +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) Get() *SecurityLegacySecurityRolesSecurityRoleUpdateRequest { + return v.value +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) Set(val *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest(val *SecurityLegacySecurityRolesSecurityRoleUpdateRequest) *NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest { + return &NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest{value: val, isSet: true} +} + +func (v NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityLegacySecurityRolesSecurityRoleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_creation_request.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_creation_request.go new file mode 100644 index 0000000..48c5c89 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_creation_request.go @@ -0,0 +1,206 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest +type SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest struct { + ClaimType CSSCMSCoreEnumsClaimType `json:"ClaimType"` + ClaimValue string `json:"ClaimValue"` + ProviderAuthenticationScheme string `json:"ProviderAuthenticationScheme"` + Description string `json:"Description"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(claimType CSSCMSCoreEnumsClaimType, claimValue string, providerAuthenticationScheme string, description string) *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest{} + this.ClaimType = claimType + this.ClaimValue = claimValue + this.ProviderAuthenticationScheme = providerAuthenticationScheme + this.Description = description + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest{} + return &this +} + +// GetClaimType returns the ClaimType field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimType() CSSCMSCoreEnumsClaimType { + if o == nil { + var ret CSSCMSCoreEnumsClaimType + return ret + } + + return o.ClaimType +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool) { + if o == nil { + return nil, false + } + return &o.ClaimType, true +} + +// SetClaimType sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetClaimType(v CSSCMSCoreEnumsClaimType) { + o.ClaimType = v +} + +// GetClaimValue returns the ClaimValue field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimValue() string { + if o == nil { + var ret string + return ret + } + + return o.ClaimValue +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClaimValue, true +} + +// SetClaimValue sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetClaimValue(v string) { + o.ClaimValue = v +} + +// GetProviderAuthenticationScheme returns the ProviderAuthenticationScheme field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetProviderAuthenticationScheme() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderAuthenticationScheme +} + +// GetProviderAuthenticationSchemeOk returns a tuple with the ProviderAuthenticationScheme field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetProviderAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderAuthenticationScheme, true +} + +// SetProviderAuthenticationScheme sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetProviderAuthenticationScheme(v string) { + o.ProviderAuthenticationScheme = v +} + +// GetDescription returns the Description field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) SetDescription(v string) { + o.Description = v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ClaimType"] = o.ClaimType + toSerialize["ClaimValue"] = o.ClaimValue + toSerialize["ProviderAuthenticationScheme"] = o.ProviderAuthenticationScheme + toSerialize["Description"] = o.Description + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_provider_response.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_provider_response.go new file mode 100644 index 0000000..8a5c13b --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_provider_response.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse +type SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct { + Id *string `json:"Id,omitempty"` + AuthenticationScheme NullableString `json:"AuthenticationScheme,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetId(v string) { + o.Id = &v +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationScheme() string { + if o == nil || isNil(o.AuthenticationScheme.Get()) { + var ret string + return ret + } + return *o.AuthenticationScheme.Get() +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationScheme.Get(), o.AuthenticationScheme.IsSet() +} + +// HasAuthenticationScheme returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasAuthenticationScheme() bool { + if o != nil && o.AuthenticationScheme.IsSet() { + return true + } + + return false +} + +// SetAuthenticationScheme gets a reference to the given NullableString and assigns it to the AuthenticationScheme field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationScheme(v string) { + o.AuthenticationScheme.Set(&v) +} + +// SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationSchemeNil() { + o.AuthenticationScheme.Set(nil) +} + +// UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetAuthenticationScheme() { + o.AuthenticationScheme.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AuthenticationScheme.IsSet() { + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_query_response.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_query_response.go new file mode 100644 index 0000000..7d366db --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_query_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse +type SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Description NullableString `json:"Description,omitempty"` + ClaimType NullableString `json:"ClaimType,omitempty"` + ClaimValue NullableString `json:"ClaimValue,omitempty"` + Provider *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse `json:"Provider,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimType() string { + if o == nil || isNil(o.ClaimType.Get()) { + var ret string + return ret + } + return *o.ClaimType.Get() +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimType.Get(), o.ClaimType.IsSet() +} + +// HasClaimType returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasClaimType() bool { + if o != nil && o.ClaimType.IsSet() { + return true + } + + return false +} + +// SetClaimType gets a reference to the given NullableString and assigns it to the ClaimType field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimType(v string) { + o.ClaimType.Set(&v) +} + +// SetClaimTypeNil sets the value for ClaimType to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimTypeNil() { + o.ClaimType.Set(nil) +} + +// UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetClaimType() { + o.ClaimType.Unset() +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + if o == nil || isNil(o.Provider) { + var ret SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse and assigns it to the Provider field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) { + o.Provider = &v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.ClaimType.IsSet() { + toSerialize["ClaimType"] = o.ClaimType.Get() + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_response.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_response.go new file mode 100644 index 0000000..883f262 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse +type SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + Description NullableString `json:"Description,omitempty"` + ClaimType NullableString `json:"ClaimType,omitempty"` + ClaimValue NullableString `json:"ClaimValue,omitempty"` + Provider *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse `json:"Provider,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimType() string { + if o == nil || isNil(o.ClaimType.Get()) { + var ret string + return ret + } + return *o.ClaimType.Get() +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimType.Get(), o.ClaimType.IsSet() +} + +// HasClaimType returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimType() bool { + if o != nil && o.ClaimType.IsSet() { + return true + } + + return false +} + +// SetClaimType gets a reference to the given NullableString and assigns it to the ClaimType field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimType(v string) { + o.ClaimType.Set(&v) +} + +// SetClaimTypeNil sets the value for ClaimType to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimTypeNil() { + o.ClaimType.Set(nil) +} + +// UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimType() { + o.ClaimType.Unset() +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + if o == nil || isNil(o.Provider) { + var ret SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse and assigns it to the Provider field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) { + o.Provider = &v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.ClaimType.IsSet() { + toSerialize["ClaimType"] = o.ClaimType.Get() + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_update_request.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_update_request.go new file mode 100644 index 0000000..a718090 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_role_claim_definition_update_request.go @@ -0,0 +1,152 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest +type SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest struct { + Id int32 `json:"Id"` + Description string `json:"Description"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(id int32, description string) *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest{} + this.Id = id + this.Description = description + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetDescription returns the Description field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) SetDescription(v string) { + o.Description = v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Description"] = o.Description + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_role_claim_definitions_security_role_for_claim_response.go b/v24/api/keyfactor/v1/model_security_role_claim_definitions_security_role_for_claim_response.go new file mode 100644 index 0000000..12e1335 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_role_claim_definitions_security_role_for_claim_response.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse{} + +// SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse struct for SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse +type SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse instantiates a new SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse() *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse { + this := SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsSecurityRoleForClaimResponseWithDefaults() *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse { + this := SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +func (o SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse struct { + value *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) Get() *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) Set(val *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse(val *SecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) *NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse { + return &NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsSecurityRoleForClaimResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_identities_security_identity_lookup_response.go b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_lookup_response.go new file mode 100644 index 0000000..976fb4d --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_lookup_response.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityIdentitiesSecurityIdentityLookupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityIdentitiesSecurityIdentityLookupResponse{} + +// SecuritySecurityIdentitiesSecurityIdentityLookupResponse A public DTO representing the result of a security identity lookup. +type SecuritySecurityIdentitiesSecurityIdentityLookupResponse struct { + // Whether or not the identity is valid. + Valid *bool `json:"Valid,omitempty"` +} + +// NewSecuritySecurityIdentitiesSecurityIdentityLookupResponse instantiates a new SecuritySecurityIdentitiesSecurityIdentityLookupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityIdentitiesSecurityIdentityLookupResponse() *SecuritySecurityIdentitiesSecurityIdentityLookupResponse { + this := SecuritySecurityIdentitiesSecurityIdentityLookupResponse{} + return &this +} + +// NewSecuritySecurityIdentitiesSecurityIdentityLookupResponseWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityLookupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityIdentitiesSecurityIdentityLookupResponseWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityLookupResponse { + this := SecuritySecurityIdentitiesSecurityIdentityLookupResponse{} + return &this +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) GetValid() bool { + if o == nil || isNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) GetValidOk() (*bool, bool) { + if o == nil || isNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) HasValid() bool { + if o != nil && !isNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) SetValid(v bool) { + o.Valid = &v +} + +func (o SecuritySecurityIdentitiesSecurityIdentityLookupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityIdentitiesSecurityIdentityLookupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Valid) { + toSerialize["Valid"] = o.Valid + } + return toSerialize, nil +} + +type NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse struct { + value *SecuritySecurityIdentitiesSecurityIdentityLookupResponse + isSet bool +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) Get() *SecuritySecurityIdentitiesSecurityIdentityLookupResponse { + return v.value +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) Set(val *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse(val *SecuritySecurityIdentitiesSecurityIdentityLookupResponse) *NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse { + return &NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityLookupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_identities_security_identity_request.go b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_request.go new file mode 100644 index 0000000..cc6c6d8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_request.go @@ -0,0 +1,126 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityIdentitiesSecurityIdentityRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityIdentitiesSecurityIdentityRequest{} + +// SecuritySecurityIdentitiesSecurityIdentityRequest Model for requesting a security identity. +type SecuritySecurityIdentitiesSecurityIdentityRequest struct { + // The username of the security identity. + AccountName string `json:"AccountName"` +} + +// NewSecuritySecurityIdentitiesSecurityIdentityRequest instantiates a new SecuritySecurityIdentitiesSecurityIdentityRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityIdentitiesSecurityIdentityRequest(accountName string) *SecuritySecurityIdentitiesSecurityIdentityRequest { + this := SecuritySecurityIdentitiesSecurityIdentityRequest{} + this.AccountName = accountName + return &this +} + +// NewSecuritySecurityIdentitiesSecurityIdentityRequestWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityIdentitiesSecurityIdentityRequestWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityRequest { + this := SecuritySecurityIdentitiesSecurityIdentityRequest{} + return &this +} + +// GetAccountName returns the AccountName field value +func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) GetAccountName() string { + if o == nil { + var ret string + return ret + } + + return o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountName, true +} + +// SetAccountName sets field value +func (o *SecuritySecurityIdentitiesSecurityIdentityRequest) SetAccountName(v string) { + o.AccountName = v +} + +func (o SecuritySecurityIdentitiesSecurityIdentityRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityIdentitiesSecurityIdentityRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AccountName"] = o.AccountName + return toSerialize, nil +} + +type NullableSecuritySecurityIdentitiesSecurityIdentityRequest struct { + value *SecuritySecurityIdentitiesSecurityIdentityRequest + isSet bool +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityRequest) Get() *SecuritySecurityIdentitiesSecurityIdentityRequest { + return v.value +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityRequest) Set(val *SecuritySecurityIdentitiesSecurityIdentityRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityIdentitiesSecurityIdentityRequest(val *SecuritySecurityIdentitiesSecurityIdentityRequest) *NullableSecuritySecurityIdentitiesSecurityIdentityRequest { + return &NullableSecuritySecurityIdentitiesSecurityIdentityRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_identities_security_identity_response.go b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_response.go new file mode 100644 index 0000000..abb234f --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_identities_security_identity_response.go @@ -0,0 +1,365 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityIdentitiesSecurityIdentityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityIdentitiesSecurityIdentityResponse{} + +// SecuritySecurityIdentitiesSecurityIdentityResponse Public DTO for handling responses that include a security identity. +type SecuritySecurityIdentitiesSecurityIdentityResponse struct { + // The ID of the security identity. + Id *int32 `json:"Id,omitempty"` + // The username associated with the account. + AccountName NullableString `json:"AccountName,omitempty"` + // The type of the identity. + IdentityType NullableString `json:"IdentityType,omitempty"` + // The roles this identity belongs to. + Roles []SecurityLegacySecurityRolesSecurityRoleResponse `json:"Roles,omitempty"` + // Whether or not the identity's role XML is valid. + Valid NullableBool `json:"Valid,omitempty"` + // The security identifier for the identity. + SID NullableString `json:"SID,omitempty"` +} + +// NewSecuritySecurityIdentitiesSecurityIdentityResponse instantiates a new SecuritySecurityIdentitiesSecurityIdentityResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityIdentitiesSecurityIdentityResponse() *SecuritySecurityIdentitiesSecurityIdentityResponse { + this := SecuritySecurityIdentitiesSecurityIdentityResponse{} + return &this +} + +// NewSecuritySecurityIdentitiesSecurityIdentityResponseWithDefaults instantiates a new SecuritySecurityIdentitiesSecurityIdentityResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityIdentitiesSecurityIdentityResponseWithDefaults() *SecuritySecurityIdentitiesSecurityIdentityResponse { + this := SecuritySecurityIdentitiesSecurityIdentityResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetId(v int32) { + o.Id = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetAccountName() string { + if o == nil || isNil(o.AccountName.Get()) { + var ret string + return ret + } + return *o.AccountName.Get() +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountName.Get(), o.AccountName.IsSet() +} + +// HasAccountName returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasAccountName() bool { + if o != nil && o.AccountName.IsSet() { + return true + } + + return false +} + +// SetAccountName gets a reference to the given NullableString and assigns it to the AccountName field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetAccountName(v string) { + o.AccountName.Set(&v) +} + +// SetAccountNameNil sets the value for AccountName to be an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetAccountNameNil() { + o.AccountName.Set(nil) +} + +// UnsetAccountName ensures that no value is present for AccountName, not even an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetAccountName() { + o.AccountName.Unset() +} + +// GetIdentityType returns the IdentityType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdentityType() string { + if o == nil || isNil(o.IdentityType.Get()) { + var ret string + return ret + } + return *o.IdentityType.Get() +} + +// GetIdentityTypeOk returns a tuple with the IdentityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetIdentityTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IdentityType.Get(), o.IdentityType.IsSet() +} + +// HasIdentityType returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasIdentityType() bool { + if o != nil && o.IdentityType.IsSet() { + return true + } + + return false +} + +// SetIdentityType gets a reference to the given NullableString and assigns it to the IdentityType field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetIdentityType(v string) { + o.IdentityType.Set(&v) +} + +// SetIdentityTypeNil sets the value for IdentityType to be an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetIdentityTypeNil() { + o.IdentityType.Set(nil) +} + +// UnsetIdentityType ensures that no value is present for IdentityType, not even an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetIdentityType() { + o.IdentityType.Unset() +} + +// GetRoles returns the Roles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetRoles() []SecurityLegacySecurityRolesSecurityRoleResponse { + if o == nil { + var ret []SecurityLegacySecurityRolesSecurityRoleResponse + return ret + } + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetRolesOk() ([]SecurityLegacySecurityRolesSecurityRoleResponse, bool) { + if o == nil || isNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasRoles() bool { + if o != nil && isNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []SecurityLegacySecurityRolesSecurityRoleResponse and assigns it to the Roles field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetRoles(v []SecurityLegacySecurityRolesSecurityRoleResponse) { + o.Roles = v +} + +// GetValid returns the Valid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetValid() bool { + if o == nil || isNil(o.Valid.Get()) { + var ret bool + return ret + } + return *o.Valid.Get() +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetValidOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Valid.Get(), o.Valid.IsSet() +} + +// HasValid returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasValid() bool { + if o != nil && o.Valid.IsSet() { + return true + } + + return false +} + +// SetValid gets a reference to the given NullableBool and assigns it to the Valid field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetValid(v bool) { + o.Valid.Set(&v) +} + +// SetValidNil sets the value for Valid to be an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetValidNil() { + o.Valid.Set(nil) +} + +// UnsetValid ensures that no value is present for Valid, not even an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetValid() { + o.Valid.Unset() +} + +// GetSID returns the SID field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetSID() string { + if o == nil || isNil(o.SID.Get()) { + var ret string + return ret + } + return *o.SID.Get() +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) GetSIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SID.Get(), o.SID.IsSet() +} + +// HasSID returns a boolean if a field has been set. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) HasSID() bool { + if o != nil && o.SID.IsSet() { + return true + } + + return false +} + +// SetSID gets a reference to the given NullableString and assigns it to the SID field. +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetSID(v string) { + o.SID.Set(&v) +} + +// SetSIDNil sets the value for SID to be an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) SetSIDNil() { + o.SID.Set(nil) +} + +// UnsetSID ensures that no value is present for SID, not even an explicit nil +func (o *SecuritySecurityIdentitiesSecurityIdentityResponse) UnsetSID() { + o.SID.Unset() +} + +func (o SecuritySecurityIdentitiesSecurityIdentityResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityIdentitiesSecurityIdentityResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AccountName.IsSet() { + toSerialize["AccountName"] = o.AccountName.Get() + } + if o.IdentityType.IsSet() { + toSerialize["IdentityType"] = o.IdentityType.Get() + } + if o.Roles != nil { + toSerialize["Roles"] = o.Roles + } + if o.Valid.IsSet() { + toSerialize["Valid"] = o.Valid.Get() + } + if o.SID.IsSet() { + toSerialize["SID"] = o.SID.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityIdentitiesSecurityIdentityResponse struct { + value *SecuritySecurityIdentitiesSecurityIdentityResponse + isSet bool +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityResponse) Get() *SecuritySecurityIdentitiesSecurityIdentityResponse { + return v.value +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityResponse) Set(val *SecuritySecurityIdentitiesSecurityIdentityResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityIdentitiesSecurityIdentityResponse(val *SecuritySecurityIdentitiesSecurityIdentityResponse) *NullableSecuritySecurityIdentitiesSecurityIdentityResponse { + return &NullableSecuritySecurityIdentitiesSecurityIdentityResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityIdentitiesSecurityIdentityResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityIdentitiesSecurityIdentityResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_identity_permissions_permission_roles_pair_response.go b/v24/api/keyfactor/v1/model_security_security_identity_permissions_permission_roles_pair_response.go new file mode 100644 index 0000000..37feb3d --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_identity_permissions_permission_roles_pair_response.go @@ -0,0 +1,182 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityIdentityPermissionsPermissionRolesPairResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityIdentityPermissionsPermissionRolesPairResponse{} + +// SecuritySecurityIdentityPermissionsPermissionRolesPairResponse struct for SecuritySecurityIdentityPermissionsPermissionRolesPairResponse +type SecuritySecurityIdentityPermissionsPermissionRolesPairResponse struct { + Permission NullableString `json:"Permission,omitempty"` + GrantedByRoles []string `json:"GrantedByRoles,omitempty"` +} + +// NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponse instantiates a new SecuritySecurityIdentityPermissionsPermissionRolesPairResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponse() *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + this := SecuritySecurityIdentityPermissionsPermissionRolesPairResponse{} + return &this +} + +// NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponseWithDefaults instantiates a new SecuritySecurityIdentityPermissionsPermissionRolesPairResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityIdentityPermissionsPermissionRolesPairResponseWithDefaults() *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + this := SecuritySecurityIdentityPermissionsPermissionRolesPairResponse{} + return &this +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) UnsetPermission() { + o.Permission.Unset() +} + +// GetGrantedByRoles returns the GrantedByRoles field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetGrantedByRoles() []string { + if o == nil { + var ret []string + return ret + } + return o.GrantedByRoles +} + +// GetGrantedByRolesOk returns a tuple with the GrantedByRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) GetGrantedByRolesOk() ([]string, bool) { + if o == nil || isNil(o.GrantedByRoles) { + return nil, false + } + return o.GrantedByRoles, true +} + +// HasGrantedByRoles returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) HasGrantedByRoles() bool { + if o != nil && isNil(o.GrantedByRoles) { + return true + } + + return false +} + +// SetGrantedByRoles gets a reference to the given []string and assigns it to the GrantedByRoles field. +func (o *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) SetGrantedByRoles(v []string) { + o.GrantedByRoles = v +} + +func (o SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + if o.GrantedByRoles != nil { + toSerialize["GrantedByRoles"] = o.GrantedByRoles + } + return toSerialize, nil +} + +type NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse struct { + value *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + isSet bool +} + +func (v NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) Get() *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + return v.value +} + +func (v *NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) Set(val *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse(val *SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) *NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + return &NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityIdentityPermissionsPermissionRolesPairResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_identity_permissions_security_identity_permissions_response.go b/v24/api/keyfactor/v1/model_security_security_identity_permissions_security_identity_permissions_response.go new file mode 100644 index 0000000..0f9163b --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_identity_permissions_security_identity_permissions_response.go @@ -0,0 +1,403 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse{} + +// SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse struct for SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse +type SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse struct { + Claim *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse `json:"Claim,omitempty"` + Identity NullableString `json:"Identity,omitempty"` + SecuredAreaPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"SecuredAreaPermissions,omitempty"` + CollectionPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"CollectionPermissions,omitempty"` + ContainerPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"ContainerPermissions,omitempty"` + PamProviderPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"PamProviderPermissions,omitempty"` + IdentityProviderPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"IdentityProviderPermissions,omitempty"` + PamPermissions []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse `json:"PamPermissions,omitempty"` +} + +// NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse instantiates a new SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse() *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse { + this := SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse{} + return &this +} + +// NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponseWithDefaults instantiates a new SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponseWithDefaults() *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse { + this := SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse{} + return &this +} + +// GetClaim returns the Claim field value if set, zero value otherwise. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetClaim() SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + if o == nil || isNil(o.Claim) { + var ret SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + return ret + } + return *o.Claim +} + +// GetClaimOk returns a tuple with the Claim field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetClaimOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, bool) { + if o == nil || isNil(o.Claim) { + return nil, false + } + return o.Claim, true +} + +// HasClaim returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasClaim() bool { + if o != nil && !isNil(o.Claim) { + return true + } + + return false +} + +// SetClaim gets a reference to the given SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse and assigns it to the Claim field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetClaim(v SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) { + o.Claim = &v +} + +// GetIdentity returns the Identity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentity() string { + if o == nil || isNil(o.Identity.Get()) { + var ret string + return ret + } + return *o.Identity.Get() +} + +// GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Identity.Get(), o.Identity.IsSet() +} + +// HasIdentity returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasIdentity() bool { + if o != nil && o.Identity.IsSet() { + return true + } + + return false +} + +// SetIdentity gets a reference to the given NullableString and assigns it to the Identity field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentity(v string) { + o.Identity.Set(&v) +} + +// SetIdentityNil sets the value for Identity to be an explicit nil +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentityNil() { + o.Identity.Set(nil) +} + +// UnsetIdentity ensures that no value is present for Identity, not even an explicit nil +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnsetIdentity() { + o.Identity.Unset() +} + +// GetSecuredAreaPermissions returns the SecuredAreaPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetSecuredAreaPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.SecuredAreaPermissions +} + +// GetSecuredAreaPermissionsOk returns a tuple with the SecuredAreaPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetSecuredAreaPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.SecuredAreaPermissions) { + return nil, false + } + return o.SecuredAreaPermissions, true +} + +// HasSecuredAreaPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasSecuredAreaPermissions() bool { + if o != nil && isNil(o.SecuredAreaPermissions) { + return true + } + + return false +} + +// SetSecuredAreaPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the SecuredAreaPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetSecuredAreaPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.SecuredAreaPermissions = v +} + +// GetCollectionPermissions returns the CollectionPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetCollectionPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.CollectionPermissions +} + +// GetCollectionPermissionsOk returns a tuple with the CollectionPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetCollectionPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.CollectionPermissions) { + return nil, false + } + return o.CollectionPermissions, true +} + +// HasCollectionPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasCollectionPermissions() bool { + if o != nil && isNil(o.CollectionPermissions) { + return true + } + + return false +} + +// SetCollectionPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the CollectionPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetCollectionPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.CollectionPermissions = v +} + +// GetContainerPermissions returns the ContainerPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetContainerPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.ContainerPermissions +} + +// GetContainerPermissionsOk returns a tuple with the ContainerPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetContainerPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.ContainerPermissions) { + return nil, false + } + return o.ContainerPermissions, true +} + +// HasContainerPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasContainerPermissions() bool { + if o != nil && isNil(o.ContainerPermissions) { + return true + } + + return false +} + +// SetContainerPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the ContainerPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetContainerPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.ContainerPermissions = v +} + +// GetPamProviderPermissions returns the PamProviderPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamProviderPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.PamProviderPermissions +} + +// GetPamProviderPermissionsOk returns a tuple with the PamProviderPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamProviderPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.PamProviderPermissions) { + return nil, false + } + return o.PamProviderPermissions, true +} + +// HasPamProviderPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasPamProviderPermissions() bool { + if o != nil && isNil(o.PamProviderPermissions) { + return true + } + + return false +} + +// SetPamProviderPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the PamProviderPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamProviderPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.PamProviderPermissions = v +} + +// GetIdentityProviderPermissions returns the IdentityProviderPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityProviderPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.IdentityProviderPermissions +} + +// GetIdentityProviderPermissionsOk returns a tuple with the IdentityProviderPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetIdentityProviderPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.IdentityProviderPermissions) { + return nil, false + } + return o.IdentityProviderPermissions, true +} + +// HasIdentityProviderPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasIdentityProviderPermissions() bool { + if o != nil && isNil(o.IdentityProviderPermissions) { + return true + } + + return false +} + +// SetIdentityProviderPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the IdentityProviderPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetIdentityProviderPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.IdentityProviderPermissions = v +} + +// GetPamPermissions returns the PamPermissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamPermissions() []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse { + if o == nil { + var ret []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse + return ret + } + return o.PamPermissions +} + +// GetPamPermissionsOk returns a tuple with the PamPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) GetPamPermissionsOk() ([]SecuritySecurityIdentityPermissionsPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.PamPermissions) { + return nil, false + } + return o.PamPermissions, true +} + +// HasPamPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) HasPamPermissions() bool { + if o != nil && isNil(o.PamPermissions) { + return true + } + + return false +} + +// SetPamPermissions gets a reference to the given []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse and assigns it to the PamPermissions field. +func (o *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) SetPamPermissions(v []SecuritySecurityIdentityPermissionsPermissionRolesPairResponse) { + o.PamPermissions = v +} + +func (o SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Claim) { + toSerialize["Claim"] = o.Claim + } + if o.Identity.IsSet() { + toSerialize["Identity"] = o.Identity.Get() + } + if o.SecuredAreaPermissions != nil { + toSerialize["SecuredAreaPermissions"] = o.SecuredAreaPermissions + } + if o.CollectionPermissions != nil { + toSerialize["CollectionPermissions"] = o.CollectionPermissions + } + if o.ContainerPermissions != nil { + toSerialize["ContainerPermissions"] = o.ContainerPermissions + } + if o.PamProviderPermissions != nil { + toSerialize["PamProviderPermissions"] = o.PamProviderPermissions + } + if o.IdentityProviderPermissions != nil { + toSerialize["IdentityProviderPermissions"] = o.IdentityProviderPermissions + } + if o.PamPermissions != nil { + toSerialize["PamPermissions"] = o.PamPermissions + } + return toSerialize, nil +} + +type NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse struct { + value *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse + isSet bool +} + +func (v NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) Get() *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse { + return v.value +} + +func (v *NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) Set(val *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse(val *SecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) *NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse { + return &NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityIdentityPermissionsSecurityIdentityPermissionsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_area_permission_response.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_area_permission_response.go new file mode 100644 index 0000000..e9e18f7 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_area_permission_response.go @@ -0,0 +1,239 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsAreaPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsAreaPermissionResponse{} + +// SecuritySecurityRolePermissionsAreaPermissionResponse struct for SecuritySecurityRolePermissionsAreaPermissionResponse +type SecuritySecurityRolePermissionsAreaPermissionResponse struct { + Type NullableString `json:"Type,omitempty"` + Area NullableString `json:"Area,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsAreaPermissionResponse instantiates a new SecuritySecurityRolePermissionsAreaPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsAreaPermissionResponse() *SecuritySecurityRolePermissionsAreaPermissionResponse { + this := SecuritySecurityRolePermissionsAreaPermissionResponse{} + return &this +} + +// NewSecuritySecurityRolePermissionsAreaPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsAreaPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsAreaPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsAreaPermissionResponse { + this := SecuritySecurityRolePermissionsAreaPermissionResponse{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetType() string { + if o == nil || isNil(o.Type.Get()) { + var ret string + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableString and assigns it to the Type field. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetType(v string) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetType() { + o.Type.Unset() +} + +// GetArea returns the Area field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetArea() string { + if o == nil || isNil(o.Area.Get()) { + var ret string + return ret + } + return *o.Area.Get() +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetAreaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Area.Get(), o.Area.IsSet() +} + +// HasArea returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasArea() bool { + if o != nil && o.Area.IsSet() { + return true + } + + return false +} + +// SetArea gets a reference to the given NullableString and assigns it to the Area field. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetArea(v string) { + o.Area.Set(&v) +} + +// SetAreaNil sets the value for Area to be an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetAreaNil() { + o.Area.Set(nil) +} + +// UnsetArea ensures that no value is present for Area, not even an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetArea() { + o.Area.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsAreaPermissionResponse) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsAreaPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsAreaPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type.IsSet() { + toSerialize["Type"] = o.Type.Get() + } + if o.Area.IsSet() { + toSerialize["Area"] = o.Area.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsAreaPermissionResponse struct { + value *SecuritySecurityRolePermissionsAreaPermissionResponse + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsAreaPermissionResponse) Get() *SecuritySecurityRolePermissionsAreaPermissionResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsAreaPermissionResponse) Set(val *SecuritySecurityRolePermissionsAreaPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsAreaPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsAreaPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsAreaPermissionResponse(val *SecuritySecurityRolePermissionsAreaPermissionResponse) *NullableSecuritySecurityRolePermissionsAreaPermissionResponse { + return &NullableSecuritySecurityRolePermissionsAreaPermissionResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsAreaPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsAreaPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_request.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_request.go new file mode 100644 index 0000000..1a81553 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_request.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsCollectionPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsCollectionPermissionRequest{} + +// SecuritySecurityRolePermissionsCollectionPermissionRequest struct for SecuritySecurityRolePermissionsCollectionPermissionRequest +type SecuritySecurityRolePermissionsCollectionPermissionRequest struct { + CollectionId *int32 `json:"CollectionId,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsCollectionPermissionRequest instantiates a new SecuritySecurityRolePermissionsCollectionPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsCollectionPermissionRequest() *SecuritySecurityRolePermissionsCollectionPermissionRequest { + this := SecuritySecurityRolePermissionsCollectionPermissionRequest{} + return &this +} + +// NewSecuritySecurityRolePermissionsCollectionPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsCollectionPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsCollectionPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsCollectionPermissionRequest { + this := SecuritySecurityRolePermissionsCollectionPermissionRequest{} + return &this +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetCollectionId(v int32) { + o.CollectionId = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionRequest) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsCollectionPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsCollectionPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsCollectionPermissionRequest struct { + value *SecuritySecurityRolePermissionsCollectionPermissionRequest + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) Get() *SecuritySecurityRolePermissionsCollectionPermissionRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) Set(val *SecuritySecurityRolePermissionsCollectionPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsCollectionPermissionRequest(val *SecuritySecurityRolePermissionsCollectionPermissionRequest) *NullableSecuritySecurityRolePermissionsCollectionPermissionRequest { + return &NullableSecuritySecurityRolePermissionsCollectionPermissionRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_response.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_response.go new file mode 100644 index 0000000..ade851b --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_collection_permission_response.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsCollectionPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsCollectionPermissionResponse{} + +// SecuritySecurityRolePermissionsCollectionPermissionResponse struct for SecuritySecurityRolePermissionsCollectionPermissionResponse +type SecuritySecurityRolePermissionsCollectionPermissionResponse struct { + CollectionId *int32 `json:"CollectionId,omitempty"` + Name NullableString `json:"Name,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsCollectionPermissionResponse instantiates a new SecuritySecurityRolePermissionsCollectionPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsCollectionPermissionResponse() *SecuritySecurityRolePermissionsCollectionPermissionResponse { + this := SecuritySecurityRolePermissionsCollectionPermissionResponse{} + return &this +} + +// NewSecuritySecurityRolePermissionsCollectionPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsCollectionPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsCollectionPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsCollectionPermissionResponse { + this := SecuritySecurityRolePermissionsCollectionPermissionResponse{} + return &this +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetCollectionId(v int32) { + o.CollectionId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) UnsetName() { + o.Name.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsCollectionPermissionResponse) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsCollectionPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsCollectionPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsCollectionPermissionResponse struct { + value *SecuritySecurityRolePermissionsCollectionPermissionResponse + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) Get() *SecuritySecurityRolePermissionsCollectionPermissionResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) Set(val *SecuritySecurityRolePermissionsCollectionPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsCollectionPermissionResponse(val *SecuritySecurityRolePermissionsCollectionPermissionResponse) *NullableSecuritySecurityRolePermissionsCollectionPermissionResponse { + return &NullableSecuritySecurityRolePermissionsCollectionPermissionResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsCollectionPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_request.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_request.go new file mode 100644 index 0000000..cd8e1c2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_request.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsContainerPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsContainerPermissionRequest{} + +// SecuritySecurityRolePermissionsContainerPermissionRequest struct for SecuritySecurityRolePermissionsContainerPermissionRequest +type SecuritySecurityRolePermissionsContainerPermissionRequest struct { + ContainerId *int32 `json:"ContainerId,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsContainerPermissionRequest instantiates a new SecuritySecurityRolePermissionsContainerPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsContainerPermissionRequest() *SecuritySecurityRolePermissionsContainerPermissionRequest { + this := SecuritySecurityRolePermissionsContainerPermissionRequest{} + return &this +} + +// NewSecuritySecurityRolePermissionsContainerPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsContainerPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsContainerPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsContainerPermissionRequest { + this := SecuritySecurityRolePermissionsContainerPermissionRequest{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionRequest) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsContainerPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsContainerPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsContainerPermissionRequest struct { + value *SecuritySecurityRolePermissionsContainerPermissionRequest + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionRequest) Get() *SecuritySecurityRolePermissionsContainerPermissionRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionRequest) Set(val *SecuritySecurityRolePermissionsContainerPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsContainerPermissionRequest(val *SecuritySecurityRolePermissionsContainerPermissionRequest) *NullableSecuritySecurityRolePermissionsContainerPermissionRequest { + return &NullableSecuritySecurityRolePermissionsContainerPermissionRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_response.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_response.go new file mode 100644 index 0000000..10ea1af --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_container_permission_response.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsContainerPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsContainerPermissionResponse{} + +// SecuritySecurityRolePermissionsContainerPermissionResponse struct for SecuritySecurityRolePermissionsContainerPermissionResponse +type SecuritySecurityRolePermissionsContainerPermissionResponse struct { + ContainerId *int32 `json:"ContainerId,omitempty"` + Name NullableString `json:"Name,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsContainerPermissionResponse instantiates a new SecuritySecurityRolePermissionsContainerPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsContainerPermissionResponse() *SecuritySecurityRolePermissionsContainerPermissionResponse { + this := SecuritySecurityRolePermissionsContainerPermissionResponse{} + return &this +} + +// NewSecuritySecurityRolePermissionsContainerPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsContainerPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsContainerPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsContainerPermissionResponse { + this := SecuritySecurityRolePermissionsContainerPermissionResponse{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) UnsetName() { + o.Name.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsContainerPermissionResponse) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsContainerPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsContainerPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsContainerPermissionResponse struct { + value *SecuritySecurityRolePermissionsContainerPermissionResponse + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionResponse) Get() *SecuritySecurityRolePermissionsContainerPermissionResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionResponse) Set(val *SecuritySecurityRolePermissionsContainerPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsContainerPermissionResponse(val *SecuritySecurityRolePermissionsContainerPermissionResponse) *NullableSecuritySecurityRolePermissionsContainerPermissionResponse { + return &NullableSecuritySecurityRolePermissionsContainerPermissionResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsContainerPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsContainerPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_request.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_request.go new file mode 100644 index 0000000..b358515 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_request.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsGlobalPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsGlobalPermissionRequest{} + +// SecuritySecurityRolePermissionsGlobalPermissionRequest struct for SecuritySecurityRolePermissionsGlobalPermissionRequest +type SecuritySecurityRolePermissionsGlobalPermissionRequest struct { + Area NullableString `json:"Area,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsGlobalPermissionRequest instantiates a new SecuritySecurityRolePermissionsGlobalPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsGlobalPermissionRequest() *SecuritySecurityRolePermissionsGlobalPermissionRequest { + this := SecuritySecurityRolePermissionsGlobalPermissionRequest{} + return &this +} + +// NewSecuritySecurityRolePermissionsGlobalPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsGlobalPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsGlobalPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsGlobalPermissionRequest { + this := SecuritySecurityRolePermissionsGlobalPermissionRequest{} + return &this +} + +// GetArea returns the Area field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetArea() string { + if o == nil || isNil(o.Area.Get()) { + var ret string + return ret + } + return *o.Area.Get() +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetAreaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Area.Get(), o.Area.IsSet() +} + +// HasArea returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) HasArea() bool { + if o != nil && o.Area.IsSet() { + return true + } + + return false +} + +// SetArea gets a reference to the given NullableString and assigns it to the Area field. +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetArea(v string) { + o.Area.Set(&v) +} + +// SetAreaNil sets the value for Area to be an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetAreaNil() { + o.Area.Set(nil) +} + +// UnsetArea ensures that no value is present for Area, not even an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) UnsetArea() { + o.Area.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionRequest) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsGlobalPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsGlobalPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Area.IsSet() { + toSerialize["Area"] = o.Area.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsGlobalPermissionRequest struct { + value *SecuritySecurityRolePermissionsGlobalPermissionRequest + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) Get() *SecuritySecurityRolePermissionsGlobalPermissionRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) Set(val *SecuritySecurityRolePermissionsGlobalPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsGlobalPermissionRequest(val *SecuritySecurityRolePermissionsGlobalPermissionRequest) *NullableSecuritySecurityRolePermissionsGlobalPermissionRequest { + return &NullableSecuritySecurityRolePermissionsGlobalPermissionRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_response.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_response.go new file mode 100644 index 0000000..a16bedb --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_global_permission_response.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsGlobalPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsGlobalPermissionResponse{} + +// SecuritySecurityRolePermissionsGlobalPermissionResponse struct for SecuritySecurityRolePermissionsGlobalPermissionResponse +type SecuritySecurityRolePermissionsGlobalPermissionResponse struct { + Area NullableString `json:"Area,omitempty"` + Permission NullableString `json:"Permission,omitempty"` +} + +// NewSecuritySecurityRolePermissionsGlobalPermissionResponse instantiates a new SecuritySecurityRolePermissionsGlobalPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsGlobalPermissionResponse() *SecuritySecurityRolePermissionsGlobalPermissionResponse { + this := SecuritySecurityRolePermissionsGlobalPermissionResponse{} + return &this +} + +// NewSecuritySecurityRolePermissionsGlobalPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsGlobalPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsGlobalPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsGlobalPermissionResponse { + this := SecuritySecurityRolePermissionsGlobalPermissionResponse{} + return &this +} + +// GetArea returns the Area field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetArea() string { + if o == nil || isNil(o.Area.Get()) { + var ret string + return ret + } + return *o.Area.Get() +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetAreaOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Area.Get(), o.Area.IsSet() +} + +// HasArea returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) HasArea() bool { + if o != nil && o.Area.IsSet() { + return true + } + + return false +} + +// SetArea gets a reference to the given NullableString and assigns it to the Area field. +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetArea(v string) { + o.Area.Set(&v) +} + +// SetAreaNil sets the value for Area to be an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetAreaNil() { + o.Area.Set(nil) +} + +// UnsetArea ensures that no value is present for Area, not even an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) UnsetArea() { + o.Area.Unset() +} + +// GetPermission returns the Permission field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission.Get()) { + var ret string + return ret + } + return *o.Permission.Get() +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Permission.Get(), o.Permission.IsSet() +} + +// HasPermission returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) HasPermission() bool { + if o != nil && o.Permission.IsSet() { + return true + } + + return false +} + +// SetPermission gets a reference to the given NullableString and assigns it to the Permission field. +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetPermission(v string) { + o.Permission.Set(&v) +} + +// SetPermissionNil sets the value for Permission to be an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) SetPermissionNil() { + o.Permission.Set(nil) +} + +// UnsetPermission ensures that no value is present for Permission, not even an explicit nil +func (o *SecuritySecurityRolePermissionsGlobalPermissionResponse) UnsetPermission() { + o.Permission.Unset() +} + +func (o SecuritySecurityRolePermissionsGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsGlobalPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Area.IsSet() { + toSerialize["Area"] = o.Area.Get() + } + if o.Permission.IsSet() { + toSerialize["Permission"] = o.Permission.Get() + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsGlobalPermissionResponse struct { + value *SecuritySecurityRolePermissionsGlobalPermissionResponse + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) Get() *SecuritySecurityRolePermissionsGlobalPermissionResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) Set(val *SecuritySecurityRolePermissionsGlobalPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsGlobalPermissionResponse(val *SecuritySecurityRolePermissionsGlobalPermissionResponse) *NullableSecuritySecurityRolePermissionsGlobalPermissionResponse { + return &NullableSecuritySecurityRolePermissionsGlobalPermissionResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsGlobalPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_request.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_request.go new file mode 100644 index 0000000..4777f9c --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_request.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsPamProviderPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsPamProviderPermissionRequest{} + +// SecuritySecurityRolePermissionsPamProviderPermissionRequest struct for SecuritySecurityRolePermissionsPamProviderPermissionRequest +type SecuritySecurityRolePermissionsPamProviderPermissionRequest struct { + PamProviderId *int32 `json:"PamProviderId,omitempty"` + Permissions []string `json:"Permissions,omitempty"` +} + +// NewSecuritySecurityRolePermissionsPamProviderPermissionRequest instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsPamProviderPermissionRequest() *SecuritySecurityRolePermissionsPamProviderPermissionRequest { + this := SecuritySecurityRolePermissionsPamProviderPermissionRequest{} + return &this +} + +// NewSecuritySecurityRolePermissionsPamProviderPermissionRequestWithDefaults instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsPamProviderPermissionRequestWithDefaults() *SecuritySecurityRolePermissionsPamProviderPermissionRequest { + this := SecuritySecurityRolePermissionsPamProviderPermissionRequest{} + return &this +} + +// GetPamProviderId returns the PamProviderId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPamProviderId() int32 { + if o == nil || isNil(o.PamProviderId) { + var ret int32 + return ret + } + return *o.PamProviderId +} + +// GetPamProviderIdOk returns a tuple with the PamProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPamProviderIdOk() (*int32, bool) { + if o == nil || isNil(o.PamProviderId) { + return nil, false + } + return o.PamProviderId, true +} + +// HasPamProviderId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) HasPamProviderId() bool { + if o != nil && !isNil(o.PamProviderId) { + return true + } + + return false +} + +// SetPamProviderId gets a reference to the given int32 and assigns it to the PamProviderId field. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) SetPamProviderId(v int32) { + o.PamProviderId = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionRequest) SetPermissions(v []string) { + o.Permissions = v +} + +func (o SecuritySecurityRolePermissionsPamProviderPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsPamProviderPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PamProviderId) { + toSerialize["PamProviderId"] = o.PamProviderId + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest struct { + value *SecuritySecurityRolePermissionsPamProviderPermissionRequest + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) Get() *SecuritySecurityRolePermissionsPamProviderPermissionRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) Set(val *SecuritySecurityRolePermissionsPamProviderPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsPamProviderPermissionRequest(val *SecuritySecurityRolePermissionsPamProviderPermissionRequest) *NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest { + return &NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_response.go b/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_response.go new file mode 100644 index 0000000..24ba1a5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_security_security_role_permissions_pam_provider_permission_response.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolePermissionsPamProviderPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolePermissionsPamProviderPermissionResponse{} + +// SecuritySecurityRolePermissionsPamProviderPermissionResponse struct for SecuritySecurityRolePermissionsPamProviderPermissionResponse +type SecuritySecurityRolePermissionsPamProviderPermissionResponse struct { + PamProviderId *int32 `json:"PamProviderId,omitempty"` + Name NullableString `json:"Name,omitempty"` + Permissions []string `json:"Permissions,omitempty"` +} + +// NewSecuritySecurityRolePermissionsPamProviderPermissionResponse instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolePermissionsPamProviderPermissionResponse() *SecuritySecurityRolePermissionsPamProviderPermissionResponse { + this := SecuritySecurityRolePermissionsPamProviderPermissionResponse{} + return &this +} + +// NewSecuritySecurityRolePermissionsPamProviderPermissionResponseWithDefaults instantiates a new SecuritySecurityRolePermissionsPamProviderPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolePermissionsPamProviderPermissionResponseWithDefaults() *SecuritySecurityRolePermissionsPamProviderPermissionResponse { + this := SecuritySecurityRolePermissionsPamProviderPermissionResponse{} + return &this +} + +// GetPamProviderId returns the PamProviderId field value if set, zero value otherwise. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPamProviderId() int32 { + if o == nil || isNil(o.PamProviderId) { + var ret int32 + return ret + } + return *o.PamProviderId +} + +// GetPamProviderIdOk returns a tuple with the PamProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPamProviderIdOk() (*int32, bool) { + if o == nil || isNil(o.PamProviderId) { + return nil, false + } + return o.PamProviderId, true +} + +// HasPamProviderId returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasPamProviderId() bool { + if o != nil && !isNil(o.PamProviderId) { + return true + } + + return false +} + +// SetPamProviderId gets a reference to the given int32 and assigns it to the PamProviderId field. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetPamProviderId(v int32) { + o.PamProviderId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) UnsetName() { + o.Name.Unset() +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecuritySecurityRolePermissionsPamProviderPermissionResponse) SetPermissions(v []string) { + o.Permissions = v +} + +func (o SecuritySecurityRolePermissionsPamProviderPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolePermissionsPamProviderPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PamProviderId) { + toSerialize["PamProviderId"] = o.PamProviderId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse struct { + value *SecuritySecurityRolePermissionsPamProviderPermissionResponse + isSet bool +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) Get() *SecuritySecurityRolePermissionsPamProviderPermissionResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) Set(val *SecuritySecurityRolePermissionsPamProviderPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolePermissionsPamProviderPermissionResponse(val *SecuritySecurityRolePermissionsPamProviderPermissionResponse) *NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse { + return &NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolePermissionsPamProviderPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_smtp_smtp_request.go b/v24/api/keyfactor/v1/model_smtp_smtp_request.go new file mode 100644 index 0000000..e298b55 --- /dev/null +++ b/v24/api/keyfactor/v1/model_smtp_smtp_request.go @@ -0,0 +1,477 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SMTPSMTPRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SMTPSMTPRequest{} + +// SMTPSMTPRequest struct for SMTPSMTPRequest +type SMTPSMTPRequest struct { + Host NullableString `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayPassword NullableString `json:"RelayPassword,omitempty"` + RelayUsername NullableString `json:"RelayUsername,omitempty"` + SenderAccount NullableString `json:"SenderAccount,omitempty"` + SenderName NullableString `json:"SenderName,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` +} + +// NewSMTPSMTPRequest instantiates a new SMTPSMTPRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSMTPSMTPRequest() *SMTPSMTPRequest { + this := SMTPSMTPRequest{} + return &this +} + +// NewSMTPSMTPRequestWithDefaults instantiates a new SMTPSMTPRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSMTPSMTPRequestWithDefaults() *SMTPSMTPRequest { + this := SMTPSMTPRequest{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPRequest) GetHost() string { + if o == nil || isNil(o.Host.Get()) { + var ret string + return ret + } + return *o.Host.Get() +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPRequest) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Host.Get(), o.Host.IsSet() +} + +// HasHost returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasHost() bool { + if o != nil && o.Host.IsSet() { + return true + } + + return false +} + +// SetHost gets a reference to the given NullableString and assigns it to the Host field. +func (o *SMTPSMTPRequest) SetHost(v string) { + o.Host.Set(&v) +} + +// SetHostNil sets the value for Host to be an explicit nil +func (o *SMTPSMTPRequest) SetHostNil() { + o.Host.Set(nil) +} + +// UnsetHost ensures that no value is present for Host, not even an explicit nil +func (o *SMTPSMTPRequest) UnsetHost() { + o.Host.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SMTPSMTPRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SMTPSMTPRequest) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *SMTPSMTPRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *SMTPSMTPRequest) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *SMTPSMTPRequest) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPRequest) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *SMTPSMTPRequest) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayPassword returns the RelayPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPRequest) GetRelayPassword() string { + if o == nil || isNil(o.RelayPassword.Get()) { + var ret string + return ret + } + return *o.RelayPassword.Get() +} + +// GetRelayPasswordOk returns a tuple with the RelayPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPRequest) GetRelayPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayPassword.Get(), o.RelayPassword.IsSet() +} + +// HasRelayPassword returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasRelayPassword() bool { + if o != nil && o.RelayPassword.IsSet() { + return true + } + + return false +} + +// SetRelayPassword gets a reference to the given NullableString and assigns it to the RelayPassword field. +func (o *SMTPSMTPRequest) SetRelayPassword(v string) { + o.RelayPassword.Set(&v) +} + +// SetRelayPasswordNil sets the value for RelayPassword to be an explicit nil +func (o *SMTPSMTPRequest) SetRelayPasswordNil() { + o.RelayPassword.Set(nil) +} + +// UnsetRelayPassword ensures that no value is present for RelayPassword, not even an explicit nil +func (o *SMTPSMTPRequest) UnsetRelayPassword() { + o.RelayPassword.Unset() +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPRequest) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername.Get()) { + var ret string + return ret + } + return *o.RelayUsername.Get() +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPRequest) GetRelayUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayUsername.Get(), o.RelayUsername.IsSet() +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasRelayUsername() bool { + if o != nil && o.RelayUsername.IsSet() { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given NullableString and assigns it to the RelayUsername field. +func (o *SMTPSMTPRequest) SetRelayUsername(v string) { + o.RelayUsername.Set(&v) +} + +// SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil +func (o *SMTPSMTPRequest) SetRelayUsernameNil() { + o.RelayUsername.Set(nil) +} + +// UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +func (o *SMTPSMTPRequest) UnsetRelayUsername() { + o.RelayUsername.Unset() +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPRequest) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount.Get()) { + var ret string + return ret + } + return *o.SenderAccount.Get() +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPRequest) GetSenderAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderAccount.Get(), o.SenderAccount.IsSet() +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasSenderAccount() bool { + if o != nil && o.SenderAccount.IsSet() { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given NullableString and assigns it to the SenderAccount field. +func (o *SMTPSMTPRequest) SetSenderAccount(v string) { + o.SenderAccount.Set(&v) +} + +// SetSenderAccountNil sets the value for SenderAccount to be an explicit nil +func (o *SMTPSMTPRequest) SetSenderAccountNil() { + o.SenderAccount.Set(nil) +} + +// UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +func (o *SMTPSMTPRequest) UnsetSenderAccount() { + o.SenderAccount.Unset() +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPRequest) GetSenderName() string { + if o == nil || isNil(o.SenderName.Get()) { + var ret string + return ret + } + return *o.SenderName.Get() +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPRequest) GetSenderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderName.Get(), o.SenderName.IsSet() +} + +// HasSenderName returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasSenderName() bool { + if o != nil && o.SenderName.IsSet() { + return true + } + + return false +} + +// SetSenderName gets a reference to the given NullableString and assigns it to the SenderName field. +func (o *SMTPSMTPRequest) SetSenderName(v string) { + o.SenderName.Set(&v) +} + +// SetSenderNameNil sets the value for SenderName to be an explicit nil +func (o *SMTPSMTPRequest) SetSenderNameNil() { + o.SenderName.Set(nil) +} + +// UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +func (o *SMTPSMTPRequest) UnsetSenderName() { + o.SenderName.Unset() +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *SMTPSMTPRequest) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPRequest) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *SMTPSMTPRequest) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *SMTPSMTPRequest) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o SMTPSMTPRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SMTPSMTPRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Host.IsSet() { + toSerialize["Host"] = o.Host.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if o.RelayPassword.IsSet() { + toSerialize["RelayPassword"] = o.RelayPassword.Get() + } + if o.RelayUsername.IsSet() { + toSerialize["RelayUsername"] = o.RelayUsername.Get() + } + if o.SenderAccount.IsSet() { + toSerialize["SenderAccount"] = o.SenderAccount.Get() + } + if o.SenderName.IsSet() { + toSerialize["SenderName"] = o.SenderName.Get() + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + return toSerialize, nil +} + +type NullableSMTPSMTPRequest struct { + value *SMTPSMTPRequest + isSet bool +} + +func (v NullableSMTPSMTPRequest) Get() *SMTPSMTPRequest { + return v.value +} + +func (v *NullableSMTPSMTPRequest) Set(val *SMTPSMTPRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSMTPSMTPRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSMTPSMTPRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSMTPSMTPRequest(val *SMTPSMTPRequest) *NullableSMTPSMTPRequest { + return &NullableSMTPSMTPRequest{value: val, isSet: true} +} + +func (v NullableSMTPSMTPRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSMTPSMTPRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_smtp_smtp_response.go b/v24/api/keyfactor/v1/model_smtp_smtp_response.go new file mode 100644 index 0000000..a971f19 --- /dev/null +++ b/v24/api/keyfactor/v1/model_smtp_smtp_response.go @@ -0,0 +1,430 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SMTPSMTPResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SMTPSMTPResponse{} + +// SMTPSMTPResponse struct for SMTPSMTPResponse +type SMTPSMTPResponse struct { + Host NullableString `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayUsername NullableString `json:"RelayUsername,omitempty"` + SenderAccount NullableString `json:"SenderAccount,omitempty"` + SenderName NullableString `json:"SenderName,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` +} + +// NewSMTPSMTPResponse instantiates a new SMTPSMTPResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSMTPSMTPResponse() *SMTPSMTPResponse { + this := SMTPSMTPResponse{} + return &this +} + +// NewSMTPSMTPResponseWithDefaults instantiates a new SMTPSMTPResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSMTPSMTPResponseWithDefaults() *SMTPSMTPResponse { + this := SMTPSMTPResponse{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPResponse) GetHost() string { + if o == nil || isNil(o.Host.Get()) { + var ret string + return ret + } + return *o.Host.Get() +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPResponse) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Host.Get(), o.Host.IsSet() +} + +// HasHost returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasHost() bool { + if o != nil && o.Host.IsSet() { + return true + } + + return false +} + +// SetHost gets a reference to the given NullableString and assigns it to the Host field. +func (o *SMTPSMTPResponse) SetHost(v string) { + o.Host.Set(&v) +} + +// SetHostNil sets the value for Host to be an explicit nil +func (o *SMTPSMTPResponse) SetHostNil() { + o.Host.Set(nil) +} + +// UnsetHost ensures that no value is present for Host, not even an explicit nil +func (o *SMTPSMTPResponse) UnsetHost() { + o.Host.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SMTPSMTPResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SMTPSMTPResponse) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *SMTPSMTPResponse) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPResponse) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *SMTPSMTPResponse) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *SMTPSMTPResponse) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPResponse) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *SMTPSMTPResponse) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPResponse) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername.Get()) { + var ret string + return ret + } + return *o.RelayUsername.Get() +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPResponse) GetRelayUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayUsername.Get(), o.RelayUsername.IsSet() +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasRelayUsername() bool { + if o != nil && o.RelayUsername.IsSet() { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given NullableString and assigns it to the RelayUsername field. +func (o *SMTPSMTPResponse) SetRelayUsername(v string) { + o.RelayUsername.Set(&v) +} + +// SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil +func (o *SMTPSMTPResponse) SetRelayUsernameNil() { + o.RelayUsername.Set(nil) +} + +// UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +func (o *SMTPSMTPResponse) UnsetRelayUsername() { + o.RelayUsername.Unset() +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPResponse) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount.Get()) { + var ret string + return ret + } + return *o.SenderAccount.Get() +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPResponse) GetSenderAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderAccount.Get(), o.SenderAccount.IsSet() +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasSenderAccount() bool { + if o != nil && o.SenderAccount.IsSet() { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given NullableString and assigns it to the SenderAccount field. +func (o *SMTPSMTPResponse) SetSenderAccount(v string) { + o.SenderAccount.Set(&v) +} + +// SetSenderAccountNil sets the value for SenderAccount to be an explicit nil +func (o *SMTPSMTPResponse) SetSenderAccountNil() { + o.SenderAccount.Set(nil) +} + +// UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +func (o *SMTPSMTPResponse) UnsetSenderAccount() { + o.SenderAccount.Unset() +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPResponse) GetSenderName() string { + if o == nil || isNil(o.SenderName.Get()) { + var ret string + return ret + } + return *o.SenderName.Get() +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPResponse) GetSenderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderName.Get(), o.SenderName.IsSet() +} + +// HasSenderName returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasSenderName() bool { + if o != nil && o.SenderName.IsSet() { + return true + } + + return false +} + +// SetSenderName gets a reference to the given NullableString and assigns it to the SenderName field. +func (o *SMTPSMTPResponse) SetSenderName(v string) { + o.SenderName.Set(&v) +} + +// SetSenderNameNil sets the value for SenderName to be an explicit nil +func (o *SMTPSMTPResponse) SetSenderNameNil() { + o.SenderName.Set(nil) +} + +// UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +func (o *SMTPSMTPResponse) UnsetSenderName() { + o.SenderName.Unset() +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *SMTPSMTPResponse) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPResponse) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *SMTPSMTPResponse) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *SMTPSMTPResponse) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o SMTPSMTPResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SMTPSMTPResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Host.IsSet() { + toSerialize["Host"] = o.Host.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if o.RelayUsername.IsSet() { + toSerialize["RelayUsername"] = o.RelayUsername.Get() + } + if o.SenderAccount.IsSet() { + toSerialize["SenderAccount"] = o.SenderAccount.Get() + } + if o.SenderName.IsSet() { + toSerialize["SenderName"] = o.SenderName.Get() + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + return toSerialize, nil +} + +type NullableSMTPSMTPResponse struct { + value *SMTPSMTPResponse + isSet bool +} + +func (v NullableSMTPSMTPResponse) Get() *SMTPSMTPResponse { + return v.value +} + +func (v *NullableSMTPSMTPResponse) Set(val *SMTPSMTPResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSMTPSMTPResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSMTPSMTPResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSMTPSMTPResponse(val *SMTPSMTPResponse) *NullableSMTPSMTPResponse { + return &NullableSMTPSMTPResponse{value: val, isSet: true} +} + +func (v NullableSMTPSMTPResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSMTPSMTPResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_smtp_smtp_test_request.go b/v24/api/keyfactor/v1/model_smtp_smtp_test_request.go new file mode 100644 index 0000000..b9380d5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_smtp_smtp_test_request.go @@ -0,0 +1,524 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SMTPSMTPTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SMTPSMTPTestRequest{} + +// SMTPSMTPTestRequest struct for SMTPSMTPTestRequest +type SMTPSMTPTestRequest struct { + Host NullableString `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayPassword NullableString `json:"RelayPassword,omitempty"` + RelayUsername NullableString `json:"RelayUsername,omitempty"` + SenderAccount NullableString `json:"SenderAccount,omitempty"` + SenderName NullableString `json:"SenderName,omitempty"` + TestRecipient NullableString `json:"TestRecipient,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` +} + +// NewSMTPSMTPTestRequest instantiates a new SMTPSMTPTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSMTPSMTPTestRequest() *SMTPSMTPTestRequest { + this := SMTPSMTPTestRequest{} + return &this +} + +// NewSMTPSMTPTestRequestWithDefaults instantiates a new SMTPSMTPTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSMTPSMTPTestRequestWithDefaults() *SMTPSMTPTestRequest { + this := SMTPSMTPTestRequest{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetHost() string { + if o == nil || isNil(o.Host.Get()) { + var ret string + return ret + } + return *o.Host.Get() +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Host.Get(), o.Host.IsSet() +} + +// HasHost returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasHost() bool { + if o != nil && o.Host.IsSet() { + return true + } + + return false +} + +// SetHost gets a reference to the given NullableString and assigns it to the Host field. +func (o *SMTPSMTPTestRequest) SetHost(v string) { + o.Host.Set(&v) +} + +// SetHostNil sets the value for Host to be an explicit nil +func (o *SMTPSMTPTestRequest) SetHostNil() { + o.Host.Set(nil) +} + +// UnsetHost ensures that no value is present for Host, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetHost() { + o.Host.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SMTPSMTPTestRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SMTPSMTPTestRequest) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *SMTPSMTPTestRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *SMTPSMTPTestRequest) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *SMTPSMTPTestRequest) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestRequest) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *SMTPSMTPTestRequest) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayPassword returns the RelayPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetRelayPassword() string { + if o == nil || isNil(o.RelayPassword.Get()) { + var ret string + return ret + } + return *o.RelayPassword.Get() +} + +// GetRelayPasswordOk returns a tuple with the RelayPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetRelayPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayPassword.Get(), o.RelayPassword.IsSet() +} + +// HasRelayPassword returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasRelayPassword() bool { + if o != nil && o.RelayPassword.IsSet() { + return true + } + + return false +} + +// SetRelayPassword gets a reference to the given NullableString and assigns it to the RelayPassword field. +func (o *SMTPSMTPTestRequest) SetRelayPassword(v string) { + o.RelayPassword.Set(&v) +} + +// SetRelayPasswordNil sets the value for RelayPassword to be an explicit nil +func (o *SMTPSMTPTestRequest) SetRelayPasswordNil() { + o.RelayPassword.Set(nil) +} + +// UnsetRelayPassword ensures that no value is present for RelayPassword, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetRelayPassword() { + o.RelayPassword.Unset() +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername.Get()) { + var ret string + return ret + } + return *o.RelayUsername.Get() +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetRelayUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayUsername.Get(), o.RelayUsername.IsSet() +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasRelayUsername() bool { + if o != nil && o.RelayUsername.IsSet() { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given NullableString and assigns it to the RelayUsername field. +func (o *SMTPSMTPTestRequest) SetRelayUsername(v string) { + o.RelayUsername.Set(&v) +} + +// SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil +func (o *SMTPSMTPTestRequest) SetRelayUsernameNil() { + o.RelayUsername.Set(nil) +} + +// UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetRelayUsername() { + o.RelayUsername.Unset() +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount.Get()) { + var ret string + return ret + } + return *o.SenderAccount.Get() +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetSenderAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderAccount.Get(), o.SenderAccount.IsSet() +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasSenderAccount() bool { + if o != nil && o.SenderAccount.IsSet() { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given NullableString and assigns it to the SenderAccount field. +func (o *SMTPSMTPTestRequest) SetSenderAccount(v string) { + o.SenderAccount.Set(&v) +} + +// SetSenderAccountNil sets the value for SenderAccount to be an explicit nil +func (o *SMTPSMTPTestRequest) SetSenderAccountNil() { + o.SenderAccount.Set(nil) +} + +// UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetSenderAccount() { + o.SenderAccount.Unset() +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetSenderName() string { + if o == nil || isNil(o.SenderName.Get()) { + var ret string + return ret + } + return *o.SenderName.Get() +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetSenderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderName.Get(), o.SenderName.IsSet() +} + +// HasSenderName returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasSenderName() bool { + if o != nil && o.SenderName.IsSet() { + return true + } + + return false +} + +// SetSenderName gets a reference to the given NullableString and assigns it to the SenderName field. +func (o *SMTPSMTPTestRequest) SetSenderName(v string) { + o.SenderName.Set(&v) +} + +// SetSenderNameNil sets the value for SenderName to be an explicit nil +func (o *SMTPSMTPTestRequest) SetSenderNameNil() { + o.SenderName.Set(nil) +} + +// UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetSenderName() { + o.SenderName.Unset() +} + +// GetTestRecipient returns the TestRecipient field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestRequest) GetTestRecipient() string { + if o == nil || isNil(o.TestRecipient.Get()) { + var ret string + return ret + } + return *o.TestRecipient.Get() +} + +// GetTestRecipientOk returns a tuple with the TestRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestRequest) GetTestRecipientOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TestRecipient.Get(), o.TestRecipient.IsSet() +} + +// HasTestRecipient returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasTestRecipient() bool { + if o != nil && o.TestRecipient.IsSet() { + return true + } + + return false +} + +// SetTestRecipient gets a reference to the given NullableString and assigns it to the TestRecipient field. +func (o *SMTPSMTPTestRequest) SetTestRecipient(v string) { + o.TestRecipient.Set(&v) +} + +// SetTestRecipientNil sets the value for TestRecipient to be an explicit nil +func (o *SMTPSMTPTestRequest) SetTestRecipientNil() { + o.TestRecipient.Set(nil) +} + +// UnsetTestRecipient ensures that no value is present for TestRecipient, not even an explicit nil +func (o *SMTPSMTPTestRequest) UnsetTestRecipient() { + o.TestRecipient.Unset() +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *SMTPSMTPTestRequest) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestRequest) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *SMTPSMTPTestRequest) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *SMTPSMTPTestRequest) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o SMTPSMTPTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SMTPSMTPTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Host.IsSet() { + toSerialize["Host"] = o.Host.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if o.RelayPassword.IsSet() { + toSerialize["RelayPassword"] = o.RelayPassword.Get() + } + if o.RelayUsername.IsSet() { + toSerialize["RelayUsername"] = o.RelayUsername.Get() + } + if o.SenderAccount.IsSet() { + toSerialize["SenderAccount"] = o.SenderAccount.Get() + } + if o.SenderName.IsSet() { + toSerialize["SenderName"] = o.SenderName.Get() + } + if o.TestRecipient.IsSet() { + toSerialize["TestRecipient"] = o.TestRecipient.Get() + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + return toSerialize, nil +} + +type NullableSMTPSMTPTestRequest struct { + value *SMTPSMTPTestRequest + isSet bool +} + +func (v NullableSMTPSMTPTestRequest) Get() *SMTPSMTPTestRequest { + return v.value +} + +func (v *NullableSMTPSMTPTestRequest) Set(val *SMTPSMTPTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSMTPSMTPTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSMTPSMTPTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSMTPSMTPTestRequest(val *SMTPSMTPTestRequest) *NullableSMTPSMTPTestRequest { + return &NullableSMTPSMTPTestRequest{value: val, isSet: true} +} + +func (v NullableSMTPSMTPTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSMTPSMTPTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_smtp_smtp_test_response.go b/v24/api/keyfactor/v1/model_smtp_smtp_test_response.go new file mode 100644 index 0000000..163e7b8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_smtp_smtp_test_response.go @@ -0,0 +1,477 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SMTPSMTPTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SMTPSMTPTestResponse{} + +// SMTPSMTPTestResponse struct for SMTPSMTPTestResponse +type SMTPSMTPTestResponse struct { + Host NullableString `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayUsername NullableString `json:"RelayUsername,omitempty"` + SenderAccount NullableString `json:"SenderAccount,omitempty"` + SenderName NullableString `json:"SenderName,omitempty"` + TestRecipient NullableString `json:"TestRecipient,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` +} + +// NewSMTPSMTPTestResponse instantiates a new SMTPSMTPTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSMTPSMTPTestResponse() *SMTPSMTPTestResponse { + this := SMTPSMTPTestResponse{} + return &this +} + +// NewSMTPSMTPTestResponseWithDefaults instantiates a new SMTPSMTPTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSMTPSMTPTestResponseWithDefaults() *SMTPSMTPTestResponse { + this := SMTPSMTPTestResponse{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestResponse) GetHost() string { + if o == nil || isNil(o.Host.Get()) { + var ret string + return ret + } + return *o.Host.Get() +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestResponse) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Host.Get(), o.Host.IsSet() +} + +// HasHost returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasHost() bool { + if o != nil && o.Host.IsSet() { + return true + } + + return false +} + +// SetHost gets a reference to the given NullableString and assigns it to the Host field. +func (o *SMTPSMTPTestResponse) SetHost(v string) { + o.Host.Set(&v) +} + +// SetHostNil sets the value for Host to be an explicit nil +func (o *SMTPSMTPTestResponse) SetHostNil() { + o.Host.Set(nil) +} + +// UnsetHost ensures that no value is present for Host, not even an explicit nil +func (o *SMTPSMTPTestResponse) UnsetHost() { + o.Host.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SMTPSMTPTestResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SMTPSMTPTestResponse) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *SMTPSMTPTestResponse) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestResponse) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *SMTPSMTPTestResponse) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *SMTPSMTPTestResponse) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestResponse) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *SMTPSMTPTestResponse) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestResponse) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername.Get()) { + var ret string + return ret + } + return *o.RelayUsername.Get() +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestResponse) GetRelayUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RelayUsername.Get(), o.RelayUsername.IsSet() +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasRelayUsername() bool { + if o != nil && o.RelayUsername.IsSet() { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given NullableString and assigns it to the RelayUsername field. +func (o *SMTPSMTPTestResponse) SetRelayUsername(v string) { + o.RelayUsername.Set(&v) +} + +// SetRelayUsernameNil sets the value for RelayUsername to be an explicit nil +func (o *SMTPSMTPTestResponse) SetRelayUsernameNil() { + o.RelayUsername.Set(nil) +} + +// UnsetRelayUsername ensures that no value is present for RelayUsername, not even an explicit nil +func (o *SMTPSMTPTestResponse) UnsetRelayUsername() { + o.RelayUsername.Unset() +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestResponse) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount.Get()) { + var ret string + return ret + } + return *o.SenderAccount.Get() +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestResponse) GetSenderAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderAccount.Get(), o.SenderAccount.IsSet() +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasSenderAccount() bool { + if o != nil && o.SenderAccount.IsSet() { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given NullableString and assigns it to the SenderAccount field. +func (o *SMTPSMTPTestResponse) SetSenderAccount(v string) { + o.SenderAccount.Set(&v) +} + +// SetSenderAccountNil sets the value for SenderAccount to be an explicit nil +func (o *SMTPSMTPTestResponse) SetSenderAccountNil() { + o.SenderAccount.Set(nil) +} + +// UnsetSenderAccount ensures that no value is present for SenderAccount, not even an explicit nil +func (o *SMTPSMTPTestResponse) UnsetSenderAccount() { + o.SenderAccount.Unset() +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestResponse) GetSenderName() string { + if o == nil || isNil(o.SenderName.Get()) { + var ret string + return ret + } + return *o.SenderName.Get() +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestResponse) GetSenderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SenderName.Get(), o.SenderName.IsSet() +} + +// HasSenderName returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasSenderName() bool { + if o != nil && o.SenderName.IsSet() { + return true + } + + return false +} + +// SetSenderName gets a reference to the given NullableString and assigns it to the SenderName field. +func (o *SMTPSMTPTestResponse) SetSenderName(v string) { + o.SenderName.Set(&v) +} + +// SetSenderNameNil sets the value for SenderName to be an explicit nil +func (o *SMTPSMTPTestResponse) SetSenderNameNil() { + o.SenderName.Set(nil) +} + +// UnsetSenderName ensures that no value is present for SenderName, not even an explicit nil +func (o *SMTPSMTPTestResponse) UnsetSenderName() { + o.SenderName.Unset() +} + +// GetTestRecipient returns the TestRecipient field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SMTPSMTPTestResponse) GetTestRecipient() string { + if o == nil || isNil(o.TestRecipient.Get()) { + var ret string + return ret + } + return *o.TestRecipient.Get() +} + +// GetTestRecipientOk returns a tuple with the TestRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SMTPSMTPTestResponse) GetTestRecipientOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TestRecipient.Get(), o.TestRecipient.IsSet() +} + +// HasTestRecipient returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasTestRecipient() bool { + if o != nil && o.TestRecipient.IsSet() { + return true + } + + return false +} + +// SetTestRecipient gets a reference to the given NullableString and assigns it to the TestRecipient field. +func (o *SMTPSMTPTestResponse) SetTestRecipient(v string) { + o.TestRecipient.Set(&v) +} + +// SetTestRecipientNil sets the value for TestRecipient to be an explicit nil +func (o *SMTPSMTPTestResponse) SetTestRecipientNil() { + o.TestRecipient.Set(nil) +} + +// UnsetTestRecipient ensures that no value is present for TestRecipient, not even an explicit nil +func (o *SMTPSMTPTestResponse) UnsetTestRecipient() { + o.TestRecipient.Unset() +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *SMTPSMTPTestResponse) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SMTPSMTPTestResponse) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *SMTPSMTPTestResponse) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *SMTPSMTPTestResponse) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o SMTPSMTPTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SMTPSMTPTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Host.IsSet() { + toSerialize["Host"] = o.Host.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if o.RelayUsername.IsSet() { + toSerialize["RelayUsername"] = o.RelayUsername.Get() + } + if o.SenderAccount.IsSet() { + toSerialize["SenderAccount"] = o.SenderAccount.Get() + } + if o.SenderName.IsSet() { + toSerialize["SenderName"] = o.SenderName.Get() + } + if o.TestRecipient.IsSet() { + toSerialize["TestRecipient"] = o.TestRecipient.Get() + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + return toSerialize, nil +} + +type NullableSMTPSMTPTestResponse struct { + value *SMTPSMTPTestResponse + isSet bool +} + +func (v NullableSMTPSMTPTestResponse) Get() *SMTPSMTPTestResponse { + return v.value +} + +func (v *NullableSMTPSMTPTestResponse) Set(val *SMTPSMTPTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSMTPSMTPTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSMTPSMTPTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSMTPSMTPTestResponse(val *SMTPSMTPTestResponse) *NullableSMTPSMTPTestResponse { + return &NullableSMTPSMTPTestResponse{value: val, isSet: true} +} + +func (v NullableSMTPSMTPTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSMTPSMTPTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_create_network_request.go b/v24/api/keyfactor/v1/model_ssl_create_network_request.go new file mode 100644 index 0000000..9adf5fb --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_create_network_request.go @@ -0,0 +1,613 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SslCreateNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslCreateNetworkRequest{} + +// SslCreateNetworkRequest struct for SslCreateNetworkRequest +type SslCreateNetworkRequest struct { + Name string `json:"Name"` + AgentPoolName string `json:"AgentPoolName"` + Description string `json:"Description"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + QuietHours []SslQuietHourRequest `json:"QuietHours,omitempty"` + BlackoutStart *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutStart,omitempty"` + BlackoutEnd *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutEnd,omitempty"` +} + +// NewSslCreateNetworkRequest instantiates a new SslCreateNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslCreateNetworkRequest(name string, agentPoolName string, description string) *SslCreateNetworkRequest { + this := SslCreateNetworkRequest{} + this.Name = name + this.AgentPoolName = agentPoolName + this.Description = description + return &this +} + +// NewSslCreateNetworkRequestWithDefaults instantiates a new SslCreateNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslCreateNetworkRequestWithDefaults() *SslCreateNetworkRequest { + this := SslCreateNetworkRequest{} + return &this +} + +// GetName returns the Name field value +func (o *SslCreateNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SslCreateNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetAgentPoolName returns the AgentPoolName field value +func (o *SslCreateNetworkRequest) GetAgentPoolName() string { + if o == nil { + var ret string + return ret + } + + return o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentPoolName, true +} + +// SetAgentPoolName sets field value +func (o *SslCreateNetworkRequest) SetAgentPoolName(v string) { + o.AgentPoolName = v +} + +// GetDescription returns the Description field value +func (o *SslCreateNetworkRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SslCreateNetworkRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SslCreateNetworkRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *SslCreateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *SslCreateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslCreateNetworkRequest) GetSslAlertRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslCreateNetworkRequest) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasSslAlertRecipients() bool { + if o != nil && isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *SslCreateNetworkRequest) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *SslCreateNetworkRequest) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *SslCreateNetworkRequest) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *SslCreateNetworkRequest) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *SslCreateNetworkRequest) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *SslCreateNetworkRequest) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslCreateNetworkRequest) GetQuietHours() []SslQuietHourRequest { + if o == nil { + var ret []SslQuietHourRequest + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslCreateNetworkRequest) GetQuietHoursOk() ([]SslQuietHourRequest, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasQuietHours() bool { + if o != nil && isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []SslQuietHourRequest and assigns it to the QuietHours field. +func (o *SslCreateNetworkRequest) SetQuietHours(v []SslQuietHourRequest) { + o.QuietHours = v +} + +// GetBlackoutStart returns the BlackoutStart field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutStart) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutStart +} + +// GetBlackoutStartOk returns a tuple with the BlackoutStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutStart) { + return nil, false + } + return o.BlackoutStart, true +} + +// HasBlackoutStart returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasBlackoutStart() bool { + if o != nil && !isNil(o.BlackoutStart) { + return true + } + + return false +} + +// SetBlackoutStart gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutStart field. +func (o *SslCreateNetworkRequest) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutStart = &v +} + +// GetBlackoutEnd returns the BlackoutEnd field value if set, zero value otherwise. +func (o *SslCreateNetworkRequest) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutEnd) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutEnd +} + +// GetBlackoutEndOk returns a tuple with the BlackoutEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslCreateNetworkRequest) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutEnd) { + return nil, false + } + return o.BlackoutEnd, true +} + +// HasBlackoutEnd returns a boolean if a field has been set. +func (o *SslCreateNetworkRequest) HasBlackoutEnd() bool { + if o != nil && !isNil(o.BlackoutEnd) { + return true + } + + return false +} + +// SetBlackoutEnd gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutEnd field. +func (o *SslCreateNetworkRequest) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutEnd = &v +} + +func (o SslCreateNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslCreateNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["AgentPoolName"] = o.AgentPoolName + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if o.SslAlertRecipients != nil { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if o.QuietHours != nil { + toSerialize["QuietHours"] = o.QuietHours + } + if !isNil(o.BlackoutStart) { + toSerialize["BlackoutStart"] = o.BlackoutStart + } + if !isNil(o.BlackoutEnd) { + toSerialize["BlackoutEnd"] = o.BlackoutEnd + } + return toSerialize, nil +} + +type NullableSslCreateNetworkRequest struct { + value *SslCreateNetworkRequest + isSet bool +} + +func (v NullableSslCreateNetworkRequest) Get() *SslCreateNetworkRequest { + return v.value +} + +func (v *NullableSslCreateNetworkRequest) Set(val *SslCreateNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSslCreateNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSslCreateNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslCreateNetworkRequest(val *SslCreateNetworkRequest) *NullableSslCreateNetworkRequest { + return &NullableSslCreateNetworkRequest{value: val, isSet: true} +} + +func (v NullableSslCreateNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslCreateNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_network_query_response.go b/v24/api/keyfactor/v1/model_ssl_network_query_response.go new file mode 100644 index 0000000..453e6cc --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_network_query_response.go @@ -0,0 +1,1031 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SslNetworkQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslNetworkQueryResponse{} + +// SslNetworkQueryResponse struct for SslNetworkQueryResponse +type SslNetworkQueryResponse struct { + NetworkId *string `json:"NetworkId,omitempty"` + Name NullableString `json:"Name,omitempty"` + AgentPoolName NullableString `json:"AgentPoolName,omitempty"` + AgentPoolId NullableString `json:"AgentPoolId,omitempty"` + Description NullableString `json:"Description,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + DiscoverPercentComplete *float64 `json:"DiscoverPercentComplete,omitempty"` + MonitorPercentComplete *float64 `json:"MonitorPercentComplete,omitempty"` + DiscoverStatus *CSSCMSCoreEnumsSslNetworkJobStatus `json:"DiscoverStatus,omitempty"` + MonitorStatus *CSSCMSCoreEnumsSslNetworkJobStatus `json:"MonitorStatus,omitempty"` + DiscoverLastScanned NullableTime `json:"DiscoverLastScanned,omitempty"` + MonitorLastScanned NullableTime `json:"MonitorLastScanned,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + DiscoverJobParts *int32 `json:"DiscoverJobParts,omitempty"` + MonitorJobParts *int32 `json:"MonitorJobParts,omitempty"` + QuietHours []SslQuietHourResponse `json:"QuietHours,omitempty"` + BlackoutStart *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutStart,omitempty"` + BlackoutEnd *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutEnd,omitempty"` +} + +// NewSslNetworkQueryResponse instantiates a new SslNetworkQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslNetworkQueryResponse() *SslNetworkQueryResponse { + this := SslNetworkQueryResponse{} + return &this +} + +// NewSslNetworkQueryResponseWithDefaults instantiates a new SslNetworkQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslNetworkQueryResponseWithDefaults() *SslNetworkQueryResponse { + this := SslNetworkQueryResponse{} + return &this +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *SslNetworkQueryResponse) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SslNetworkQueryResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SslNetworkQueryResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetName() { + o.Name.Unset() +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName.Get()) { + var ret string + return ret + } + return *o.AgentPoolName.Get() +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPoolName.Get(), o.AgentPoolName.IsSet() +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasAgentPoolName() bool { + if o != nil && o.AgentPoolName.IsSet() { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given NullableString and assigns it to the AgentPoolName field. +func (o *SslNetworkQueryResponse) SetAgentPoolName(v string) { + o.AgentPoolName.Set(&v) +} + +// SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil +func (o *SslNetworkQueryResponse) SetAgentPoolNameNil() { + o.AgentPoolName.Set(nil) +} + +// UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetAgentPoolName() { + o.AgentPoolName.Unset() +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId.Get()) { + var ret string + return ret + } + return *o.AgentPoolId.Get() +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetAgentPoolIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPoolId.Get(), o.AgentPoolId.IsSet() +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasAgentPoolId() bool { + if o != nil && o.AgentPoolId.IsSet() { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given NullableString and assigns it to the AgentPoolId field. +func (o *SslNetworkQueryResponse) SetAgentPoolId(v string) { + o.AgentPoolId.Set(&v) +} + +// SetAgentPoolIdNil sets the value for AgentPoolId to be an explicit nil +func (o *SslNetworkQueryResponse) SetAgentPoolIdNil() { + o.AgentPoolId.Set(nil) +} + +// UnsetAgentPoolId ensures that no value is present for AgentPoolId, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetAgentPoolId() { + o.AgentPoolId.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SslNetworkQueryResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SslNetworkQueryResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SslNetworkQueryResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *SslNetworkQueryResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *SslNetworkQueryResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetDiscoverPercentComplete returns the DiscoverPercentComplete field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetDiscoverPercentComplete() float64 { + if o == nil || isNil(o.DiscoverPercentComplete) { + var ret float64 + return ret + } + return *o.DiscoverPercentComplete +} + +// GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetDiscoverPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverPercentComplete) { + return nil, false + } + return o.DiscoverPercentComplete, true +} + +// HasDiscoverPercentComplete returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverPercentComplete() bool { + if o != nil && !isNil(o.DiscoverPercentComplete) { + return true + } + + return false +} + +// SetDiscoverPercentComplete gets a reference to the given float64 and assigns it to the DiscoverPercentComplete field. +func (o *SslNetworkQueryResponse) SetDiscoverPercentComplete(v float64) { + o.DiscoverPercentComplete = &v +} + +// GetMonitorPercentComplete returns the MonitorPercentComplete field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetMonitorPercentComplete() float64 { + if o == nil || isNil(o.MonitorPercentComplete) { + var ret float64 + return ret + } + return *o.MonitorPercentComplete +} + +// GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetMonitorPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.MonitorPercentComplete) { + return nil, false + } + return o.MonitorPercentComplete, true +} + +// HasMonitorPercentComplete returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorPercentComplete() bool { + if o != nil && !isNil(o.MonitorPercentComplete) { + return true + } + + return false +} + +// SetMonitorPercentComplete gets a reference to the given float64 and assigns it to the MonitorPercentComplete field. +func (o *SslNetworkQueryResponse) SetMonitorPercentComplete(v float64) { + o.MonitorPercentComplete = &v +} + +// GetDiscoverStatus returns the DiscoverStatus field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetDiscoverStatus() CSSCMSCoreEnumsSslNetworkJobStatus { + if o == nil || isNil(o.DiscoverStatus) { + var ret CSSCMSCoreEnumsSslNetworkJobStatus + return ret + } + return *o.DiscoverStatus +} + +// GetDiscoverStatusOk returns a tuple with the DiscoverStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetDiscoverStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool) { + if o == nil || isNil(o.DiscoverStatus) { + return nil, false + } + return o.DiscoverStatus, true +} + +// HasDiscoverStatus returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverStatus() bool { + if o != nil && !isNil(o.DiscoverStatus) { + return true + } + + return false +} + +// SetDiscoverStatus gets a reference to the given CSSCMSCoreEnumsSslNetworkJobStatus and assigns it to the DiscoverStatus field. +func (o *SslNetworkQueryResponse) SetDiscoverStatus(v CSSCMSCoreEnumsSslNetworkJobStatus) { + o.DiscoverStatus = &v +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetMonitorStatus() CSSCMSCoreEnumsSslNetworkJobStatus { + if o == nil || isNil(o.MonitorStatus) { + var ret CSSCMSCoreEnumsSslNetworkJobStatus + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetMonitorStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given CSSCMSCoreEnumsSslNetworkJobStatus and assigns it to the MonitorStatus field. +func (o *SslNetworkQueryResponse) SetMonitorStatus(v CSSCMSCoreEnumsSslNetworkJobStatus) { + o.MonitorStatus = &v +} + +// GetDiscoverLastScanned returns the DiscoverLastScanned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetDiscoverLastScanned() time.Time { + if o == nil || isNil(o.DiscoverLastScanned.Get()) { + var ret time.Time + return ret + } + return *o.DiscoverLastScanned.Get() +} + +// GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetDiscoverLastScannedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DiscoverLastScanned.Get(), o.DiscoverLastScanned.IsSet() +} + +// HasDiscoverLastScanned returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverLastScanned() bool { + if o != nil && o.DiscoverLastScanned.IsSet() { + return true + } + + return false +} + +// SetDiscoverLastScanned gets a reference to the given NullableTime and assigns it to the DiscoverLastScanned field. +func (o *SslNetworkQueryResponse) SetDiscoverLastScanned(v time.Time) { + o.DiscoverLastScanned.Set(&v) +} + +// SetDiscoverLastScannedNil sets the value for DiscoverLastScanned to be an explicit nil +func (o *SslNetworkQueryResponse) SetDiscoverLastScannedNil() { + o.DiscoverLastScanned.Set(nil) +} + +// UnsetDiscoverLastScanned ensures that no value is present for DiscoverLastScanned, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetDiscoverLastScanned() { + o.DiscoverLastScanned.Unset() +} + +// GetMonitorLastScanned returns the MonitorLastScanned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetMonitorLastScanned() time.Time { + if o == nil || isNil(o.MonitorLastScanned.Get()) { + var ret time.Time + return ret + } + return *o.MonitorLastScanned.Get() +} + +// GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetMonitorLastScannedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.MonitorLastScanned.Get(), o.MonitorLastScanned.IsSet() +} + +// HasMonitorLastScanned returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorLastScanned() bool { + if o != nil && o.MonitorLastScanned.IsSet() { + return true + } + + return false +} + +// SetMonitorLastScanned gets a reference to the given NullableTime and assigns it to the MonitorLastScanned field. +func (o *SslNetworkQueryResponse) SetMonitorLastScanned(v time.Time) { + o.MonitorLastScanned.Set(&v) +} + +// SetMonitorLastScannedNil sets the value for MonitorLastScanned to be an explicit nil +func (o *SslNetworkQueryResponse) SetMonitorLastScannedNil() { + o.MonitorLastScanned.Set(nil) +} + +// UnsetMonitorLastScanned ensures that no value is present for MonitorLastScanned, not even an explicit nil +func (o *SslNetworkQueryResponse) UnsetMonitorLastScanned() { + o.MonitorLastScanned.Unset() +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetSslAlertRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasSslAlertRecipients() bool { + if o != nil && isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *SslNetworkQueryResponse) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *SslNetworkQueryResponse) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *SslNetworkQueryResponse) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *SslNetworkQueryResponse) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *SslNetworkQueryResponse) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetDiscoverJobParts returns the DiscoverJobParts field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetDiscoverJobParts() int32 { + if o == nil || isNil(o.DiscoverJobParts) { + var ret int32 + return ret + } + return *o.DiscoverJobParts +} + +// GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetDiscoverJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverJobParts) { + return nil, false + } + return o.DiscoverJobParts, true +} + +// HasDiscoverJobParts returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasDiscoverJobParts() bool { + if o != nil && !isNil(o.DiscoverJobParts) { + return true + } + + return false +} + +// SetDiscoverJobParts gets a reference to the given int32 and assigns it to the DiscoverJobParts field. +func (o *SslNetworkQueryResponse) SetDiscoverJobParts(v int32) { + o.DiscoverJobParts = &v +} + +// GetMonitorJobParts returns the MonitorJobParts field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetMonitorJobParts() int32 { + if o == nil || isNil(o.MonitorJobParts) { + var ret int32 + return ret + } + return *o.MonitorJobParts +} + +// GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetMonitorJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.MonitorJobParts) { + return nil, false + } + return o.MonitorJobParts, true +} + +// HasMonitorJobParts returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasMonitorJobParts() bool { + if o != nil && !isNil(o.MonitorJobParts) { + return true + } + + return false +} + +// SetMonitorJobParts gets a reference to the given int32 and assigns it to the MonitorJobParts field. +func (o *SslNetworkQueryResponse) SetMonitorJobParts(v int32) { + o.MonitorJobParts = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkQueryResponse) GetQuietHours() []SslQuietHourResponse { + if o == nil { + var ret []SslQuietHourResponse + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkQueryResponse) GetQuietHoursOk() ([]SslQuietHourResponse, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasQuietHours() bool { + if o != nil && isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []SslQuietHourResponse and assigns it to the QuietHours field. +func (o *SslNetworkQueryResponse) SetQuietHours(v []SslQuietHourResponse) { + o.QuietHours = v +} + +// GetBlackoutStart returns the BlackoutStart field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutStart) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutStart +} + +// GetBlackoutStartOk returns a tuple with the BlackoutStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutStart) { + return nil, false + } + return o.BlackoutStart, true +} + +// HasBlackoutStart returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasBlackoutStart() bool { + if o != nil && !isNil(o.BlackoutStart) { + return true + } + + return false +} + +// SetBlackoutStart gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutStart field. +func (o *SslNetworkQueryResponse) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutStart = &v +} + +// GetBlackoutEnd returns the BlackoutEnd field value if set, zero value otherwise. +func (o *SslNetworkQueryResponse) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutEnd) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutEnd +} + +// GetBlackoutEndOk returns a tuple with the BlackoutEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkQueryResponse) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutEnd) { + return nil, false + } + return o.BlackoutEnd, true +} + +// HasBlackoutEnd returns a boolean if a field has been set. +func (o *SslNetworkQueryResponse) HasBlackoutEnd() bool { + if o != nil && !isNil(o.BlackoutEnd) { + return true + } + + return false +} + +// SetBlackoutEnd gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutEnd field. +func (o *SslNetworkQueryResponse) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutEnd = &v +} + +func (o SslNetworkQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslNetworkQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.AgentPoolName.IsSet() { + toSerialize["AgentPoolName"] = o.AgentPoolName.Get() + } + if o.AgentPoolId.IsSet() { + toSerialize["AgentPoolId"] = o.AgentPoolId.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.DiscoverPercentComplete) { + toSerialize["DiscoverPercentComplete"] = o.DiscoverPercentComplete + } + if !isNil(o.MonitorPercentComplete) { + toSerialize["MonitorPercentComplete"] = o.MonitorPercentComplete + } + if !isNil(o.DiscoverStatus) { + toSerialize["DiscoverStatus"] = o.DiscoverStatus + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if o.DiscoverLastScanned.IsSet() { + toSerialize["DiscoverLastScanned"] = o.DiscoverLastScanned.Get() + } + if o.MonitorLastScanned.IsSet() { + toSerialize["MonitorLastScanned"] = o.MonitorLastScanned.Get() + } + if o.SslAlertRecipients != nil { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.DiscoverJobParts) { + toSerialize["DiscoverJobParts"] = o.DiscoverJobParts + } + if !isNil(o.MonitorJobParts) { + toSerialize["MonitorJobParts"] = o.MonitorJobParts + } + if o.QuietHours != nil { + toSerialize["QuietHours"] = o.QuietHours + } + if !isNil(o.BlackoutStart) { + toSerialize["BlackoutStart"] = o.BlackoutStart + } + if !isNil(o.BlackoutEnd) { + toSerialize["BlackoutEnd"] = o.BlackoutEnd + } + return toSerialize, nil +} + +type NullableSslNetworkQueryResponse struct { + value *SslNetworkQueryResponse + isSet bool +} + +func (v NullableSslNetworkQueryResponse) Get() *SslNetworkQueryResponse { + return v.value +} + +func (v *NullableSslNetworkQueryResponse) Set(val *SslNetworkQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSslNetworkQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSslNetworkQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslNetworkQueryResponse(val *SslNetworkQueryResponse) *NullableSslNetworkQueryResponse { + return &NullableSslNetworkQueryResponse{value: val, isSet: true} +} + +func (v NullableSslNetworkQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslNetworkQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_network_response.go b/v24/api/keyfactor/v1/model_ssl_network_response.go new file mode 100644 index 0000000..41e74be --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_network_response.go @@ -0,0 +1,1067 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SslNetworkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslNetworkResponse{} + +// SslNetworkResponse struct for SslNetworkResponse +type SslNetworkResponse struct { + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + NetworkId *string `json:"NetworkId,omitempty"` + Name NullableString `json:"Name,omitempty"` + AgentPoolName NullableString `json:"AgentPoolName,omitempty"` + AgentPoolId NullableString `json:"AgentPoolId,omitempty"` + Description NullableString `json:"Description,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + DiscoverPercentComplete *float64 `json:"DiscoverPercentComplete,omitempty"` + MonitorPercentComplete *float64 `json:"MonitorPercentComplete,omitempty"` + DiscoverStatus *CSSCMSCoreEnumsSslNetworkJobStatus `json:"DiscoverStatus,omitempty"` + MonitorStatus *CSSCMSCoreEnumsSslNetworkJobStatus `json:"MonitorStatus,omitempty"` + DiscoverLastScanned NullableTime `json:"DiscoverLastScanned,omitempty"` + MonitorLastScanned NullableTime `json:"MonitorLastScanned,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + DiscoverJobParts *int32 `json:"DiscoverJobParts,omitempty"` + MonitorJobParts *int32 `json:"MonitorJobParts,omitempty"` + QuietHours []SslQuietHourResponse `json:"QuietHours,omitempty"` + BlackoutStart *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutStart,omitempty"` + BlackoutEnd *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutEnd,omitempty"` +} + +// NewSslNetworkResponse instantiates a new SslNetworkResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslNetworkResponse() *SslNetworkResponse { + this := SslNetworkResponse{} + return &this +} + +// NewSslNetworkResponseWithDefaults instantiates a new SslNetworkResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslNetworkResponseWithDefaults() *SslNetworkResponse { + this := SslNetworkResponse{} + return &this +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *SslNetworkResponse) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *SslNetworkResponse) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SslNetworkResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SslNetworkResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SslNetworkResponse) UnsetName() { + o.Name.Unset() +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName.Get()) { + var ret string + return ret + } + return *o.AgentPoolName.Get() +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPoolName.Get(), o.AgentPoolName.IsSet() +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasAgentPoolName() bool { + if o != nil && o.AgentPoolName.IsSet() { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given NullableString and assigns it to the AgentPoolName field. +func (o *SslNetworkResponse) SetAgentPoolName(v string) { + o.AgentPoolName.Set(&v) +} + +// SetAgentPoolNameNil sets the value for AgentPoolName to be an explicit nil +func (o *SslNetworkResponse) SetAgentPoolNameNil() { + o.AgentPoolName.Set(nil) +} + +// UnsetAgentPoolName ensures that no value is present for AgentPoolName, not even an explicit nil +func (o *SslNetworkResponse) UnsetAgentPoolName() { + o.AgentPoolName.Unset() +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId.Get()) { + var ret string + return ret + } + return *o.AgentPoolId.Get() +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetAgentPoolIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentPoolId.Get(), o.AgentPoolId.IsSet() +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasAgentPoolId() bool { + if o != nil && o.AgentPoolId.IsSet() { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given NullableString and assigns it to the AgentPoolId field. +func (o *SslNetworkResponse) SetAgentPoolId(v string) { + o.AgentPoolId.Set(&v) +} + +// SetAgentPoolIdNil sets the value for AgentPoolId to be an explicit nil +func (o *SslNetworkResponse) SetAgentPoolIdNil() { + o.AgentPoolId.Set(nil) +} + +// UnsetAgentPoolId ensures that no value is present for AgentPoolId, not even an explicit nil +func (o *SslNetworkResponse) UnsetAgentPoolId() { + o.AgentPoolId.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SslNetworkResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SslNetworkResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SslNetworkResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SslNetworkResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *SslNetworkResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *SslNetworkResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetDiscoverPercentComplete returns the DiscoverPercentComplete field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetDiscoverPercentComplete() float64 { + if o == nil || isNil(o.DiscoverPercentComplete) { + var ret float64 + return ret + } + return *o.DiscoverPercentComplete +} + +// GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetDiscoverPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverPercentComplete) { + return nil, false + } + return o.DiscoverPercentComplete, true +} + +// HasDiscoverPercentComplete returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverPercentComplete() bool { + if o != nil && !isNil(o.DiscoverPercentComplete) { + return true + } + + return false +} + +// SetDiscoverPercentComplete gets a reference to the given float64 and assigns it to the DiscoverPercentComplete field. +func (o *SslNetworkResponse) SetDiscoverPercentComplete(v float64) { + o.DiscoverPercentComplete = &v +} + +// GetMonitorPercentComplete returns the MonitorPercentComplete field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetMonitorPercentComplete() float64 { + if o == nil || isNil(o.MonitorPercentComplete) { + var ret float64 + return ret + } + return *o.MonitorPercentComplete +} + +// GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetMonitorPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.MonitorPercentComplete) { + return nil, false + } + return o.MonitorPercentComplete, true +} + +// HasMonitorPercentComplete returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorPercentComplete() bool { + if o != nil && !isNil(o.MonitorPercentComplete) { + return true + } + + return false +} + +// SetMonitorPercentComplete gets a reference to the given float64 and assigns it to the MonitorPercentComplete field. +func (o *SslNetworkResponse) SetMonitorPercentComplete(v float64) { + o.MonitorPercentComplete = &v +} + +// GetDiscoverStatus returns the DiscoverStatus field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetDiscoverStatus() CSSCMSCoreEnumsSslNetworkJobStatus { + if o == nil || isNil(o.DiscoverStatus) { + var ret CSSCMSCoreEnumsSslNetworkJobStatus + return ret + } + return *o.DiscoverStatus +} + +// GetDiscoverStatusOk returns a tuple with the DiscoverStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetDiscoverStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool) { + if o == nil || isNil(o.DiscoverStatus) { + return nil, false + } + return o.DiscoverStatus, true +} + +// HasDiscoverStatus returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverStatus() bool { + if o != nil && !isNil(o.DiscoverStatus) { + return true + } + + return false +} + +// SetDiscoverStatus gets a reference to the given CSSCMSCoreEnumsSslNetworkJobStatus and assigns it to the DiscoverStatus field. +func (o *SslNetworkResponse) SetDiscoverStatus(v CSSCMSCoreEnumsSslNetworkJobStatus) { + o.DiscoverStatus = &v +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetMonitorStatus() CSSCMSCoreEnumsSslNetworkJobStatus { + if o == nil || isNil(o.MonitorStatus) { + var ret CSSCMSCoreEnumsSslNetworkJobStatus + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetMonitorStatusOk() (*CSSCMSCoreEnumsSslNetworkJobStatus, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given CSSCMSCoreEnumsSslNetworkJobStatus and assigns it to the MonitorStatus field. +func (o *SslNetworkResponse) SetMonitorStatus(v CSSCMSCoreEnumsSslNetworkJobStatus) { + o.MonitorStatus = &v +} + +// GetDiscoverLastScanned returns the DiscoverLastScanned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetDiscoverLastScanned() time.Time { + if o == nil || isNil(o.DiscoverLastScanned.Get()) { + var ret time.Time + return ret + } + return *o.DiscoverLastScanned.Get() +} + +// GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetDiscoverLastScannedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DiscoverLastScanned.Get(), o.DiscoverLastScanned.IsSet() +} + +// HasDiscoverLastScanned returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverLastScanned() bool { + if o != nil && o.DiscoverLastScanned.IsSet() { + return true + } + + return false +} + +// SetDiscoverLastScanned gets a reference to the given NullableTime and assigns it to the DiscoverLastScanned field. +func (o *SslNetworkResponse) SetDiscoverLastScanned(v time.Time) { + o.DiscoverLastScanned.Set(&v) +} + +// SetDiscoverLastScannedNil sets the value for DiscoverLastScanned to be an explicit nil +func (o *SslNetworkResponse) SetDiscoverLastScannedNil() { + o.DiscoverLastScanned.Set(nil) +} + +// UnsetDiscoverLastScanned ensures that no value is present for DiscoverLastScanned, not even an explicit nil +func (o *SslNetworkResponse) UnsetDiscoverLastScanned() { + o.DiscoverLastScanned.Unset() +} + +// GetMonitorLastScanned returns the MonitorLastScanned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetMonitorLastScanned() time.Time { + if o == nil || isNil(o.MonitorLastScanned.Get()) { + var ret time.Time + return ret + } + return *o.MonitorLastScanned.Get() +} + +// GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetMonitorLastScannedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.MonitorLastScanned.Get(), o.MonitorLastScanned.IsSet() +} + +// HasMonitorLastScanned returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorLastScanned() bool { + if o != nil && o.MonitorLastScanned.IsSet() { + return true + } + + return false +} + +// SetMonitorLastScanned gets a reference to the given NullableTime and assigns it to the MonitorLastScanned field. +func (o *SslNetworkResponse) SetMonitorLastScanned(v time.Time) { + o.MonitorLastScanned.Set(&v) +} + +// SetMonitorLastScannedNil sets the value for MonitorLastScanned to be an explicit nil +func (o *SslNetworkResponse) SetMonitorLastScannedNil() { + o.MonitorLastScanned.Set(nil) +} + +// UnsetMonitorLastScanned ensures that no value is present for MonitorLastScanned, not even an explicit nil +func (o *SslNetworkResponse) UnsetMonitorLastScanned() { + o.MonitorLastScanned.Unset() +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetSslAlertRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasSslAlertRecipients() bool { + if o != nil && isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *SslNetworkResponse) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *SslNetworkResponse) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *SslNetworkResponse) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *SslNetworkResponse) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *SslNetworkResponse) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetDiscoverJobParts returns the DiscoverJobParts field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetDiscoverJobParts() int32 { + if o == nil || isNil(o.DiscoverJobParts) { + var ret int32 + return ret + } + return *o.DiscoverJobParts +} + +// GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetDiscoverJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverJobParts) { + return nil, false + } + return o.DiscoverJobParts, true +} + +// HasDiscoverJobParts returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasDiscoverJobParts() bool { + if o != nil && !isNil(o.DiscoverJobParts) { + return true + } + + return false +} + +// SetDiscoverJobParts gets a reference to the given int32 and assigns it to the DiscoverJobParts field. +func (o *SslNetworkResponse) SetDiscoverJobParts(v int32) { + o.DiscoverJobParts = &v +} + +// GetMonitorJobParts returns the MonitorJobParts field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetMonitorJobParts() int32 { + if o == nil || isNil(o.MonitorJobParts) { + var ret int32 + return ret + } + return *o.MonitorJobParts +} + +// GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetMonitorJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.MonitorJobParts) { + return nil, false + } + return o.MonitorJobParts, true +} + +// HasMonitorJobParts returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasMonitorJobParts() bool { + if o != nil && !isNil(o.MonitorJobParts) { + return true + } + + return false +} + +// SetMonitorJobParts gets a reference to the given int32 and assigns it to the MonitorJobParts field. +func (o *SslNetworkResponse) SetMonitorJobParts(v int32) { + o.MonitorJobParts = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslNetworkResponse) GetQuietHours() []SslQuietHourResponse { + if o == nil { + var ret []SslQuietHourResponse + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslNetworkResponse) GetQuietHoursOk() ([]SslQuietHourResponse, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasQuietHours() bool { + if o != nil && isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []SslQuietHourResponse and assigns it to the QuietHours field. +func (o *SslNetworkResponse) SetQuietHours(v []SslQuietHourResponse) { + o.QuietHours = v +} + +// GetBlackoutStart returns the BlackoutStart field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutStart) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutStart +} + +// GetBlackoutStartOk returns a tuple with the BlackoutStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutStart) { + return nil, false + } + return o.BlackoutStart, true +} + +// HasBlackoutStart returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasBlackoutStart() bool { + if o != nil && !isNil(o.BlackoutStart) { + return true + } + + return false +} + +// SetBlackoutStart gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutStart field. +func (o *SslNetworkResponse) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutStart = &v +} + +// GetBlackoutEnd returns the BlackoutEnd field value if set, zero value otherwise. +func (o *SslNetworkResponse) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutEnd) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutEnd +} + +// GetBlackoutEndOk returns a tuple with the BlackoutEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslNetworkResponse) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutEnd) { + return nil, false + } + return o.BlackoutEnd, true +} + +// HasBlackoutEnd returns a boolean if a field has been set. +func (o *SslNetworkResponse) HasBlackoutEnd() bool { + if o != nil && !isNil(o.BlackoutEnd) { + return true + } + + return false +} + +// SetBlackoutEnd gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutEnd field. +func (o *SslNetworkResponse) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutEnd = &v +} + +func (o SslNetworkResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslNetworkResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.AgentPoolName.IsSet() { + toSerialize["AgentPoolName"] = o.AgentPoolName.Get() + } + if o.AgentPoolId.IsSet() { + toSerialize["AgentPoolId"] = o.AgentPoolId.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.DiscoverPercentComplete) { + toSerialize["DiscoverPercentComplete"] = o.DiscoverPercentComplete + } + if !isNil(o.MonitorPercentComplete) { + toSerialize["MonitorPercentComplete"] = o.MonitorPercentComplete + } + if !isNil(o.DiscoverStatus) { + toSerialize["DiscoverStatus"] = o.DiscoverStatus + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if o.DiscoverLastScanned.IsSet() { + toSerialize["DiscoverLastScanned"] = o.DiscoverLastScanned.Get() + } + if o.MonitorLastScanned.IsSet() { + toSerialize["MonitorLastScanned"] = o.MonitorLastScanned.Get() + } + if o.SslAlertRecipients != nil { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.DiscoverJobParts) { + toSerialize["DiscoverJobParts"] = o.DiscoverJobParts + } + if !isNil(o.MonitorJobParts) { + toSerialize["MonitorJobParts"] = o.MonitorJobParts + } + if o.QuietHours != nil { + toSerialize["QuietHours"] = o.QuietHours + } + if !isNil(o.BlackoutStart) { + toSerialize["BlackoutStart"] = o.BlackoutStart + } + if !isNil(o.BlackoutEnd) { + toSerialize["BlackoutEnd"] = o.BlackoutEnd + } + return toSerialize, nil +} + +type NullableSslNetworkResponse struct { + value *SslNetworkResponse + isSet bool +} + +func (v NullableSslNetworkResponse) Get() *SslNetworkResponse { + return v.value +} + +func (v *NullableSslNetworkResponse) Set(val *SslNetworkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSslNetworkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSslNetworkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslNetworkResponse(val *SslNetworkResponse) *NullableSslNetworkResponse { + return &NullableSslNetworkResponse{value: val, isSet: true} +} + +func (v NullableSslNetworkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslNetworkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_quiet_hour_request.go b/v24/api/keyfactor/v1/model_ssl_quiet_hour_request.go new file mode 100644 index 0000000..b528bf0 --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_quiet_hour_request.go @@ -0,0 +1,243 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SslQuietHourRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslQuietHourRequest{} + +// SslQuietHourRequest struct for SslQuietHourRequest +type SslQuietHourRequest struct { + StartDay *SystemDayOfWeek `json:"StartDay,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndDay *SystemDayOfWeek `json:"EndDay,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` +} + +// NewSslQuietHourRequest instantiates a new SslQuietHourRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslQuietHourRequest() *SslQuietHourRequest { + this := SslQuietHourRequest{} + return &this +} + +// NewSslQuietHourRequestWithDefaults instantiates a new SslQuietHourRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslQuietHourRequestWithDefaults() *SslQuietHourRequest { + this := SslQuietHourRequest{} + return &this +} + +// GetStartDay returns the StartDay field value if set, zero value otherwise. +func (o *SslQuietHourRequest) GetStartDay() SystemDayOfWeek { + if o == nil || isNil(o.StartDay) { + var ret SystemDayOfWeek + return ret + } + return *o.StartDay +} + +// GetStartDayOk returns a tuple with the StartDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourRequest) GetStartDayOk() (*SystemDayOfWeek, bool) { + if o == nil || isNil(o.StartDay) { + return nil, false + } + return o.StartDay, true +} + +// HasStartDay returns a boolean if a field has been set. +func (o *SslQuietHourRequest) HasStartDay() bool { + if o != nil && !isNil(o.StartDay) { + return true + } + + return false +} + +// SetStartDay gets a reference to the given SystemDayOfWeek and assigns it to the StartDay field. +func (o *SslQuietHourRequest) SetStartDay(v SystemDayOfWeek) { + o.StartDay = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *SslQuietHourRequest) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourRequest) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *SslQuietHourRequest) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *SslQuietHourRequest) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndDay returns the EndDay field value if set, zero value otherwise. +func (o *SslQuietHourRequest) GetEndDay() SystemDayOfWeek { + if o == nil || isNil(o.EndDay) { + var ret SystemDayOfWeek + return ret + } + return *o.EndDay +} + +// GetEndDayOk returns a tuple with the EndDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourRequest) GetEndDayOk() (*SystemDayOfWeek, bool) { + if o == nil || isNil(o.EndDay) { + return nil, false + } + return o.EndDay, true +} + +// HasEndDay returns a boolean if a field has been set. +func (o *SslQuietHourRequest) HasEndDay() bool { + if o != nil && !isNil(o.EndDay) { + return true + } + + return false +} + +// SetEndDay gets a reference to the given SystemDayOfWeek and assigns it to the EndDay field. +func (o *SslQuietHourRequest) SetEndDay(v SystemDayOfWeek) { + o.EndDay = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *SslQuietHourRequest) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourRequest) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *SslQuietHourRequest) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *SslQuietHourRequest) SetEndTime(v time.Time) { + o.EndTime = &v +} + +func (o SslQuietHourRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslQuietHourRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StartDay) { + toSerialize["StartDay"] = o.StartDay + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndDay) { + toSerialize["EndDay"] = o.EndDay + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + return toSerialize, nil +} + +type NullableSslQuietHourRequest struct { + value *SslQuietHourRequest + isSet bool +} + +func (v NullableSslQuietHourRequest) Get() *SslQuietHourRequest { + return v.value +} + +func (v *NullableSslQuietHourRequest) Set(val *SslQuietHourRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSslQuietHourRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSslQuietHourRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslQuietHourRequest(val *SslQuietHourRequest) *NullableSslQuietHourRequest { + return &NullableSslQuietHourRequest{value: val, isSet: true} +} + +func (v NullableSslQuietHourRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslQuietHourRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_quiet_hour_response.go b/v24/api/keyfactor/v1/model_ssl_quiet_hour_response.go new file mode 100644 index 0000000..1c9069a --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_quiet_hour_response.go @@ -0,0 +1,243 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the SslQuietHourResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslQuietHourResponse{} + +// SslQuietHourResponse struct for SslQuietHourResponse +type SslQuietHourResponse struct { + StartDay *SystemDayOfWeek `json:"StartDay,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndDay *SystemDayOfWeek `json:"EndDay,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` +} + +// NewSslQuietHourResponse instantiates a new SslQuietHourResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslQuietHourResponse() *SslQuietHourResponse { + this := SslQuietHourResponse{} + return &this +} + +// NewSslQuietHourResponseWithDefaults instantiates a new SslQuietHourResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslQuietHourResponseWithDefaults() *SslQuietHourResponse { + this := SslQuietHourResponse{} + return &this +} + +// GetStartDay returns the StartDay field value if set, zero value otherwise. +func (o *SslQuietHourResponse) GetStartDay() SystemDayOfWeek { + if o == nil || isNil(o.StartDay) { + var ret SystemDayOfWeek + return ret + } + return *o.StartDay +} + +// GetStartDayOk returns a tuple with the StartDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourResponse) GetStartDayOk() (*SystemDayOfWeek, bool) { + if o == nil || isNil(o.StartDay) { + return nil, false + } + return o.StartDay, true +} + +// HasStartDay returns a boolean if a field has been set. +func (o *SslQuietHourResponse) HasStartDay() bool { + if o != nil && !isNil(o.StartDay) { + return true + } + + return false +} + +// SetStartDay gets a reference to the given SystemDayOfWeek and assigns it to the StartDay field. +func (o *SslQuietHourResponse) SetStartDay(v SystemDayOfWeek) { + o.StartDay = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *SslQuietHourResponse) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourResponse) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *SslQuietHourResponse) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *SslQuietHourResponse) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndDay returns the EndDay field value if set, zero value otherwise. +func (o *SslQuietHourResponse) GetEndDay() SystemDayOfWeek { + if o == nil || isNil(o.EndDay) { + var ret SystemDayOfWeek + return ret + } + return *o.EndDay +} + +// GetEndDayOk returns a tuple with the EndDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourResponse) GetEndDayOk() (*SystemDayOfWeek, bool) { + if o == nil || isNil(o.EndDay) { + return nil, false + } + return o.EndDay, true +} + +// HasEndDay returns a boolean if a field has been set. +func (o *SslQuietHourResponse) HasEndDay() bool { + if o != nil && !isNil(o.EndDay) { + return true + } + + return false +} + +// SetEndDay gets a reference to the given SystemDayOfWeek and assigns it to the EndDay field. +func (o *SslQuietHourResponse) SetEndDay(v SystemDayOfWeek) { + o.EndDay = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *SslQuietHourResponse) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslQuietHourResponse) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *SslQuietHourResponse) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *SslQuietHourResponse) SetEndTime(v time.Time) { + o.EndTime = &v +} + +func (o SslQuietHourResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslQuietHourResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StartDay) { + toSerialize["StartDay"] = o.StartDay + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndDay) { + toSerialize["EndDay"] = o.EndDay + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + return toSerialize, nil +} + +type NullableSslQuietHourResponse struct { + value *SslQuietHourResponse + isSet bool +} + +func (v NullableSslQuietHourResponse) Get() *SslQuietHourResponse { + return v.value +} + +func (v *NullableSslQuietHourResponse) Set(val *SslQuietHourResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSslQuietHourResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSslQuietHourResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslQuietHourResponse(val *SslQuietHourResponse) *NullableSslQuietHourResponse { + return &NullableSslQuietHourResponse{value: val, isSet: true} +} + +func (v NullableSslQuietHourResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslQuietHourResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_ssl_update_network_request.go b/v24/api/keyfactor/v1/model_ssl_update_network_request.go new file mode 100644 index 0000000..a26e8a8 --- /dev/null +++ b/v24/api/keyfactor/v1/model_ssl_update_network_request.go @@ -0,0 +1,640 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the SslUpdateNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslUpdateNetworkRequest{} + +// SslUpdateNetworkRequest struct for SslUpdateNetworkRequest +type SslUpdateNetworkRequest struct { + NetworkId string `json:"NetworkId"` + Name string `json:"Name"` + AgentPoolName string `json:"AgentPoolName"` + Description string `json:"Description"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + QuietHours []SslQuietHourRequest `json:"QuietHours,omitempty"` + BlackoutStart *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutStart,omitempty"` + BlackoutEnd *KeyfactorCommonSchedulingModelsWeeklyModel `json:"BlackoutEnd,omitempty"` +} + +// NewSslUpdateNetworkRequest instantiates a new SslUpdateNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslUpdateNetworkRequest(networkId string, name string, agentPoolName string, description string) *SslUpdateNetworkRequest { + this := SslUpdateNetworkRequest{} + this.NetworkId = networkId + this.Name = name + this.AgentPoolName = agentPoolName + this.Description = description + return &this +} + +// NewSslUpdateNetworkRequestWithDefaults instantiates a new SslUpdateNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslUpdateNetworkRequestWithDefaults() *SslUpdateNetworkRequest { + this := SslUpdateNetworkRequest{} + return &this +} + +// GetNetworkId returns the NetworkId field value +func (o *SslUpdateNetworkRequest) GetNetworkId() string { + if o == nil { + var ret string + return ret + } + + return o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetNetworkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NetworkId, true +} + +// SetNetworkId sets field value +func (o *SslUpdateNetworkRequest) SetNetworkId(v string) { + o.NetworkId = v +} + +// GetName returns the Name field value +func (o *SslUpdateNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SslUpdateNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetAgentPoolName returns the AgentPoolName field value +func (o *SslUpdateNetworkRequest) GetAgentPoolName() string { + if o == nil { + var ret string + return ret + } + + return o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentPoolName, true +} + +// SetAgentPoolName sets field value +func (o *SslUpdateNetworkRequest) SetAgentPoolName(v string) { + o.AgentPoolName = v +} + +// GetDescription returns the Description field value +func (o *SslUpdateNetworkRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SslUpdateNetworkRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SslUpdateNetworkRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *SslUpdateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *SslUpdateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslUpdateNetworkRequest) GetSslAlertRecipients() []string { + if o == nil { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslUpdateNetworkRequest) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasSslAlertRecipients() bool { + if o != nil && isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *SslUpdateNetworkRequest) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *SslUpdateNetworkRequest) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *SslUpdateNetworkRequest) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *SslUpdateNetworkRequest) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *SslUpdateNetworkRequest) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *SslUpdateNetworkRequest) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslUpdateNetworkRequest) GetQuietHours() []SslQuietHourRequest { + if o == nil { + var ret []SslQuietHourRequest + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslUpdateNetworkRequest) GetQuietHoursOk() ([]SslQuietHourRequest, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasQuietHours() bool { + if o != nil && isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []SslQuietHourRequest and assigns it to the QuietHours field. +func (o *SslUpdateNetworkRequest) SetQuietHours(v []SslQuietHourRequest) { + o.QuietHours = v +} + +// GetBlackoutStart returns the BlackoutStart field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetBlackoutStart() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutStart) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutStart +} + +// GetBlackoutStartOk returns a tuple with the BlackoutStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetBlackoutStartOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutStart) { + return nil, false + } + return o.BlackoutStart, true +} + +// HasBlackoutStart returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasBlackoutStart() bool { + if o != nil && !isNil(o.BlackoutStart) { + return true + } + + return false +} + +// SetBlackoutStart gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutStart field. +func (o *SslUpdateNetworkRequest) SetBlackoutStart(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutStart = &v +} + +// GetBlackoutEnd returns the BlackoutEnd field value if set, zero value otherwise. +func (o *SslUpdateNetworkRequest) GetBlackoutEnd() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.BlackoutEnd) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.BlackoutEnd +} + +// GetBlackoutEndOk returns a tuple with the BlackoutEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SslUpdateNetworkRequest) GetBlackoutEndOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.BlackoutEnd) { + return nil, false + } + return o.BlackoutEnd, true +} + +// HasBlackoutEnd returns a boolean if a field has been set. +func (o *SslUpdateNetworkRequest) HasBlackoutEnd() bool { + if o != nil && !isNil(o.BlackoutEnd) { + return true + } + + return false +} + +// SetBlackoutEnd gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the BlackoutEnd field. +func (o *SslUpdateNetworkRequest) SetBlackoutEnd(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.BlackoutEnd = &v +} + +func (o SslUpdateNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslUpdateNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["NetworkId"] = o.NetworkId + toSerialize["Name"] = o.Name + toSerialize["AgentPoolName"] = o.AgentPoolName + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if o.SslAlertRecipients != nil { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if o.QuietHours != nil { + toSerialize["QuietHours"] = o.QuietHours + } + if !isNil(o.BlackoutStart) { + toSerialize["BlackoutStart"] = o.BlackoutStart + } + if !isNil(o.BlackoutEnd) { + toSerialize["BlackoutEnd"] = o.BlackoutEnd + } + return toSerialize, nil +} + +type NullableSslUpdateNetworkRequest struct { + value *SslUpdateNetworkRequest + isSet bool +} + +func (v NullableSslUpdateNetworkRequest) Get() *SslUpdateNetworkRequest { + return v.value +} + +func (v *NullableSslUpdateNetworkRequest) Set(val *SslUpdateNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSslUpdateNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSslUpdateNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslUpdateNetworkRequest(val *SslUpdateNetworkRequest) *NullableSslUpdateNetworkRequest { + return &NullableSslUpdateNetworkRequest{value: val, isSet: true} +} + +func (v NullableSslUpdateNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslUpdateNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_system_day_of_week.go b/v24/api/keyfactor/v1/model_system_day_of_week.go new file mode 100644 index 0000000..c137e17 --- /dev/null +++ b/v24/api/keyfactor/v1/model_system_day_of_week.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// SystemDayOfWeek the model 'SystemDayOfWeek' +type SystemDayOfWeek int32 + +// List of System.DayOfWeek +const ( + SYSTEMDAYOFWEEK_Sunday SystemDayOfWeek = 0 + SYSTEMDAYOFWEEK_Monday SystemDayOfWeek = 1 + SYSTEMDAYOFWEEK_Tuesday SystemDayOfWeek = 2 + SYSTEMDAYOFWEEK_Wednesday SystemDayOfWeek = 3 + SYSTEMDAYOFWEEK_Thursday SystemDayOfWeek = 4 + SYSTEMDAYOFWEEK_Friday SystemDayOfWeek = 5 + SYSTEMDAYOFWEEK_Saturday SystemDayOfWeek = 6 +) + +func ParseSystemDayOfWeek(s string) (*SystemDayOfWeek, error) { + var claimType SystemDayOfWeek + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *SystemDayOfWeek) Parse(s string) error { + var stringsToEnum = map[string]SystemDayOfWeek{ + "Sunday": SYSTEMDAYOFWEEK_Sunday, + "Monday": SYSTEMDAYOFWEEK_Monday, + "Tuesday": SYSTEMDAYOFWEEK_Tuesday, + "Wednesday": SYSTEMDAYOFWEEK_Wednesday, + "Thursday": SYSTEMDAYOFWEEK_Thursday, + "Friday": SYSTEMDAYOFWEEK_Friday, + "Saturday": SYSTEMDAYOFWEEK_Saturday, + } + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum SystemDayOfWeek. Value: %s ", s)) +} + +// All allowed values of SystemDayOfWeek enum +var AllowedSystemDayOfWeekEnumValues = []SystemDayOfWeek{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *SystemDayOfWeek) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SystemDayOfWeek(value) + for _, existing := range AllowedSystemDayOfWeekEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SystemDayOfWeek", value) +} + +// NewSystemDayOfWeekFromValue returns a pointer to a valid SystemDayOfWeek +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSystemDayOfWeekFromValue(v int32) (*SystemDayOfWeek, error) { + ev := SystemDayOfWeek(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SystemDayOfWeek: valid values are %v", v, AllowedSystemDayOfWeekEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SystemDayOfWeek) IsValid() bool { + for _, existing := range AllowedSystemDayOfWeekEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to System.DayOfWeek value +func (v SystemDayOfWeek) Ptr() *SystemDayOfWeek { + return &v +} + +type NullableSystemDayOfWeek struct { + value *SystemDayOfWeek + isSet bool +} + +func (v NullableSystemDayOfWeek) Get() *SystemDayOfWeek { + return v.value +} + +func (v *NullableSystemDayOfWeek) Set(val *SystemDayOfWeek) { + v.value = val + v.isSet = true +} + +func (v NullableSystemDayOfWeek) IsSet() bool { + return v.isSet +} + +func (v *NullableSystemDayOfWeek) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSystemDayOfWeek(val *SystemDayOfWeek) *NullableSystemDayOfWeek { + return &NullableSystemDayOfWeek{value: val, isSet: true} +} + +func (v NullableSystemDayOfWeek) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSystemDayOfWeek) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_default_response.go b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_default_response.go new file mode 100644 index 0000000..95ce722 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_default_response.go @@ -0,0 +1,194 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesEnrollmentTemplateEnrollmentDefaultResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesEnrollmentTemplateEnrollmentDefaultResponse{} + +// TemplatesEnrollmentTemplateEnrollmentDefaultResponse struct for TemplatesEnrollmentTemplateEnrollmentDefaultResponse +type TemplatesEnrollmentTemplateEnrollmentDefaultResponse struct { + // The subject part to apply the default to. + SubjectPart NullableString `json:"SubjectPart,omitempty"` + // The value to apply by default. + Value NullableString `json:"Value,omitempty"` +} + +// NewTemplatesEnrollmentTemplateEnrollmentDefaultResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentDefaultResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesEnrollmentTemplateEnrollmentDefaultResponse() *TemplatesEnrollmentTemplateEnrollmentDefaultResponse { + this := TemplatesEnrollmentTemplateEnrollmentDefaultResponse{} + return &this +} + +// NewTemplatesEnrollmentTemplateEnrollmentDefaultResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentDefaultResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesEnrollmentTemplateEnrollmentDefaultResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentDefaultResponse { + this := TemplatesEnrollmentTemplateEnrollmentDefaultResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) UnsetValue() { + o.Value.Unset() +} + +func (o TemplatesEnrollmentTemplateEnrollmentDefaultResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesEnrollmentTemplateEnrollmentDefaultResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse struct { + value *TemplatesEnrollmentTemplateEnrollmentDefaultResponse + isSet bool +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) Get() *TemplatesEnrollmentTemplateEnrollmentDefaultResponse { + return v.value +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) Set(val *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse(val *TemplatesEnrollmentTemplateEnrollmentDefaultResponse) *NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse { + return &NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse{value: val, isSet: true} +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentDefaultResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_policy_response.go b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_policy_response.go new file mode 100644 index 0000000..3146860 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_policy_response.go @@ -0,0 +1,376 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesEnrollmentTemplateEnrollmentPolicyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesEnrollmentTemplateEnrollmentPolicyResponse{} + +// TemplatesEnrollmentTemplateEnrollmentPolicyResponse struct for TemplatesEnrollmentTemplateEnrollmentPolicyResponse +type TemplatesEnrollmentTemplateEnrollmentPolicyResponse struct { + // Whether or not keys can be reused. + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + // Whether or not wildcards can be used. + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` + // The id of the security role that should be set as the owner of the cert during import of new certificates + DefaultCertificateOwnerRoleId NullableInt32 `json:"DefaultCertificateOwnerRoleId,omitempty"` + DefaultCertificateOwnerRoleName NullableString `json:"DefaultCertificateOwnerRoleName,omitempty"` + CertificateOwnerRole *CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole,omitempty"` +} + +// NewTemplatesEnrollmentTemplateEnrollmentPolicyResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentPolicyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesEnrollmentTemplateEnrollmentPolicyResponse() *TemplatesEnrollmentTemplateEnrollmentPolicyResponse { + this := TemplatesEnrollmentTemplateEnrollmentPolicyResponse{} + return &this +} + +// NewTemplatesEnrollmentTemplateEnrollmentPolicyResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentPolicyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesEnrollmentTemplateEnrollmentPolicyResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentPolicyResponse { + this := TemplatesEnrollmentTemplateEnrollmentPolicyResponse{} + return &this +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +// GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleId() int32 { + if o == nil || isNil(o.DefaultCertificateOwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.DefaultCertificateOwnerRoleId.Get() +} + +// GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleId.Get(), o.DefaultCertificateOwnerRoleId.IsSet() +} + +// HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasDefaultCertificateOwnerRoleId() bool { + if o != nil && o.DefaultCertificateOwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the DefaultCertificateOwnerRoleId field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleId(v int32) { + o.DefaultCertificateOwnerRoleId.Set(&v) +} + +// SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleIdNil() { + o.DefaultCertificateOwnerRoleId.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) UnsetDefaultCertificateOwnerRoleId() { + o.DefaultCertificateOwnerRoleId.Unset() +} + +// GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleName() string { + if o == nil || isNil(o.DefaultCertificateOwnerRoleName.Get()) { + var ret string + return ret + } + return *o.DefaultCertificateOwnerRoleName.Get() +} + +// GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetDefaultCertificateOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleName.Get(), o.DefaultCertificateOwnerRoleName.IsSet() +} + +// HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasDefaultCertificateOwnerRoleName() bool { + if o != nil && o.DefaultCertificateOwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleName gets a reference to the given NullableString and assigns it to the DefaultCertificateOwnerRoleName field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleName(v string) { + o.DefaultCertificateOwnerRoleName.Set(&v) +} + +// SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetDefaultCertificateOwnerRoleNameNil() { + o.DefaultCertificateOwnerRoleName.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) UnsetDefaultCertificateOwnerRoleName() { + o.DefaultCertificateOwnerRoleName.Unset() +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil || isNil(o.CertificateOwnerRole) { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + return *o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil || isNil(o.CertificateOwnerRole) { + return nil, false + } + return o.CertificateOwnerRole, true +} + +// HasCertificateOwnerRole returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) HasCertificateOwnerRole() bool { + if o != nil && !isNil(o.CertificateOwnerRole) { + return true + } + + return false +} + +// SetCertificateOwnerRole gets a reference to the given CSSCMSCoreEnumsTemplateCertificateOwnerRole and assigns it to the CertificateOwnerRole field. +func (o *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = &v +} + +func (o TemplatesEnrollmentTemplateEnrollmentPolicyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesEnrollmentTemplateEnrollmentPolicyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + if o.DefaultCertificateOwnerRoleId.IsSet() { + toSerialize["DefaultCertificateOwnerRoleId"] = o.DefaultCertificateOwnerRoleId.Get() + } + if o.DefaultCertificateOwnerRoleName.IsSet() { + toSerialize["DefaultCertificateOwnerRoleName"] = o.DefaultCertificateOwnerRoleName.Get() + } + if !isNil(o.CertificateOwnerRole) { + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + } + return toSerialize, nil +} + +type NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse struct { + value *TemplatesEnrollmentTemplateEnrollmentPolicyResponse + isSet bool +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) Get() *TemplatesEnrollmentTemplateEnrollmentPolicyResponse { + return v.value +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) Set(val *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse(val *TemplatesEnrollmentTemplateEnrollmentPolicyResponse) *NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse { + return &NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse{value: val, isSet: true} +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentPolicyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_regex_response.go b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_regex_response.go new file mode 100644 index 0000000..bd6836a --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_regex_response.go @@ -0,0 +1,279 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesEnrollmentTemplateEnrollmentRegexResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesEnrollmentTemplateEnrollmentRegexResponse{} + +// TemplatesEnrollmentTemplateEnrollmentRegexResponse struct for TemplatesEnrollmentTemplateEnrollmentRegexResponse +type TemplatesEnrollmentTemplateEnrollmentRegexResponse struct { + // The subject part to apply the regular expression to. + SubjectPart NullableString `json:"SubjectPart,omitempty"` + // The regular expression to apply to the subject part. + Regex NullableString `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error NullableString `json:"Error,omitempty"` + // WHether or not the regex is case-sensitive. + CaseSensitive *bool `json:"CaseSensitive,omitempty"` +} + +// NewTemplatesEnrollmentTemplateEnrollmentRegexResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentRegexResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesEnrollmentTemplateEnrollmentRegexResponse() *TemplatesEnrollmentTemplateEnrollmentRegexResponse { + this := TemplatesEnrollmentTemplateEnrollmentRegexResponse{} + return &this +} + +// NewTemplatesEnrollmentTemplateEnrollmentRegexResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentRegexResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesEnrollmentTemplateEnrollmentRegexResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentRegexResponse { + this := TemplatesEnrollmentTemplateEnrollmentRegexResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetRegex returns the Regex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetRegex() string { + if o == nil || isNil(o.Regex.Get()) { + var ret string + return ret + } + return *o.Regex.Get() +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetRegexOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Regex.Get(), o.Regex.IsSet() +} + +// HasRegex returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasRegex() bool { + if o != nil && o.Regex.IsSet() { + return true + } + + return false +} + +// SetRegex gets a reference to the given NullableString and assigns it to the Regex field. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetRegex(v string) { + o.Regex.Set(&v) +} + +// SetRegexNil sets the value for Regex to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetRegexNil() { + o.Regex.Set(nil) +} + +// UnsetRegex ensures that no value is present for Regex, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetRegex() { + o.Regex.Unset() +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetError() string { + if o == nil || isNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) UnsetError() { + o.Error.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *TemplatesEnrollmentTemplateEnrollmentRegexResponse) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +func (o TemplatesEnrollmentTemplateEnrollmentRegexResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesEnrollmentTemplateEnrollmentRegexResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Regex.IsSet() { + toSerialize["Regex"] = o.Regex.Get() + } + if o.Error.IsSet() { + toSerialize["Error"] = o.Error.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + return toSerialize, nil +} + +type NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse struct { + value *TemplatesEnrollmentTemplateEnrollmentRegexResponse + isSet bool +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) Get() *TemplatesEnrollmentTemplateEnrollmentRegexResponse { + return v.value +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) Set(val *TemplatesEnrollmentTemplateEnrollmentRegexResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesEnrollmentTemplateEnrollmentRegexResponse(val *TemplatesEnrollmentTemplateEnrollmentRegexResponse) *NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse { + return &NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse{value: val, isSet: true} +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentRegexResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_settings_response.go b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_settings_response.go new file mode 100644 index 0000000..2e4eb07 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_enrollment_template_enrollment_settings_response.go @@ -0,0 +1,210 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesEnrollmentTemplateEnrollmentSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesEnrollmentTemplateEnrollmentSettingsResponse{} + +// TemplatesEnrollmentTemplateEnrollmentSettingsResponse struct for TemplatesEnrollmentTemplateEnrollmentSettingsResponse +type TemplatesEnrollmentTemplateEnrollmentSettingsResponse struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []TemplatesEnrollmentTemplateEnrollmentRegexResponse `json:"TemplateRegexes,omitempty"` + // The default values to use during enrollment. + TemplateDefaults []TemplatesEnrollmentTemplateEnrollmentDefaultResponse `json:"TemplateDefaults,omitempty"` + TemplatePolicy *TemplatesEnrollmentTemplateEnrollmentPolicyResponse `json:"TemplatePolicy,omitempty"` +} + +// NewTemplatesEnrollmentTemplateEnrollmentSettingsResponse instantiates a new TemplatesEnrollmentTemplateEnrollmentSettingsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesEnrollmentTemplateEnrollmentSettingsResponse() *TemplatesEnrollmentTemplateEnrollmentSettingsResponse { + this := TemplatesEnrollmentTemplateEnrollmentSettingsResponse{} + return &this +} + +// NewTemplatesEnrollmentTemplateEnrollmentSettingsResponseWithDefaults instantiates a new TemplatesEnrollmentTemplateEnrollmentSettingsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesEnrollmentTemplateEnrollmentSettingsResponseWithDefaults() *TemplatesEnrollmentTemplateEnrollmentSettingsResponse { + this := TemplatesEnrollmentTemplateEnrollmentSettingsResponse{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateRegexes() []TemplatesEnrollmentTemplateEnrollmentRegexResponse { + if o == nil { + var ret []TemplatesEnrollmentTemplateEnrollmentRegexResponse + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateRegexesOk() ([]TemplatesEnrollmentTemplateEnrollmentRegexResponse, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplateRegexes() bool { + if o != nil && isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []TemplatesEnrollmentTemplateEnrollmentRegexResponse and assigns it to the TemplateRegexes field. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateRegexes(v []TemplatesEnrollmentTemplateEnrollmentRegexResponse) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateDefaults() []TemplatesEnrollmentTemplateEnrollmentDefaultResponse { + if o == nil { + var ret []TemplatesEnrollmentTemplateEnrollmentDefaultResponse + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplateDefaultsOk() ([]TemplatesEnrollmentTemplateEnrollmentDefaultResponse, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplateDefaults() bool { + if o != nil && isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []TemplatesEnrollmentTemplateEnrollmentDefaultResponse and assigns it to the TemplateDefaults field. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplateDefaults(v []TemplatesEnrollmentTemplateEnrollmentDefaultResponse) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplatePolicy() TemplatesEnrollmentTemplateEnrollmentPolicyResponse { + if o == nil || isNil(o.TemplatePolicy) { + var ret TemplatesEnrollmentTemplateEnrollmentPolicyResponse + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) GetTemplatePolicyOk() (*TemplatesEnrollmentTemplateEnrollmentPolicyResponse, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given TemplatesEnrollmentTemplateEnrollmentPolicyResponse and assigns it to the TemplatePolicy field. +func (o *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) SetTemplatePolicy(v TemplatesEnrollmentTemplateEnrollmentPolicyResponse) { + o.TemplatePolicy = &v +} + +func (o TemplatesEnrollmentTemplateEnrollmentSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesEnrollmentTemplateEnrollmentSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TemplateRegexes != nil { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if o.TemplateDefaults != nil { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + return toSerialize, nil +} + +type NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse struct { + value *TemplatesEnrollmentTemplateEnrollmentSettingsResponse + isSet bool +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) Get() *TemplatesEnrollmentTemplateEnrollmentSettingsResponse { + return v.value +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) Set(val *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse(val *TemplatesEnrollmentTemplateEnrollmentSettingsResponse) *NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse { + return &NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse{value: val, isSet: true} +} + +func (v NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesEnrollmentTemplateEnrollmentSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_extended_key_usage_response_model.go b/v24/api/keyfactor/v1/model_templates_extended_key_usage_response_model.go new file mode 100644 index 0000000..abd7d62 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_extended_key_usage_response_model.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesExtendedKeyUsageResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesExtendedKeyUsageResponseModel{} + +// TemplatesExtendedKeyUsageResponseModel struct for TemplatesExtendedKeyUsageResponseModel +type TemplatesExtendedKeyUsageResponseModel struct { + Id *int32 `json:"Id,omitempty"` + Oid NullableString `json:"Oid,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` +} + +// NewTemplatesExtendedKeyUsageResponseModel instantiates a new TemplatesExtendedKeyUsageResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesExtendedKeyUsageResponseModel() *TemplatesExtendedKeyUsageResponseModel { + this := TemplatesExtendedKeyUsageResponseModel{} + return &this +} + +// NewTemplatesExtendedKeyUsageResponseModelWithDefaults instantiates a new TemplatesExtendedKeyUsageResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesExtendedKeyUsageResponseModelWithDefaults() *TemplatesExtendedKeyUsageResponseModel { + this := TemplatesExtendedKeyUsageResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesExtendedKeyUsageResponseModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesExtendedKeyUsageResponseModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesExtendedKeyUsageResponseModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesExtendedKeyUsageResponseModel) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesExtendedKeyUsageResponseModel) GetOid() string { + if o == nil || isNil(o.Oid.Get()) { + var ret string + return ret + } + return *o.Oid.Get() +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesExtendedKeyUsageResponseModel) GetOidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oid.Get(), o.Oid.IsSet() +} + +// HasOid returns a boolean if a field has been set. +func (o *TemplatesExtendedKeyUsageResponseModel) HasOid() bool { + if o != nil && o.Oid.IsSet() { + return true + } + + return false +} + +// SetOid gets a reference to the given NullableString and assigns it to the Oid field. +func (o *TemplatesExtendedKeyUsageResponseModel) SetOid(v string) { + o.Oid.Set(&v) +} + +// SetOidNil sets the value for Oid to be an explicit nil +func (o *TemplatesExtendedKeyUsageResponseModel) SetOidNil() { + o.Oid.Set(nil) +} + +// UnsetOid ensures that no value is present for Oid, not even an explicit nil +func (o *TemplatesExtendedKeyUsageResponseModel) UnsetOid() { + o.Oid.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesExtendedKeyUsageResponseModel) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesExtendedKeyUsageResponseModel) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *TemplatesExtendedKeyUsageResponseModel) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *TemplatesExtendedKeyUsageResponseModel) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *TemplatesExtendedKeyUsageResponseModel) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *TemplatesExtendedKeyUsageResponseModel) UnsetDisplayName() { + o.DisplayName.Unset() +} + +func (o TemplatesExtendedKeyUsageResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesExtendedKeyUsageResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Oid.IsSet() { + toSerialize["Oid"] = o.Oid.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + return toSerialize, nil +} + +type NullableTemplatesExtendedKeyUsageResponseModel struct { + value *TemplatesExtendedKeyUsageResponseModel + isSet bool +} + +func (v NullableTemplatesExtendedKeyUsageResponseModel) Get() *TemplatesExtendedKeyUsageResponseModel { + return v.value +} + +func (v *NullableTemplatesExtendedKeyUsageResponseModel) Set(val *TemplatesExtendedKeyUsageResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesExtendedKeyUsageResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesExtendedKeyUsageResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesExtendedKeyUsageResponseModel(val *TemplatesExtendedKeyUsageResponseModel) *NullableTemplatesExtendedKeyUsageResponseModel { + return &NullableTemplatesExtendedKeyUsageResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesExtendedKeyUsageResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesExtendedKeyUsageResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_default_request.go b/v24/api/keyfactor/v1/model_templates_global_global_template_default_request.go new file mode 100644 index 0000000..9bb8440 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_default_request.go @@ -0,0 +1,174 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateDefaultRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateDefaultRequest{} + +// TemplatesGlobalGlobalTemplateDefaultRequest struct for TemplatesGlobalGlobalTemplateDefaultRequest +type TemplatesGlobalGlobalTemplateDefaultRequest struct { + // The subject part to apply the default to. + SubjectPart string `json:"SubjectPart"` + // The value to apply by default. + Value NullableString `json:"Value,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplateDefaultRequest instantiates a new TemplatesGlobalGlobalTemplateDefaultRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateDefaultRequest(subjectPart string) *TemplatesGlobalGlobalTemplateDefaultRequest { + this := TemplatesGlobalGlobalTemplateDefaultRequest{} + this.SubjectPart = subjectPart + return &this +} + +// NewTemplatesGlobalGlobalTemplateDefaultRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateDefaultRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateDefaultRequestWithDefaults() *TemplatesGlobalGlobalTemplateDefaultRequest { + this := TemplatesGlobalGlobalTemplateDefaultRequest{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetSubjectPart() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectPart, true +} + +// SetSubjectPart sets field value +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetSubjectPart(v string) { + o.SubjectPart = v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultRequest) UnsetValue() { + o.Value.Unset() +} + +func (o TemplatesGlobalGlobalTemplateDefaultRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateDefaultRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SubjectPart"] = o.SubjectPart + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateDefaultRequest struct { + value *TemplatesGlobalGlobalTemplateDefaultRequest + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultRequest) Get() *TemplatesGlobalGlobalTemplateDefaultRequest { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultRequest) Set(val *TemplatesGlobalGlobalTemplateDefaultRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateDefaultRequest(val *TemplatesGlobalGlobalTemplateDefaultRequest) *NullableTemplatesGlobalGlobalTemplateDefaultRequest { + return &NullableTemplatesGlobalGlobalTemplateDefaultRequest{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_default_response.go b/v24/api/keyfactor/v1/model_templates_global_global_template_default_response.go new file mode 100644 index 0000000..4fe3ecf --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_default_response.go @@ -0,0 +1,194 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateDefaultResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateDefaultResponse{} + +// TemplatesGlobalGlobalTemplateDefaultResponse struct for TemplatesGlobalGlobalTemplateDefaultResponse +type TemplatesGlobalGlobalTemplateDefaultResponse struct { + // The subject part to apply the default to. + SubjectPart NullableString `json:"SubjectPart,omitempty"` + // The value to apply by default. + Value NullableString `json:"Value,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplateDefaultResponse instantiates a new TemplatesGlobalGlobalTemplateDefaultResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateDefaultResponse() *TemplatesGlobalGlobalTemplateDefaultResponse { + this := TemplatesGlobalGlobalTemplateDefaultResponse{} + return &this +} + +// NewTemplatesGlobalGlobalTemplateDefaultResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateDefaultResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateDefaultResponseWithDefaults() *TemplatesGlobalGlobalTemplateDefaultResponse { + this := TemplatesGlobalGlobalTemplateDefaultResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateDefaultResponse) UnsetValue() { + o.Value.Unset() +} + +func (o TemplatesGlobalGlobalTemplateDefaultResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateDefaultResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateDefaultResponse struct { + value *TemplatesGlobalGlobalTemplateDefaultResponse + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultResponse) Get() *TemplatesGlobalGlobalTemplateDefaultResponse { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultResponse) Set(val *TemplatesGlobalGlobalTemplateDefaultResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateDefaultResponse(val *TemplatesGlobalGlobalTemplateDefaultResponse) *NullableTemplatesGlobalGlobalTemplateDefaultResponse { + return &NullableTemplatesGlobalGlobalTemplateDefaultResponse{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateDefaultResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateDefaultResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_policy_request.go b/v24/api/keyfactor/v1/model_templates_global_global_template_policy_request.go new file mode 100644 index 0000000..77f3bf5 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_policy_request.go @@ -0,0 +1,368 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplatePolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplatePolicyRequest{} + +// TemplatesGlobalGlobalTemplatePolicyRequest struct for TemplatesGlobalGlobalTemplatePolicyRequest +type TemplatesGlobalGlobalTemplatePolicyRequest struct { + // The ID of the global template policy. + Id *int32 `json:"Id,omitempty"` + // Whether or not keys can be reused. + AllowKeyReuse bool `json:"AllowKeyReuse"` + // Whether or not wildcards can be used. + AllowWildcards bool `json:"AllowWildcards"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement bool `json:"RFCEnforcement"` + CertificateOwnerRole CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole"` + // The id of the security role that should be set as the owner of the cert during import of new certificates + DefaultCertificateOwnerRoleId NullableInt32 `json:"DefaultCertificateOwnerRoleId,omitempty"` + DefaultCertificateOwnerRoleName NullableString `json:"DefaultCertificateOwnerRoleName,omitempty"` + KeyInfo CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo"` +} + +// NewTemplatesGlobalGlobalTemplatePolicyRequest instantiates a new TemplatesGlobalGlobalTemplatePolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplatePolicyRequest(allowKeyReuse bool, allowWildcards bool, rFCEnforcement bool, certificateOwnerRole CSSCMSCoreEnumsTemplateCertificateOwnerRole, keyInfo CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) *TemplatesGlobalGlobalTemplatePolicyRequest { + this := TemplatesGlobalGlobalTemplatePolicyRequest{} + this.AllowKeyReuse = allowKeyReuse + this.AllowWildcards = allowWildcards + this.RFCEnforcement = rFCEnforcement + this.CertificateOwnerRole = certificateOwnerRole + this.KeyInfo = keyInfo + return &this +} + +// NewTemplatesGlobalGlobalTemplatePolicyRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplatePolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplatePolicyRequestWithDefaults() *TemplatesGlobalGlobalTemplatePolicyRequest { + this := TemplatesGlobalGlobalTemplatePolicyRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetId(v int32) { + o.Id = &v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowKeyReuse() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowKeyReuse, true +} + +// SetAllowKeyReuse sets field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = v +} + +// GetAllowWildcards returns the AllowWildcards field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowWildcards() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetAllowWildcardsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowWildcards, true +} + +// SetAllowWildcards sets field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetAllowWildcards(v bool) { + o.AllowWildcards = v +} + +// GetRFCEnforcement returns the RFCEnforcement field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetRFCEnforcement() bool { + if o == nil { + var ret bool + return ret + } + + return o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetRFCEnforcementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RFCEnforcement, true +} + +// SetRFCEnforcement sets field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetRFCEnforcement(v bool) { + o.RFCEnforcement = v +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + + return o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil { + return nil, false + } + return &o.CertificateOwnerRole, true +} + +// SetCertificateOwnerRole sets field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = v +} + +// GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleId() int32 { + if o == nil || isNil(o.DefaultCertificateOwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.DefaultCertificateOwnerRoleId.Get() +} + +// GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleId.Get(), o.DefaultCertificateOwnerRoleId.IsSet() +} + +// HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasDefaultCertificateOwnerRoleId() bool { + if o != nil && o.DefaultCertificateOwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the DefaultCertificateOwnerRoleId field. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleId(v int32) { + o.DefaultCertificateOwnerRoleId.Set(&v) +} + +// SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleIdNil() { + o.DefaultCertificateOwnerRoleId.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) UnsetDefaultCertificateOwnerRoleId() { + o.DefaultCertificateOwnerRoleId.Unset() +} + +// GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleName() string { + if o == nil || isNil(o.DefaultCertificateOwnerRoleName.Get()) { + var ret string + return ret + } + return *o.DefaultCertificateOwnerRoleName.Get() +} + +// GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetDefaultCertificateOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleName.Get(), o.DefaultCertificateOwnerRoleName.IsSet() +} + +// HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) HasDefaultCertificateOwnerRoleName() bool { + if o != nil && o.DefaultCertificateOwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleName gets a reference to the given NullableString and assigns it to the DefaultCertificateOwnerRoleName field. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleName(v string) { + o.DefaultCertificateOwnerRoleName.Set(&v) +} + +// SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetDefaultCertificateOwnerRoleNameNil() { + o.DefaultCertificateOwnerRoleName.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) UnsetDefaultCertificateOwnerRoleName() { + o.DefaultCertificateOwnerRoleName.Unset() +} + +// GetKeyInfo returns the KeyInfo field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + + return o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil { + return nil, false + } + return &o.KeyInfo, true +} + +// SetKeyInfo sets field value +func (o *TemplatesGlobalGlobalTemplatePolicyRequest) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = v +} + +func (o TemplatesGlobalGlobalTemplatePolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplatePolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + toSerialize["AllowWildcards"] = o.AllowWildcards + toSerialize["RFCEnforcement"] = o.RFCEnforcement + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + if o.DefaultCertificateOwnerRoleId.IsSet() { + toSerialize["DefaultCertificateOwnerRoleId"] = o.DefaultCertificateOwnerRoleId.Get() + } + if o.DefaultCertificateOwnerRoleName.IsSet() { + toSerialize["DefaultCertificateOwnerRoleName"] = o.DefaultCertificateOwnerRoleName.Get() + } + toSerialize["KeyInfo"] = o.KeyInfo + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplatePolicyRequest struct { + value *TemplatesGlobalGlobalTemplatePolicyRequest + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyRequest) Get() *TemplatesGlobalGlobalTemplatePolicyRequest { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyRequest) Set(val *TemplatesGlobalGlobalTemplatePolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplatePolicyRequest(val *TemplatesGlobalGlobalTemplatePolicyRequest) *NullableTemplatesGlobalGlobalTemplatePolicyRequest { + return &NullableTemplatesGlobalGlobalTemplatePolicyRequest{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_policy_response.go b/v24/api/keyfactor/v1/model_templates_global_global_template_policy_response.go new file mode 100644 index 0000000..e3ce279 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_policy_response.go @@ -0,0 +1,376 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplatePolicyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplatePolicyResponse{} + +// TemplatesGlobalGlobalTemplatePolicyResponse struct for TemplatesGlobalGlobalTemplatePolicyResponse +type TemplatesGlobalGlobalTemplatePolicyResponse struct { + // Whether or not keys can be reused. + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + // Whether or not wildcards can be used. + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + CertificateOwnerRole *CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole,omitempty"` + // The id of the security role that should be set as the owner of the cert during import of new certificates + DefaultCertificateOwnerRoleId NullableInt32 `json:"DefaultCertificateOwnerRoleId,omitempty"` + DefaultCertificateOwnerRoleName NullableString `json:"DefaultCertificateOwnerRoleName,omitempty"` + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplatePolicyResponse instantiates a new TemplatesGlobalGlobalTemplatePolicyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplatePolicyResponse() *TemplatesGlobalGlobalTemplatePolicyResponse { + this := TemplatesGlobalGlobalTemplatePolicyResponse{} + return &this +} + +// NewTemplatesGlobalGlobalTemplatePolicyResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplatePolicyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplatePolicyResponseWithDefaults() *TemplatesGlobalGlobalTemplatePolicyResponse { + this := TemplatesGlobalGlobalTemplatePolicyResponse{} + return &this +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil || isNil(o.CertificateOwnerRole) { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + return *o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil || isNil(o.CertificateOwnerRole) { + return nil, false + } + return o.CertificateOwnerRole, true +} + +// HasCertificateOwnerRole returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasCertificateOwnerRole() bool { + if o != nil && !isNil(o.CertificateOwnerRole) { + return true + } + + return false +} + +// SetCertificateOwnerRole gets a reference to the given CSSCMSCoreEnumsTemplateCertificateOwnerRole and assigns it to the CertificateOwnerRole field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = &v +} + +// GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleId() int32 { + if o == nil || isNil(o.DefaultCertificateOwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.DefaultCertificateOwnerRoleId.Get() +} + +// GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleId.Get(), o.DefaultCertificateOwnerRoleId.IsSet() +} + +// HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasDefaultCertificateOwnerRoleId() bool { + if o != nil && o.DefaultCertificateOwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the DefaultCertificateOwnerRoleId field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleId(v int32) { + o.DefaultCertificateOwnerRoleId.Set(&v) +} + +// SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleIdNil() { + o.DefaultCertificateOwnerRoleId.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) UnsetDefaultCertificateOwnerRoleId() { + o.DefaultCertificateOwnerRoleId.Unset() +} + +// GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleName() string { + if o == nil || isNil(o.DefaultCertificateOwnerRoleName.Get()) { + var ret string + return ret + } + return *o.DefaultCertificateOwnerRoleName.Get() +} + +// GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetDefaultCertificateOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleName.Get(), o.DefaultCertificateOwnerRoleName.IsSet() +} + +// HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasDefaultCertificateOwnerRoleName() bool { + if o != nil && o.DefaultCertificateOwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleName gets a reference to the given NullableString and assigns it to the DefaultCertificateOwnerRoleName field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleName(v string) { + o.DefaultCertificateOwnerRoleName.Set(&v) +} + +// SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetDefaultCertificateOwnerRoleNameNil() { + o.DefaultCertificateOwnerRoleName.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) UnsetDefaultCertificateOwnerRoleName() { + o.DefaultCertificateOwnerRoleName.Unset() +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *TemplatesGlobalGlobalTemplatePolicyResponse) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +func (o TemplatesGlobalGlobalTemplatePolicyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplatePolicyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.CertificateOwnerRole) { + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + } + if o.DefaultCertificateOwnerRoleId.IsSet() { + toSerialize["DefaultCertificateOwnerRoleId"] = o.DefaultCertificateOwnerRoleId.Get() + } + if o.DefaultCertificateOwnerRoleName.IsSet() { + toSerialize["DefaultCertificateOwnerRoleName"] = o.DefaultCertificateOwnerRoleName.Get() + } + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplatePolicyResponse struct { + value *TemplatesGlobalGlobalTemplatePolicyResponse + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyResponse) Get() *TemplatesGlobalGlobalTemplatePolicyResponse { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyResponse) Set(val *TemplatesGlobalGlobalTemplatePolicyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplatePolicyResponse(val *TemplatesGlobalGlobalTemplatePolicyResponse) *NullableTemplatesGlobalGlobalTemplatePolicyResponse { + return &NullableTemplatesGlobalGlobalTemplatePolicyResponse{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplatePolicyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplatePolicyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_regex_request.go b/v24/api/keyfactor/v1/model_templates_global_global_template_regex_request.go new file mode 100644 index 0000000..a28064e --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_regex_request.go @@ -0,0 +1,259 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateRegexRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateRegexRequest{} + +// TemplatesGlobalGlobalTemplateRegexRequest struct for TemplatesGlobalGlobalTemplateRegexRequest +type TemplatesGlobalGlobalTemplateRegexRequest struct { + // The subject part to apply the regular expression to. + SubjectPart string `json:"SubjectPart"` + // The regular expression to apply to the subject part. + Regex NullableString `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error NullableString `json:"Error,omitempty"` + // Whether or not the regex should be evaluated case-sensitively. + CaseSensitive *bool `json:"CaseSensitive,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplateRegexRequest instantiates a new TemplatesGlobalGlobalTemplateRegexRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateRegexRequest(subjectPart string) *TemplatesGlobalGlobalTemplateRegexRequest { + this := TemplatesGlobalGlobalTemplateRegexRequest{} + this.SubjectPart = subjectPart + return &this +} + +// NewTemplatesGlobalGlobalTemplateRegexRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateRegexRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateRegexRequestWithDefaults() *TemplatesGlobalGlobalTemplateRegexRequest { + this := TemplatesGlobalGlobalTemplateRegexRequest{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetSubjectPart() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectPart, true +} + +// SetSubjectPart sets field value +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetSubjectPart(v string) { + o.SubjectPart = v +} + +// GetRegex returns the Regex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetRegex() string { + if o == nil || isNil(o.Regex.Get()) { + var ret string + return ret + } + return *o.Regex.Get() +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetRegexOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Regex.Get(), o.Regex.IsSet() +} + +// HasRegex returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasRegex() bool { + if o != nil && o.Regex.IsSet() { + return true + } + + return false +} + +// SetRegex gets a reference to the given NullableString and assigns it to the Regex field. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetRegex(v string) { + o.Regex.Set(&v) +} + +// SetRegexNil sets the value for Regex to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetRegexNil() { + o.Regex.Set(nil) +} + +// UnsetRegex ensures that no value is present for Regex, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexRequest) UnsetRegex() { + o.Regex.Unset() +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetError() string { + if o == nil || isNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexRequest) UnsetError() { + o.Error.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *TemplatesGlobalGlobalTemplateRegexRequest) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +func (o TemplatesGlobalGlobalTemplateRegexRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateRegexRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SubjectPart"] = o.SubjectPart + if o.Regex.IsSet() { + toSerialize["Regex"] = o.Regex.Get() + } + if o.Error.IsSet() { + toSerialize["Error"] = o.Error.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateRegexRequest struct { + value *TemplatesGlobalGlobalTemplateRegexRequest + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexRequest) Get() *TemplatesGlobalGlobalTemplateRegexRequest { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexRequest) Set(val *TemplatesGlobalGlobalTemplateRegexRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateRegexRequest(val *TemplatesGlobalGlobalTemplateRegexRequest) *NullableTemplatesGlobalGlobalTemplateRegexRequest { + return &NullableTemplatesGlobalGlobalTemplateRegexRequest{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_regex_response.go b/v24/api/keyfactor/v1/model_templates_global_global_template_regex_response.go new file mode 100644 index 0000000..cbd08c4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_regex_response.go @@ -0,0 +1,279 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateRegexResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateRegexResponse{} + +// TemplatesGlobalGlobalTemplateRegexResponse struct for TemplatesGlobalGlobalTemplateRegexResponse +type TemplatesGlobalGlobalTemplateRegexResponse struct { + // The subject part to apply the regular expression to. + SubjectPart NullableString `json:"SubjectPart,omitempty"` + // The regular expression to apply to the subject part. + Regex NullableString `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error NullableString `json:"Error,omitempty"` + // Whether or not the regular expression should be evaluated case-sensitively. + CaseSensitive *bool `json:"CaseSensitive,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplateRegexResponse instantiates a new TemplatesGlobalGlobalTemplateRegexResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateRegexResponse() *TemplatesGlobalGlobalTemplateRegexResponse { + this := TemplatesGlobalGlobalTemplateRegexResponse{} + return &this +} + +// NewTemplatesGlobalGlobalTemplateRegexResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateRegexResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateRegexResponseWithDefaults() *TemplatesGlobalGlobalTemplateRegexResponse { + this := TemplatesGlobalGlobalTemplateRegexResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetRegex returns the Regex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetRegex() string { + if o == nil || isNil(o.Regex.Get()) { + var ret string + return ret + } + return *o.Regex.Get() +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetRegexOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Regex.Get(), o.Regex.IsSet() +} + +// HasRegex returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasRegex() bool { + if o != nil && o.Regex.IsSet() { + return true + } + + return false +} + +// SetRegex gets a reference to the given NullableString and assigns it to the Regex field. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetRegex(v string) { + o.Regex.Set(&v) +} + +// SetRegexNil sets the value for Regex to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetRegexNil() { + o.Regex.Set(nil) +} + +// UnsetRegex ensures that no value is present for Regex, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetRegex() { + o.Regex.Unset() +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetError() string { + if o == nil || isNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *TemplatesGlobalGlobalTemplateRegexResponse) UnsetError() { + o.Error.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *TemplatesGlobalGlobalTemplateRegexResponse) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +func (o TemplatesGlobalGlobalTemplateRegexResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateRegexResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Regex.IsSet() { + toSerialize["Regex"] = o.Regex.Get() + } + if o.Error.IsSet() { + toSerialize["Error"] = o.Error.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateRegexResponse struct { + value *TemplatesGlobalGlobalTemplateRegexResponse + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexResponse) Get() *TemplatesGlobalGlobalTemplateRegexResponse { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexResponse) Set(val *TemplatesGlobalGlobalTemplateRegexResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateRegexResponse(val *TemplatesGlobalGlobalTemplateRegexResponse) *NullableTemplatesGlobalGlobalTemplateRegexResponse { + return &NullableTemplatesGlobalGlobalTemplateRegexResponse{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateRegexResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateRegexResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_settings_request.go b/v24/api/keyfactor/v1/model_templates_global_global_template_settings_request.go new file mode 100644 index 0000000..0a7b203 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_settings_request.go @@ -0,0 +1,181 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateSettingsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateSettingsRequest{} + +// TemplatesGlobalGlobalTemplateSettingsRequest struct for TemplatesGlobalGlobalTemplateSettingsRequest +type TemplatesGlobalGlobalTemplateSettingsRequest struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []TemplatesGlobalGlobalTemplateRegexRequest `json:"TemplateRegexes"` + // The default values to use during enrollment. + TemplateDefaults []TemplatesGlobalGlobalTemplateDefaultRequest `json:"TemplateDefaults"` + TemplatePolicy TemplatesGlobalGlobalTemplatePolicyRequest `json:"TemplatePolicy"` +} + +// NewTemplatesGlobalGlobalTemplateSettingsRequest instantiates a new TemplatesGlobalGlobalTemplateSettingsRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateSettingsRequest(templateRegexes []TemplatesGlobalGlobalTemplateRegexRequest, templateDefaults []TemplatesGlobalGlobalTemplateDefaultRequest, templatePolicy TemplatesGlobalGlobalTemplatePolicyRequest) *TemplatesGlobalGlobalTemplateSettingsRequest { + this := TemplatesGlobalGlobalTemplateSettingsRequest{} + this.TemplateRegexes = templateRegexes + this.TemplateDefaults = templateDefaults + this.TemplatePolicy = templatePolicy + return &this +} + +// NewTemplatesGlobalGlobalTemplateSettingsRequestWithDefaults instantiates a new TemplatesGlobalGlobalTemplateSettingsRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateSettingsRequestWithDefaults() *TemplatesGlobalGlobalTemplateSettingsRequest { + this := TemplatesGlobalGlobalTemplateSettingsRequest{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateRegexes() []TemplatesGlobalGlobalTemplateRegexRequest { + if o == nil { + var ret []TemplatesGlobalGlobalTemplateRegexRequest + return ret + } + + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateRegexesOk() ([]TemplatesGlobalGlobalTemplateRegexRequest, bool) { + if o == nil { + return nil, false + } + return o.TemplateRegexes, true +} + +// SetTemplateRegexes sets field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplateRegexes(v []TemplatesGlobalGlobalTemplateRegexRequest) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateDefaults() []TemplatesGlobalGlobalTemplateDefaultRequest { + if o == nil { + var ret []TemplatesGlobalGlobalTemplateDefaultRequest + return ret + } + + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplateDefaultsOk() ([]TemplatesGlobalGlobalTemplateDefaultRequest, bool) { + if o == nil { + return nil, false + } + return o.TemplateDefaults, true +} + +// SetTemplateDefaults sets field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplateDefaults(v []TemplatesGlobalGlobalTemplateDefaultRequest) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplatePolicy() TemplatesGlobalGlobalTemplatePolicyRequest { + if o == nil { + var ret TemplatesGlobalGlobalTemplatePolicyRequest + return ret + } + + return o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) GetTemplatePolicyOk() (*TemplatesGlobalGlobalTemplatePolicyRequest, bool) { + if o == nil { + return nil, false + } + return &o.TemplatePolicy, true +} + +// SetTemplatePolicy sets field value +func (o *TemplatesGlobalGlobalTemplateSettingsRequest) SetTemplatePolicy(v TemplatesGlobalGlobalTemplatePolicyRequest) { + o.TemplatePolicy = v +} + +func (o TemplatesGlobalGlobalTemplateSettingsRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateSettingsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["TemplateRegexes"] = o.TemplateRegexes + toSerialize["TemplateDefaults"] = o.TemplateDefaults + toSerialize["TemplatePolicy"] = o.TemplatePolicy + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateSettingsRequest struct { + value *TemplatesGlobalGlobalTemplateSettingsRequest + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsRequest) Get() *TemplatesGlobalGlobalTemplateSettingsRequest { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsRequest) Set(val *TemplatesGlobalGlobalTemplateSettingsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateSettingsRequest(val *TemplatesGlobalGlobalTemplateSettingsRequest) *NullableTemplatesGlobalGlobalTemplateSettingsRequest { + return &NullableTemplatesGlobalGlobalTemplateSettingsRequest{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_global_global_template_settings_response.go b/v24/api/keyfactor/v1/model_templates_global_global_template_settings_response.go new file mode 100644 index 0000000..8e9fa9d --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_global_global_template_settings_response.go @@ -0,0 +1,210 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesGlobalGlobalTemplateSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesGlobalGlobalTemplateSettingsResponse{} + +// TemplatesGlobalGlobalTemplateSettingsResponse struct for TemplatesGlobalGlobalTemplateSettingsResponse +type TemplatesGlobalGlobalTemplateSettingsResponse struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []TemplatesGlobalGlobalTemplateRegexResponse `json:"TemplateRegexes,omitempty"` + // The default values to use during enrollment. + TemplateDefaults []TemplatesGlobalGlobalTemplateDefaultResponse `json:"TemplateDefaults,omitempty"` + TemplatePolicy *TemplatesGlobalGlobalTemplatePolicyResponse `json:"TemplatePolicy,omitempty"` +} + +// NewTemplatesGlobalGlobalTemplateSettingsResponse instantiates a new TemplatesGlobalGlobalTemplateSettingsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesGlobalGlobalTemplateSettingsResponse() *TemplatesGlobalGlobalTemplateSettingsResponse { + this := TemplatesGlobalGlobalTemplateSettingsResponse{} + return &this +} + +// NewTemplatesGlobalGlobalTemplateSettingsResponseWithDefaults instantiates a new TemplatesGlobalGlobalTemplateSettingsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesGlobalGlobalTemplateSettingsResponseWithDefaults() *TemplatesGlobalGlobalTemplateSettingsResponse { + this := TemplatesGlobalGlobalTemplateSettingsResponse{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateRegexes() []TemplatesGlobalGlobalTemplateRegexResponse { + if o == nil { + var ret []TemplatesGlobalGlobalTemplateRegexResponse + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateRegexesOk() ([]TemplatesGlobalGlobalTemplateRegexResponse, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplateRegexes() bool { + if o != nil && isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []TemplatesGlobalGlobalTemplateRegexResponse and assigns it to the TemplateRegexes field. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateRegexes(v []TemplatesGlobalGlobalTemplateRegexResponse) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateDefaults() []TemplatesGlobalGlobalTemplateDefaultResponse { + if o == nil { + var ret []TemplatesGlobalGlobalTemplateDefaultResponse + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplateDefaultsOk() ([]TemplatesGlobalGlobalTemplateDefaultResponse, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplateDefaults() bool { + if o != nil && isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []TemplatesGlobalGlobalTemplateDefaultResponse and assigns it to the TemplateDefaults field. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplateDefaults(v []TemplatesGlobalGlobalTemplateDefaultResponse) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplatePolicy() TemplatesGlobalGlobalTemplatePolicyResponse { + if o == nil || isNil(o.TemplatePolicy) { + var ret TemplatesGlobalGlobalTemplatePolicyResponse + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) GetTemplatePolicyOk() (*TemplatesGlobalGlobalTemplatePolicyResponse, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given TemplatesGlobalGlobalTemplatePolicyResponse and assigns it to the TemplatePolicy field. +func (o *TemplatesGlobalGlobalTemplateSettingsResponse) SetTemplatePolicy(v TemplatesGlobalGlobalTemplatePolicyResponse) { + o.TemplatePolicy = &v +} + +func (o TemplatesGlobalGlobalTemplateSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesGlobalGlobalTemplateSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TemplateRegexes != nil { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if o.TemplateDefaults != nil { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + return toSerialize, nil +} + +type NullableTemplatesGlobalGlobalTemplateSettingsResponse struct { + value *TemplatesGlobalGlobalTemplateSettingsResponse + isSet bool +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsResponse) Get() *TemplatesGlobalGlobalTemplateSettingsResponse { + return v.value +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsResponse) Set(val *TemplatesGlobalGlobalTemplateSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesGlobalGlobalTemplateSettingsResponse(val *TemplatesGlobalGlobalTemplateSettingsResponse) *NullableTemplatesGlobalGlobalTemplateSettingsResponse { + return &NullableTemplatesGlobalGlobalTemplateSettingsResponse{value: val, isSet: true} +} + +func (v NullableTemplatesGlobalGlobalTemplateSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesGlobalGlobalTemplateSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_key_algorithms_response_model.go b/v24/api/keyfactor/v1/model_templates_key_algorithms_response_model.go new file mode 100644 index 0000000..cce2d71 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_key_algorithms_response_model.go @@ -0,0 +1,170 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesKeyAlgorithmsResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesKeyAlgorithmsResponseModel{} + +// TemplatesKeyAlgorithmsResponseModel struct for TemplatesKeyAlgorithmsResponseModel +type TemplatesKeyAlgorithmsResponseModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` +} + +// NewTemplatesKeyAlgorithmsResponseModel instantiates a new TemplatesKeyAlgorithmsResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesKeyAlgorithmsResponseModel() *TemplatesKeyAlgorithmsResponseModel { + this := TemplatesKeyAlgorithmsResponseModel{} + return &this +} + +// NewTemplatesKeyAlgorithmsResponseModelWithDefaults instantiates a new TemplatesKeyAlgorithmsResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesKeyAlgorithmsResponseModelWithDefaults() *TemplatesKeyAlgorithmsResponseModel { + this := TemplatesKeyAlgorithmsResponseModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TemplatesKeyAlgorithmsResponseModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesKeyAlgorithmsResponseModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TemplatesKeyAlgorithmsResponseModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *TemplatesKeyAlgorithmsResponseModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *TemplatesKeyAlgorithmsResponseModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesKeyAlgorithmsResponseModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *TemplatesKeyAlgorithmsResponseModel) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *TemplatesKeyAlgorithmsResponseModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +func (o TemplatesKeyAlgorithmsResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesKeyAlgorithmsResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + return toSerialize, nil +} + +type NullableTemplatesKeyAlgorithmsResponseModel struct { + value *TemplatesKeyAlgorithmsResponseModel + isSet bool +} + +func (v NullableTemplatesKeyAlgorithmsResponseModel) Get() *TemplatesKeyAlgorithmsResponseModel { + return v.value +} + +func (v *NullableTemplatesKeyAlgorithmsResponseModel) Set(val *TemplatesKeyAlgorithmsResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesKeyAlgorithmsResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesKeyAlgorithmsResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesKeyAlgorithmsResponseModel(val *TemplatesKeyAlgorithmsResponseModel) *NullableTemplatesKeyAlgorithmsResponseModel { + return &NullableTemplatesKeyAlgorithmsResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesKeyAlgorithmsResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesKeyAlgorithmsResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_collection_retrieval_response.go b/v24/api/keyfactor/v1/model_templates_template_collection_retrieval_response.go new file mode 100644 index 0000000..cc5543f --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_collection_retrieval_response.go @@ -0,0 +1,1051 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateCollectionRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateCollectionRetrievalResponse{} + +// TemplatesTemplateCollectionRetrievalResponse struct for TemplatesTemplateCollectionRetrievalResponse +type TemplatesTemplateCollectionRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + CommonName NullableString `json:"CommonName,omitempty"` + TemplateName NullableString `json:"TemplateName,omitempty"` + Oid NullableString `json:"Oid,omitempty"` + KeySize NullableString `json:"KeySize,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` + FriendlyName NullableString `json:"FriendlyName,omitempty"` + KeyRetention *CSSCMSCoreEnumsKeyRetentionPolicy `json:"KeyRetention,omitempty"` + KeyRetentionDays NullableInt32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []TemplatesTemplateEnrollmentFieldRequestResponseModel `json:"EnrollmentFields,omitempty"` + AllowedEnrollmentTypes *CSSCMSCoreEnumsEnrollmentType `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []TemplatesTemplateRegexRequestResponseModel `json:"TemplateRegexes,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + ExtendedKeyUsages []TemplatesExtendedKeyUsageResponseModel `json:"ExtendedKeyUsages,omitempty"` + AllowOneClickRenewals *bool `json:"AllowOneClickRenewals,omitempty"` + KeyTypes NullableString `json:"KeyTypes,omitempty"` +} + +// NewTemplatesTemplateCollectionRetrievalResponse instantiates a new TemplatesTemplateCollectionRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateCollectionRetrievalResponse() *TemplatesTemplateCollectionRetrievalResponse { + this := TemplatesTemplateCollectionRetrievalResponse{} + return &this +} + +// NewTemplatesTemplateCollectionRetrievalResponseWithDefaults instantiates a new TemplatesTemplateCollectionRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateCollectionRetrievalResponseWithDefaults() *TemplatesTemplateCollectionRetrievalResponse { + this := TemplatesTemplateCollectionRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName.Get()) { + var ret string + return ret + } + return *o.CommonName.Get() +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommonName.Get(), o.CommonName.IsSet() +} + +// HasCommonName returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasCommonName() bool { + if o != nil && o.CommonName.IsSet() { + return true + } + + return false +} + +// SetCommonName gets a reference to the given NullableString and assigns it to the CommonName field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetCommonName(v string) { + o.CommonName.Set(&v) +} + +// SetCommonNameNil sets the value for CommonName to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetCommonNameNil() { + o.CommonName.Set(nil) +} + +// UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetCommonName() { + o.CommonName.Unset() +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName.Get()) { + var ret string + return ret + } + return *o.TemplateName.Get() +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TemplateName.Get(), o.TemplateName.IsSet() +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasTemplateName() bool { + if o != nil && o.TemplateName.IsSet() { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given NullableString and assigns it to the TemplateName field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateName(v string) { + o.TemplateName.Set(&v) +} + +// SetTemplateNameNil sets the value for TemplateName to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateNameNil() { + o.TemplateName.Set(nil) +} + +// UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetTemplateName() { + o.TemplateName.Unset() +} + +// GetOid returns the Oid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetOid() string { + if o == nil || isNil(o.Oid.Get()) { + var ret string + return ret + } + return *o.Oid.Get() +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetOidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oid.Get(), o.Oid.IsSet() +} + +// HasOid returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasOid() bool { + if o != nil && o.Oid.IsSet() { + return true + } + + return false +} + +// SetOid gets a reference to the given NullableString and assigns it to the Oid field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetOid(v string) { + o.Oid.Set(&v) +} + +// SetOidNil sets the value for Oid to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetOidNil() { + o.Oid.Set(nil) +} + +// UnsetOid ensures that no value is present for Oid, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetOid() { + o.Oid.Unset() +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeySize() string { + if o == nil || isNil(o.KeySize.Get()) { + var ret string + return ret + } + return *o.KeySize.Get() +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeySizeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeySize.Get(), o.KeySize.IsSet() +} + +// HasKeySize returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeySize() bool { + if o != nil && o.KeySize.IsSet() { + return true + } + + return false +} + +// SetKeySize gets a reference to the given NullableString and assigns it to the KeySize field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeySize(v string) { + o.KeySize.Set(&v) +} + +// SetKeySizeNil sets the value for KeySize to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeySizeNil() { + o.KeySize.Set(nil) +} + +// UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeySize() { + o.KeySize.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName.Get()) { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy { + if o == nil || isNil(o.KeyRetention) { + var ret CSSCMSCoreEnumsKeyRetentionPolicy + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given CSSCMSCoreEnumsKeyRetentionPolicy and assigns it to the KeyRetention field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays.Get()) { + var ret int32 + return ret + } + return *o.KeyRetentionDays.Get() +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyRetentionDays.Get(), o.KeyRetentionDays.IsSet() +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyRetentionDays() bool { + if o != nil && o.KeyRetentionDays.IsSet() { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given NullableInt32 and assigns it to the KeyRetentionDays field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays.Set(&v) +} + +// SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyRetentionDaysNil() { + o.KeyRetentionDays.Set(nil) +} + +// UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyRetentionDays() { + o.KeyRetentionDays.Unset() +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateEnrollmentFieldRequestResponseModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetEnrollmentFieldsOk() ([]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasEnrollmentFields() bool { + if o != nil && isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []TemplatesTemplateEnrollmentFieldRequestResponseModel and assigns it to the EnrollmentFields field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel) { + o.EnrollmentFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret CSSCMSCoreEnumsEnrollmentType + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given CSSCMSCoreEnumsEnrollmentType and assigns it to the AllowedEnrollmentTypes field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateRegexRequestResponseModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetTemplateRegexesOk() ([]TemplatesTemplateRegexRequestResponseModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasTemplateRegexes() bool { + if o != nil && isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []TemplatesTemplateRegexRequestResponseModel and assigns it to the TemplateRegexes field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel) { + o.TemplateRegexes = v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedRequesters() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowedRequesters() bool { + if o != nil && isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetExtendedKeyUsages() []TemplatesExtendedKeyUsageResponseModel { + if o == nil { + var ret []TemplatesExtendedKeyUsageResponseModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetExtendedKeyUsagesOk() ([]TemplatesExtendedKeyUsageResponseModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []TemplatesExtendedKeyUsageResponseModel and assigns it to the ExtendedKeyUsages field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetExtendedKeyUsages(v []TemplatesExtendedKeyUsageResponseModel) { + o.ExtendedKeyUsages = v +} + +// GetAllowOneClickRenewals returns the AllowOneClickRenewals field value if set, zero value otherwise. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowOneClickRenewals() bool { + if o == nil || isNil(o.AllowOneClickRenewals) { + var ret bool + return ret + } + return *o.AllowOneClickRenewals +} + +// GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) GetAllowOneClickRenewalsOk() (*bool, bool) { + if o == nil || isNil(o.AllowOneClickRenewals) { + return nil, false + } + return o.AllowOneClickRenewals, true +} + +// HasAllowOneClickRenewals returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasAllowOneClickRenewals() bool { + if o != nil && !isNil(o.AllowOneClickRenewals) { + return true + } + + return false +} + +// SetAllowOneClickRenewals gets a reference to the given bool and assigns it to the AllowOneClickRenewals field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetAllowOneClickRenewals(v bool) { + o.AllowOneClickRenewals = &v +} + +// GetKeyTypes returns the KeyTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypes() string { + if o == nil || isNil(o.KeyTypes.Get()) { + var ret string + return ret + } + return *o.KeyTypes.Get() +} + +// GetKeyTypesOk returns a tuple with the KeyTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateCollectionRetrievalResponse) GetKeyTypesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyTypes.Get(), o.KeyTypes.IsSet() +} + +// HasKeyTypes returns a boolean if a field has been set. +func (o *TemplatesTemplateCollectionRetrievalResponse) HasKeyTypes() bool { + if o != nil && o.KeyTypes.IsSet() { + return true + } + + return false +} + +// SetKeyTypes gets a reference to the given NullableString and assigns it to the KeyTypes field. +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypes(v string) { + o.KeyTypes.Set(&v) +} + +// SetKeyTypesNil sets the value for KeyTypes to be an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) SetKeyTypesNil() { + o.KeyTypes.Set(nil) +} + +// UnsetKeyTypes ensures that no value is present for KeyTypes, not even an explicit nil +func (o *TemplatesTemplateCollectionRetrievalResponse) UnsetKeyTypes() { + o.KeyTypes.Unset() +} + +func (o TemplatesTemplateCollectionRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateCollectionRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.CommonName.IsSet() { + toSerialize["CommonName"] = o.CommonName.Get() + } + if o.TemplateName.IsSet() { + toSerialize["TemplateName"] = o.TemplateName.Get() + } + if o.Oid.IsSet() { + toSerialize["Oid"] = o.Oid.Get() + } + if o.KeySize.IsSet() { + toSerialize["KeySize"] = o.KeySize.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + if o.FriendlyName.IsSet() { + toSerialize["FriendlyName"] = o.FriendlyName.Get() + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if o.KeyRetentionDays.IsSet() { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays.Get() + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if o.EnrollmentFields != nil { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if o.TemplateRegexes != nil { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if o.AllowedRequesters != nil { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if o.ExtendedKeyUsages != nil { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if !isNil(o.AllowOneClickRenewals) { + toSerialize["AllowOneClickRenewals"] = o.AllowOneClickRenewals + } + if o.KeyTypes.IsSet() { + toSerialize["KeyTypes"] = o.KeyTypes.Get() + } + return toSerialize, nil +} + +type NullableTemplatesTemplateCollectionRetrievalResponse struct { + value *TemplatesTemplateCollectionRetrievalResponse + isSet bool +} + +func (v NullableTemplatesTemplateCollectionRetrievalResponse) Get() *TemplatesTemplateCollectionRetrievalResponse { + return v.value +} + +func (v *NullableTemplatesTemplateCollectionRetrievalResponse) Set(val *TemplatesTemplateCollectionRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateCollectionRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateCollectionRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateCollectionRetrievalResponse(val *TemplatesTemplateCollectionRetrievalResponse) *NullableTemplatesTemplateCollectionRetrievalResponse { + return &NullableTemplatesTemplateCollectionRetrievalResponse{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateCollectionRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateCollectionRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_default_request_response_model.go b/v24/api/keyfactor/v1/model_templates_template_default_request_response_model.go new file mode 100644 index 0000000..a37722b --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_default_request_response_model.go @@ -0,0 +1,192 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateDefaultRequestResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateDefaultRequestResponseModel{} + +// TemplatesTemplateDefaultRequestResponseModel struct for TemplatesTemplateDefaultRequestResponseModel +type TemplatesTemplateDefaultRequestResponseModel struct { + SubjectPart NullableString `json:"SubjectPart,omitempty"` + Value NullableString `json:"Value,omitempty"` +} + +// NewTemplatesTemplateDefaultRequestResponseModel instantiates a new TemplatesTemplateDefaultRequestResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateDefaultRequestResponseModel() *TemplatesTemplateDefaultRequestResponseModel { + this := TemplatesTemplateDefaultRequestResponseModel{} + return &this +} + +// NewTemplatesTemplateDefaultRequestResponseModelWithDefaults instantiates a new TemplatesTemplateDefaultRequestResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateDefaultRequestResponseModelWithDefaults() *TemplatesTemplateDefaultRequestResponseModel { + this := TemplatesTemplateDefaultRequestResponseModel{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateDefaultRequestResponseModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateDefaultRequestResponseModel) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesTemplateDefaultRequestResponseModel) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesTemplateDefaultRequestResponseModel) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesTemplateDefaultRequestResponseModel) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesTemplateDefaultRequestResponseModel) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateDefaultRequestResponseModel) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateDefaultRequestResponseModel) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *TemplatesTemplateDefaultRequestResponseModel) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *TemplatesTemplateDefaultRequestResponseModel) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *TemplatesTemplateDefaultRequestResponseModel) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *TemplatesTemplateDefaultRequestResponseModel) UnsetValue() { + o.Value.Unset() +} + +func (o TemplatesTemplateDefaultRequestResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateDefaultRequestResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableTemplatesTemplateDefaultRequestResponseModel struct { + value *TemplatesTemplateDefaultRequestResponseModel + isSet bool +} + +func (v NullableTemplatesTemplateDefaultRequestResponseModel) Get() *TemplatesTemplateDefaultRequestResponseModel { + return v.value +} + +func (v *NullableTemplatesTemplateDefaultRequestResponseModel) Set(val *TemplatesTemplateDefaultRequestResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateDefaultRequestResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateDefaultRequestResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateDefaultRequestResponseModel(val *TemplatesTemplateDefaultRequestResponseModel) *NullableTemplatesTemplateDefaultRequestResponseModel { + return &NullableTemplatesTemplateDefaultRequestResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateDefaultRequestResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateDefaultRequestResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_enrollment_field_request_response_model.go b/v24/api/keyfactor/v1/model_templates_template_enrollment_field_request_response_model.go new file mode 100644 index 0000000..c009470 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_enrollment_field_request_response_model.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateEnrollmentFieldRequestResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateEnrollmentFieldRequestResponseModel{} + +// TemplatesTemplateEnrollmentFieldRequestResponseModel struct for TemplatesTemplateEnrollmentFieldRequestResponseModel +type TemplatesTemplateEnrollmentFieldRequestResponseModel struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *CSSCMSCoreEnumsTemplateEnrollmentFieldType `json:"DataType,omitempty"` +} + +// NewTemplatesTemplateEnrollmentFieldRequestResponseModel instantiates a new TemplatesTemplateEnrollmentFieldRequestResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateEnrollmentFieldRequestResponseModel() *TemplatesTemplateEnrollmentFieldRequestResponseModel { + this := TemplatesTemplateEnrollmentFieldRequestResponseModel{} + return &this +} + +// NewTemplatesTemplateEnrollmentFieldRequestResponseModelWithDefaults instantiates a new TemplatesTemplateEnrollmentFieldRequestResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateEnrollmentFieldRequestResponseModelWithDefaults() *TemplatesTemplateEnrollmentFieldRequestResponseModel { + this := TemplatesTemplateEnrollmentFieldRequestResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) UnsetName() { + o.Name.Unset() +} + +// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetOptions() []string { + if o == nil { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasOptions() bool { + if o != nil && isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetDataType() CSSCMSCoreEnumsTemplateEnrollmentFieldType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSCoreEnumsTemplateEnrollmentFieldType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) GetDataTypeOk() (*CSSCMSCoreEnumsTemplateEnrollmentFieldType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSCoreEnumsTemplateEnrollmentFieldType and assigns it to the DataType field. +func (o *TemplatesTemplateEnrollmentFieldRequestResponseModel) SetDataType(v CSSCMSCoreEnumsTemplateEnrollmentFieldType) { + o.DataType = &v +} + +func (o TemplatesTemplateEnrollmentFieldRequestResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateEnrollmentFieldRequestResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Options != nil { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + return toSerialize, nil +} + +type NullableTemplatesTemplateEnrollmentFieldRequestResponseModel struct { + value *TemplatesTemplateEnrollmentFieldRequestResponseModel + isSet bool +} + +func (v NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) Get() *TemplatesTemplateEnrollmentFieldRequestResponseModel { + return v.value +} + +func (v *NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) Set(val *TemplatesTemplateEnrollmentFieldRequestResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateEnrollmentFieldRequestResponseModel(val *TemplatesTemplateEnrollmentFieldRequestResponseModel) *NullableTemplatesTemplateEnrollmentFieldRequestResponseModel { + return &NullableTemplatesTemplateEnrollmentFieldRequestResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateEnrollmentFieldRequestResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_metadata_field_request_response_model.go b/v24/api/keyfactor/v1/model_templates_template_metadata_field_request_response_model.go new file mode 100644 index 0000000..b9ddd26 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_metadata_field_request_response_model.go @@ -0,0 +1,419 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateMetadataFieldRequestResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateMetadataFieldRequestResponseModel{} + +// TemplatesTemplateMetadataFieldRequestResponseModel struct for TemplatesTemplateMetadataFieldRequestResponseModel +type TemplatesTemplateMetadataFieldRequestResponseModel struct { + Id *int32 `json:"Id,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + MetadataId *int32 `json:"MetadataId,omitempty"` + Validation NullableString `json:"Validation,omitempty"` + Enrollment *CSSCMSCoreEnumsMetadataTypeEnrollment `json:"Enrollment,omitempty"` + Message NullableString `json:"Message,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` + TemplateId *int32 `json:"TemplateId,omitempty"` +} + +// NewTemplatesTemplateMetadataFieldRequestResponseModel instantiates a new TemplatesTemplateMetadataFieldRequestResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateMetadataFieldRequestResponseModel() *TemplatesTemplateMetadataFieldRequestResponseModel { + this := TemplatesTemplateMetadataFieldRequestResponseModel{} + return &this +} + +// NewTemplatesTemplateMetadataFieldRequestResponseModelWithDefaults instantiates a new TemplatesTemplateMetadataFieldRequestResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateMetadataFieldRequestResponseModelWithDefaults() *TemplatesTemplateMetadataFieldRequestResponseModel { + this := TemplatesTemplateMetadataFieldRequestResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetId(v int32) { + o.Id = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetMetadataId returns the MetadataId field value if set, zero value otherwise. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMetadataId() int32 { + if o == nil || isNil(o.MetadataId) { + var ret int32 + return ret + } + return *o.MetadataId +} + +// GetMetadataIdOk returns a tuple with the MetadataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMetadataIdOk() (*int32, bool) { + if o == nil || isNil(o.MetadataId) { + return nil, false + } + return o.MetadataId, true +} + +// HasMetadataId returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasMetadataId() bool { + if o != nil && !isNil(o.MetadataId) { + return true + } + + return false +} + +// SetMetadataId gets a reference to the given int32 and assigns it to the MetadataId field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMetadataId(v int32) { + o.MetadataId = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetValidation() string { + if o == nil || isNil(o.Validation.Get()) { + var ret string + return ret + } + return *o.Validation.Get() +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetValidationOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Validation.Get(), o.Validation.IsSet() +} + +// HasValidation returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasValidation() bool { + if o != nil && o.Validation.IsSet() { + return true + } + + return false +} + +// SetValidation gets a reference to the given NullableString and assigns it to the Validation field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetValidation(v string) { + o.Validation.Set(&v) +} + +// SetValidationNil sets the value for Validation to be an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetValidationNil() { + o.Validation.Set(nil) +} + +// UnsetValidation ensures that no value is present for Validation, not even an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetValidation() { + o.Validation.Unset() +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetEnrollment() CSSCMSCoreEnumsMetadataTypeEnrollment { + if o == nil || isNil(o.Enrollment) { + var ret CSSCMSCoreEnumsMetadataTypeEnrollment + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetEnrollmentOk() (*CSSCMSCoreEnumsMetadataTypeEnrollment, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given CSSCMSCoreEnumsMetadataTypeEnrollment and assigns it to the Enrollment field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetEnrollment(v CSSCMSCoreEnumsMetadataTypeEnrollment) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMessage() string { + if o == nil || isNil(o.Message.Get()) { + var ret string + return ret + } + return *o.Message.Get() +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Message.Get(), o.Message.IsSet() +} + +// HasMessage returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasMessage() bool { + if o != nil && o.Message.IsSet() { + return true + } + + return false +} + +// SetMessage gets a reference to the given NullableString and assigns it to the Message field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMessage(v string) { + o.Message.Set(&v) +} + +// SetMessageNil sets the value for Message to be an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetMessageNil() { + o.Message.Set(nil) +} + +// UnsetMessage ensures that no value is present for Message, not even an explicit nil +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) UnsetMessage() { + o.Message.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *TemplatesTemplateMetadataFieldRequestResponseModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +func (o TemplatesTemplateMetadataFieldRequestResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateMetadataFieldRequestResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.MetadataId) { + toSerialize["MetadataId"] = o.MetadataId + } + if o.Validation.IsSet() { + toSerialize["Validation"] = o.Validation.Get() + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if o.Message.IsSet() { + toSerialize["Message"] = o.Message.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + return toSerialize, nil +} + +type NullableTemplatesTemplateMetadataFieldRequestResponseModel struct { + value *TemplatesTemplateMetadataFieldRequestResponseModel + isSet bool +} + +func (v NullableTemplatesTemplateMetadataFieldRequestResponseModel) Get() *TemplatesTemplateMetadataFieldRequestResponseModel { + return v.value +} + +func (v *NullableTemplatesTemplateMetadataFieldRequestResponseModel) Set(val *TemplatesTemplateMetadataFieldRequestResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateMetadataFieldRequestResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateMetadataFieldRequestResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateMetadataFieldRequestResponseModel(val *TemplatesTemplateMetadataFieldRequestResponseModel) *NullableTemplatesTemplateMetadataFieldRequestResponseModel { + return &NullableTemplatesTemplateMetadataFieldRequestResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateMetadataFieldRequestResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateMetadataFieldRequestResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_policy_request_model.go b/v24/api/keyfactor/v1/model_templates_template_policy_request_model.go new file mode 100644 index 0000000..2f0a140 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_policy_request_model.go @@ -0,0 +1,441 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplatePolicyRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplatePolicyRequestModel{} + +// TemplatesTemplatePolicyRequestModel struct for TemplatesTemplatePolicyRequestModel +type TemplatesTemplatePolicyRequestModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + AllowKeyReuse NullableBool `json:"AllowKeyReuse,omitempty"` + AllowWildcards NullableBool `json:"AllowWildcards,omitempty"` + RFCEnforcement NullableBool `json:"RFCEnforcement,omitempty"` + CertificateOwnerRole *CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole,omitempty"` + DefaultCertificateOwnerRoleId NullableInt32 `json:"DefaultCertificateOwnerRoleId,omitempty"` + DefaultCertificateOwnerRoleName NullableString `json:"DefaultCertificateOwnerRoleName,omitempty"` + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` +} + +// NewTemplatesTemplatePolicyRequestModel instantiates a new TemplatesTemplatePolicyRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplatePolicyRequestModel() *TemplatesTemplatePolicyRequestModel { + this := TemplatesTemplatePolicyRequestModel{} + return &this +} + +// NewTemplatesTemplatePolicyRequestModelWithDefaults instantiates a new TemplatesTemplatePolicyRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplatePolicyRequestModelWithDefaults() *TemplatesTemplatePolicyRequestModel { + this := TemplatesTemplatePolicyRequestModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyRequestModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyRequestModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *TemplatesTemplatePolicyRequestModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyRequestModel) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse.Get()) { + var ret bool + return ret + } + return *o.AllowKeyReuse.Get() +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyRequestModel) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.AllowKeyReuse.Get(), o.AllowKeyReuse.IsSet() +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasAllowKeyReuse() bool { + if o != nil && o.AllowKeyReuse.IsSet() { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given NullableBool and assigns it to the AllowKeyReuse field. +func (o *TemplatesTemplatePolicyRequestModel) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse.Set(&v) +} + +// SetAllowKeyReuseNil sets the value for AllowKeyReuse to be an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) SetAllowKeyReuseNil() { + o.AllowKeyReuse.Set(nil) +} + +// UnsetAllowKeyReuse ensures that no value is present for AllowKeyReuse, not even an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) UnsetAllowKeyReuse() { + o.AllowKeyReuse.Unset() +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyRequestModel) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards.Get()) { + var ret bool + return ret + } + return *o.AllowWildcards.Get() +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyRequestModel) GetAllowWildcardsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.AllowWildcards.Get(), o.AllowWildcards.IsSet() +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasAllowWildcards() bool { + if o != nil && o.AllowWildcards.IsSet() { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given NullableBool and assigns it to the AllowWildcards field. +func (o *TemplatesTemplatePolicyRequestModel) SetAllowWildcards(v bool) { + o.AllowWildcards.Set(&v) +} + +// SetAllowWildcardsNil sets the value for AllowWildcards to be an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) SetAllowWildcardsNil() { + o.AllowWildcards.Set(nil) +} + +// UnsetAllowWildcards ensures that no value is present for AllowWildcards, not even an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) UnsetAllowWildcards() { + o.AllowWildcards.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyRequestModel) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement.Get()) { + var ret bool + return ret + } + return *o.RFCEnforcement.Get() +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyRequestModel) GetRFCEnforcementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.RFCEnforcement.Get(), o.RFCEnforcement.IsSet() +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasRFCEnforcement() bool { + if o != nil && o.RFCEnforcement.IsSet() { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given NullableBool and assigns it to the RFCEnforcement field. +func (o *TemplatesTemplatePolicyRequestModel) SetRFCEnforcement(v bool) { + o.RFCEnforcement.Set(&v) +} + +// SetRFCEnforcementNil sets the value for RFCEnforcement to be an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) SetRFCEnforcementNil() { + o.RFCEnforcement.Set(nil) +} + +// UnsetRFCEnforcement ensures that no value is present for RFCEnforcement, not even an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) UnsetRFCEnforcement() { + o.RFCEnforcement.Unset() +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyRequestModel) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil || isNil(o.CertificateOwnerRole) { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + return *o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyRequestModel) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil || isNil(o.CertificateOwnerRole) { + return nil, false + } + return o.CertificateOwnerRole, true +} + +// HasCertificateOwnerRole returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasCertificateOwnerRole() bool { + if o != nil && !isNil(o.CertificateOwnerRole) { + return true + } + + return false +} + +// SetCertificateOwnerRole gets a reference to the given CSSCMSCoreEnumsTemplateCertificateOwnerRole and assigns it to the CertificateOwnerRole field. +func (o *TemplatesTemplatePolicyRequestModel) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = &v +} + +// GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleId() int32 { + if o == nil || isNil(o.DefaultCertificateOwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.DefaultCertificateOwnerRoleId.Get() +} + +// GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleId.Get(), o.DefaultCertificateOwnerRoleId.IsSet() +} + +// HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasDefaultCertificateOwnerRoleId() bool { + if o != nil && o.DefaultCertificateOwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the DefaultCertificateOwnerRoleId field. +func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleId(v int32) { + o.DefaultCertificateOwnerRoleId.Set(&v) +} + +// SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleIdNil() { + o.DefaultCertificateOwnerRoleId.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) UnsetDefaultCertificateOwnerRoleId() { + o.DefaultCertificateOwnerRoleId.Unset() +} + +// GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleName() string { + if o == nil || isNil(o.DefaultCertificateOwnerRoleName.Get()) { + var ret string + return ret + } + return *o.DefaultCertificateOwnerRoleName.Get() +} + +// GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyRequestModel) GetDefaultCertificateOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleName.Get(), o.DefaultCertificateOwnerRoleName.IsSet() +} + +// HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasDefaultCertificateOwnerRoleName() bool { + if o != nil && o.DefaultCertificateOwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleName gets a reference to the given NullableString and assigns it to the DefaultCertificateOwnerRoleName field. +func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleName(v string) { + o.DefaultCertificateOwnerRoleName.Set(&v) +} + +// SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) SetDefaultCertificateOwnerRoleNameNil() { + o.DefaultCertificateOwnerRoleName.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +func (o *TemplatesTemplatePolicyRequestModel) UnsetDefaultCertificateOwnerRoleName() { + o.DefaultCertificateOwnerRoleName.Unset() +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyRequestModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyRequestModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyRequestModel) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *TemplatesTemplatePolicyRequestModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +func (o TemplatesTemplatePolicyRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplatePolicyRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if o.AllowKeyReuse.IsSet() { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse.Get() + } + if o.AllowWildcards.IsSet() { + toSerialize["AllowWildcards"] = o.AllowWildcards.Get() + } + if o.RFCEnforcement.IsSet() { + toSerialize["RFCEnforcement"] = o.RFCEnforcement.Get() + } + if !isNil(o.CertificateOwnerRole) { + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + } + if o.DefaultCertificateOwnerRoleId.IsSet() { + toSerialize["DefaultCertificateOwnerRoleId"] = o.DefaultCertificateOwnerRoleId.Get() + } + if o.DefaultCertificateOwnerRoleName.IsSet() { + toSerialize["DefaultCertificateOwnerRoleName"] = o.DefaultCertificateOwnerRoleName.Get() + } + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + return toSerialize, nil +} + +type NullableTemplatesTemplatePolicyRequestModel struct { + value *TemplatesTemplatePolicyRequestModel + isSet bool +} + +func (v NullableTemplatesTemplatePolicyRequestModel) Get() *TemplatesTemplatePolicyRequestModel { + return v.value +} + +func (v *NullableTemplatesTemplatePolicyRequestModel) Set(val *TemplatesTemplatePolicyRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplatePolicyRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplatePolicyRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplatePolicyRequestModel(val *TemplatesTemplatePolicyRequestModel) *NullableTemplatesTemplatePolicyRequestModel { + return &NullableTemplatesTemplatePolicyRequestModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplatePolicyRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplatePolicyRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_policy_response_model.go b/v24/api/keyfactor/v1/model_templates_template_policy_response_model.go new file mode 100644 index 0000000..c2bb062 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_policy_response_model.go @@ -0,0 +1,441 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplatePolicyResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplatePolicyResponseModel{} + +// TemplatesTemplatePolicyResponseModel struct for TemplatesTemplatePolicyResponseModel +type TemplatesTemplatePolicyResponseModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + AllowKeyReuse NullableBool `json:"AllowKeyReuse,omitempty"` + AllowWildcards NullableBool `json:"AllowWildcards,omitempty"` + RFCEnforcement NullableBool `json:"RFCEnforcement,omitempty"` + CertificateOwnerRole *CSSCMSCoreEnumsTemplateCertificateOwnerRole `json:"CertificateOwnerRole,omitempty"` + DefaultCertificateOwnerRoleId NullableInt32 `json:"DefaultCertificateOwnerRoleId,omitempty"` + DefaultCertificateOwnerRoleName NullableString `json:"DefaultCertificateOwnerRoleName,omitempty"` + KeyInfo *CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo `json:"KeyInfo,omitempty"` +} + +// NewTemplatesTemplatePolicyResponseModel instantiates a new TemplatesTemplatePolicyResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplatePolicyResponseModel() *TemplatesTemplatePolicyResponseModel { + this := TemplatesTemplatePolicyResponseModel{} + return &this +} + +// NewTemplatesTemplatePolicyResponseModelWithDefaults instantiates a new TemplatesTemplatePolicyResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplatePolicyResponseModelWithDefaults() *TemplatesTemplatePolicyResponseModel { + this := TemplatesTemplatePolicyResponseModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyResponseModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyResponseModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *TemplatesTemplatePolicyResponseModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyResponseModel) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse.Get()) { + var ret bool + return ret + } + return *o.AllowKeyReuse.Get() +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyResponseModel) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.AllowKeyReuse.Get(), o.AllowKeyReuse.IsSet() +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasAllowKeyReuse() bool { + if o != nil && o.AllowKeyReuse.IsSet() { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given NullableBool and assigns it to the AllowKeyReuse field. +func (o *TemplatesTemplatePolicyResponseModel) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse.Set(&v) +} + +// SetAllowKeyReuseNil sets the value for AllowKeyReuse to be an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) SetAllowKeyReuseNil() { + o.AllowKeyReuse.Set(nil) +} + +// UnsetAllowKeyReuse ensures that no value is present for AllowKeyReuse, not even an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) UnsetAllowKeyReuse() { + o.AllowKeyReuse.Unset() +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyResponseModel) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards.Get()) { + var ret bool + return ret + } + return *o.AllowWildcards.Get() +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyResponseModel) GetAllowWildcardsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.AllowWildcards.Get(), o.AllowWildcards.IsSet() +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasAllowWildcards() bool { + if o != nil && o.AllowWildcards.IsSet() { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given NullableBool and assigns it to the AllowWildcards field. +func (o *TemplatesTemplatePolicyResponseModel) SetAllowWildcards(v bool) { + o.AllowWildcards.Set(&v) +} + +// SetAllowWildcardsNil sets the value for AllowWildcards to be an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) SetAllowWildcardsNil() { + o.AllowWildcards.Set(nil) +} + +// UnsetAllowWildcards ensures that no value is present for AllowWildcards, not even an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) UnsetAllowWildcards() { + o.AllowWildcards.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyResponseModel) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement.Get()) { + var ret bool + return ret + } + return *o.RFCEnforcement.Get() +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyResponseModel) GetRFCEnforcementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.RFCEnforcement.Get(), o.RFCEnforcement.IsSet() +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasRFCEnforcement() bool { + if o != nil && o.RFCEnforcement.IsSet() { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given NullableBool and assigns it to the RFCEnforcement field. +func (o *TemplatesTemplatePolicyResponseModel) SetRFCEnforcement(v bool) { + o.RFCEnforcement.Set(&v) +} + +// SetRFCEnforcementNil sets the value for RFCEnforcement to be an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) SetRFCEnforcementNil() { + o.RFCEnforcement.Set(nil) +} + +// UnsetRFCEnforcement ensures that no value is present for RFCEnforcement, not even an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) UnsetRFCEnforcement() { + o.RFCEnforcement.Unset() +} + +// GetCertificateOwnerRole returns the CertificateOwnerRole field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyResponseModel) GetCertificateOwnerRole() CSSCMSCoreEnumsTemplateCertificateOwnerRole { + if o == nil || isNil(o.CertificateOwnerRole) { + var ret CSSCMSCoreEnumsTemplateCertificateOwnerRole + return ret + } + return *o.CertificateOwnerRole +} + +// GetCertificateOwnerRoleOk returns a tuple with the CertificateOwnerRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyResponseModel) GetCertificateOwnerRoleOk() (*CSSCMSCoreEnumsTemplateCertificateOwnerRole, bool) { + if o == nil || isNil(o.CertificateOwnerRole) { + return nil, false + } + return o.CertificateOwnerRole, true +} + +// HasCertificateOwnerRole returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasCertificateOwnerRole() bool { + if o != nil && !isNil(o.CertificateOwnerRole) { + return true + } + + return false +} + +// SetCertificateOwnerRole gets a reference to the given CSSCMSCoreEnumsTemplateCertificateOwnerRole and assigns it to the CertificateOwnerRole field. +func (o *TemplatesTemplatePolicyResponseModel) SetCertificateOwnerRole(v CSSCMSCoreEnumsTemplateCertificateOwnerRole) { + o.CertificateOwnerRole = &v +} + +// GetDefaultCertificateOwnerRoleId returns the DefaultCertificateOwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleId() int32 { + if o == nil || isNil(o.DefaultCertificateOwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.DefaultCertificateOwnerRoleId.Get() +} + +// GetDefaultCertificateOwnerRoleIdOk returns a tuple with the DefaultCertificateOwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleId.Get(), o.DefaultCertificateOwnerRoleId.IsSet() +} + +// HasDefaultCertificateOwnerRoleId returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasDefaultCertificateOwnerRoleId() bool { + if o != nil && o.DefaultCertificateOwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the DefaultCertificateOwnerRoleId field. +func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleId(v int32) { + o.DefaultCertificateOwnerRoleId.Set(&v) +} + +// SetDefaultCertificateOwnerRoleIdNil sets the value for DefaultCertificateOwnerRoleId to be an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleIdNil() { + o.DefaultCertificateOwnerRoleId.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleId ensures that no value is present for DefaultCertificateOwnerRoleId, not even an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) UnsetDefaultCertificateOwnerRoleId() { + o.DefaultCertificateOwnerRoleId.Unset() +} + +// GetDefaultCertificateOwnerRoleName returns the DefaultCertificateOwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleName() string { + if o == nil || isNil(o.DefaultCertificateOwnerRoleName.Get()) { + var ret string + return ret + } + return *o.DefaultCertificateOwnerRoleName.Get() +} + +// GetDefaultCertificateOwnerRoleNameOk returns a tuple with the DefaultCertificateOwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplatePolicyResponseModel) GetDefaultCertificateOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultCertificateOwnerRoleName.Get(), o.DefaultCertificateOwnerRoleName.IsSet() +} + +// HasDefaultCertificateOwnerRoleName returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasDefaultCertificateOwnerRoleName() bool { + if o != nil && o.DefaultCertificateOwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetDefaultCertificateOwnerRoleName gets a reference to the given NullableString and assigns it to the DefaultCertificateOwnerRoleName field. +func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleName(v string) { + o.DefaultCertificateOwnerRoleName.Set(&v) +} + +// SetDefaultCertificateOwnerRoleNameNil sets the value for DefaultCertificateOwnerRoleName to be an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) SetDefaultCertificateOwnerRoleNameNil() { + o.DefaultCertificateOwnerRoleName.Set(nil) +} + +// UnsetDefaultCertificateOwnerRoleName ensures that no value is present for DefaultCertificateOwnerRoleName, not even an explicit nil +func (o *TemplatesTemplatePolicyResponseModel) UnsetDefaultCertificateOwnerRoleName() { + o.DefaultCertificateOwnerRoleName.Unset() +} + +// GetKeyInfo returns the KeyInfo field value if set, zero value otherwise. +func (o *TemplatesTemplatePolicyResponseModel) GetKeyInfo() CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo { + if o == nil || isNil(o.KeyInfo) { + var ret CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo + return ret + } + return *o.KeyInfo +} + +// GetKeyInfoOk returns a tuple with the KeyInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplatePolicyResponseModel) GetKeyInfoOk() (*CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo, bool) { + if o == nil || isNil(o.KeyInfo) { + return nil, false + } + return o.KeyInfo, true +} + +// HasKeyInfo returns a boolean if a field has been set. +func (o *TemplatesTemplatePolicyResponseModel) HasKeyInfo() bool { + if o != nil && !isNil(o.KeyInfo) { + return true + } + + return false +} + +// SetKeyInfo gets a reference to the given CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo and assigns it to the KeyInfo field. +func (o *TemplatesTemplatePolicyResponseModel) SetKeyInfo(v CSSCMSDataModelModelsTemplatesAlgorithmsKeyInfo) { + o.KeyInfo = &v +} + +func (o TemplatesTemplatePolicyResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplatePolicyResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if o.AllowKeyReuse.IsSet() { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse.Get() + } + if o.AllowWildcards.IsSet() { + toSerialize["AllowWildcards"] = o.AllowWildcards.Get() + } + if o.RFCEnforcement.IsSet() { + toSerialize["RFCEnforcement"] = o.RFCEnforcement.Get() + } + if !isNil(o.CertificateOwnerRole) { + toSerialize["CertificateOwnerRole"] = o.CertificateOwnerRole + } + if o.DefaultCertificateOwnerRoleId.IsSet() { + toSerialize["DefaultCertificateOwnerRoleId"] = o.DefaultCertificateOwnerRoleId.Get() + } + if o.DefaultCertificateOwnerRoleName.IsSet() { + toSerialize["DefaultCertificateOwnerRoleName"] = o.DefaultCertificateOwnerRoleName.Get() + } + if !isNil(o.KeyInfo) { + toSerialize["KeyInfo"] = o.KeyInfo + } + return toSerialize, nil +} + +type NullableTemplatesTemplatePolicyResponseModel struct { + value *TemplatesTemplatePolicyResponseModel + isSet bool +} + +func (v NullableTemplatesTemplatePolicyResponseModel) Get() *TemplatesTemplatePolicyResponseModel { + return v.value +} + +func (v *NullableTemplatesTemplatePolicyResponseModel) Set(val *TemplatesTemplatePolicyResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplatePolicyResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplatePolicyResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplatePolicyResponseModel(val *TemplatesTemplatePolicyResponseModel) *NullableTemplatesTemplatePolicyResponseModel { + return &NullableTemplatesTemplatePolicyResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplatePolicyResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplatePolicyResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_regex_request_response_model.go b/v24/api/keyfactor/v1/model_templates_template_regex_request_response_model.go new file mode 100644 index 0000000..972ea99 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_regex_request_response_model.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateRegexRequestResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateRegexRequestResponseModel{} + +// TemplatesTemplateRegexRequestResponseModel struct for TemplatesTemplateRegexRequestResponseModel +type TemplatesTemplateRegexRequestResponseModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart NullableString `json:"SubjectPart,omitempty"` + Regex NullableString `json:"Regex,omitempty"` + Error NullableString `json:"Error,omitempty"` + CaseSensitive *bool `json:"CaseSensitive,omitempty"` +} + +// NewTemplatesTemplateRegexRequestResponseModel instantiates a new TemplatesTemplateRegexRequestResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateRegexRequestResponseModel() *TemplatesTemplateRegexRequestResponseModel { + this := TemplatesTemplateRegexRequestResponseModel{} + return &this +} + +// NewTemplatesTemplateRegexRequestResponseModelWithDefaults instantiates a new TemplatesTemplateRegexRequestResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateRegexRequestResponseModelWithDefaults() *TemplatesTemplateRegexRequestResponseModel { + this := TemplatesTemplateRegexRequestResponseModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *TemplatesTemplateRegexRequestResponseModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *TemplatesTemplateRegexRequestResponseModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRegexRequestResponseModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart.Get()) { + var ret string + return ret + } + return *o.SubjectPart.Get() +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRegexRequestResponseModel) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubjectPart.Get(), o.SubjectPart.IsSet() +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) HasSubjectPart() bool { + if o != nil && o.SubjectPart.IsSet() { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given NullableString and assigns it to the SubjectPart field. +func (o *TemplatesTemplateRegexRequestResponseModel) SetSubjectPart(v string) { + o.SubjectPart.Set(&v) +} + +// SetSubjectPartNil sets the value for SubjectPart to be an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) SetSubjectPartNil() { + o.SubjectPart.Set(nil) +} + +// UnsetSubjectPart ensures that no value is present for SubjectPart, not even an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) UnsetSubjectPart() { + o.SubjectPart.Unset() +} + +// GetRegex returns the Regex field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRegexRequestResponseModel) GetRegex() string { + if o == nil || isNil(o.Regex.Get()) { + var ret string + return ret + } + return *o.Regex.Get() +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRegexRequestResponseModel) GetRegexOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Regex.Get(), o.Regex.IsSet() +} + +// HasRegex returns a boolean if a field has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) HasRegex() bool { + if o != nil && o.Regex.IsSet() { + return true + } + + return false +} + +// SetRegex gets a reference to the given NullableString and assigns it to the Regex field. +func (o *TemplatesTemplateRegexRequestResponseModel) SetRegex(v string) { + o.Regex.Set(&v) +} + +// SetRegexNil sets the value for Regex to be an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) SetRegexNil() { + o.Regex.Set(nil) +} + +// UnsetRegex ensures that no value is present for Regex, not even an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) UnsetRegex() { + o.Regex.Unset() +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRegexRequestResponseModel) GetError() string { + if o == nil || isNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRegexRequestResponseModel) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *TemplatesTemplateRegexRequestResponseModel) SetError(v string) { + o.Error.Set(&v) +} + +// SetErrorNil sets the value for Error to be an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *TemplatesTemplateRegexRequestResponseModel) UnsetError() { + o.Error.Unset() +} + +// GetCaseSensitive returns the CaseSensitive field value if set, zero value otherwise. +func (o *TemplatesTemplateRegexRequestResponseModel) GetCaseSensitive() bool { + if o == nil || isNil(o.CaseSensitive) { + var ret bool + return ret + } + return *o.CaseSensitive +} + +// GetCaseSensitiveOk returns a tuple with the CaseSensitive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) GetCaseSensitiveOk() (*bool, bool) { + if o == nil || isNil(o.CaseSensitive) { + return nil, false + } + return o.CaseSensitive, true +} + +// HasCaseSensitive returns a boolean if a field has been set. +func (o *TemplatesTemplateRegexRequestResponseModel) HasCaseSensitive() bool { + if o != nil && !isNil(o.CaseSensitive) { + return true + } + + return false +} + +// SetCaseSensitive gets a reference to the given bool and assigns it to the CaseSensitive field. +func (o *TemplatesTemplateRegexRequestResponseModel) SetCaseSensitive(v bool) { + o.CaseSensitive = &v +} + +func (o TemplatesTemplateRegexRequestResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateRegexRequestResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if o.SubjectPart.IsSet() { + toSerialize["SubjectPart"] = o.SubjectPart.Get() + } + if o.Regex.IsSet() { + toSerialize["Regex"] = o.Regex.Get() + } + if o.Error.IsSet() { + toSerialize["Error"] = o.Error.Get() + } + if !isNil(o.CaseSensitive) { + toSerialize["CaseSensitive"] = o.CaseSensitive + } + return toSerialize, nil +} + +type NullableTemplatesTemplateRegexRequestResponseModel struct { + value *TemplatesTemplateRegexRequestResponseModel + isSet bool +} + +func (v NullableTemplatesTemplateRegexRequestResponseModel) Get() *TemplatesTemplateRegexRequestResponseModel { + return v.value +} + +func (v *NullableTemplatesTemplateRegexRequestResponseModel) Set(val *TemplatesTemplateRegexRequestResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateRegexRequestResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateRegexRequestResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateRegexRequestResponseModel(val *TemplatesTemplateRegexRequestResponseModel) *NullableTemplatesTemplateRegexRequestResponseModel { + return &NullableTemplatesTemplateRegexRequestResponseModel{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateRegexRequestResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateRegexRequestResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_retrieval_response.go b/v24/api/keyfactor/v1/model_templates_template_retrieval_response.go new file mode 100644 index 0000000..c48870b --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_retrieval_response.go @@ -0,0 +1,1280 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateRetrievalResponse{} + +// TemplatesTemplateRetrievalResponse struct for TemplatesTemplateRetrievalResponse +type TemplatesTemplateRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + CommonName NullableString `json:"CommonName,omitempty"` + TemplateName NullableString `json:"TemplateName,omitempty"` + Oid NullableString `json:"Oid,omitempty"` + KeySize NullableString `json:"KeySize,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + ForestRoot NullableString `json:"ForestRoot,omitempty"` + ConfigurationTenant NullableString `json:"ConfigurationTenant,omitempty"` + FriendlyName NullableString `json:"FriendlyName,omitempty"` + KeyRetention *CSSCMSCoreEnumsKeyRetentionPolicy `json:"KeyRetention,omitempty"` + KeyRetentionDays NullableInt32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []TemplatesTemplateEnrollmentFieldRequestResponseModel `json:"EnrollmentFields,omitempty"` + MetadataFields []TemplatesTemplateMetadataFieldRequestResponseModel `json:"MetadataFields,omitempty"` + AllowedEnrollmentTypes *CSSCMSCoreEnumsEnrollmentType `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []TemplatesTemplateRegexRequestResponseModel `json:"TemplateRegexes,omitempty"` + TemplateDefaults []TemplatesTemplateDefaultRequestResponseModel `json:"TemplateDefaults,omitempty"` + TemplatePolicy *TemplatesTemplatePolicyResponseModel `json:"TemplatePolicy,omitempty"` + KeyAlgorithms *TemplatesKeyAlgorithmsResponseModel `json:"KeyAlgorithms,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + ExtendedKeyUsages []TemplatesExtendedKeyUsageResponseModel `json:"ExtendedKeyUsages,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + AllowOneClickRenewals *bool `json:"AllowOneClickRenewals,omitempty"` + KeyTypes NullableString `json:"KeyTypes,omitempty"` +} + +// NewTemplatesTemplateRetrievalResponse instantiates a new TemplatesTemplateRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateRetrievalResponse() *TemplatesTemplateRetrievalResponse { + this := TemplatesTemplateRetrievalResponse{} + return &this +} + +// NewTemplatesTemplateRetrievalResponseWithDefaults instantiates a new TemplatesTemplateRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateRetrievalResponseWithDefaults() *TemplatesTemplateRetrievalResponse { + this := TemplatesTemplateRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesTemplateRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName.Get()) { + var ret string + return ret + } + return *o.CommonName.Get() +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetCommonNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommonName.Get(), o.CommonName.IsSet() +} + +// HasCommonName returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasCommonName() bool { + if o != nil && o.CommonName.IsSet() { + return true + } + + return false +} + +// SetCommonName gets a reference to the given NullableString and assigns it to the CommonName field. +func (o *TemplatesTemplateRetrievalResponse) SetCommonName(v string) { + o.CommonName.Set(&v) +} + +// SetCommonNameNil sets the value for CommonName to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetCommonNameNil() { + o.CommonName.Set(nil) +} + +// UnsetCommonName ensures that no value is present for CommonName, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetCommonName() { + o.CommonName.Unset() +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName.Get()) { + var ret string + return ret + } + return *o.TemplateName.Get() +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TemplateName.Get(), o.TemplateName.IsSet() +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasTemplateName() bool { + if o != nil && o.TemplateName.IsSet() { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given NullableString and assigns it to the TemplateName field. +func (o *TemplatesTemplateRetrievalResponse) SetTemplateName(v string) { + o.TemplateName.Set(&v) +} + +// SetTemplateNameNil sets the value for TemplateName to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetTemplateNameNil() { + o.TemplateName.Set(nil) +} + +// UnsetTemplateName ensures that no value is present for TemplateName, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetTemplateName() { + o.TemplateName.Unset() +} + +// GetOid returns the Oid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetOid() string { + if o == nil || isNil(o.Oid.Get()) { + var ret string + return ret + } + return *o.Oid.Get() +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetOidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Oid.Get(), o.Oid.IsSet() +} + +// HasOid returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasOid() bool { + if o != nil && o.Oid.IsSet() { + return true + } + + return false +} + +// SetOid gets a reference to the given NullableString and assigns it to the Oid field. +func (o *TemplatesTemplateRetrievalResponse) SetOid(v string) { + o.Oid.Set(&v) +} + +// SetOidNil sets the value for Oid to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetOidNil() { + o.Oid.Set(nil) +} + +// UnsetOid ensures that no value is present for Oid, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetOid() { + o.Oid.Unset() +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetKeySize() string { + if o == nil || isNil(o.KeySize.Get()) { + var ret string + return ret + } + return *o.KeySize.Get() +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetKeySizeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeySize.Get(), o.KeySize.IsSet() +} + +// HasKeySize returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeySize() bool { + if o != nil && o.KeySize.IsSet() { + return true + } + + return false +} + +// SetKeySize gets a reference to the given NullableString and assigns it to the KeySize field. +func (o *TemplatesTemplateRetrievalResponse) SetKeySize(v string) { + o.KeySize.Set(&v) +} + +// SetKeySizeNil sets the value for KeySize to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetKeySizeNil() { + o.KeySize.Set(nil) +} + +// UnsetKeySize ensures that no value is present for KeySize, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetKeySize() { + o.KeySize.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot.Get()) { + var ret string + return ret + } + return *o.ForestRoot.Get() +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetForestRootOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ForestRoot.Get(), o.ForestRoot.IsSet() +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasForestRoot() bool { + if o != nil && o.ForestRoot.IsSet() { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given NullableString and assigns it to the ForestRoot field. +func (o *TemplatesTemplateRetrievalResponse) SetForestRoot(v string) { + o.ForestRoot.Set(&v) +} + +// SetForestRootNil sets the value for ForestRoot to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetForestRootNil() { + o.ForestRoot.Set(nil) +} + +// UnsetForestRoot ensures that no value is present for ForestRoot, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetForestRoot() { + o.ForestRoot.Unset() +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant.Get()) { + var ret string + return ret + } + return *o.ConfigurationTenant.Get() +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConfigurationTenant.Get(), o.ConfigurationTenant.IsSet() +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasConfigurationTenant() bool { + if o != nil && o.ConfigurationTenant.IsSet() { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given NullableString and assigns it to the ConfigurationTenant field. +func (o *TemplatesTemplateRetrievalResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant.Set(&v) +} + +// SetConfigurationTenantNil sets the value for ConfigurationTenant to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetConfigurationTenantNil() { + o.ConfigurationTenant.Set(nil) +} + +// UnsetConfigurationTenant ensures that no value is present for ConfigurationTenant, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetConfigurationTenant() { + o.ConfigurationTenant.Unset() +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName.Get()) { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *TemplatesTemplateRetrievalResponse) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy { + if o == nil || isNil(o.KeyRetention) { + var ret CSSCMSCoreEnumsKeyRetentionPolicy + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given CSSCMSCoreEnumsKeyRetentionPolicy and assigns it to the KeyRetention field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays.Get()) { + var ret int32 + return ret + } + return *o.KeyRetentionDays.Get() +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyRetentionDays.Get(), o.KeyRetentionDays.IsSet() +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyRetentionDays() bool { + if o != nil && o.KeyRetentionDays.IsSet() { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given NullableInt32 and assigns it to the KeyRetentionDays field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays.Set(&v) +} + +// SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetKeyRetentionDaysNil() { + o.KeyRetentionDays.Set(nil) +} + +// UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetKeyRetentionDays() { + o.KeyRetentionDays.Unset() +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateEnrollmentFieldRequestResponseModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetEnrollmentFieldsOk() ([]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasEnrollmentFields() bool { + if o != nil && isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []TemplatesTemplateEnrollmentFieldRequestResponseModel and assigns it to the EnrollmentFields field. +func (o *TemplatesTemplateRetrievalResponse) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetMetadataFields() []TemplatesTemplateMetadataFieldRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateMetadataFieldRequestResponseModel + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetMetadataFieldsOk() ([]TemplatesTemplateMetadataFieldRequestResponseModel, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasMetadataFields() bool { + if o != nil && isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []TemplatesTemplateMetadataFieldRequestResponseModel and assigns it to the MetadataFields field. +func (o *TemplatesTemplateRetrievalResponse) SetMetadataFields(v []TemplatesTemplateMetadataFieldRequestResponseModel) { + o.MetadataFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret CSSCMSCoreEnumsEnrollmentType + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given CSSCMSCoreEnumsEnrollmentType and assigns it to the AllowedEnrollmentTypes field. +func (o *TemplatesTemplateRetrievalResponse) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateRegexRequestResponseModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetTemplateRegexesOk() ([]TemplatesTemplateRegexRequestResponseModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasTemplateRegexes() bool { + if o != nil && isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []TemplatesTemplateRegexRequestResponseModel and assigns it to the TemplateRegexes field. +func (o *TemplatesTemplateRetrievalResponse) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetTemplateDefaults() []TemplatesTemplateDefaultRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateDefaultRequestResponseModel + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetTemplateDefaultsOk() ([]TemplatesTemplateDefaultRequestResponseModel, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasTemplateDefaults() bool { + if o != nil && isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []TemplatesTemplateDefaultRequestResponseModel and assigns it to the TemplateDefaults field. +func (o *TemplatesTemplateRetrievalResponse) SetTemplateDefaults(v []TemplatesTemplateDefaultRequestResponseModel) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetTemplatePolicy() TemplatesTemplatePolicyResponseModel { + if o == nil || isNil(o.TemplatePolicy) { + var ret TemplatesTemplatePolicyResponseModel + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetTemplatePolicyOk() (*TemplatesTemplatePolicyResponseModel, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given TemplatesTemplatePolicyResponseModel and assigns it to the TemplatePolicy field. +func (o *TemplatesTemplateRetrievalResponse) SetTemplatePolicy(v TemplatesTemplatePolicyResponseModel) { + o.TemplatePolicy = &v +} + +// GetKeyAlgorithms returns the KeyAlgorithms field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetKeyAlgorithms() TemplatesKeyAlgorithmsResponseModel { + if o == nil || isNil(o.KeyAlgorithms) { + var ret TemplatesKeyAlgorithmsResponseModel + return ret + } + return *o.KeyAlgorithms +} + +// GetKeyAlgorithmsOk returns a tuple with the KeyAlgorithms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetKeyAlgorithmsOk() (*TemplatesKeyAlgorithmsResponseModel, bool) { + if o == nil || isNil(o.KeyAlgorithms) { + return nil, false + } + return o.KeyAlgorithms, true +} + +// HasKeyAlgorithms returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyAlgorithms() bool { + if o != nil && !isNil(o.KeyAlgorithms) { + return true + } + + return false +} + +// SetKeyAlgorithms gets a reference to the given TemplatesKeyAlgorithmsResponseModel and assigns it to the KeyAlgorithms field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyAlgorithms(v TemplatesKeyAlgorithmsResponseModel) { + o.KeyAlgorithms = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *TemplatesTemplateRetrievalResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetAllowedRequesters() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasAllowedRequesters() bool { + if o != nil && isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *TemplatesTemplateRetrievalResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *TemplatesTemplateRetrievalResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *TemplatesTemplateRetrievalResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *TemplatesTemplateRetrievalResponse) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetExtendedKeyUsages() []TemplatesExtendedKeyUsageResponseModel { + if o == nil { + var ret []TemplatesExtendedKeyUsageResponseModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetExtendedKeyUsagesOk() ([]TemplatesExtendedKeyUsageResponseModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []TemplatesExtendedKeyUsageResponseModel and assigns it to the ExtendedKeyUsages field. +func (o *TemplatesTemplateRetrievalResponse) SetExtendedKeyUsages(v []TemplatesExtendedKeyUsageResponseModel) { + o.ExtendedKeyUsages = v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *TemplatesTemplateRetrievalResponse) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetCurve() { + o.Curve.Unset() +} + +// GetAllowOneClickRenewals returns the AllowOneClickRenewals field value if set, zero value otherwise. +func (o *TemplatesTemplateRetrievalResponse) GetAllowOneClickRenewals() bool { + if o == nil || isNil(o.AllowOneClickRenewals) { + var ret bool + return ret + } + return *o.AllowOneClickRenewals +} + +// GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateRetrievalResponse) GetAllowOneClickRenewalsOk() (*bool, bool) { + if o == nil || isNil(o.AllowOneClickRenewals) { + return nil, false + } + return o.AllowOneClickRenewals, true +} + +// HasAllowOneClickRenewals returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasAllowOneClickRenewals() bool { + if o != nil && !isNil(o.AllowOneClickRenewals) { + return true + } + + return false +} + +// SetAllowOneClickRenewals gets a reference to the given bool and assigns it to the AllowOneClickRenewals field. +func (o *TemplatesTemplateRetrievalResponse) SetAllowOneClickRenewals(v bool) { + o.AllowOneClickRenewals = &v +} + +// GetKeyTypes returns the KeyTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateRetrievalResponse) GetKeyTypes() string { + if o == nil || isNil(o.KeyTypes.Get()) { + var ret string + return ret + } + return *o.KeyTypes.Get() +} + +// GetKeyTypesOk returns a tuple with the KeyTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateRetrievalResponse) GetKeyTypesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyTypes.Get(), o.KeyTypes.IsSet() +} + +// HasKeyTypes returns a boolean if a field has been set. +func (o *TemplatesTemplateRetrievalResponse) HasKeyTypes() bool { + if o != nil && o.KeyTypes.IsSet() { + return true + } + + return false +} + +// SetKeyTypes gets a reference to the given NullableString and assigns it to the KeyTypes field. +func (o *TemplatesTemplateRetrievalResponse) SetKeyTypes(v string) { + o.KeyTypes.Set(&v) +} + +// SetKeyTypesNil sets the value for KeyTypes to be an explicit nil +func (o *TemplatesTemplateRetrievalResponse) SetKeyTypesNil() { + o.KeyTypes.Set(nil) +} + +// UnsetKeyTypes ensures that no value is present for KeyTypes, not even an explicit nil +func (o *TemplatesTemplateRetrievalResponse) UnsetKeyTypes() { + o.KeyTypes.Unset() +} + +func (o TemplatesTemplateRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.CommonName.IsSet() { + toSerialize["CommonName"] = o.CommonName.Get() + } + if o.TemplateName.IsSet() { + toSerialize["TemplateName"] = o.TemplateName.Get() + } + if o.Oid.IsSet() { + toSerialize["Oid"] = o.Oid.Get() + } + if o.KeySize.IsSet() { + toSerialize["KeySize"] = o.KeySize.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if o.ForestRoot.IsSet() { + toSerialize["ForestRoot"] = o.ForestRoot.Get() + } + if o.ConfigurationTenant.IsSet() { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant.Get() + } + if o.FriendlyName.IsSet() { + toSerialize["FriendlyName"] = o.FriendlyName.Get() + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if o.KeyRetentionDays.IsSet() { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays.Get() + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if o.EnrollmentFields != nil { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if o.MetadataFields != nil { + toSerialize["MetadataFields"] = o.MetadataFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if o.TemplateRegexes != nil { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if o.TemplateDefaults != nil { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + if !isNil(o.KeyAlgorithms) { + toSerialize["KeyAlgorithms"] = o.KeyAlgorithms + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if o.AllowedRequesters != nil { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if o.ExtendedKeyUsages != nil { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if !isNil(o.AllowOneClickRenewals) { + toSerialize["AllowOneClickRenewals"] = o.AllowOneClickRenewals + } + if o.KeyTypes.IsSet() { + toSerialize["KeyTypes"] = o.KeyTypes.Get() + } + return toSerialize, nil +} + +type NullableTemplatesTemplateRetrievalResponse struct { + value *TemplatesTemplateRetrievalResponse + isSet bool +} + +func (v NullableTemplatesTemplateRetrievalResponse) Get() *TemplatesTemplateRetrievalResponse { + return v.value +} + +func (v *NullableTemplatesTemplateRetrievalResponse) Set(val *TemplatesTemplateRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateRetrievalResponse(val *TemplatesTemplateRetrievalResponse) *NullableTemplatesTemplateRetrievalResponse { + return &NullableTemplatesTemplateRetrievalResponse{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_templates_template_update_request.go b/v24/api/keyfactor/v1/model_templates_template_update_request.go new file mode 100644 index 0000000..1c6d350 --- /dev/null +++ b/v24/api/keyfactor/v1/model_templates_template_update_request.go @@ -0,0 +1,701 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the TemplatesTemplateUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TemplatesTemplateUpdateRequest{} + +// TemplatesTemplateUpdateRequest struct for TemplatesTemplateUpdateRequest +type TemplatesTemplateUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + FriendlyName NullableString `json:"FriendlyName,omitempty"` + KeyRetention *CSSCMSCoreEnumsKeyRetentionPolicy `json:"KeyRetention,omitempty"` + KeyRetentionDays NullableInt32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []TemplatesTemplateEnrollmentFieldRequestResponseModel `json:"EnrollmentFields,omitempty"` + MetadataFields []TemplatesTemplateMetadataFieldRequestResponseModel `json:"MetadataFields,omitempty"` + AllowedEnrollmentTypes *CSSCMSCoreEnumsEnrollmentType `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []TemplatesTemplateRegexRequestResponseModel `json:"TemplateRegexes,omitempty"` + TemplateDefaults []TemplatesTemplateDefaultRequestResponseModel `json:"TemplateDefaults,omitempty"` + TemplatePolicy *TemplatesTemplatePolicyRequestModel `json:"TemplatePolicy,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + AllowOneClickRenewals *bool `json:"AllowOneClickRenewals,omitempty"` +} + +// NewTemplatesTemplateUpdateRequest instantiates a new TemplatesTemplateUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTemplatesTemplateUpdateRequest() *TemplatesTemplateUpdateRequest { + this := TemplatesTemplateUpdateRequest{} + return &this +} + +// NewTemplatesTemplateUpdateRequestWithDefaults instantiates a new TemplatesTemplateUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTemplatesTemplateUpdateRequestWithDefaults() *TemplatesTemplateUpdateRequest { + this := TemplatesTemplateUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TemplatesTemplateUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName.Get()) { + var ret string + return ret + } + return *o.FriendlyName.Get() +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FriendlyName.Get(), o.FriendlyName.IsSet() +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasFriendlyName() bool { + if o != nil && o.FriendlyName.IsSet() { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given NullableString and assigns it to the FriendlyName field. +func (o *TemplatesTemplateUpdateRequest) SetFriendlyName(v string) { + o.FriendlyName.Set(&v) +} + +// SetFriendlyNameNil sets the value for FriendlyName to be an explicit nil +func (o *TemplatesTemplateUpdateRequest) SetFriendlyNameNil() { + o.FriendlyName.Set(nil) +} + +// UnsetFriendlyName ensures that no value is present for FriendlyName, not even an explicit nil +func (o *TemplatesTemplateUpdateRequest) UnsetFriendlyName() { + o.FriendlyName.Unset() +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetKeyRetention() CSSCMSCoreEnumsKeyRetentionPolicy { + if o == nil || isNil(o.KeyRetention) { + var ret CSSCMSCoreEnumsKeyRetentionPolicy + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionOk() (*CSSCMSCoreEnumsKeyRetentionPolicy, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given CSSCMSCoreEnumsKeyRetentionPolicy and assigns it to the KeyRetention field. +func (o *TemplatesTemplateUpdateRequest) SetKeyRetention(v CSSCMSCoreEnumsKeyRetentionPolicy) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays.Get()) { + var ret int32 + return ret + } + return *o.KeyRetentionDays.Get() +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.KeyRetentionDays.Get(), o.KeyRetentionDays.IsSet() +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasKeyRetentionDays() bool { + if o != nil && o.KeyRetentionDays.IsSet() { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given NullableInt32 and assigns it to the KeyRetentionDays field. +func (o *TemplatesTemplateUpdateRequest) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays.Set(&v) +} + +// SetKeyRetentionDaysNil sets the value for KeyRetentionDays to be an explicit nil +func (o *TemplatesTemplateUpdateRequest) SetKeyRetentionDaysNil() { + o.KeyRetentionDays.Set(nil) +} + +// UnsetKeyRetentionDays ensures that no value is present for KeyRetentionDays, not even an explicit nil +func (o *TemplatesTemplateUpdateRequest) UnsetKeyRetentionDays() { + o.KeyRetentionDays.Unset() +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *TemplatesTemplateUpdateRequest) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetEnrollmentFields() []TemplatesTemplateEnrollmentFieldRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateEnrollmentFieldRequestResponseModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetEnrollmentFieldsOk() ([]TemplatesTemplateEnrollmentFieldRequestResponseModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasEnrollmentFields() bool { + if o != nil && isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []TemplatesTemplateEnrollmentFieldRequestResponseModel and assigns it to the EnrollmentFields field. +func (o *TemplatesTemplateUpdateRequest) SetEnrollmentFields(v []TemplatesTemplateEnrollmentFieldRequestResponseModel) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetMetadataFields() []TemplatesTemplateMetadataFieldRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateMetadataFieldRequestResponseModel + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetMetadataFieldsOk() ([]TemplatesTemplateMetadataFieldRequestResponseModel, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasMetadataFields() bool { + if o != nil && isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []TemplatesTemplateMetadataFieldRequestResponseModel and assigns it to the MetadataFields field. +func (o *TemplatesTemplateUpdateRequest) SetMetadataFields(v []TemplatesTemplateMetadataFieldRequestResponseModel) { + o.MetadataFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetAllowedEnrollmentTypes() CSSCMSCoreEnumsEnrollmentType { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret CSSCMSCoreEnumsEnrollmentType + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetAllowedEnrollmentTypesOk() (*CSSCMSCoreEnumsEnrollmentType, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given CSSCMSCoreEnumsEnrollmentType and assigns it to the AllowedEnrollmentTypes field. +func (o *TemplatesTemplateUpdateRequest) SetAllowedEnrollmentTypes(v CSSCMSCoreEnumsEnrollmentType) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetTemplateRegexes() []TemplatesTemplateRegexRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateRegexRequestResponseModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetTemplateRegexesOk() ([]TemplatesTemplateRegexRequestResponseModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasTemplateRegexes() bool { + if o != nil && isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []TemplatesTemplateRegexRequestResponseModel and assigns it to the TemplateRegexes field. +func (o *TemplatesTemplateUpdateRequest) SetTemplateRegexes(v []TemplatesTemplateRegexRequestResponseModel) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetTemplateDefaults() []TemplatesTemplateDefaultRequestResponseModel { + if o == nil { + var ret []TemplatesTemplateDefaultRequestResponseModel + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetTemplateDefaultsOk() ([]TemplatesTemplateDefaultRequestResponseModel, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasTemplateDefaults() bool { + if o != nil && isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []TemplatesTemplateDefaultRequestResponseModel and assigns it to the TemplateDefaults field. +func (o *TemplatesTemplateUpdateRequest) SetTemplateDefaults(v []TemplatesTemplateDefaultRequestResponseModel) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetTemplatePolicy() TemplatesTemplatePolicyRequestModel { + if o == nil || isNil(o.TemplatePolicy) { + var ret TemplatesTemplatePolicyRequestModel + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetTemplatePolicyOk() (*TemplatesTemplatePolicyRequestModel, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given TemplatesTemplatePolicyRequestModel and assigns it to the TemplatePolicy field. +func (o *TemplatesTemplateUpdateRequest) SetTemplatePolicy(v TemplatesTemplatePolicyRequestModel) { + o.TemplatePolicy = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *TemplatesTemplateUpdateRequest) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TemplatesTemplateUpdateRequest) GetAllowedRequesters() []string { + if o == nil { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TemplatesTemplateUpdateRequest) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasAllowedRequesters() bool { + if o != nil && isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *TemplatesTemplateUpdateRequest) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *TemplatesTemplateUpdateRequest) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *TemplatesTemplateUpdateRequest) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetAllowOneClickRenewals returns the AllowOneClickRenewals field value if set, zero value otherwise. +func (o *TemplatesTemplateUpdateRequest) GetAllowOneClickRenewals() bool { + if o == nil || isNil(o.AllowOneClickRenewals) { + var ret bool + return ret + } + return *o.AllowOneClickRenewals +} + +// GetAllowOneClickRenewalsOk returns a tuple with the AllowOneClickRenewals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TemplatesTemplateUpdateRequest) GetAllowOneClickRenewalsOk() (*bool, bool) { + if o == nil || isNil(o.AllowOneClickRenewals) { + return nil, false + } + return o.AllowOneClickRenewals, true +} + +// HasAllowOneClickRenewals returns a boolean if a field has been set. +func (o *TemplatesTemplateUpdateRequest) HasAllowOneClickRenewals() bool { + if o != nil && !isNil(o.AllowOneClickRenewals) { + return true + } + + return false +} + +// SetAllowOneClickRenewals gets a reference to the given bool and assigns it to the AllowOneClickRenewals field. +func (o *TemplatesTemplateUpdateRequest) SetAllowOneClickRenewals(v bool) { + o.AllowOneClickRenewals = &v +} + +func (o TemplatesTemplateUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TemplatesTemplateUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.FriendlyName.IsSet() { + toSerialize["FriendlyName"] = o.FriendlyName.Get() + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if o.KeyRetentionDays.IsSet() { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays.Get() + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if o.EnrollmentFields != nil { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if o.MetadataFields != nil { + toSerialize["MetadataFields"] = o.MetadataFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if o.TemplateRegexes != nil { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if o.TemplateDefaults != nil { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if o.AllowedRequesters != nil { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if !isNil(o.AllowOneClickRenewals) { + toSerialize["AllowOneClickRenewals"] = o.AllowOneClickRenewals + } + return toSerialize, nil +} + +type NullableTemplatesTemplateUpdateRequest struct { + value *TemplatesTemplateUpdateRequest + isSet bool +} + +func (v NullableTemplatesTemplateUpdateRequest) Get() *TemplatesTemplateUpdateRequest { + return v.value +} + +func (v *NullableTemplatesTemplateUpdateRequest) Set(val *TemplatesTemplateUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTemplatesTemplateUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplatesTemplateUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplatesTemplateUpdateRequest(val *TemplatesTemplateUpdateRequest) *NullableTemplatesTemplateUpdateRequest { + return &NullableTemplatesTemplateUpdateRequest{value: val, isSet: true} +} + +func (v NullableTemplatesTemplateUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplatesTemplateUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_available_signal_response.go b/v24/api/keyfactor/v1/model_workflows_available_signal_response.go new file mode 100644 index 0000000..84508fa --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_available_signal_response.go @@ -0,0 +1,220 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsAvailableSignalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsAvailableSignalResponse{} + +// WorkflowsAvailableSignalResponse struct for WorkflowsAvailableSignalResponse +type WorkflowsAvailableSignalResponse struct { + // The name of the signal. + SignalName NullableString `json:"SignalName,omitempty"` + // The signal Id. + StepSignalId *string `json:"StepSignalId,omitempty"` + // Whether or not the signal has been received. + SignalReceived *bool `json:"SignalReceived,omitempty"` +} + +// NewWorkflowsAvailableSignalResponse instantiates a new WorkflowsAvailableSignalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsAvailableSignalResponse() *WorkflowsAvailableSignalResponse { + this := WorkflowsAvailableSignalResponse{} + return &this +} + +// NewWorkflowsAvailableSignalResponseWithDefaults instantiates a new WorkflowsAvailableSignalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsAvailableSignalResponseWithDefaults() *WorkflowsAvailableSignalResponse { + this := WorkflowsAvailableSignalResponse{} + return &this +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableSignalResponse) GetSignalName() string { + if o == nil || isNil(o.SignalName.Get()) { + var ret string + return ret + } + return *o.SignalName.Get() +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableSignalResponse) GetSignalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignalName.Get(), o.SignalName.IsSet() +} + +// HasSignalName returns a boolean if a field has been set. +func (o *WorkflowsAvailableSignalResponse) HasSignalName() bool { + if o != nil && o.SignalName.IsSet() { + return true + } + + return false +} + +// SetSignalName gets a reference to the given NullableString and assigns it to the SignalName field. +func (o *WorkflowsAvailableSignalResponse) SetSignalName(v string) { + o.SignalName.Set(&v) +} + +// SetSignalNameNil sets the value for SignalName to be an explicit nil +func (o *WorkflowsAvailableSignalResponse) SetSignalNameNil() { + o.SignalName.Set(nil) +} + +// UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil +func (o *WorkflowsAvailableSignalResponse) UnsetSignalName() { + o.SignalName.Unset() +} + +// GetStepSignalId returns the StepSignalId field value if set, zero value otherwise. +func (o *WorkflowsAvailableSignalResponse) GetStepSignalId() string { + if o == nil || isNil(o.StepSignalId) { + var ret string + return ret + } + return *o.StepSignalId +} + +// GetStepSignalIdOk returns a tuple with the StepSignalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsAvailableSignalResponse) GetStepSignalIdOk() (*string, bool) { + if o == nil || isNil(o.StepSignalId) { + return nil, false + } + return o.StepSignalId, true +} + +// HasStepSignalId returns a boolean if a field has been set. +func (o *WorkflowsAvailableSignalResponse) HasStepSignalId() bool { + if o != nil && !isNil(o.StepSignalId) { + return true + } + + return false +} + +// SetStepSignalId gets a reference to the given string and assigns it to the StepSignalId field. +func (o *WorkflowsAvailableSignalResponse) SetStepSignalId(v string) { + o.StepSignalId = &v +} + +// GetSignalReceived returns the SignalReceived field value if set, zero value otherwise. +func (o *WorkflowsAvailableSignalResponse) GetSignalReceived() bool { + if o == nil || isNil(o.SignalReceived) { + var ret bool + return ret + } + return *o.SignalReceived +} + +// GetSignalReceivedOk returns a tuple with the SignalReceived field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsAvailableSignalResponse) GetSignalReceivedOk() (*bool, bool) { + if o == nil || isNil(o.SignalReceived) { + return nil, false + } + return o.SignalReceived, true +} + +// HasSignalReceived returns a boolean if a field has been set. +func (o *WorkflowsAvailableSignalResponse) HasSignalReceived() bool { + if o != nil && !isNil(o.SignalReceived) { + return true + } + + return false +} + +// SetSignalReceived gets a reference to the given bool and assigns it to the SignalReceived field. +func (o *WorkflowsAvailableSignalResponse) SetSignalReceived(v bool) { + o.SignalReceived = &v +} + +func (o WorkflowsAvailableSignalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsAvailableSignalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SignalName.IsSet() { + toSerialize["SignalName"] = o.SignalName.Get() + } + if !isNil(o.StepSignalId) { + toSerialize["StepSignalId"] = o.StepSignalId + } + if !isNil(o.SignalReceived) { + toSerialize["SignalReceived"] = o.SignalReceived + } + return toSerialize, nil +} + +type NullableWorkflowsAvailableSignalResponse struct { + value *WorkflowsAvailableSignalResponse + isSet bool +} + +func (v NullableWorkflowsAvailableSignalResponse) Get() *WorkflowsAvailableSignalResponse { + return v.value +} + +func (v *NullableWorkflowsAvailableSignalResponse) Set(val *WorkflowsAvailableSignalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsAvailableSignalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsAvailableSignalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsAvailableSignalResponse(val *WorkflowsAvailableSignalResponse) *NullableWorkflowsAvailableSignalResponse { + return &NullableWorkflowsAvailableSignalResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsAvailableSignalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsAvailableSignalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_available_step_query_response.go b/v24/api/keyfactor/v1/model_workflows_available_step_query_response.go new file mode 100644 index 0000000..469619b --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_available_step_query_response.go @@ -0,0 +1,306 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsAvailableStepQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsAvailableStepQueryResponse{} + +// WorkflowsAvailableStepQueryResponse struct for WorkflowsAvailableStepQueryResponse +type WorkflowsAvailableStepQueryResponse struct { + // The display name of the step. + DisplayName NullableString `json:"DisplayName,omitempty"` + // The extension name of the step. + ExtensionName NullableString `json:"ExtensionName,omitempty"` + // The workflow types which this step can be a part of. + SupportedWorkflowTypes []string `json:"SupportedWorkflowTypes,omitempty"` + ConfigurationParametersDefinition map[string]WorkflowsParameterDefinitionResponse `json:"ConfigurationParametersDefinition,omitempty"` + SignalsDefinition map[string]WorkflowsSignalDefinitionResponse `json:"SignalsDefinition,omitempty"` +} + +// NewWorkflowsAvailableStepQueryResponse instantiates a new WorkflowsAvailableStepQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsAvailableStepQueryResponse() *WorkflowsAvailableStepQueryResponse { + this := WorkflowsAvailableStepQueryResponse{} + return &this +} + +// NewWorkflowsAvailableStepQueryResponseWithDefaults instantiates a new WorkflowsAvailableStepQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsAvailableStepQueryResponseWithDefaults() *WorkflowsAvailableStepQueryResponse { + this := WorkflowsAvailableStepQueryResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepQueryResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepQueryResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepQueryResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsAvailableStepQueryResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsAvailableStepQueryResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsAvailableStepQueryResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepQueryResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName.Get()) { + var ret string + return ret + } + return *o.ExtensionName.Get() +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepQueryResponse) GetExtensionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtensionName.Get(), o.ExtensionName.IsSet() +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepQueryResponse) HasExtensionName() bool { + if o != nil && o.ExtensionName.IsSet() { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given NullableString and assigns it to the ExtensionName field. +func (o *WorkflowsAvailableStepQueryResponse) SetExtensionName(v string) { + o.ExtensionName.Set(&v) +} + +// SetExtensionNameNil sets the value for ExtensionName to be an explicit nil +func (o *WorkflowsAvailableStepQueryResponse) SetExtensionNameNil() { + o.ExtensionName.Set(nil) +} + +// UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +func (o *WorkflowsAvailableStepQueryResponse) UnsetExtensionName() { + o.ExtensionName.Unset() +} + +// GetSupportedWorkflowTypes returns the SupportedWorkflowTypes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypes() []string { + if o == nil { + var ret []string + return ret + } + return o.SupportedWorkflowTypes +} + +// GetSupportedWorkflowTypesOk returns a tuple with the SupportedWorkflowTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypesOk() ([]string, bool) { + if o == nil || isNil(o.SupportedWorkflowTypes) { + return nil, false + } + return o.SupportedWorkflowTypes, true +} + +// HasSupportedWorkflowTypes returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepQueryResponse) HasSupportedWorkflowTypes() bool { + if o != nil && isNil(o.SupportedWorkflowTypes) { + return true + } + + return false +} + +// SetSupportedWorkflowTypes gets a reference to the given []string and assigns it to the SupportedWorkflowTypes field. +func (o *WorkflowsAvailableStepQueryResponse) SetSupportedWorkflowTypes(v []string) { + o.SupportedWorkflowTypes = v +} + +// GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinition() map[string]WorkflowsParameterDefinitionResponse { + if o == nil { + var ret map[string]WorkflowsParameterDefinitionResponse + return ret + } + return o.ConfigurationParametersDefinition +} + +// GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinitionOk() (*map[string]WorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + return nil, false + } + return &o.ConfigurationParametersDefinition, true +} + +// HasConfigurationParametersDefinition returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepQueryResponse) HasConfigurationParametersDefinition() bool { + if o != nil && isNil(o.ConfigurationParametersDefinition) { + return true + } + + return false +} + +// SetConfigurationParametersDefinition gets a reference to the given map[string]WorkflowsParameterDefinitionResponse and assigns it to the ConfigurationParametersDefinition field. +func (o *WorkflowsAvailableStepQueryResponse) SetConfigurationParametersDefinition(v map[string]WorkflowsParameterDefinitionResponse) { + o.ConfigurationParametersDefinition = v +} + +// GetSignalsDefinition returns the SignalsDefinition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepQueryResponse) GetSignalsDefinition() map[string]WorkflowsSignalDefinitionResponse { + if o == nil { + var ret map[string]WorkflowsSignalDefinitionResponse + return ret + } + return o.SignalsDefinition +} + +// GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepQueryResponse) GetSignalsDefinitionOk() (*map[string]WorkflowsSignalDefinitionResponse, bool) { + if o == nil || isNil(o.SignalsDefinition) { + return nil, false + } + return &o.SignalsDefinition, true +} + +// HasSignalsDefinition returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepQueryResponse) HasSignalsDefinition() bool { + if o != nil && isNil(o.SignalsDefinition) { + return true + } + + return false +} + +// SetSignalsDefinition gets a reference to the given map[string]WorkflowsSignalDefinitionResponse and assigns it to the SignalsDefinition field. +func (o *WorkflowsAvailableStepQueryResponse) SetSignalsDefinition(v map[string]WorkflowsSignalDefinitionResponse) { + o.SignalsDefinition = v +} + +func (o WorkflowsAvailableStepQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsAvailableStepQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ExtensionName.IsSet() { + toSerialize["ExtensionName"] = o.ExtensionName.Get() + } + if o.SupportedWorkflowTypes != nil { + toSerialize["SupportedWorkflowTypes"] = o.SupportedWorkflowTypes + } + if o.ConfigurationParametersDefinition != nil { + toSerialize["ConfigurationParametersDefinition"] = o.ConfigurationParametersDefinition + } + if o.SignalsDefinition != nil { + toSerialize["SignalsDefinition"] = o.SignalsDefinition + } + return toSerialize, nil +} + +type NullableWorkflowsAvailableStepQueryResponse struct { + value *WorkflowsAvailableStepQueryResponse + isSet bool +} + +func (v NullableWorkflowsAvailableStepQueryResponse) Get() *WorkflowsAvailableStepQueryResponse { + return v.value +} + +func (v *NullableWorkflowsAvailableStepQueryResponse) Set(val *WorkflowsAvailableStepQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsAvailableStepQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsAvailableStepQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsAvailableStepQueryResponse(val *WorkflowsAvailableStepQueryResponse) *NullableWorkflowsAvailableStepQueryResponse { + return &NullableWorkflowsAvailableStepQueryResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsAvailableStepQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsAvailableStepQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_available_step_response.go b/v24/api/keyfactor/v1/model_workflows_available_step_response.go new file mode 100644 index 0000000..73dce8a --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_available_step_response.go @@ -0,0 +1,306 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsAvailableStepResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsAvailableStepResponse{} + +// WorkflowsAvailableStepResponse struct for WorkflowsAvailableStepResponse +type WorkflowsAvailableStepResponse struct { + // The display name of the step. + DisplayName NullableString `json:"DisplayName,omitempty"` + // The name of the extension. + ExtensionName NullableString `json:"ExtensionName,omitempty"` + // The possible outputs of the step. + Outputs []string `json:"Outputs,omitempty"` + ConfigurationParametersDefinition map[string]WorkflowsParameterDefinitionResponse `json:"ConfigurationParametersDefinition,omitempty"` + SignalsDefinition map[string]WorkflowsSignalDefinitionResponse `json:"SignalsDefinition,omitempty"` +} + +// NewWorkflowsAvailableStepResponse instantiates a new WorkflowsAvailableStepResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsAvailableStepResponse() *WorkflowsAvailableStepResponse { + this := WorkflowsAvailableStepResponse{} + return &this +} + +// NewWorkflowsAvailableStepResponseWithDefaults instantiates a new WorkflowsAvailableStepResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsAvailableStepResponseWithDefaults() *WorkflowsAvailableStepResponse { + this := WorkflowsAvailableStepResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsAvailableStepResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsAvailableStepResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsAvailableStepResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName.Get()) { + var ret string + return ret + } + return *o.ExtensionName.Get() +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepResponse) GetExtensionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtensionName.Get(), o.ExtensionName.IsSet() +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepResponse) HasExtensionName() bool { + if o != nil && o.ExtensionName.IsSet() { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given NullableString and assigns it to the ExtensionName field. +func (o *WorkflowsAvailableStepResponse) SetExtensionName(v string) { + o.ExtensionName.Set(&v) +} + +// SetExtensionNameNil sets the value for ExtensionName to be an explicit nil +func (o *WorkflowsAvailableStepResponse) SetExtensionNameNil() { + o.ExtensionName.Set(nil) +} + +// UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +func (o *WorkflowsAvailableStepResponse) UnsetExtensionName() { + o.ExtensionName.Unset() +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepResponse) GetOutputs() []string { + if o == nil { + var ret []string + return ret + } + return o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepResponse) GetOutputsOk() ([]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepResponse) HasOutputs() bool { + if o != nil && isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given []string and assigns it to the Outputs field. +func (o *WorkflowsAvailableStepResponse) SetOutputs(v []string) { + o.Outputs = v +} + +// GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepResponse) GetConfigurationParametersDefinition() map[string]WorkflowsParameterDefinitionResponse { + if o == nil { + var ret map[string]WorkflowsParameterDefinitionResponse + return ret + } + return o.ConfigurationParametersDefinition +} + +// GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepResponse) GetConfigurationParametersDefinitionOk() (*map[string]WorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + return nil, false + } + return &o.ConfigurationParametersDefinition, true +} + +// HasConfigurationParametersDefinition returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepResponse) HasConfigurationParametersDefinition() bool { + if o != nil && isNil(o.ConfigurationParametersDefinition) { + return true + } + + return false +} + +// SetConfigurationParametersDefinition gets a reference to the given map[string]WorkflowsParameterDefinitionResponse and assigns it to the ConfigurationParametersDefinition field. +func (o *WorkflowsAvailableStepResponse) SetConfigurationParametersDefinition(v map[string]WorkflowsParameterDefinitionResponse) { + o.ConfigurationParametersDefinition = v +} + +// GetSignalsDefinition returns the SignalsDefinition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsAvailableStepResponse) GetSignalsDefinition() map[string]WorkflowsSignalDefinitionResponse { + if o == nil { + var ret map[string]WorkflowsSignalDefinitionResponse + return ret + } + return o.SignalsDefinition +} + +// GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsAvailableStepResponse) GetSignalsDefinitionOk() (*map[string]WorkflowsSignalDefinitionResponse, bool) { + if o == nil || isNil(o.SignalsDefinition) { + return nil, false + } + return &o.SignalsDefinition, true +} + +// HasSignalsDefinition returns a boolean if a field has been set. +func (o *WorkflowsAvailableStepResponse) HasSignalsDefinition() bool { + if o != nil && isNil(o.SignalsDefinition) { + return true + } + + return false +} + +// SetSignalsDefinition gets a reference to the given map[string]WorkflowsSignalDefinitionResponse and assigns it to the SignalsDefinition field. +func (o *WorkflowsAvailableStepResponse) SetSignalsDefinition(v map[string]WorkflowsSignalDefinitionResponse) { + o.SignalsDefinition = v +} + +func (o WorkflowsAvailableStepResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsAvailableStepResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.ExtensionName.IsSet() { + toSerialize["ExtensionName"] = o.ExtensionName.Get() + } + if o.Outputs != nil { + toSerialize["Outputs"] = o.Outputs + } + if o.ConfigurationParametersDefinition != nil { + toSerialize["ConfigurationParametersDefinition"] = o.ConfigurationParametersDefinition + } + if o.SignalsDefinition != nil { + toSerialize["SignalsDefinition"] = o.SignalsDefinition + } + return toSerialize, nil +} + +type NullableWorkflowsAvailableStepResponse struct { + value *WorkflowsAvailableStepResponse + isSet bool +} + +func (v NullableWorkflowsAvailableStepResponse) Get() *WorkflowsAvailableStepResponse { + return v.value +} + +func (v *NullableWorkflowsAvailableStepResponse) Set(val *WorkflowsAvailableStepResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsAvailableStepResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsAvailableStepResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsAvailableStepResponse(val *WorkflowsAvailableStepResponse) *NullableWorkflowsAvailableStepResponse { + return &NullableWorkflowsAvailableStepResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsAvailableStepResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsAvailableStepResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_condition_configuration_request.go b/v24/api/keyfactor/v1/model_workflows_condition_configuration_request.go new file mode 100644 index 0000000..c390f19 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_condition_configuration_request.go @@ -0,0 +1,146 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsConditionConfigurationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsConditionConfigurationRequest{} + +// WorkflowsConditionConfigurationRequest Information about the configuration of a workflow condition. +type WorkflowsConditionConfigurationRequest struct { + // The value to compare to true when evaluating conditions. + Value NullableString `json:"Value,omitempty"` +} + +// NewWorkflowsConditionConfigurationRequest instantiates a new WorkflowsConditionConfigurationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsConditionConfigurationRequest() *WorkflowsConditionConfigurationRequest { + this := WorkflowsConditionConfigurationRequest{} + return &this +} + +// NewWorkflowsConditionConfigurationRequestWithDefaults instantiates a new WorkflowsConditionConfigurationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsConditionConfigurationRequestWithDefaults() *WorkflowsConditionConfigurationRequest { + this := WorkflowsConditionConfigurationRequest{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsConditionConfigurationRequest) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsConditionConfigurationRequest) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *WorkflowsConditionConfigurationRequest) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *WorkflowsConditionConfigurationRequest) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *WorkflowsConditionConfigurationRequest) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *WorkflowsConditionConfigurationRequest) UnsetValue() { + o.Value.Unset() +} + +func (o WorkflowsConditionConfigurationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsConditionConfigurationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableWorkflowsConditionConfigurationRequest struct { + value *WorkflowsConditionConfigurationRequest + isSet bool +} + +func (v NullableWorkflowsConditionConfigurationRequest) Get() *WorkflowsConditionConfigurationRequest { + return v.value +} + +func (v *NullableWorkflowsConditionConfigurationRequest) Set(val *WorkflowsConditionConfigurationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsConditionConfigurationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsConditionConfigurationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsConditionConfigurationRequest(val *WorkflowsConditionConfigurationRequest) *NullableWorkflowsConditionConfigurationRequest { + return &NullableWorkflowsConditionConfigurationRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsConditionConfigurationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsConditionConfigurationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_condition_configuration_response.go b/v24/api/keyfactor/v1/model_workflows_condition_configuration_response.go new file mode 100644 index 0000000..0bba5c1 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_condition_configuration_response.go @@ -0,0 +1,183 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsConditionConfigurationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsConditionConfigurationResponse{} + +// WorkflowsConditionConfigurationResponse Information about the configuration of a workflow condition. +type WorkflowsConditionConfigurationResponse struct { + // The Id of the condition. + Id *string `json:"Id,omitempty"` + // The value to compare to. This value will be compared to a true value. + Value NullableString `json:"Value,omitempty"` +} + +// NewWorkflowsConditionConfigurationResponse instantiates a new WorkflowsConditionConfigurationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsConditionConfigurationResponse() *WorkflowsConditionConfigurationResponse { + this := WorkflowsConditionConfigurationResponse{} + return &this +} + +// NewWorkflowsConditionConfigurationResponseWithDefaults instantiates a new WorkflowsConditionConfigurationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsConditionConfigurationResponseWithDefaults() *WorkflowsConditionConfigurationResponse { + this := WorkflowsConditionConfigurationResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsConditionConfigurationResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsConditionConfigurationResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsConditionConfigurationResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsConditionConfigurationResponse) SetId(v string) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsConditionConfigurationResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsConditionConfigurationResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *WorkflowsConditionConfigurationResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *WorkflowsConditionConfigurationResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *WorkflowsConditionConfigurationResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *WorkflowsConditionConfigurationResponse) UnsetValue() { + o.Value.Unset() +} + +func (o WorkflowsConditionConfigurationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsConditionConfigurationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + return toSerialize, nil +} + +type NullableWorkflowsConditionConfigurationResponse struct { + value *WorkflowsConditionConfigurationResponse + isSet bool +} + +func (v NullableWorkflowsConditionConfigurationResponse) Get() *WorkflowsConditionConfigurationResponse { + return v.value +} + +func (v *NullableWorkflowsConditionConfigurationResponse) Set(val *WorkflowsConditionConfigurationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsConditionConfigurationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsConditionConfigurationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsConditionConfigurationResponse(val *WorkflowsConditionConfigurationResponse) *NullableWorkflowsConditionConfigurationResponse { + return &NullableWorkflowsConditionConfigurationResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsConditionConfigurationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsConditionConfigurationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_create_request.go b/v24/api/keyfactor/v1/model_workflows_definition_create_request.go new file mode 100644 index 0000000..1314918 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_create_request.go @@ -0,0 +1,327 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionCreateRequest{} + +// WorkflowsDefinitionCreateRequest struct for WorkflowsDefinitionCreateRequest +type WorkflowsDefinitionCreateRequest struct { + // Display name of the Definition + DisplayName NullableString `json:"DisplayName,omitempty"` + // Description of the Definition + Description NullableString `json:"Description,omitempty"` + // Key to be used to look up definition when starting a new workflow. For enrollment workflowTypes, this should be a template + Key NullableString `json:"Key,omitempty"` + // The Type of Workflow + WorkflowType NullableString `json:"WorkflowType,omitempty"` + // If the Definition is enabled + Enabled *bool `json:"Enabled,omitempty"` +} + +// NewWorkflowsDefinitionCreateRequest instantiates a new WorkflowsDefinitionCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionCreateRequest() *WorkflowsDefinitionCreateRequest { + this := WorkflowsDefinitionCreateRequest{} + return &this +} + +// NewWorkflowsDefinitionCreateRequestWithDefaults instantiates a new WorkflowsDefinitionCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionCreateRequestWithDefaults() *WorkflowsDefinitionCreateRequest { + this := WorkflowsDefinitionCreateRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionCreateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionCreateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionCreateRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionCreateRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionCreateRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *WorkflowsDefinitionCreateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *WorkflowsDefinitionCreateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *WorkflowsDefinitionCreateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *WorkflowsDefinitionCreateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionCreateRequest) GetKey() string { + if o == nil || isNil(o.Key.Get()) { + var ret string + return ret + } + return *o.Key.Get() +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionCreateRequest) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Key.Get(), o.Key.IsSet() +} + +// HasKey returns a boolean if a field has been set. +func (o *WorkflowsDefinitionCreateRequest) HasKey() bool { + if o != nil && o.Key.IsSet() { + return true + } + + return false +} + +// SetKey gets a reference to the given NullableString and assigns it to the Key field. +func (o *WorkflowsDefinitionCreateRequest) SetKey(v string) { + o.Key.Set(&v) +} + +// SetKeyNil sets the value for Key to be an explicit nil +func (o *WorkflowsDefinitionCreateRequest) SetKeyNil() { + o.Key.Set(nil) +} + +// UnsetKey ensures that no value is present for Key, not even an explicit nil +func (o *WorkflowsDefinitionCreateRequest) UnsetKey() { + o.Key.Unset() +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionCreateRequest) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType.Get()) { + var ret string + return ret + } + return *o.WorkflowType.Get() +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionCreateRequest) GetWorkflowTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowType.Get(), o.WorkflowType.IsSet() +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *WorkflowsDefinitionCreateRequest) HasWorkflowType() bool { + if o != nil && o.WorkflowType.IsSet() { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given NullableString and assigns it to the WorkflowType field. +func (o *WorkflowsDefinitionCreateRequest) SetWorkflowType(v string) { + o.WorkflowType.Set(&v) +} + +// SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil +func (o *WorkflowsDefinitionCreateRequest) SetWorkflowTypeNil() { + o.WorkflowType.Set(nil) +} + +// UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +func (o *WorkflowsDefinitionCreateRequest) UnsetWorkflowType() { + o.WorkflowType.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionCreateRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionCreateRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionCreateRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionCreateRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o WorkflowsDefinitionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Key.IsSet() { + toSerialize["Key"] = o.Key.Get() + } + if o.WorkflowType.IsSet() { + toSerialize["WorkflowType"] = o.WorkflowType.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionCreateRequest struct { + value *WorkflowsDefinitionCreateRequest + isSet bool +} + +func (v NullableWorkflowsDefinitionCreateRequest) Get() *WorkflowsDefinitionCreateRequest { + return v.value +} + +func (v *NullableWorkflowsDefinitionCreateRequest) Set(val *WorkflowsDefinitionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionCreateRequest(val *WorkflowsDefinitionCreateRequest) *NullableWorkflowsDefinitionCreateRequest { + return &NullableWorkflowsDefinitionCreateRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_query_response.go b/v24/api/keyfactor/v1/model_workflows_definition_query_response.go new file mode 100644 index 0000000..6db86b4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_query_response.go @@ -0,0 +1,441 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionQueryResponse{} + +// WorkflowsDefinitionQueryResponse struct for WorkflowsDefinitionQueryResponse +type WorkflowsDefinitionQueryResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Key NullableString `json:"Key,omitempty"` + KeyDisplayName NullableString `json:"KeyDisplayName,omitempty"` + WorkflowType NullableString `json:"WorkflowType,omitempty"` + DraftVersion *int32 `json:"DraftVersion,omitempty"` + PublishedVersion NullableInt32 `json:"PublishedVersion,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` +} + +// NewWorkflowsDefinitionQueryResponse instantiates a new WorkflowsDefinitionQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionQueryResponse() *WorkflowsDefinitionQueryResponse { + this := WorkflowsDefinitionQueryResponse{} + return &this +} + +// NewWorkflowsDefinitionQueryResponseWithDefaults instantiates a new WorkflowsDefinitionQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionQueryResponseWithDefaults() *WorkflowsDefinitionQueryResponse { + this := WorkflowsDefinitionQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsDefinitionQueryResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionQueryResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsDefinitionQueryResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionQueryResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionQueryResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionQueryResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionQueryResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionQueryResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionQueryResponse) GetKey() string { + if o == nil || isNil(o.Key.Get()) { + var ret string + return ret + } + return *o.Key.Get() +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionQueryResponse) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Key.Get(), o.Key.IsSet() +} + +// HasKey returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasKey() bool { + if o != nil && o.Key.IsSet() { + return true + } + + return false +} + +// SetKey gets a reference to the given NullableString and assigns it to the Key field. +func (o *WorkflowsDefinitionQueryResponse) SetKey(v string) { + o.Key.Set(&v) +} + +// SetKeyNil sets the value for Key to be an explicit nil +func (o *WorkflowsDefinitionQueryResponse) SetKeyNil() { + o.Key.Set(nil) +} + +// UnsetKey ensures that no value is present for Key, not even an explicit nil +func (o *WorkflowsDefinitionQueryResponse) UnsetKey() { + o.Key.Unset() +} + +// GetKeyDisplayName returns the KeyDisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionQueryResponse) GetKeyDisplayName() string { + if o == nil || isNil(o.KeyDisplayName.Get()) { + var ret string + return ret + } + return *o.KeyDisplayName.Get() +} + +// GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionQueryResponse) GetKeyDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyDisplayName.Get(), o.KeyDisplayName.IsSet() +} + +// HasKeyDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasKeyDisplayName() bool { + if o != nil && o.KeyDisplayName.IsSet() { + return true + } + + return false +} + +// SetKeyDisplayName gets a reference to the given NullableString and assigns it to the KeyDisplayName field. +func (o *WorkflowsDefinitionQueryResponse) SetKeyDisplayName(v string) { + o.KeyDisplayName.Set(&v) +} + +// SetKeyDisplayNameNil sets the value for KeyDisplayName to be an explicit nil +func (o *WorkflowsDefinitionQueryResponse) SetKeyDisplayNameNil() { + o.KeyDisplayName.Set(nil) +} + +// UnsetKeyDisplayName ensures that no value is present for KeyDisplayName, not even an explicit nil +func (o *WorkflowsDefinitionQueryResponse) UnsetKeyDisplayName() { + o.KeyDisplayName.Unset() +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionQueryResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType.Get()) { + var ret string + return ret + } + return *o.WorkflowType.Get() +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionQueryResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowType.Get(), o.WorkflowType.IsSet() +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasWorkflowType() bool { + if o != nil && o.WorkflowType.IsSet() { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given NullableString and assigns it to the WorkflowType field. +func (o *WorkflowsDefinitionQueryResponse) SetWorkflowType(v string) { + o.WorkflowType.Set(&v) +} + +// SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil +func (o *WorkflowsDefinitionQueryResponse) SetWorkflowTypeNil() { + o.WorkflowType.Set(nil) +} + +// UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +func (o *WorkflowsDefinitionQueryResponse) UnsetWorkflowType() { + o.WorkflowType.Unset() +} + +// GetDraftVersion returns the DraftVersion field value if set, zero value otherwise. +func (o *WorkflowsDefinitionQueryResponse) GetDraftVersion() int32 { + if o == nil || isNil(o.DraftVersion) { + var ret int32 + return ret + } + return *o.DraftVersion +} + +// GetDraftVersionOk returns a tuple with the DraftVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionQueryResponse) GetDraftVersionOk() (*int32, bool) { + if o == nil || isNil(o.DraftVersion) { + return nil, false + } + return o.DraftVersion, true +} + +// HasDraftVersion returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasDraftVersion() bool { + if o != nil && !isNil(o.DraftVersion) { + return true + } + + return false +} + +// SetDraftVersion gets a reference to the given int32 and assigns it to the DraftVersion field. +func (o *WorkflowsDefinitionQueryResponse) SetDraftVersion(v int32) { + o.DraftVersion = &v +} + +// GetPublishedVersion returns the PublishedVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionQueryResponse) GetPublishedVersion() int32 { + if o == nil || isNil(o.PublishedVersion.Get()) { + var ret int32 + return ret + } + return *o.PublishedVersion.Get() +} + +// GetPublishedVersionOk returns a tuple with the PublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionQueryResponse) GetPublishedVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PublishedVersion.Get(), o.PublishedVersion.IsSet() +} + +// HasPublishedVersion returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasPublishedVersion() bool { + if o != nil && o.PublishedVersion.IsSet() { + return true + } + + return false +} + +// SetPublishedVersion gets a reference to the given NullableInt32 and assigns it to the PublishedVersion field. +func (o *WorkflowsDefinitionQueryResponse) SetPublishedVersion(v int32) { + o.PublishedVersion.Set(&v) +} + +// SetPublishedVersionNil sets the value for PublishedVersion to be an explicit nil +func (o *WorkflowsDefinitionQueryResponse) SetPublishedVersionNil() { + o.PublishedVersion.Set(nil) +} + +// UnsetPublishedVersion ensures that no value is present for PublishedVersion, not even an explicit nil +func (o *WorkflowsDefinitionQueryResponse) UnsetPublishedVersion() { + o.PublishedVersion.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionQueryResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionQueryResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionQueryResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionQueryResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o WorkflowsDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Key.IsSet() { + toSerialize["Key"] = o.Key.Get() + } + if o.KeyDisplayName.IsSet() { + toSerialize["KeyDisplayName"] = o.KeyDisplayName.Get() + } + if o.WorkflowType.IsSet() { + toSerialize["WorkflowType"] = o.WorkflowType.Get() + } + if !isNil(o.DraftVersion) { + toSerialize["DraftVersion"] = o.DraftVersion + } + if o.PublishedVersion.IsSet() { + toSerialize["PublishedVersion"] = o.PublishedVersion.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionQueryResponse struct { + value *WorkflowsDefinitionQueryResponse + isSet bool +} + +func (v NullableWorkflowsDefinitionQueryResponse) Get() *WorkflowsDefinitionQueryResponse { + return v.value +} + +func (v *NullableWorkflowsDefinitionQueryResponse) Set(val *WorkflowsDefinitionQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionQueryResponse(val *WorkflowsDefinitionQueryResponse) *NullableWorkflowsDefinitionQueryResponse { + return &NullableWorkflowsDefinitionQueryResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_response.go b/v24/api/keyfactor/v1/model_workflows_definition_response.go new file mode 100644 index 0000000..41d9726 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_response.go @@ -0,0 +1,561 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionResponse{} + +// WorkflowsDefinitionResponse struct for WorkflowsDefinitionResponse +type WorkflowsDefinitionResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + Key NullableString `json:"Key,omitempty"` + KeyDisplayName NullableString `json:"KeyDisplayName,omitempty"` + IsPublished *bool `json:"IsPublished,omitempty"` + WorkflowType NullableString `json:"WorkflowType,omitempty"` + Steps []WorkflowsDefinitionStepResponse `json:"Steps,omitempty"` + DraftVersion *int32 `json:"DraftVersion,omitempty"` + PublishedVersion NullableInt32 `json:"PublishedVersion,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` +} + +// NewWorkflowsDefinitionResponse instantiates a new WorkflowsDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionResponse() *WorkflowsDefinitionResponse { + this := WorkflowsDefinitionResponse{} + return &this +} + +// NewWorkflowsDefinitionResponseWithDefaults instantiates a new WorkflowsDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionResponseWithDefaults() *WorkflowsDefinitionResponse { + this := WorkflowsDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsDefinitionResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsDefinitionResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *WorkflowsDefinitionResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetKey() string { + if o == nil || isNil(o.Key.Get()) { + var ret string + return ret + } + return *o.Key.Get() +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Key.Get(), o.Key.IsSet() +} + +// HasKey returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasKey() bool { + if o != nil && o.Key.IsSet() { + return true + } + + return false +} + +// SetKey gets a reference to the given NullableString and assigns it to the Key field. +func (o *WorkflowsDefinitionResponse) SetKey(v string) { + o.Key.Set(&v) +} + +// SetKeyNil sets the value for Key to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetKeyNil() { + o.Key.Set(nil) +} + +// UnsetKey ensures that no value is present for Key, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetKey() { + o.Key.Unset() +} + +// GetKeyDisplayName returns the KeyDisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetKeyDisplayName() string { + if o == nil || isNil(o.KeyDisplayName.Get()) { + var ret string + return ret + } + return *o.KeyDisplayName.Get() +} + +// GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetKeyDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyDisplayName.Get(), o.KeyDisplayName.IsSet() +} + +// HasKeyDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasKeyDisplayName() bool { + if o != nil && o.KeyDisplayName.IsSet() { + return true + } + + return false +} + +// SetKeyDisplayName gets a reference to the given NullableString and assigns it to the KeyDisplayName field. +func (o *WorkflowsDefinitionResponse) SetKeyDisplayName(v string) { + o.KeyDisplayName.Set(&v) +} + +// SetKeyDisplayNameNil sets the value for KeyDisplayName to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetKeyDisplayNameNil() { + o.KeyDisplayName.Set(nil) +} + +// UnsetKeyDisplayName ensures that no value is present for KeyDisplayName, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetKeyDisplayName() { + o.KeyDisplayName.Unset() +} + +// GetIsPublished returns the IsPublished field value if set, zero value otherwise. +func (o *WorkflowsDefinitionResponse) GetIsPublished() bool { + if o == nil || isNil(o.IsPublished) { + var ret bool + return ret + } + return *o.IsPublished +} + +// GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionResponse) GetIsPublishedOk() (*bool, bool) { + if o == nil || isNil(o.IsPublished) { + return nil, false + } + return o.IsPublished, true +} + +// HasIsPublished returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasIsPublished() bool { + if o != nil && !isNil(o.IsPublished) { + return true + } + + return false +} + +// SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field. +func (o *WorkflowsDefinitionResponse) SetIsPublished(v bool) { + o.IsPublished = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType.Get()) { + var ret string + return ret + } + return *o.WorkflowType.Get() +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowType.Get(), o.WorkflowType.IsSet() +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasWorkflowType() bool { + if o != nil && o.WorkflowType.IsSet() { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given NullableString and assigns it to the WorkflowType field. +func (o *WorkflowsDefinitionResponse) SetWorkflowType(v string) { + o.WorkflowType.Set(&v) +} + +// SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetWorkflowTypeNil() { + o.WorkflowType.Set(nil) +} + +// UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetWorkflowType() { + o.WorkflowType.Unset() +} + +// GetSteps returns the Steps field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetSteps() []WorkflowsDefinitionStepResponse { + if o == nil { + var ret []WorkflowsDefinitionStepResponse + return ret + } + return o.Steps +} + +// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetStepsOk() ([]WorkflowsDefinitionStepResponse, bool) { + if o == nil || isNil(o.Steps) { + return nil, false + } + return o.Steps, true +} + +// HasSteps returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasSteps() bool { + if o != nil && isNil(o.Steps) { + return true + } + + return false +} + +// SetSteps gets a reference to the given []WorkflowsDefinitionStepResponse and assigns it to the Steps field. +func (o *WorkflowsDefinitionResponse) SetSteps(v []WorkflowsDefinitionStepResponse) { + o.Steps = v +} + +// GetDraftVersion returns the DraftVersion field value if set, zero value otherwise. +func (o *WorkflowsDefinitionResponse) GetDraftVersion() int32 { + if o == nil || isNil(o.DraftVersion) { + var ret int32 + return ret + } + return *o.DraftVersion +} + +// GetDraftVersionOk returns a tuple with the DraftVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionResponse) GetDraftVersionOk() (*int32, bool) { + if o == nil || isNil(o.DraftVersion) { + return nil, false + } + return o.DraftVersion, true +} + +// HasDraftVersion returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasDraftVersion() bool { + if o != nil && !isNil(o.DraftVersion) { + return true + } + + return false +} + +// SetDraftVersion gets a reference to the given int32 and assigns it to the DraftVersion field. +func (o *WorkflowsDefinitionResponse) SetDraftVersion(v int32) { + o.DraftVersion = &v +} + +// GetPublishedVersion returns the PublishedVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionResponse) GetPublishedVersion() int32 { + if o == nil || isNil(o.PublishedVersion.Get()) { + var ret int32 + return ret + } + return *o.PublishedVersion.Get() +} + +// GetPublishedVersionOk returns a tuple with the PublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionResponse) GetPublishedVersionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PublishedVersion.Get(), o.PublishedVersion.IsSet() +} + +// HasPublishedVersion returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasPublishedVersion() bool { + if o != nil && o.PublishedVersion.IsSet() { + return true + } + + return false +} + +// SetPublishedVersion gets a reference to the given NullableInt32 and assigns it to the PublishedVersion field. +func (o *WorkflowsDefinitionResponse) SetPublishedVersion(v int32) { + o.PublishedVersion.Set(&v) +} + +// SetPublishedVersionNil sets the value for PublishedVersion to be an explicit nil +func (o *WorkflowsDefinitionResponse) SetPublishedVersionNil() { + o.PublishedVersion.Set(nil) +} + +// UnsetPublishedVersion ensures that no value is present for PublishedVersion, not even an explicit nil +func (o *WorkflowsDefinitionResponse) UnsetPublishedVersion() { + o.PublishedVersion.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o WorkflowsDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.Key.IsSet() { + toSerialize["Key"] = o.Key.Get() + } + if o.KeyDisplayName.IsSet() { + toSerialize["KeyDisplayName"] = o.KeyDisplayName.Get() + } + if !isNil(o.IsPublished) { + toSerialize["IsPublished"] = o.IsPublished + } + if o.WorkflowType.IsSet() { + toSerialize["WorkflowType"] = o.WorkflowType.Get() + } + if o.Steps != nil { + toSerialize["Steps"] = o.Steps + } + if !isNil(o.DraftVersion) { + toSerialize["DraftVersion"] = o.DraftVersion + } + if o.PublishedVersion.IsSet() { + toSerialize["PublishedVersion"] = o.PublishedVersion.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionResponse struct { + value *WorkflowsDefinitionResponse + isSet bool +} + +func (v NullableWorkflowsDefinitionResponse) Get() *WorkflowsDefinitionResponse { + return v.value +} + +func (v *NullableWorkflowsDefinitionResponse) Set(val *WorkflowsDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionResponse(val *WorkflowsDefinitionResponse) *NullableWorkflowsDefinitionResponse { + return &NullableWorkflowsDefinitionResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_step_request.go b/v24/api/keyfactor/v1/model_workflows_definition_step_request.go new file mode 100644 index 0000000..0fea52f --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_step_request.go @@ -0,0 +1,423 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionStepRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionStepRequest{} + +// WorkflowsDefinitionStepRequest struct for WorkflowsDefinitionStepRequest +type WorkflowsDefinitionStepRequest struct { + ExtensionName NullableString `json:"ExtensionName,omitempty"` + UniqueName NullableString `json:"UniqueName,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + ConfigurationParameters map[string]interface{} `json:"ConfigurationParameters,omitempty"` + Signals []WorkflowsSignalConfigurationRequest `json:"Signals,omitempty"` + Conditions []WorkflowsConditionConfigurationRequest `json:"Conditions,omitempty"` + Outputs map[string]string `json:"Outputs,omitempty"` +} + +// NewWorkflowsDefinitionStepRequest instantiates a new WorkflowsDefinitionStepRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionStepRequest() *WorkflowsDefinitionStepRequest { + this := WorkflowsDefinitionStepRequest{} + return &this +} + +// NewWorkflowsDefinitionStepRequestWithDefaults instantiates a new WorkflowsDefinitionStepRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionStepRequestWithDefaults() *WorkflowsDefinitionStepRequest { + this := WorkflowsDefinitionStepRequest{} + return &this +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName.Get()) { + var ret string + return ret + } + return *o.ExtensionName.Get() +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetExtensionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtensionName.Get(), o.ExtensionName.IsSet() +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasExtensionName() bool { + if o != nil && o.ExtensionName.IsSet() { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given NullableString and assigns it to the ExtensionName field. +func (o *WorkflowsDefinitionStepRequest) SetExtensionName(v string) { + o.ExtensionName.Set(&v) +} + +// SetExtensionNameNil sets the value for ExtensionName to be an explicit nil +func (o *WorkflowsDefinitionStepRequest) SetExtensionNameNil() { + o.ExtensionName.Set(nil) +} + +// UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +func (o *WorkflowsDefinitionStepRequest) UnsetExtensionName() { + o.ExtensionName.Unset() +} + +// GetUniqueName returns the UniqueName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetUniqueName() string { + if o == nil || isNil(o.UniqueName.Get()) { + var ret string + return ret + } + return *o.UniqueName.Get() +} + +// GetUniqueNameOk returns a tuple with the UniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetUniqueNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UniqueName.Get(), o.UniqueName.IsSet() +} + +// HasUniqueName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasUniqueName() bool { + if o != nil && o.UniqueName.IsSet() { + return true + } + + return false +} + +// SetUniqueName gets a reference to the given NullableString and assigns it to the UniqueName field. +func (o *WorkflowsDefinitionStepRequest) SetUniqueName(v string) { + o.UniqueName.Set(&v) +} + +// SetUniqueNameNil sets the value for UniqueName to be an explicit nil +func (o *WorkflowsDefinitionStepRequest) SetUniqueNameNil() { + o.UniqueName.Set(nil) +} + +// UnsetUniqueName ensures that no value is present for UniqueName, not even an explicit nil +func (o *WorkflowsDefinitionStepRequest) UnsetUniqueName() { + o.UniqueName.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionStepRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionStepRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionStepRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionStepRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionStepRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionStepRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetConfigurationParameters returns the ConfigurationParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetConfigurationParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.ConfigurationParameters +} + +// GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetConfigurationParametersOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.ConfigurationParameters) { + return map[string]interface{}{}, false + } + return o.ConfigurationParameters, true +} + +// HasConfigurationParameters returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasConfigurationParameters() bool { + if o != nil && isNil(o.ConfigurationParameters) { + return true + } + + return false +} + +// SetConfigurationParameters gets a reference to the given map[string]interface{} and assigns it to the ConfigurationParameters field. +func (o *WorkflowsDefinitionStepRequest) SetConfigurationParameters(v map[string]interface{}) { + o.ConfigurationParameters = v +} + +// GetSignals returns the Signals field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetSignals() []WorkflowsSignalConfigurationRequest { + if o == nil { + var ret []WorkflowsSignalConfigurationRequest + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetSignalsOk() ([]WorkflowsSignalConfigurationRequest, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasSignals() bool { + if o != nil && isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []WorkflowsSignalConfigurationRequest and assigns it to the Signals field. +func (o *WorkflowsDefinitionStepRequest) SetSignals(v []WorkflowsSignalConfigurationRequest) { + o.Signals = v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetConditions() []WorkflowsConditionConfigurationRequest { + if o == nil { + var ret []WorkflowsConditionConfigurationRequest + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetConditionsOk() ([]WorkflowsConditionConfigurationRequest, bool) { + if o == nil || isNil(o.Conditions) { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasConditions() bool { + if o != nil && isNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given []WorkflowsConditionConfigurationRequest and assigns it to the Conditions field. +func (o *WorkflowsDefinitionStepRequest) SetConditions(v []WorkflowsConditionConfigurationRequest) { + o.Conditions = v +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepRequest) GetOutputs() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepRequest) GetOutputsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return &o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepRequest) HasOutputs() bool { + if o != nil && isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given map[string]string and assigns it to the Outputs field. +func (o *WorkflowsDefinitionStepRequest) SetOutputs(v map[string]string) { + o.Outputs = v +} + +func (o WorkflowsDefinitionStepRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionStepRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ExtensionName.IsSet() { + toSerialize["ExtensionName"] = o.ExtensionName.Get() + } + if o.UniqueName.IsSet() { + toSerialize["UniqueName"] = o.UniqueName.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.ConfigurationParameters != nil { + toSerialize["ConfigurationParameters"] = o.ConfigurationParameters + } + if o.Signals != nil { + toSerialize["Signals"] = o.Signals + } + if o.Conditions != nil { + toSerialize["Conditions"] = o.Conditions + } + if o.Outputs != nil { + toSerialize["Outputs"] = o.Outputs + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionStepRequest struct { + value *WorkflowsDefinitionStepRequest + isSet bool +} + +func (v NullableWorkflowsDefinitionStepRequest) Get() *WorkflowsDefinitionStepRequest { + return v.value +} + +func (v *NullableWorkflowsDefinitionStepRequest) Set(val *WorkflowsDefinitionStepRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionStepRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionStepRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionStepRequest(val *WorkflowsDefinitionStepRequest) *NullableWorkflowsDefinitionStepRequest { + return &NullableWorkflowsDefinitionStepRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionStepRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionStepRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_step_response.go b/v24/api/keyfactor/v1/model_workflows_definition_step_response.go new file mode 100644 index 0000000..ebd46ea --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_step_response.go @@ -0,0 +1,459 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionStepResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionStepResponse{} + +// WorkflowsDefinitionStepResponse struct for WorkflowsDefinitionStepResponse +type WorkflowsDefinitionStepResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + UniqueName NullableString `json:"UniqueName,omitempty"` + ExtensionName NullableString `json:"ExtensionName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + ConfigurationParameters map[string]interface{} `json:"ConfigurationParameters,omitempty"` + Signals []WorkflowsDefinitionStepSignalResponse `json:"Signals,omitempty"` + Conditions []WorkflowsConditionConfigurationResponse `json:"Conditions,omitempty"` + Outputs map[string]string `json:"Outputs,omitempty"` +} + +// NewWorkflowsDefinitionStepResponse instantiates a new WorkflowsDefinitionStepResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionStepResponse() *WorkflowsDefinitionStepResponse { + this := WorkflowsDefinitionStepResponse{} + return &this +} + +// NewWorkflowsDefinitionStepResponseWithDefaults instantiates a new WorkflowsDefinitionStepResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionStepResponseWithDefaults() *WorkflowsDefinitionStepResponse { + this := WorkflowsDefinitionStepResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsDefinitionStepResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionStepResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsDefinitionStepResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionStepResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionStepResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionStepResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetUniqueName returns the UniqueName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetUniqueName() string { + if o == nil || isNil(o.UniqueName.Get()) { + var ret string + return ret + } + return *o.UniqueName.Get() +} + +// GetUniqueNameOk returns a tuple with the UniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetUniqueNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UniqueName.Get(), o.UniqueName.IsSet() +} + +// HasUniqueName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasUniqueName() bool { + if o != nil && o.UniqueName.IsSet() { + return true + } + + return false +} + +// SetUniqueName gets a reference to the given NullableString and assigns it to the UniqueName field. +func (o *WorkflowsDefinitionStepResponse) SetUniqueName(v string) { + o.UniqueName.Set(&v) +} + +// SetUniqueNameNil sets the value for UniqueName to be an explicit nil +func (o *WorkflowsDefinitionStepResponse) SetUniqueNameNil() { + o.UniqueName.Set(nil) +} + +// UnsetUniqueName ensures that no value is present for UniqueName, not even an explicit nil +func (o *WorkflowsDefinitionStepResponse) UnsetUniqueName() { + o.UniqueName.Unset() +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName.Get()) { + var ret string + return ret + } + return *o.ExtensionName.Get() +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetExtensionNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtensionName.Get(), o.ExtensionName.IsSet() +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasExtensionName() bool { + if o != nil && o.ExtensionName.IsSet() { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given NullableString and assigns it to the ExtensionName field. +func (o *WorkflowsDefinitionStepResponse) SetExtensionName(v string) { + o.ExtensionName.Set(&v) +} + +// SetExtensionNameNil sets the value for ExtensionName to be an explicit nil +func (o *WorkflowsDefinitionStepResponse) SetExtensionNameNil() { + o.ExtensionName.Set(nil) +} + +// UnsetExtensionName ensures that no value is present for ExtensionName, not even an explicit nil +func (o *WorkflowsDefinitionStepResponse) UnsetExtensionName() { + o.ExtensionName.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionStepResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionStepResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionStepResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetConfigurationParameters returns the ConfigurationParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetConfigurationParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.ConfigurationParameters +} + +// GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetConfigurationParametersOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.ConfigurationParameters) { + return map[string]interface{}{}, false + } + return o.ConfigurationParameters, true +} + +// HasConfigurationParameters returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasConfigurationParameters() bool { + if o != nil && isNil(o.ConfigurationParameters) { + return true + } + + return false +} + +// SetConfigurationParameters gets a reference to the given map[string]interface{} and assigns it to the ConfigurationParameters field. +func (o *WorkflowsDefinitionStepResponse) SetConfigurationParameters(v map[string]interface{}) { + o.ConfigurationParameters = v +} + +// GetSignals returns the Signals field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetSignals() []WorkflowsDefinitionStepSignalResponse { + if o == nil { + var ret []WorkflowsDefinitionStepSignalResponse + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetSignalsOk() ([]WorkflowsDefinitionStepSignalResponse, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasSignals() bool { + if o != nil && isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []WorkflowsDefinitionStepSignalResponse and assigns it to the Signals field. +func (o *WorkflowsDefinitionStepResponse) SetSignals(v []WorkflowsDefinitionStepSignalResponse) { + o.Signals = v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetConditions() []WorkflowsConditionConfigurationResponse { + if o == nil { + var ret []WorkflowsConditionConfigurationResponse + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetConditionsOk() ([]WorkflowsConditionConfigurationResponse, bool) { + if o == nil || isNil(o.Conditions) { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasConditions() bool { + if o != nil && isNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given []WorkflowsConditionConfigurationResponse and assigns it to the Conditions field. +func (o *WorkflowsDefinitionStepResponse) SetConditions(v []WorkflowsConditionConfigurationResponse) { + o.Conditions = v +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepResponse) GetOutputs() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepResponse) GetOutputsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return &o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepResponse) HasOutputs() bool { + if o != nil && isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given map[string]string and assigns it to the Outputs field. +func (o *WorkflowsDefinitionStepResponse) SetOutputs(v map[string]string) { + o.Outputs = v +} + +func (o WorkflowsDefinitionStepResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionStepResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.UniqueName.IsSet() { + toSerialize["UniqueName"] = o.UniqueName.Get() + } + if o.ExtensionName.IsSet() { + toSerialize["ExtensionName"] = o.ExtensionName.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if o.ConfigurationParameters != nil { + toSerialize["ConfigurationParameters"] = o.ConfigurationParameters + } + if o.Signals != nil { + toSerialize["Signals"] = o.Signals + } + if o.Conditions != nil { + toSerialize["Conditions"] = o.Conditions + } + if o.Outputs != nil { + toSerialize["Outputs"] = o.Outputs + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionStepResponse struct { + value *WorkflowsDefinitionStepResponse + isSet bool +} + +func (v NullableWorkflowsDefinitionStepResponse) Get() *WorkflowsDefinitionStepResponse { + return v.value +} + +func (v *NullableWorkflowsDefinitionStepResponse) Set(val *WorkflowsDefinitionStepResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionStepResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionStepResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionStepResponse(val *WorkflowsDefinitionStepResponse) *NullableWorkflowsDefinitionStepResponse { + return &NullableWorkflowsDefinitionStepResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionStepResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionStepResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_step_signal_response.go b/v24/api/keyfactor/v1/model_workflows_definition_step_signal_response.go new file mode 100644 index 0000000..b620453 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_step_signal_response.go @@ -0,0 +1,183 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionStepSignalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionStepSignalResponse{} + +// WorkflowsDefinitionStepSignalResponse struct for WorkflowsDefinitionStepSignalResponse +type WorkflowsDefinitionStepSignalResponse struct { + // The roles that are allowed to send this signal. + RoleIds []int32 `json:"RoleIds,omitempty"` + SignalName NullableString `json:"SignalName,omitempty"` +} + +// NewWorkflowsDefinitionStepSignalResponse instantiates a new WorkflowsDefinitionStepSignalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionStepSignalResponse() *WorkflowsDefinitionStepSignalResponse { + this := WorkflowsDefinitionStepSignalResponse{} + return &this +} + +// NewWorkflowsDefinitionStepSignalResponseWithDefaults instantiates a new WorkflowsDefinitionStepSignalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionStepSignalResponseWithDefaults() *WorkflowsDefinitionStepSignalResponse { + this := WorkflowsDefinitionStepSignalResponse{} + return &this +} + +// GetRoleIds returns the RoleIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepSignalResponse) GetRoleIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.RoleIds +} + +// GetRoleIdsOk returns a tuple with the RoleIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepSignalResponse) GetRoleIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RoleIds) { + return nil, false + } + return o.RoleIds, true +} + +// HasRoleIds returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepSignalResponse) HasRoleIds() bool { + if o != nil && isNil(o.RoleIds) { + return true + } + + return false +} + +// SetRoleIds gets a reference to the given []int32 and assigns it to the RoleIds field. +func (o *WorkflowsDefinitionStepSignalResponse) SetRoleIds(v []int32) { + o.RoleIds = v +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionStepSignalResponse) GetSignalName() string { + if o == nil || isNil(o.SignalName.Get()) { + var ret string + return ret + } + return *o.SignalName.Get() +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionStepSignalResponse) GetSignalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignalName.Get(), o.SignalName.IsSet() +} + +// HasSignalName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionStepSignalResponse) HasSignalName() bool { + if o != nil && o.SignalName.IsSet() { + return true + } + + return false +} + +// SetSignalName gets a reference to the given NullableString and assigns it to the SignalName field. +func (o *WorkflowsDefinitionStepSignalResponse) SetSignalName(v string) { + o.SignalName.Set(&v) +} + +// SetSignalNameNil sets the value for SignalName to be an explicit nil +func (o *WorkflowsDefinitionStepSignalResponse) SetSignalNameNil() { + o.SignalName.Set(nil) +} + +// UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil +func (o *WorkflowsDefinitionStepSignalResponse) UnsetSignalName() { + o.SignalName.Unset() +} + +func (o WorkflowsDefinitionStepSignalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionStepSignalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.RoleIds != nil { + toSerialize["RoleIds"] = o.RoleIds + } + if o.SignalName.IsSet() { + toSerialize["SignalName"] = o.SignalName.Get() + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionStepSignalResponse struct { + value *WorkflowsDefinitionStepSignalResponse + isSet bool +} + +func (v NullableWorkflowsDefinitionStepSignalResponse) Get() *WorkflowsDefinitionStepSignalResponse { + return v.value +} + +func (v *NullableWorkflowsDefinitionStepSignalResponse) Set(val *WorkflowsDefinitionStepSignalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionStepSignalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionStepSignalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionStepSignalResponse(val *WorkflowsDefinitionStepSignalResponse) *NullableWorkflowsDefinitionStepSignalResponse { + return &NullableWorkflowsDefinitionStepSignalResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionStepSignalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionStepSignalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_definition_update_request.go b/v24/api/keyfactor/v1/model_workflows_definition_update_request.go new file mode 100644 index 0000000..2415af4 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_definition_update_request.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsDefinitionUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsDefinitionUpdateRequest{} + +// WorkflowsDefinitionUpdateRequest struct for WorkflowsDefinitionUpdateRequest +type WorkflowsDefinitionUpdateRequest struct { + DisplayName NullableString `json:"DisplayName,omitempty"` + Description NullableString `json:"Description,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` +} + +// NewWorkflowsDefinitionUpdateRequest instantiates a new WorkflowsDefinitionUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsDefinitionUpdateRequest() *WorkflowsDefinitionUpdateRequest { + this := WorkflowsDefinitionUpdateRequest{} + return &this +} + +// NewWorkflowsDefinitionUpdateRequestWithDefaults instantiates a new WorkflowsDefinitionUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsDefinitionUpdateRequestWithDefaults() *WorkflowsDefinitionUpdateRequest { + this := WorkflowsDefinitionUpdateRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionUpdateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsDefinitionUpdateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsDefinitionUpdateRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsDefinitionUpdateRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsDefinitionUpdateRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsDefinitionUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsDefinitionUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *WorkflowsDefinitionUpdateRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *WorkflowsDefinitionUpdateRequest) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *WorkflowsDefinitionUpdateRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *WorkflowsDefinitionUpdateRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *WorkflowsDefinitionUpdateRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsDefinitionUpdateRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *WorkflowsDefinitionUpdateRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *WorkflowsDefinitionUpdateRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +func (o WorkflowsDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsDefinitionUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + return toSerialize, nil +} + +type NullableWorkflowsDefinitionUpdateRequest struct { + value *WorkflowsDefinitionUpdateRequest + isSet bool +} + +func (v NullableWorkflowsDefinitionUpdateRequest) Get() *WorkflowsDefinitionUpdateRequest { + return v.value +} + +func (v *NullableWorkflowsDefinitionUpdateRequest) Set(val *WorkflowsDefinitionUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsDefinitionUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsDefinitionUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsDefinitionUpdateRequest(val *WorkflowsDefinitionUpdateRequest) *NullableWorkflowsDefinitionUpdateRequest { + return &NullableWorkflowsDefinitionUpdateRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsDefinitionUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_instance_definition_response.go b/v24/api/keyfactor/v1/model_workflows_instance_definition_response.go new file mode 100644 index 0000000..1455ff2 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_instance_definition_response.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsInstanceDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsInstanceDefinitionResponse{} + +// WorkflowsInstanceDefinitionResponse struct for WorkflowsInstanceDefinitionResponse +type WorkflowsInstanceDefinitionResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + Version *int32 `json:"Version,omitempty"` + WorkflowType NullableString `json:"WorkflowType,omitempty"` +} + +// NewWorkflowsInstanceDefinitionResponse instantiates a new WorkflowsInstanceDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsInstanceDefinitionResponse() *WorkflowsInstanceDefinitionResponse { + this := WorkflowsInstanceDefinitionResponse{} + return &this +} + +// NewWorkflowsInstanceDefinitionResponseWithDefaults instantiates a new WorkflowsInstanceDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsInstanceDefinitionResponseWithDefaults() *WorkflowsInstanceDefinitionResponse { + this := WorkflowsInstanceDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsInstanceDefinitionResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceDefinitionResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsInstanceDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsInstanceDefinitionResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsInstanceDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsInstanceDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsInstanceDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsInstanceDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *WorkflowsInstanceDefinitionResponse) GetVersion() int32 { + if o == nil || isNil(o.Version) { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceDefinitionResponse) GetVersionOk() (*int32, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *WorkflowsInstanceDefinitionResponse) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *WorkflowsInstanceDefinitionResponse) SetVersion(v int32) { + o.Version = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceDefinitionResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType.Get()) { + var ret string + return ret + } + return *o.WorkflowType.Get() +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceDefinitionResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowType.Get(), o.WorkflowType.IsSet() +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *WorkflowsInstanceDefinitionResponse) HasWorkflowType() bool { + if o != nil && o.WorkflowType.IsSet() { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given NullableString and assigns it to the WorkflowType field. +func (o *WorkflowsInstanceDefinitionResponse) SetWorkflowType(v string) { + o.WorkflowType.Set(&v) +} + +// SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil +func (o *WorkflowsInstanceDefinitionResponse) SetWorkflowTypeNil() { + o.WorkflowType.Set(nil) +} + +// UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +func (o *WorkflowsInstanceDefinitionResponse) UnsetWorkflowType() { + o.WorkflowType.Unset() +} + +func (o WorkflowsInstanceDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsInstanceDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.Version) { + toSerialize["Version"] = o.Version + } + if o.WorkflowType.IsSet() { + toSerialize["WorkflowType"] = o.WorkflowType.Get() + } + return toSerialize, nil +} + +type NullableWorkflowsInstanceDefinitionResponse struct { + value *WorkflowsInstanceDefinitionResponse + isSet bool +} + +func (v NullableWorkflowsInstanceDefinitionResponse) Get() *WorkflowsInstanceDefinitionResponse { + return v.value +} + +func (v *NullableWorkflowsInstanceDefinitionResponse) Set(val *WorkflowsInstanceDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsInstanceDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsInstanceDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsInstanceDefinitionResponse(val *WorkflowsInstanceDefinitionResponse) *NullableWorkflowsInstanceDefinitionResponse { + return &NullableWorkflowsInstanceDefinitionResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsInstanceDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsInstanceDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_instance_query_response.go b/v24/api/keyfactor/v1/model_workflows_instance_query_response.go new file mode 100644 index 0000000..5057727 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_instance_query_response.go @@ -0,0 +1,550 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the WorkflowsInstanceQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsInstanceQueryResponse{} + +// WorkflowsInstanceQueryResponse struct for WorkflowsInstanceQueryResponse +type WorkflowsInstanceQueryResponse struct { + Id *string `json:"Id,omitempty"` + Status *KeyfactorWorkflowsWorkflowInstanceStatus `json:"Status,omitempty"` + CurrentStepId *string `json:"CurrentStepId,omitempty"` + StatusMessage NullableString `json:"StatusMessage,omitempty"` + Definition *WorkflowsInstanceDefinitionResponse `json:"Definition,omitempty"` + CurrentStepDisplayName NullableString `json:"CurrentStepDisplayName,omitempty"` + CurrentStepUniqueName NullableString `json:"CurrentStepUniqueName,omitempty"` + Title NullableString `json:"Title,omitempty"` + LastModified NullableTime `json:"LastModified,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + ReferenceId *int64 `json:"ReferenceId,omitempty"` +} + +// NewWorkflowsInstanceQueryResponse instantiates a new WorkflowsInstanceQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsInstanceQueryResponse() *WorkflowsInstanceQueryResponse { + this := WorkflowsInstanceQueryResponse{} + return &this +} + +// NewWorkflowsInstanceQueryResponseWithDefaults instantiates a new WorkflowsInstanceQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsInstanceQueryResponseWithDefaults() *WorkflowsInstanceQueryResponse { + this := WorkflowsInstanceQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsInstanceQueryResponse) SetId(v string) { + o.Id = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetStatus() KeyfactorWorkflowsWorkflowInstanceStatus { + if o == nil || isNil(o.Status) { + var ret KeyfactorWorkflowsWorkflowInstanceStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetStatusOk() (*KeyfactorWorkflowsWorkflowInstanceStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given KeyfactorWorkflowsWorkflowInstanceStatus and assigns it to the Status field. +func (o *WorkflowsInstanceQueryResponse) SetStatus(v KeyfactorWorkflowsWorkflowInstanceStatus) { + o.Status = &v +} + +// GetCurrentStepId returns the CurrentStepId field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepId() string { + if o == nil || isNil(o.CurrentStepId) { + var ret string + return ret + } + return *o.CurrentStepId +} + +// GetCurrentStepIdOk returns a tuple with the CurrentStepId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepIdOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepId) { + return nil, false + } + return o.CurrentStepId, true +} + +// HasCurrentStepId returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasCurrentStepId() bool { + if o != nil && !isNil(o.CurrentStepId) { + return true + } + + return false +} + +// SetCurrentStepId gets a reference to the given string and assigns it to the CurrentStepId field. +func (o *WorkflowsInstanceQueryResponse) SetCurrentStepId(v string) { + o.CurrentStepId = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceQueryResponse) GetStatusMessage() string { + if o == nil || isNil(o.StatusMessage.Get()) { + var ret string + return ret + } + return *o.StatusMessage.Get() +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceQueryResponse) GetStatusMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StatusMessage.Get(), o.StatusMessage.IsSet() +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasStatusMessage() bool { + if o != nil && o.StatusMessage.IsSet() { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given NullableString and assigns it to the StatusMessage field. +func (o *WorkflowsInstanceQueryResponse) SetStatusMessage(v string) { + o.StatusMessage.Set(&v) +} + +// SetStatusMessageNil sets the value for StatusMessage to be an explicit nil +func (o *WorkflowsInstanceQueryResponse) SetStatusMessageNil() { + o.StatusMessage.Set(nil) +} + +// UnsetStatusMessage ensures that no value is present for StatusMessage, not even an explicit nil +func (o *WorkflowsInstanceQueryResponse) UnsetStatusMessage() { + o.StatusMessage.Unset() +} + +// GetDefinition returns the Definition field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetDefinition() WorkflowsInstanceDefinitionResponse { + if o == nil || isNil(o.Definition) { + var ret WorkflowsInstanceDefinitionResponse + return ret + } + return *o.Definition +} + +// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetDefinitionOk() (*WorkflowsInstanceDefinitionResponse, bool) { + if o == nil || isNil(o.Definition) { + return nil, false + } + return o.Definition, true +} + +// HasDefinition returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasDefinition() bool { + if o != nil && !isNil(o.Definition) { + return true + } + + return false +} + +// SetDefinition gets a reference to the given WorkflowsInstanceDefinitionResponse and assigns it to the Definition field. +func (o *WorkflowsInstanceQueryResponse) SetDefinition(v WorkflowsInstanceDefinitionResponse) { + o.Definition = &v +} + +// GetCurrentStepDisplayName returns the CurrentStepDisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepDisplayName() string { + if o == nil || isNil(o.CurrentStepDisplayName.Get()) { + var ret string + return ret + } + return *o.CurrentStepDisplayName.Get() +} + +// GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CurrentStepDisplayName.Get(), o.CurrentStepDisplayName.IsSet() +} + +// HasCurrentStepDisplayName returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasCurrentStepDisplayName() bool { + if o != nil && o.CurrentStepDisplayName.IsSet() { + return true + } + + return false +} + +// SetCurrentStepDisplayName gets a reference to the given NullableString and assigns it to the CurrentStepDisplayName field. +func (o *WorkflowsInstanceQueryResponse) SetCurrentStepDisplayName(v string) { + o.CurrentStepDisplayName.Set(&v) +} + +// SetCurrentStepDisplayNameNil sets the value for CurrentStepDisplayName to be an explicit nil +func (o *WorkflowsInstanceQueryResponse) SetCurrentStepDisplayNameNil() { + o.CurrentStepDisplayName.Set(nil) +} + +// UnsetCurrentStepDisplayName ensures that no value is present for CurrentStepDisplayName, not even an explicit nil +func (o *WorkflowsInstanceQueryResponse) UnsetCurrentStepDisplayName() { + o.CurrentStepDisplayName.Unset() +} + +// GetCurrentStepUniqueName returns the CurrentStepUniqueName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepUniqueName() string { + if o == nil || isNil(o.CurrentStepUniqueName.Get()) { + var ret string + return ret + } + return *o.CurrentStepUniqueName.Get() +} + +// GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceQueryResponse) GetCurrentStepUniqueNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CurrentStepUniqueName.Get(), o.CurrentStepUniqueName.IsSet() +} + +// HasCurrentStepUniqueName returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasCurrentStepUniqueName() bool { + if o != nil && o.CurrentStepUniqueName.IsSet() { + return true + } + + return false +} + +// SetCurrentStepUniqueName gets a reference to the given NullableString and assigns it to the CurrentStepUniqueName field. +func (o *WorkflowsInstanceQueryResponse) SetCurrentStepUniqueName(v string) { + o.CurrentStepUniqueName.Set(&v) +} + +// SetCurrentStepUniqueNameNil sets the value for CurrentStepUniqueName to be an explicit nil +func (o *WorkflowsInstanceQueryResponse) SetCurrentStepUniqueNameNil() { + o.CurrentStepUniqueName.Set(nil) +} + +// UnsetCurrentStepUniqueName ensures that no value is present for CurrentStepUniqueName, not even an explicit nil +func (o *WorkflowsInstanceQueryResponse) UnsetCurrentStepUniqueName() { + o.CurrentStepUniqueName.Unset() +} + +// GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceQueryResponse) GetTitle() string { + if o == nil || isNil(o.Title.Get()) { + var ret string + return ret + } + return *o.Title.Get() +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceQueryResponse) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Title.Get(), o.Title.IsSet() +} + +// HasTitle returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasTitle() bool { + if o != nil && o.Title.IsSet() { + return true + } + + return false +} + +// SetTitle gets a reference to the given NullableString and assigns it to the Title field. +func (o *WorkflowsInstanceQueryResponse) SetTitle(v string) { + o.Title.Set(&v) +} + +// SetTitleNil sets the value for Title to be an explicit nil +func (o *WorkflowsInstanceQueryResponse) SetTitleNil() { + o.Title.Set(nil) +} + +// UnsetTitle ensures that no value is present for Title, not even an explicit nil +func (o *WorkflowsInstanceQueryResponse) UnsetTitle() { + o.Title.Unset() +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceQueryResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified.Get()) { + var ret time.Time + return ret + } + return *o.LastModified.Get() +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceQueryResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastModified.Get(), o.LastModified.IsSet() +} + +// HasLastModified returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasLastModified() bool { + if o != nil && o.LastModified.IsSet() { + return true + } + + return false +} + +// SetLastModified gets a reference to the given NullableTime and assigns it to the LastModified field. +func (o *WorkflowsInstanceQueryResponse) SetLastModified(v time.Time) { + o.LastModified.Set(&v) +} + +// SetLastModifiedNil sets the value for LastModified to be an explicit nil +func (o *WorkflowsInstanceQueryResponse) SetLastModifiedNil() { + o.LastModified.Set(nil) +} + +// UnsetLastModified ensures that no value is present for LastModified, not even an explicit nil +func (o *WorkflowsInstanceQueryResponse) UnsetLastModified() { + o.LastModified.Unset() +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetStartDate() time.Time { + if o == nil || isNil(o.StartDate) { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetStartDateOk() (*time.Time, bool) { + if o == nil || isNil(o.StartDate) { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasStartDate() bool { + if o != nil && !isNil(o.StartDate) { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *WorkflowsInstanceQueryResponse) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *WorkflowsInstanceQueryResponse) GetReferenceId() int64 { + if o == nil || isNil(o.ReferenceId) { + var ret int64 + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceQueryResponse) GetReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *WorkflowsInstanceQueryResponse) HasReferenceId() bool { + if o != nil && !isNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given int64 and assigns it to the ReferenceId field. +func (o *WorkflowsInstanceQueryResponse) SetReferenceId(v int64) { + o.ReferenceId = &v +} + +func (o WorkflowsInstanceQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsInstanceQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.CurrentStepId) { + toSerialize["CurrentStepId"] = o.CurrentStepId + } + if o.StatusMessage.IsSet() { + toSerialize["StatusMessage"] = o.StatusMessage.Get() + } + if !isNil(o.Definition) { + toSerialize["Definition"] = o.Definition + } + if o.CurrentStepDisplayName.IsSet() { + toSerialize["CurrentStepDisplayName"] = o.CurrentStepDisplayName.Get() + } + if o.CurrentStepUniqueName.IsSet() { + toSerialize["CurrentStepUniqueName"] = o.CurrentStepUniqueName.Get() + } + if o.Title.IsSet() { + toSerialize["Title"] = o.Title.Get() + } + if o.LastModified.IsSet() { + toSerialize["LastModified"] = o.LastModified.Get() + } + if !isNil(o.StartDate) { + toSerialize["StartDate"] = o.StartDate + } + if !isNil(o.ReferenceId) { + toSerialize["ReferenceId"] = o.ReferenceId + } + return toSerialize, nil +} + +type NullableWorkflowsInstanceQueryResponse struct { + value *WorkflowsInstanceQueryResponse + isSet bool +} + +func (v NullableWorkflowsInstanceQueryResponse) Get() *WorkflowsInstanceQueryResponse { + return v.value +} + +func (v *NullableWorkflowsInstanceQueryResponse) Set(val *WorkflowsInstanceQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsInstanceQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsInstanceQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsInstanceQueryResponse(val *WorkflowsInstanceQueryResponse) *NullableWorkflowsInstanceQueryResponse { + return &NullableWorkflowsInstanceQueryResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsInstanceQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsInstanceQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_instance_response.go b/v24/api/keyfactor/v1/model_workflows_instance_response.go new file mode 100644 index 0000000..c86bbd3 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_instance_response.go @@ -0,0 +1,661 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "time" +) + +// checks if the WorkflowsInstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsInstanceResponse{} + +// WorkflowsInstanceResponse struct for WorkflowsInstanceResponse +type WorkflowsInstanceResponse struct { + Id *string `json:"Id,omitempty"` + Status *KeyfactorWorkflowsWorkflowInstanceStatus `json:"Status,omitempty"` + CurrentStepId *string `json:"CurrentStepId,omitempty"` + StatusMessage NullableString `json:"StatusMessage,omitempty"` + Signals []WorkflowsAvailableSignalResponse `json:"Signals,omitempty"` + Definition *WorkflowsInstanceDefinitionResponse `json:"Definition,omitempty"` + CurrentStepDisplayName NullableString `json:"CurrentStepDisplayName,omitempty"` + CurrentStepUniqueName NullableString `json:"CurrentStepUniqueName,omitempty"` + Title NullableString `json:"Title,omitempty"` + LastModified NullableTime `json:"LastModified,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + InitialData map[string]interface{} `json:"InitialData,omitempty"` + CurrentStateData map[string]interface{} `json:"CurrentStateData,omitempty"` + ReferenceId *int64 `json:"ReferenceId,omitempty"` +} + +// NewWorkflowsInstanceResponse instantiates a new WorkflowsInstanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsInstanceResponse() *WorkflowsInstanceResponse { + this := WorkflowsInstanceResponse{} + return &this +} + +// NewWorkflowsInstanceResponseWithDefaults instantiates a new WorkflowsInstanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsInstanceResponseWithDefaults() *WorkflowsInstanceResponse { + this := WorkflowsInstanceResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *WorkflowsInstanceResponse) SetId(v string) { + o.Id = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetStatus() KeyfactorWorkflowsWorkflowInstanceStatus { + if o == nil || isNil(o.Status) { + var ret KeyfactorWorkflowsWorkflowInstanceStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetStatusOk() (*KeyfactorWorkflowsWorkflowInstanceStatus, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given KeyfactorWorkflowsWorkflowInstanceStatus and assigns it to the Status field. +func (o *WorkflowsInstanceResponse) SetStatus(v KeyfactorWorkflowsWorkflowInstanceStatus) { + o.Status = &v +} + +// GetCurrentStepId returns the CurrentStepId field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetCurrentStepId() string { + if o == nil || isNil(o.CurrentStepId) { + var ret string + return ret + } + return *o.CurrentStepId +} + +// GetCurrentStepIdOk returns a tuple with the CurrentStepId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetCurrentStepIdOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepId) { + return nil, false + } + return o.CurrentStepId, true +} + +// HasCurrentStepId returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasCurrentStepId() bool { + if o != nil && !isNil(o.CurrentStepId) { + return true + } + + return false +} + +// SetCurrentStepId gets a reference to the given string and assigns it to the CurrentStepId field. +func (o *WorkflowsInstanceResponse) SetCurrentStepId(v string) { + o.CurrentStepId = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetStatusMessage() string { + if o == nil || isNil(o.StatusMessage.Get()) { + var ret string + return ret + } + return *o.StatusMessage.Get() +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetStatusMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StatusMessage.Get(), o.StatusMessage.IsSet() +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasStatusMessage() bool { + if o != nil && o.StatusMessage.IsSet() { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given NullableString and assigns it to the StatusMessage field. +func (o *WorkflowsInstanceResponse) SetStatusMessage(v string) { + o.StatusMessage.Set(&v) +} + +// SetStatusMessageNil sets the value for StatusMessage to be an explicit nil +func (o *WorkflowsInstanceResponse) SetStatusMessageNil() { + o.StatusMessage.Set(nil) +} + +// UnsetStatusMessage ensures that no value is present for StatusMessage, not even an explicit nil +func (o *WorkflowsInstanceResponse) UnsetStatusMessage() { + o.StatusMessage.Unset() +} + +// GetSignals returns the Signals field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetSignals() []WorkflowsAvailableSignalResponse { + if o == nil { + var ret []WorkflowsAvailableSignalResponse + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetSignalsOk() ([]WorkflowsAvailableSignalResponse, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasSignals() bool { + if o != nil && isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []WorkflowsAvailableSignalResponse and assigns it to the Signals field. +func (o *WorkflowsInstanceResponse) SetSignals(v []WorkflowsAvailableSignalResponse) { + o.Signals = v +} + +// GetDefinition returns the Definition field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetDefinition() WorkflowsInstanceDefinitionResponse { + if o == nil || isNil(o.Definition) { + var ret WorkflowsInstanceDefinitionResponse + return ret + } + return *o.Definition +} + +// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetDefinitionOk() (*WorkflowsInstanceDefinitionResponse, bool) { + if o == nil || isNil(o.Definition) { + return nil, false + } + return o.Definition, true +} + +// HasDefinition returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasDefinition() bool { + if o != nil && !isNil(o.Definition) { + return true + } + + return false +} + +// SetDefinition gets a reference to the given WorkflowsInstanceDefinitionResponse and assigns it to the Definition field. +func (o *WorkflowsInstanceResponse) SetDefinition(v WorkflowsInstanceDefinitionResponse) { + o.Definition = &v +} + +// GetCurrentStepDisplayName returns the CurrentStepDisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetCurrentStepDisplayName() string { + if o == nil || isNil(o.CurrentStepDisplayName.Get()) { + var ret string + return ret + } + return *o.CurrentStepDisplayName.Get() +} + +// GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetCurrentStepDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CurrentStepDisplayName.Get(), o.CurrentStepDisplayName.IsSet() +} + +// HasCurrentStepDisplayName returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasCurrentStepDisplayName() bool { + if o != nil && o.CurrentStepDisplayName.IsSet() { + return true + } + + return false +} + +// SetCurrentStepDisplayName gets a reference to the given NullableString and assigns it to the CurrentStepDisplayName field. +func (o *WorkflowsInstanceResponse) SetCurrentStepDisplayName(v string) { + o.CurrentStepDisplayName.Set(&v) +} + +// SetCurrentStepDisplayNameNil sets the value for CurrentStepDisplayName to be an explicit nil +func (o *WorkflowsInstanceResponse) SetCurrentStepDisplayNameNil() { + o.CurrentStepDisplayName.Set(nil) +} + +// UnsetCurrentStepDisplayName ensures that no value is present for CurrentStepDisplayName, not even an explicit nil +func (o *WorkflowsInstanceResponse) UnsetCurrentStepDisplayName() { + o.CurrentStepDisplayName.Unset() +} + +// GetCurrentStepUniqueName returns the CurrentStepUniqueName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetCurrentStepUniqueName() string { + if o == nil || isNil(o.CurrentStepUniqueName.Get()) { + var ret string + return ret + } + return *o.CurrentStepUniqueName.Get() +} + +// GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetCurrentStepUniqueNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CurrentStepUniqueName.Get(), o.CurrentStepUniqueName.IsSet() +} + +// HasCurrentStepUniqueName returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasCurrentStepUniqueName() bool { + if o != nil && o.CurrentStepUniqueName.IsSet() { + return true + } + + return false +} + +// SetCurrentStepUniqueName gets a reference to the given NullableString and assigns it to the CurrentStepUniqueName field. +func (o *WorkflowsInstanceResponse) SetCurrentStepUniqueName(v string) { + o.CurrentStepUniqueName.Set(&v) +} + +// SetCurrentStepUniqueNameNil sets the value for CurrentStepUniqueName to be an explicit nil +func (o *WorkflowsInstanceResponse) SetCurrentStepUniqueNameNil() { + o.CurrentStepUniqueName.Set(nil) +} + +// UnsetCurrentStepUniqueName ensures that no value is present for CurrentStepUniqueName, not even an explicit nil +func (o *WorkflowsInstanceResponse) UnsetCurrentStepUniqueName() { + o.CurrentStepUniqueName.Unset() +} + +// GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetTitle() string { + if o == nil || isNil(o.Title.Get()) { + var ret string + return ret + } + return *o.Title.Get() +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Title.Get(), o.Title.IsSet() +} + +// HasTitle returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasTitle() bool { + if o != nil && o.Title.IsSet() { + return true + } + + return false +} + +// SetTitle gets a reference to the given NullableString and assigns it to the Title field. +func (o *WorkflowsInstanceResponse) SetTitle(v string) { + o.Title.Set(&v) +} + +// SetTitleNil sets the value for Title to be an explicit nil +func (o *WorkflowsInstanceResponse) SetTitleNil() { + o.Title.Set(nil) +} + +// UnsetTitle ensures that no value is present for Title, not even an explicit nil +func (o *WorkflowsInstanceResponse) UnsetTitle() { + o.Title.Unset() +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified.Get()) { + var ret time.Time + return ret + } + return *o.LastModified.Get() +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastModified.Get(), o.LastModified.IsSet() +} + +// HasLastModified returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasLastModified() bool { + if o != nil && o.LastModified.IsSet() { + return true + } + + return false +} + +// SetLastModified gets a reference to the given NullableTime and assigns it to the LastModified field. +func (o *WorkflowsInstanceResponse) SetLastModified(v time.Time) { + o.LastModified.Set(&v) +} + +// SetLastModifiedNil sets the value for LastModified to be an explicit nil +func (o *WorkflowsInstanceResponse) SetLastModifiedNil() { + o.LastModified.Set(nil) +} + +// UnsetLastModified ensures that no value is present for LastModified, not even an explicit nil +func (o *WorkflowsInstanceResponse) UnsetLastModified() { + o.LastModified.Unset() +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetStartDate() time.Time { + if o == nil || isNil(o.StartDate) { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetStartDateOk() (*time.Time, bool) { + if o == nil || isNil(o.StartDate) { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasStartDate() bool { + if o != nil && !isNil(o.StartDate) { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *WorkflowsInstanceResponse) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetInitialData returns the InitialData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetInitialData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.InitialData +} + +// GetInitialDataOk returns a tuple with the InitialData field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetInitialDataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.InitialData) { + return map[string]interface{}{}, false + } + return o.InitialData, true +} + +// HasInitialData returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasInitialData() bool { + if o != nil && isNil(o.InitialData) { + return true + } + + return false +} + +// SetInitialData gets a reference to the given map[string]interface{} and assigns it to the InitialData field. +func (o *WorkflowsInstanceResponse) SetInitialData(v map[string]interface{}) { + o.InitialData = v +} + +// GetCurrentStateData returns the CurrentStateData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsInstanceResponse) GetCurrentStateData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.CurrentStateData +} + +// GetCurrentStateDataOk returns a tuple with the CurrentStateData field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsInstanceResponse) GetCurrentStateDataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.CurrentStateData) { + return map[string]interface{}{}, false + } + return o.CurrentStateData, true +} + +// HasCurrentStateData returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasCurrentStateData() bool { + if o != nil && isNil(o.CurrentStateData) { + return true + } + + return false +} + +// SetCurrentStateData gets a reference to the given map[string]interface{} and assigns it to the CurrentStateData field. +func (o *WorkflowsInstanceResponse) SetCurrentStateData(v map[string]interface{}) { + o.CurrentStateData = v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *WorkflowsInstanceResponse) GetReferenceId() int64 { + if o == nil || isNil(o.ReferenceId) { + var ret int64 + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsInstanceResponse) GetReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *WorkflowsInstanceResponse) HasReferenceId() bool { + if o != nil && !isNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given int64 and assigns it to the ReferenceId field. +func (o *WorkflowsInstanceResponse) SetReferenceId(v int64) { + o.ReferenceId = &v +} + +func (o WorkflowsInstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsInstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.CurrentStepId) { + toSerialize["CurrentStepId"] = o.CurrentStepId + } + if o.StatusMessage.IsSet() { + toSerialize["StatusMessage"] = o.StatusMessage.Get() + } + if o.Signals != nil { + toSerialize["Signals"] = o.Signals + } + if !isNil(o.Definition) { + toSerialize["Definition"] = o.Definition + } + if o.CurrentStepDisplayName.IsSet() { + toSerialize["CurrentStepDisplayName"] = o.CurrentStepDisplayName.Get() + } + if o.CurrentStepUniqueName.IsSet() { + toSerialize["CurrentStepUniqueName"] = o.CurrentStepUniqueName.Get() + } + if o.Title.IsSet() { + toSerialize["Title"] = o.Title.Get() + } + if o.LastModified.IsSet() { + toSerialize["LastModified"] = o.LastModified.Get() + } + if !isNil(o.StartDate) { + toSerialize["StartDate"] = o.StartDate + } + if o.InitialData != nil { + toSerialize["InitialData"] = o.InitialData + } + if o.CurrentStateData != nil { + toSerialize["CurrentStateData"] = o.CurrentStateData + } + if !isNil(o.ReferenceId) { + toSerialize["ReferenceId"] = o.ReferenceId + } + return toSerialize, nil +} + +type NullableWorkflowsInstanceResponse struct { + value *WorkflowsInstanceResponse + isSet bool +} + +func (v NullableWorkflowsInstanceResponse) Get() *WorkflowsInstanceResponse { + return v.value +} + +func (v *NullableWorkflowsInstanceResponse) Set(val *WorkflowsInstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsInstanceResponse(val *WorkflowsInstanceResponse) *NullableWorkflowsInstanceResponse { + return &NullableWorkflowsInstanceResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_parameter_definition_response.go b/v24/api/keyfactor/v1/model_workflows_parameter_definition_response.go new file mode 100644 index 0000000..4c97859 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_parameter_definition_response.go @@ -0,0 +1,457 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsParameterDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsParameterDefinitionResponse{} + +// WorkflowsParameterDefinitionResponse struct for WorkflowsParameterDefinitionResponse +type WorkflowsParameterDefinitionResponse struct { + DisplayName NullableString `json:"DisplayName,omitempty"` + ParameterType *KeyfactorWorkflowsDataType `json:"ParameterType,omitempty"` + Required *bool `json:"Required,omitempty"` + DefaultValue NullableString `json:"DefaultValue,omitempty"` + ControlType *KeyfactorWorkflowsInputControlType `json:"ControlType,omitempty"` + PotentialValues map[string]string `json:"PotentialValues,omitempty"` + SupportTokenReplacement *bool `json:"SupportTokenReplacement,omitempty"` + DependsOn map[string]string `json:"DependsOn,omitempty"` + ToolTipContents NullableString `json:"ToolTipContents,omitempty"` +} + +// NewWorkflowsParameterDefinitionResponse instantiates a new WorkflowsParameterDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsParameterDefinitionResponse() *WorkflowsParameterDefinitionResponse { + this := WorkflowsParameterDefinitionResponse{} + return &this +} + +// NewWorkflowsParameterDefinitionResponseWithDefaults instantiates a new WorkflowsParameterDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsParameterDefinitionResponseWithDefaults() *WorkflowsParameterDefinitionResponse { + this := WorkflowsParameterDefinitionResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsParameterDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsParameterDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *WorkflowsParameterDefinitionResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *WorkflowsParameterDefinitionResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *WorkflowsParameterDefinitionResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise. +func (o *WorkflowsParameterDefinitionResponse) GetParameterType() KeyfactorWorkflowsDataType { + if o == nil || isNil(o.ParameterType) { + var ret KeyfactorWorkflowsDataType + return ret + } + return *o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsParameterDefinitionResponse) GetParameterTypeOk() (*KeyfactorWorkflowsDataType, bool) { + if o == nil || isNil(o.ParameterType) { + return nil, false + } + return o.ParameterType, true +} + +// HasParameterType returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasParameterType() bool { + if o != nil && !isNil(o.ParameterType) { + return true + } + + return false +} + +// SetParameterType gets a reference to the given KeyfactorWorkflowsDataType and assigns it to the ParameterType field. +func (o *WorkflowsParameterDefinitionResponse) SetParameterType(v KeyfactorWorkflowsDataType) { + o.ParameterType = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *WorkflowsParameterDefinitionResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsParameterDefinitionResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *WorkflowsParameterDefinitionResponse) SetRequired(v bool) { + o.Required = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsParameterDefinitionResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue.Get()) { + var ret string + return ret + } + return *o.DefaultValue.Get() +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsParameterDefinitionResponse) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DefaultValue.Get(), o.DefaultValue.IsSet() +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasDefaultValue() bool { + if o != nil && o.DefaultValue.IsSet() { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given NullableString and assigns it to the DefaultValue field. +func (o *WorkflowsParameterDefinitionResponse) SetDefaultValue(v string) { + o.DefaultValue.Set(&v) +} + +// SetDefaultValueNil sets the value for DefaultValue to be an explicit nil +func (o *WorkflowsParameterDefinitionResponse) SetDefaultValueNil() { + o.DefaultValue.Set(nil) +} + +// UnsetDefaultValue ensures that no value is present for DefaultValue, not even an explicit nil +func (o *WorkflowsParameterDefinitionResponse) UnsetDefaultValue() { + o.DefaultValue.Unset() +} + +// GetControlType returns the ControlType field value if set, zero value otherwise. +func (o *WorkflowsParameterDefinitionResponse) GetControlType() KeyfactorWorkflowsInputControlType { + if o == nil || isNil(o.ControlType) { + var ret KeyfactorWorkflowsInputControlType + return ret + } + return *o.ControlType +} + +// GetControlTypeOk returns a tuple with the ControlType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsParameterDefinitionResponse) GetControlTypeOk() (*KeyfactorWorkflowsInputControlType, bool) { + if o == nil || isNil(o.ControlType) { + return nil, false + } + return o.ControlType, true +} + +// HasControlType returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasControlType() bool { + if o != nil && !isNil(o.ControlType) { + return true + } + + return false +} + +// SetControlType gets a reference to the given KeyfactorWorkflowsInputControlType and assigns it to the ControlType field. +func (o *WorkflowsParameterDefinitionResponse) SetControlType(v KeyfactorWorkflowsInputControlType) { + o.ControlType = &v +} + +// GetPotentialValues returns the PotentialValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsParameterDefinitionResponse) GetPotentialValues() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.PotentialValues +} + +// GetPotentialValuesOk returns a tuple with the PotentialValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsParameterDefinitionResponse) GetPotentialValuesOk() (*map[string]string, bool) { + if o == nil || isNil(o.PotentialValues) { + return nil, false + } + return &o.PotentialValues, true +} + +// HasPotentialValues returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasPotentialValues() bool { + if o != nil && isNil(o.PotentialValues) { + return true + } + + return false +} + +// SetPotentialValues gets a reference to the given map[string]string and assigns it to the PotentialValues field. +func (o *WorkflowsParameterDefinitionResponse) SetPotentialValues(v map[string]string) { + o.PotentialValues = v +} + +// GetSupportTokenReplacement returns the SupportTokenReplacement field value if set, zero value otherwise. +func (o *WorkflowsParameterDefinitionResponse) GetSupportTokenReplacement() bool { + if o == nil || isNil(o.SupportTokenReplacement) { + var ret bool + return ret + } + return *o.SupportTokenReplacement +} + +// GetSupportTokenReplacementOk returns a tuple with the SupportTokenReplacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowsParameterDefinitionResponse) GetSupportTokenReplacementOk() (*bool, bool) { + if o == nil || isNil(o.SupportTokenReplacement) { + return nil, false + } + return o.SupportTokenReplacement, true +} + +// HasSupportTokenReplacement returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasSupportTokenReplacement() bool { + if o != nil && !isNil(o.SupportTokenReplacement) { + return true + } + + return false +} + +// SetSupportTokenReplacement gets a reference to the given bool and assigns it to the SupportTokenReplacement field. +func (o *WorkflowsParameterDefinitionResponse) SetSupportTokenReplacement(v bool) { + o.SupportTokenReplacement = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsParameterDefinitionResponse) GetDependsOn() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsParameterDefinitionResponse) GetDependsOnOk() (*map[string]string, bool) { + if o == nil || isNil(o.DependsOn) { + return nil, false + } + return &o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasDependsOn() bool { + if o != nil && isNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given map[string]string and assigns it to the DependsOn field. +func (o *WorkflowsParameterDefinitionResponse) SetDependsOn(v map[string]string) { + o.DependsOn = v +} + +// GetToolTipContents returns the ToolTipContents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsParameterDefinitionResponse) GetToolTipContents() string { + if o == nil || isNil(o.ToolTipContents.Get()) { + var ret string + return ret + } + return *o.ToolTipContents.Get() +} + +// GetToolTipContentsOk returns a tuple with the ToolTipContents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsParameterDefinitionResponse) GetToolTipContentsOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ToolTipContents.Get(), o.ToolTipContents.IsSet() +} + +// HasToolTipContents returns a boolean if a field has been set. +func (o *WorkflowsParameterDefinitionResponse) HasToolTipContents() bool { + if o != nil && o.ToolTipContents.IsSet() { + return true + } + + return false +} + +// SetToolTipContents gets a reference to the given NullableString and assigns it to the ToolTipContents field. +func (o *WorkflowsParameterDefinitionResponse) SetToolTipContents(v string) { + o.ToolTipContents.Set(&v) +} + +// SetToolTipContentsNil sets the value for ToolTipContents to be an explicit nil +func (o *WorkflowsParameterDefinitionResponse) SetToolTipContentsNil() { + o.ToolTipContents.Set(nil) +} + +// UnsetToolTipContents ensures that no value is present for ToolTipContents, not even an explicit nil +func (o *WorkflowsParameterDefinitionResponse) UnsetToolTipContents() { + o.ToolTipContents.Unset() +} + +func (o WorkflowsParameterDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsParameterDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.ParameterType) { + toSerialize["ParameterType"] = o.ParameterType + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + if o.DefaultValue.IsSet() { + toSerialize["DefaultValue"] = o.DefaultValue.Get() + } + if !isNil(o.ControlType) { + toSerialize["ControlType"] = o.ControlType + } + if o.PotentialValues != nil { + toSerialize["PotentialValues"] = o.PotentialValues + } + if !isNil(o.SupportTokenReplacement) { + toSerialize["SupportTokenReplacement"] = o.SupportTokenReplacement + } + if o.DependsOn != nil { + toSerialize["DependsOn"] = o.DependsOn + } + if o.ToolTipContents.IsSet() { + toSerialize["ToolTipContents"] = o.ToolTipContents.Get() + } + return toSerialize, nil +} + +type NullableWorkflowsParameterDefinitionResponse struct { + value *WorkflowsParameterDefinitionResponse + isSet bool +} + +func (v NullableWorkflowsParameterDefinitionResponse) Get() *WorkflowsParameterDefinitionResponse { + return v.value +} + +func (v *NullableWorkflowsParameterDefinitionResponse) Set(val *WorkflowsParameterDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsParameterDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsParameterDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsParameterDefinitionResponse(val *WorkflowsParameterDefinitionResponse) *NullableWorkflowsParameterDefinitionResponse { + return &NullableWorkflowsParameterDefinitionResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsParameterDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsParameterDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_signal_configuration_request.go b/v24/api/keyfactor/v1/model_workflows_signal_configuration_request.go new file mode 100644 index 0000000..e562e7b --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_signal_configuration_request.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsSignalConfigurationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsSignalConfigurationRequest{} + +// WorkflowsSignalConfigurationRequest struct for WorkflowsSignalConfigurationRequest +type WorkflowsSignalConfigurationRequest struct { + // The name of the signal. + SignalName NullableString `json:"SignalName,omitempty"` + // The roles that are allowed to send the signal. + RoleIds []int32 `json:"RoleIds,omitempty"` +} + +// NewWorkflowsSignalConfigurationRequest instantiates a new WorkflowsSignalConfigurationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsSignalConfigurationRequest() *WorkflowsSignalConfigurationRequest { + this := WorkflowsSignalConfigurationRequest{} + return &this +} + +// NewWorkflowsSignalConfigurationRequestWithDefaults instantiates a new WorkflowsSignalConfigurationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsSignalConfigurationRequestWithDefaults() *WorkflowsSignalConfigurationRequest { + this := WorkflowsSignalConfigurationRequest{} + return &this +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsSignalConfigurationRequest) GetSignalName() string { + if o == nil || isNil(o.SignalName.Get()) { + var ret string + return ret + } + return *o.SignalName.Get() +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsSignalConfigurationRequest) GetSignalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignalName.Get(), o.SignalName.IsSet() +} + +// HasSignalName returns a boolean if a field has been set. +func (o *WorkflowsSignalConfigurationRequest) HasSignalName() bool { + if o != nil && o.SignalName.IsSet() { + return true + } + + return false +} + +// SetSignalName gets a reference to the given NullableString and assigns it to the SignalName field. +func (o *WorkflowsSignalConfigurationRequest) SetSignalName(v string) { + o.SignalName.Set(&v) +} + +// SetSignalNameNil sets the value for SignalName to be an explicit nil +func (o *WorkflowsSignalConfigurationRequest) SetSignalNameNil() { + o.SignalName.Set(nil) +} + +// UnsetSignalName ensures that no value is present for SignalName, not even an explicit nil +func (o *WorkflowsSignalConfigurationRequest) UnsetSignalName() { + o.SignalName.Unset() +} + +// GetRoleIds returns the RoleIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsSignalConfigurationRequest) GetRoleIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.RoleIds +} + +// GetRoleIdsOk returns a tuple with the RoleIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsSignalConfigurationRequest) GetRoleIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RoleIds) { + return nil, false + } + return o.RoleIds, true +} + +// HasRoleIds returns a boolean if a field has been set. +func (o *WorkflowsSignalConfigurationRequest) HasRoleIds() bool { + if o != nil && isNil(o.RoleIds) { + return true + } + + return false +} + +// SetRoleIds gets a reference to the given []int32 and assigns it to the RoleIds field. +func (o *WorkflowsSignalConfigurationRequest) SetRoleIds(v []int32) { + o.RoleIds = v +} + +func (o WorkflowsSignalConfigurationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsSignalConfigurationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SignalName.IsSet() { + toSerialize["SignalName"] = o.SignalName.Get() + } + if o.RoleIds != nil { + toSerialize["RoleIds"] = o.RoleIds + } + return toSerialize, nil +} + +type NullableWorkflowsSignalConfigurationRequest struct { + value *WorkflowsSignalConfigurationRequest + isSet bool +} + +func (v NullableWorkflowsSignalConfigurationRequest) Get() *WorkflowsSignalConfigurationRequest { + return v.value +} + +func (v *NullableWorkflowsSignalConfigurationRequest) Set(val *WorkflowsSignalConfigurationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsSignalConfigurationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsSignalConfigurationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsSignalConfigurationRequest(val *WorkflowsSignalConfigurationRequest) *NullableWorkflowsSignalConfigurationRequest { + return &NullableWorkflowsSignalConfigurationRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsSignalConfigurationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsSignalConfigurationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_signal_definition_response.go b/v24/api/keyfactor/v1/model_workflows_signal_definition_response.go new file mode 100644 index 0000000..a78d0ce --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_signal_definition_response.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsSignalDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsSignalDefinitionResponse{} + +// WorkflowsSignalDefinitionResponse struct for WorkflowsSignalDefinitionResponse +type WorkflowsSignalDefinitionResponse struct { + InputParameters map[string]WorkflowsParameterDefinitionResponse `json:"InputParameters,omitempty"` +} + +// NewWorkflowsSignalDefinitionResponse instantiates a new WorkflowsSignalDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsSignalDefinitionResponse() *WorkflowsSignalDefinitionResponse { + this := WorkflowsSignalDefinitionResponse{} + return &this +} + +// NewWorkflowsSignalDefinitionResponseWithDefaults instantiates a new WorkflowsSignalDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsSignalDefinitionResponseWithDefaults() *WorkflowsSignalDefinitionResponse { + this := WorkflowsSignalDefinitionResponse{} + return &this +} + +// GetInputParameters returns the InputParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsSignalDefinitionResponse) GetInputParameters() map[string]WorkflowsParameterDefinitionResponse { + if o == nil { + var ret map[string]WorkflowsParameterDefinitionResponse + return ret + } + return o.InputParameters +} + +// GetInputParametersOk returns a tuple with the InputParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsSignalDefinitionResponse) GetInputParametersOk() (*map[string]WorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.InputParameters) { + return nil, false + } + return &o.InputParameters, true +} + +// HasInputParameters returns a boolean if a field has been set. +func (o *WorkflowsSignalDefinitionResponse) HasInputParameters() bool { + if o != nil && isNil(o.InputParameters) { + return true + } + + return false +} + +// SetInputParameters gets a reference to the given map[string]WorkflowsParameterDefinitionResponse and assigns it to the InputParameters field. +func (o *WorkflowsSignalDefinitionResponse) SetInputParameters(v map[string]WorkflowsParameterDefinitionResponse) { + o.InputParameters = v +} + +func (o WorkflowsSignalDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsSignalDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.InputParameters != nil { + toSerialize["InputParameters"] = o.InputParameters + } + return toSerialize, nil +} + +type NullableWorkflowsSignalDefinitionResponse struct { + value *WorkflowsSignalDefinitionResponse + isSet bool +} + +func (v NullableWorkflowsSignalDefinitionResponse) Get() *WorkflowsSignalDefinitionResponse { + return v.value +} + +func (v *NullableWorkflowsSignalDefinitionResponse) Set(val *WorkflowsSignalDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsSignalDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsSignalDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsSignalDefinitionResponse(val *WorkflowsSignalDefinitionResponse) *NullableWorkflowsSignalDefinitionResponse { + return &NullableWorkflowsSignalDefinitionResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsSignalDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsSignalDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_signal_request.go b/v24/api/keyfactor/v1/model_workflows_signal_request.go new file mode 100644 index 0000000..4fe42ef --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_signal_request.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsSignalRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsSignalRequest{} + +// WorkflowsSignalRequest struct for WorkflowsSignalRequest +type WorkflowsSignalRequest struct { + // The signal key. This is expected to be in a format like \"STEP_NAME.SIGNAL_NAME\" + SignalKey NullableString `json:"SignalKey,omitempty"` + // Arbitrary data to associate with the signal. + Data map[string]interface{} `json:"Data,omitempty"` +} + +// NewWorkflowsSignalRequest instantiates a new WorkflowsSignalRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsSignalRequest() *WorkflowsSignalRequest { + this := WorkflowsSignalRequest{} + return &this +} + +// NewWorkflowsSignalRequestWithDefaults instantiates a new WorkflowsSignalRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsSignalRequestWithDefaults() *WorkflowsSignalRequest { + this := WorkflowsSignalRequest{} + return &this +} + +// GetSignalKey returns the SignalKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsSignalRequest) GetSignalKey() string { + if o == nil || isNil(o.SignalKey.Get()) { + var ret string + return ret + } + return *o.SignalKey.Get() +} + +// GetSignalKeyOk returns a tuple with the SignalKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsSignalRequest) GetSignalKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignalKey.Get(), o.SignalKey.IsSet() +} + +// HasSignalKey returns a boolean if a field has been set. +func (o *WorkflowsSignalRequest) HasSignalKey() bool { + if o != nil && o.SignalKey.IsSet() { + return true + } + + return false +} + +// SetSignalKey gets a reference to the given NullableString and assigns it to the SignalKey field. +func (o *WorkflowsSignalRequest) SetSignalKey(v string) { + o.SignalKey.Set(&v) +} + +// SetSignalKeyNil sets the value for SignalKey to be an explicit nil +func (o *WorkflowsSignalRequest) SetSignalKeyNil() { + o.SignalKey.Set(nil) +} + +// UnsetSignalKey ensures that no value is present for SignalKey, not even an explicit nil +func (o *WorkflowsSignalRequest) UnsetSignalKey() { + o.SignalKey.Unset() +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsSignalRequest) GetData() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsSignalRequest) GetDataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *WorkflowsSignalRequest) HasData() bool { + if o != nil && isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *WorkflowsSignalRequest) SetData(v map[string]interface{}) { + o.Data = v +} + +func (o WorkflowsSignalRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsSignalRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SignalKey.IsSet() { + toSerialize["SignalKey"] = o.SignalKey.Get() + } + if o.Data != nil { + toSerialize["Data"] = o.Data + } + return toSerialize, nil +} + +type NullableWorkflowsSignalRequest struct { + value *WorkflowsSignalRequest + isSet bool +} + +func (v NullableWorkflowsSignalRequest) Get() *WorkflowsSignalRequest { + return v.value +} + +func (v *NullableWorkflowsSignalRequest) Set(val *WorkflowsSignalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsSignalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsSignalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsSignalRequest(val *WorkflowsSignalRequest) *NullableWorkflowsSignalRequest { + return &NullableWorkflowsSignalRequest{value: val, isSet: true} +} + +func (v NullableWorkflowsSignalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsSignalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/model_workflows_workflow_type_query_response.go b/v24/api/keyfactor/v1/model_workflows_workflow_type_query_response.go new file mode 100644 index 0000000..f4ff349 --- /dev/null +++ b/v24/api/keyfactor/v1/model_workflows_workflow_type_query_response.go @@ -0,0 +1,266 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" +) + +// checks if the WorkflowsWorkflowTypeQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkflowsWorkflowTypeQueryResponse{} + +// WorkflowsWorkflowTypeQueryResponse struct for WorkflowsWorkflowTypeQueryResponse +type WorkflowsWorkflowTypeQueryResponse struct { + WorkflowType NullableString `json:"WorkflowType,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + ContextParameters []string `json:"ContextParameters,omitempty"` + BuiltInSteps []WorkflowsAvailableStepResponse `json:"BuiltInSteps,omitempty"` +} + +// NewWorkflowsWorkflowTypeQueryResponse instantiates a new WorkflowsWorkflowTypeQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkflowsWorkflowTypeQueryResponse() *WorkflowsWorkflowTypeQueryResponse { + this := WorkflowsWorkflowTypeQueryResponse{} + return &this +} + +// NewWorkflowsWorkflowTypeQueryResponseWithDefaults instantiates a new WorkflowsWorkflowTypeQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkflowsWorkflowTypeQueryResponseWithDefaults() *WorkflowsWorkflowTypeQueryResponse { + this := WorkflowsWorkflowTypeQueryResponse{} + return &this +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsWorkflowTypeQueryResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType.Get()) { + var ret string + return ret + } + return *o.WorkflowType.Get() +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsWorkflowTypeQueryResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowType.Get(), o.WorkflowType.IsSet() +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *WorkflowsWorkflowTypeQueryResponse) HasWorkflowType() bool { + if o != nil && o.WorkflowType.IsSet() { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given NullableString and assigns it to the WorkflowType field. +func (o *WorkflowsWorkflowTypeQueryResponse) SetWorkflowType(v string) { + o.WorkflowType.Set(&v) +} + +// SetWorkflowTypeNil sets the value for WorkflowType to be an explicit nil +func (o *WorkflowsWorkflowTypeQueryResponse) SetWorkflowTypeNil() { + o.WorkflowType.Set(nil) +} + +// UnsetWorkflowType ensures that no value is present for WorkflowType, not even an explicit nil +func (o *WorkflowsWorkflowTypeQueryResponse) UnsetWorkflowType() { + o.WorkflowType.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsWorkflowTypeQueryResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsWorkflowTypeQueryResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *WorkflowsWorkflowTypeQueryResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *WorkflowsWorkflowTypeQueryResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *WorkflowsWorkflowTypeQueryResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *WorkflowsWorkflowTypeQueryResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetContextParameters returns the ContextParameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsWorkflowTypeQueryResponse) GetContextParameters() []string { + if o == nil { + var ret []string + return ret + } + return o.ContextParameters +} + +// GetContextParametersOk returns a tuple with the ContextParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsWorkflowTypeQueryResponse) GetContextParametersOk() ([]string, bool) { + if o == nil || isNil(o.ContextParameters) { + return nil, false + } + return o.ContextParameters, true +} + +// HasContextParameters returns a boolean if a field has been set. +func (o *WorkflowsWorkflowTypeQueryResponse) HasContextParameters() bool { + if o != nil && isNil(o.ContextParameters) { + return true + } + + return false +} + +// SetContextParameters gets a reference to the given []string and assigns it to the ContextParameters field. +func (o *WorkflowsWorkflowTypeQueryResponse) SetContextParameters(v []string) { + o.ContextParameters = v +} + +// GetBuiltInSteps returns the BuiltInSteps field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkflowsWorkflowTypeQueryResponse) GetBuiltInSteps() []WorkflowsAvailableStepResponse { + if o == nil { + var ret []WorkflowsAvailableStepResponse + return ret + } + return o.BuiltInSteps +} + +// GetBuiltInStepsOk returns a tuple with the BuiltInSteps field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkflowsWorkflowTypeQueryResponse) GetBuiltInStepsOk() ([]WorkflowsAvailableStepResponse, bool) { + if o == nil || isNil(o.BuiltInSteps) { + return nil, false + } + return o.BuiltInSteps, true +} + +// HasBuiltInSteps returns a boolean if a field has been set. +func (o *WorkflowsWorkflowTypeQueryResponse) HasBuiltInSteps() bool { + if o != nil && isNil(o.BuiltInSteps) { + return true + } + + return false +} + +// SetBuiltInSteps gets a reference to the given []WorkflowsAvailableStepResponse and assigns it to the BuiltInSteps field. +func (o *WorkflowsWorkflowTypeQueryResponse) SetBuiltInSteps(v []WorkflowsAvailableStepResponse) { + o.BuiltInSteps = v +} + +func (o WorkflowsWorkflowTypeQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkflowsWorkflowTypeQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.WorkflowType.IsSet() { + toSerialize["WorkflowType"] = o.WorkflowType.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if o.ContextParameters != nil { + toSerialize["ContextParameters"] = o.ContextParameters + } + if o.BuiltInSteps != nil { + toSerialize["BuiltInSteps"] = o.BuiltInSteps + } + return toSerialize, nil +} + +type NullableWorkflowsWorkflowTypeQueryResponse struct { + value *WorkflowsWorkflowTypeQueryResponse + isSet bool +} + +func (v NullableWorkflowsWorkflowTypeQueryResponse) Get() *WorkflowsWorkflowTypeQueryResponse { + return v.value +} + +func (v *NullableWorkflowsWorkflowTypeQueryResponse) Set(val *WorkflowsWorkflowTypeQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableWorkflowsWorkflowTypeQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkflowsWorkflowTypeQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkflowsWorkflowTypeQueryResponse(val *WorkflowsWorkflowTypeQueryResponse) *NullableWorkflowsWorkflowTypeQueryResponse { + return &NullableWorkflowsWorkflowTypeQueryResponse{value: val, isSet: true} +} + +func (v NullableWorkflowsWorkflowTypeQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkflowsWorkflowTypeQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v1/response.go b/v24/api/keyfactor/v1/response.go new file mode 100644 index 0000000..39f19c5 --- /dev/null +++ b/v24/api/keyfactor/v1/response.go @@ -0,0 +1,57 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/v24/api/keyfactor/v1/utils.go b/v24/api/keyfactor/v1/utils.go new file mode 100644 index 0000000..80359ac --- /dev/null +++ b/v24/api/keyfactor/v1/utils.go @@ -0,0 +1,357 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1 + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// isNil checks if an input is nil +func isNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/v24/api/keyfactor/v2/.gitignore b/v24/api/keyfactor/v2/.gitignore new file mode 100644 index 0000000..258440b --- /dev/null +++ b/v24/api/keyfactor/v2/.gitignore @@ -0,0 +1,866 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof + +.idea +.openapi-generator +.DS_Store +*.yaml + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### ASPNETCore template +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/ + +### Go template +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + +### Windows template +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### Csharp template +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser + +# User-specific files (MonoDevelop/Xamarin Studio) + +# Mono auto generated files +mono_crash.* + +# Build results +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results + +# NUnit +nunit-*.xml + +# Build Results of an ATL Project + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_h.h +*.iobj +*.ipdb +*_wpftmp.csproj +*.tlog + +# Chutzpah Test files + +# Visual C++ cache files + +# Visual Studio profiler + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace + +# Guidance Automation Toolkit + +# ReSharper is a .NET coding add-in + +# TeamCity is a build add-in + +# DotCover is a Code Coverage Tool + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results + +# NCrunch + +# MightyMoose + +# Web workbench (sass) + +# Installshield output folder + +# DocProject is a documentation generator add-in + +# Click-Once directory + +# Publish Web Output +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted + +# NuGet Packages +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files + +# Microsoft Azure Build Output + +# Microsoft Azure Emulator + +# Windows Store app package directories and files +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.ndf + +# Business Intelligence projects +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes + +# GhostDoc plugin setting file + +# Node.js Tools for Visual Studio + +# Visual Studio 6 build log + +# Visual Studio 6 workspace options file + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output + +# Paket dependency manager + +# FAKE - F# Make + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs + +# JetBrains Rider + +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Python template +# Byte-compiled / optimized / DLL files +*.py[cod] +*$py.class + +# C extensions + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + diff --git a/v24/api/keyfactor/v2/.openapi-generator-ignore b/v24/api/keyfactor/v2/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/v24/api/keyfactor/v2/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/v24/api/keyfactor/v2/README.md b/v24/api/keyfactor/v2/README.md new file mode 100644 index 0000000..94f974f --- /dev/null +++ b/v24/api/keyfactor/v2/README.md @@ -0,0 +1,161 @@ +# Go API client for Keyfactor Command (API Version V2) + +

This page provides a utility through which the Keyfactor API endpoints can be called and results returned. + It is intended to be used primarily for validation, testing and workflow development. + It also serves secondarily as documentation for the API.

+

If you would like to view documentation containing details on the Keyfactor API and endpoints, + please refer to the Web API section of the Keyfactor Command documentation.

+ +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- Keyfactor Command API Version: 24.4.2 +- API version: 2 +- Package version: 1.0.0 +- OpenAPI Generator Version: 7.12.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +For more information on the Keyfactor Command API Documentation, please visit [here](https://software.keyfactor.com/Core-OnPrem/Current/Content/WebAPI/Overview.htm). + +For more information on OpenAPI Generator, please visit [its documentation](https://openapi-generator.tech/). + +## Installation + +Install the following dependencies: + +```shell +go get "github.com/Keyfactor/keyfactor-go-client-sdk/v24" +``` + +Put the package under your project folder and add the following in import: + +```golang +import "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v2" +``` + +## Configuration + +Configuration of the API client is done through the [github.com/Keyfactor/keyfactor-auth-client-go/auth_providers](https://github.com/Keyfactor/keyfactor-auth-client-go) Go package. + +Here is an example of configuring your API client: + +```go +import ( + "os" + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" + "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v2" +) + +hostname := os.Getenv(auth_providers.EnvKeyfactorHostName) +apiPath := os.Getenv(auth_providers.EnvKeyfactorAPIPath) + +clientId := os.Getenv(auth_providers.EnvKeyfactorClientID) +clientSecret := os.Getenv(auth_providers.EnvKeyfactorClientSecret) +tokenUrl := os.Getenv(auth_providers.EnvKeyfactorAuthTokenURL) + +oAuthNoParamsConfig := auth_providers.CommandConfigOauth{} +oAuthNoParamsConfig.CommandAuthConfig. + WithCommandHostName(hostname). + WithCommandAPIPath(apiPath). + WithSkipVerify(false). + WithClientTimeout(10) +oAuthNoParamsConfig. + WithClientId(clientId). + WithClientSecret(clientSecret). + WithTokenUrl(tokenUrl). + Authenticate() + +// Configure API client +client, err := keyfactor.NewAPIClient(oAuthNoParamsConfig.GetServerConfig()) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://keyfactor.example.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*CertificateApi* | [**GetCertificatesIdentityAuditById**](docs/CertificateApi.md#getcertificatesidentityauditbyid) | **Get** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate +*EnrollmentApi* | [**CreateEnrollmentPFX**](docs/EnrollmentApi.md#createenrollmentpfx) | **Post** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request +*PAMProviderApi* | [**CreatePamProviders**](docs/PAMProviderApi.md#createpamproviders) | **Post** /PamProviders | Creates a new PAM provider with the associated properties +*PAMProviderApi* | [**CreatePamProvidersTypes**](docs/PAMProviderApi.md#createpamproviderstypes) | **Post** /PamProviders/Types | Creates a new PAM provider type with the associated properties +*PAMProviderApi* | [**DeletePamProvidersById**](docs/PAMProviderApi.md#deletepamprovidersbyid) | **Delete** /PamProviders/{id} | Deletes a PAM Provider +*PAMProviderApi* | [**GetPamProviders**](docs/PAMProviderApi.md#getpamproviders) | **Get** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +*PAMProviderApi* | [**GetPamProvidersById**](docs/PAMProviderApi.md#getpamprovidersbyid) | **Get** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +*PAMProviderApi* | [**GetPamProvidersTypes**](docs/PAMProviderApi.md#getpamproviderstypes) | **Get** /PamProviders/Types | Returns all PAM provider types in the Keyfactor instance +*PAMProviderApi* | [**GetPamProvidersTypesById**](docs/PAMProviderApi.md#getpamproviderstypesbyid) | **Get** /PamProviders/Types/{id} | Returns PAM provider Type for a specific PAM provider +*PAMProviderApi* | [**UpdatePamProviders**](docs/PAMProviderApi.md#updatepamproviders) | **Put** /PamProviders | Updates an existing PAM provider according to the provided properties +*SecurityRolesApi* | [**CreateSecurityRoles**](docs/SecurityRolesApi.md#createsecurityroles) | **Post** /Security/Roles | Adds a new security role to the system. +*SecurityRolesApi* | [**GetSecurityRoles**](docs/SecurityRolesApi.md#getsecurityroles) | **Get** /Security/Roles | Returns all security roles according to the provided filter and output parameters. +*SecurityRolesApi* | [**GetSecurityRolesById**](docs/SecurityRolesApi.md#getsecurityrolesbyid) | **Get** /Security/Roles/{id} | Returns a single security role that matches the id. +*SecurityRolesApi* | [**UpdateSecurityRoles**](docs/SecurityRolesApi.md#updatesecurityroles) | **Put** /Security/Roles | Updates an existing security role. +*UserApi* | [**GetSSHUsers**](docs/UserApi.md#getsshusers) | **Get** /SSH/Users | Returns users matching the criteria from the provided query parameters +*UserApi* | [**GetSSHUsersById**](docs/UserApi.md#getsshusersbyid) | **Get** /SSH/Users/{id} | Looks up information about an existing SSH user. + + +## Documentation For Models + + - [CSSCMSCoreEnumsClaimType](docs/CSSCMSCoreEnumsClaimType.md) + - [CSSCMSDataModelEnumsPamParameterDataType](docs/CSSCMSDataModelEnumsPamParameterDataType.md) + - [CSSCMSDataModelModelsPkcs12CertificateResponse](docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md) + - [CSSCMSDataModelModelsProviderType](docs/CSSCMSDataModelModelsProviderType.md) + - [CSSCMSDataModelModelsProviderTypeParam](docs/CSSCMSDataModelModelsProviderTypeParam.md) + - [CSSCMSDataModelModelsSSHKeysKeyResponse](docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md) + - [CSSCMSDataModelModelsSSHLogonsLogonResponse](docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md) + - [CSSCMSDataModelModelsSSHServersServerResponse](docs/CSSCMSDataModelModelsSSHServersServerResponse.md) + - [CSSCMSDataModelModelsSSHUsersSshUserAccessResponse](docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md) + - [CSSCMSDataModelModelsSSHUsersSshUserResponse](docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md) + - [CertificatesCertificateIdentityAuditResponse2](docs/CertificatesCertificateIdentityAuditResponse2.md) + - [CertificatesCertificateIdentityAuditResponse2CertificatePermission](docs/CertificatesCertificateIdentityAuditResponse2CertificatePermission.md) + - [CertificatesCertificateIdentityAuditResponse2IdentityProvider](docs/CertificatesCertificateIdentityAuditResponse2IdentityProvider.md) + - [CertificatesCertificateIdentityAuditResponse2IdentityResponse](docs/CertificatesCertificateIdentityAuditResponse2IdentityResponse.md) + - [EnrollmentManagementStoreRequest](docs/EnrollmentManagementStoreRequest.md) + - [EnrollmentPFXEnrollmentManagementResponse](docs/EnrollmentPFXEnrollmentManagementResponse.md) + - [EnrollmentPFXEnrollmentWithStoresRequest](docs/EnrollmentPFXEnrollmentWithStoresRequest.md) + - [KeyfactorCommonQueryableExtensionsSortOrder](docs/KeyfactorCommonQueryableExtensionsSortOrder.md) + - [KeyfactorCommonSchedulingKeyfactorSchedule](docs/KeyfactorCommonSchedulingKeyfactorSchedule.md) + - [KeyfactorCommonSchedulingModelsIntervalModel](docs/KeyfactorCommonSchedulingModelsIntervalModel.md) + - [KeyfactorCommonSchedulingModelsMonthlyModel](docs/KeyfactorCommonSchedulingModelsMonthlyModel.md) + - [KeyfactorCommonSchedulingModelsTimeModel](docs/KeyfactorCommonSchedulingModelsTimeModel.md) + - [KeyfactorCommonSchedulingModelsWeeklyModel](docs/KeyfactorCommonSchedulingModelsWeeklyModel.md) + - [PAMPamProviderTypeParamValueResponse](docs/PAMPamProviderTypeParamValueResponse.md) + - [PAMProviderCreateRequest](docs/PAMProviderCreateRequest.md) + - [PAMProviderCreateRequestProviderType](docs/PAMProviderCreateRequestProviderType.md) + - [PAMProviderCreateRequestProviderTypeParam](docs/PAMProviderCreateRequestProviderTypeParam.md) + - [PAMProviderCreateRequestTypeParamValue](docs/PAMProviderCreateRequestTypeParamValue.md) + - [PAMProviderResponse](docs/PAMProviderResponse.md) + - [PAMProviderTypeCreateRequest](docs/PAMProviderTypeCreateRequest.md) + - [PAMProviderTypeParameterCreateRequest](docs/PAMProviderTypeParameterCreateRequest.md) + - [PAMProviderTypeParameterResponse](docs/PAMProviderTypeParameterResponse.md) + - [PAMProviderTypeResponse](docs/PAMProviderTypeResponse.md) + - [PAMProviderUpdateRequest](docs/PAMProviderUpdateRequest.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md) + - [SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse](docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) + - [SecuritySecurityRolesSecurityRoleCreationRequest](docs/SecuritySecurityRolesSecurityRoleCreationRequest.md) + - [SecuritySecurityRolesSecurityRoleQueryResponse](docs/SecuritySecurityRolesSecurityRoleQueryResponse.md) + - [SecuritySecurityRolesSecurityRoleResponse](docs/SecuritySecurityRolesSecurityRoleResponse.md) + - [SecuritySecurityRolesSecurityRoleUpdateRequest](docs/SecuritySecurityRolesSecurityRoleUpdateRequest.md) + - [SystemDayOfWeek](docs/SystemDayOfWeek.md) + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/v24/api/keyfactor/v2/api_certificate.go b/v24/api/keyfactor/v2/api_certificate.go new file mode 100644 index 0000000..cd781ff --- /dev/null +++ b/v24/api/keyfactor/v2/api_certificate.go @@ -0,0 +1,187 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// CertificateApiService CertificateApi service +type CertificateApiService service + +// Request for V2 GET /Certificates/IdentityAudit/{id} +type ApiGetCertificatesIdentityAuditByIdRequest struct { + ctx context.Context + ApiService *CertificateApiService + id int32 + xKeyfactorRequestedWith *string + collectionId *int32 + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetCertificatesIdentityAuditByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetCertificatesIdentityAuditByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// An optional parameter for the collectin Id the certificate is in. Defaults to no collection +func (r ApiGetCertificatesIdentityAuditByIdRequest) CollectionId(collectionId int32) ApiGetCertificatesIdentityAuditByIdRequest { + r.collectionId = &collectionId + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetCertificatesIdentityAuditByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetCertificatesIdentityAuditByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /Certificates/IdentityAudit/{id} request context +func (r ApiGetCertificatesIdentityAuditByIdRequest) Execute() ([]CertificatesCertificateIdentityAuditResponse2, *http.Response, error) { + return r.ApiService.GetCertificatesIdentityAuditByIdExecute(r) +} + +/* +Creates a new V2 GET /Certificates/IdentityAudit/{id} request. + +GetCertificatesIdentityAuditById Audit identity permissions for certificate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the certificate being checked + @return ApiGetCertificatesIdentityAuditByIdRequest +*/ +func (a *CertificateApiService) NewGetCertificatesIdentityAuditByIdRequest(ctx context.Context, id int32) ApiGetCertificatesIdentityAuditByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetCertificatesIdentityAuditByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V2 GET /Certificates/IdentityAudit/{id} +// +// @return []CertificatesCertificateIdentityAuditResponse2 +func (a *CertificateApiService) GetCertificatesIdentityAuditByIdExecute(r ApiGetCertificatesIdentityAuditByIdRequest) ([]CertificatesCertificateIdentityAuditResponse2, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CertificatesCertificateIdentityAuditResponse2 + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Certificates/IdentityAudit/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.collectionId != nil { + parameterAddToQuery(localVarQueryParams, "collectionId", r.collectionId, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v2/api_enrollment.go b/v24/api/keyfactor/v2/api_enrollment.go new file mode 100644 index 0000000..4b761de --- /dev/null +++ b/v24/api/keyfactor/v2/api_enrollment.go @@ -0,0 +1,211 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + +// EnrollmentApiService EnrollmentApi service +type EnrollmentApiService service + +// Request for V2 POST /Enrollment/PFX +type ApiCreateEnrollmentPFXRequest struct { + ctx context.Context + ApiService *EnrollmentApiService + xKeyfactorRequestedWith *string + xCertificateformat *string + xKeyfactorApiVersion *string + enrollmentPFXEnrollmentWithStoresRequest *EnrollmentPFXEnrollmentWithStoresRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateEnrollmentPFXRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateEnrollmentPFXRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] +func (r ApiCreateEnrollmentPFXRequest) XCertificateformat(xCertificateformat string) ApiCreateEnrollmentPFXRequest { + r.xCertificateformat = &xCertificateformat + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateEnrollmentPFXRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateEnrollmentPFXRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// The information needed to perform the PFX Enrollment +func (r ApiCreateEnrollmentPFXRequest) EnrollmentPFXEnrollmentWithStoresRequest(enrollmentPFXEnrollmentWithStoresRequest EnrollmentPFXEnrollmentWithStoresRequest) ApiCreateEnrollmentPFXRequest { + r.enrollmentPFXEnrollmentWithStoresRequest = &enrollmentPFXEnrollmentWithStoresRequest + return r +} + +// Executes the V2 POST /Enrollment/PFX request context +func (r ApiCreateEnrollmentPFXRequest) Execute() (*EnrollmentPFXEnrollmentManagementResponse, *http.Response, error) { + return r.ApiService.CreateEnrollmentPFXExecute(r) +} + +/* +Creates a new V2 POST /Enrollment/PFX request. + +# CreateEnrollmentPFX Performs a PFX Enrollment based upon the provided request + +### IMPORTANT: +- The 'RenewalCertificateId' field in the request should be set to null if the certificate is not being renewed as part of the enrollment. A value of 0 will produce an error. + +### Subject Alternative Name Flags ### +| Value | Description | +|--------------------|---------------------------| +| other | OtherName | +| rfc822 | RFC822Name | +| dns | DNSName | +| x400 | X400Address | +| directory | DirectoryName | +| ediparty | EdipartyName | +| uri | UniformResourceIdentifier | +| ip | IPAddress | +| ip4 | IPv4Address | +| ip6 | IPv6Address | +| registeredid | RegisteredId | +| ms_ntprincipalname | MS_NTPrincipalName | +| ms_ntdsreplication | MS_NTDSReplication | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEnrollmentPFXRequest +*/ +func (a *EnrollmentApiService) NewCreateEnrollmentPFXRequest(ctx context.Context) ApiCreateEnrollmentPFXRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiCreateEnrollmentPFXRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 POST /Enrollment/PFX +// +// @return EnrollmentPFXEnrollmentManagementResponse +func (a *EnrollmentApiService) CreateEnrollmentPFXExecute(r ApiCreateEnrollmentPFXRequest) (*EnrollmentPFXEnrollmentManagementResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnrollmentPFXEnrollmentManagementResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Enrollment/PFX" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + if r.xCertificateformat == nil { + return localVarReturnValue, nil, reportError("xCertificateformat is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + parameterAddToQuery(localVarHeaderParams, "x-certificateformat", r.xCertificateformat, "") + // body params + localVarPostBody = r.enrollmentPFXEnrollmentWithStoresRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v2/api_pam_provider.go b/v24/api/keyfactor/v2/api_pam_provider.go new file mode 100644 index 0000000..76c2051 --- /dev/null +++ b/v24/api/keyfactor/v2/api_pam_provider.go @@ -0,0 +1,1279 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// PAMProviderApiService PAMProviderApi service +type PAMProviderApiService service + +// Request for V2 POST /PamProviders +type ApiCreatePamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderCreateRequest *PAMProviderCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider properties to be used +func (r ApiCreatePamProvidersRequest) PAMProviderCreateRequest(pAMProviderCreateRequest PAMProviderCreateRequest) ApiCreatePamProvidersRequest { + r.pAMProviderCreateRequest = &pAMProviderCreateRequest + return r +} + +// Executes the V2 POST /PamProviders request context +func (r ApiCreatePamProvidersRequest) Execute() (*PAMProviderResponse, *http.Response, error) { + return r.ApiService.CreatePamProvidersExecute(r) +} + +/* +Creates a new V2 POST /PamProviders request. + +# CreatePamProviders Creates a new PAM provider with the associated properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePamProvidersRequest +*/ +func (a *PAMProviderApiService) NewCreatePamProvidersRequest(ctx context.Context) ApiCreatePamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiCreatePamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 POST /PamProviders +// +// @return PAMProviderResponse +func (a *PAMProviderApiService) CreatePamProvidersExecute(r ApiCreatePamProvidersRequest) (*PAMProviderResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 POST /PamProviders/Types +type ApiCreatePamProvidersTypesRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderTypeCreateRequest *PAMProviderTypeCreateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreatePamProvidersTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreatePamProvidersTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreatePamProvidersTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreatePamProvidersTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider type properties to be used +func (r ApiCreatePamProvidersTypesRequest) PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest PAMProviderTypeCreateRequest) ApiCreatePamProvidersTypesRequest { + r.pAMProviderTypeCreateRequest = &pAMProviderTypeCreateRequest + return r +} + +// Executes the V2 POST /PamProviders/Types request context +func (r ApiCreatePamProvidersTypesRequest) Execute() (*PAMProviderTypeResponse, *http.Response, error) { + return r.ApiService.CreatePamProvidersTypesExecute(r) +} + +/* +Creates a new V2 POST /PamProviders/Types request. + +# CreatePamProvidersTypes Creates a new PAM provider type with the associated properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatePamProvidersTypesRequest +*/ +func (a *PAMProviderApiService) NewCreatePamProvidersTypesRequest(ctx context.Context) ApiCreatePamProvidersTypesRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiCreatePamProvidersTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 POST /PamProviders/Types +// +// @return PAMProviderTypeResponse +func (a *PAMProviderApiService) CreatePamProvidersTypesExecute(r ApiCreatePamProvidersTypesRequest) (*PAMProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderTypeCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 DELETE /PamProviders/{id} +type ApiDeletePamProvidersByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiDeletePamProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiDeletePamProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiDeletePamProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiDeletePamProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 DELETE /PamProviders/{id} request context +func (r ApiDeletePamProvidersByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeletePamProvidersByIdExecute(r) +} + +/* +Creates a new V2 DELETE /PamProviders/{id} request. + +DeletePamProvidersById Deletes a PAM Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider to be deleted + @return ApiDeletePamProvidersByIdRequest +*/ +func (a *PAMProviderApiService) NewDeletePamProvidersByIdRequest(ctx context.Context, id int32) ApiDeletePamProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiDeletePamProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request +func (a *PAMProviderApiService) DeletePamProvidersByIdExecute(r ApiDeletePamProvidersByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +// Request for V2 GET /PamProviders +type ApiGetPamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) +func (r ApiGetPamProvidersRequest) QueryString(queryString string) ApiGetPamProvidersRequest { + r.queryString = &queryString + return r +} + +// The current page within the result set to be returned +func (r ApiGetPamProvidersRequest) PageReturned(pageReturned int32) ApiGetPamProvidersRequest { + r.pageReturned = &pageReturned + return r +} + +// Maximum number of records to be returned in a single call +func (r ApiGetPamProvidersRequest) ReturnLimit(returnLimit int32) ApiGetPamProvidersRequest { + r.returnLimit = &returnLimit + return r +} + +// Field by which the results should be sorted (view results via Management Portal for sortable columns) +func (r ApiGetPamProvidersRequest) SortField(sortField string) ApiGetPamProvidersRequest { + r.sortField = &sortField + return r +} + +// Field sort direction [0=ascending, 1=descending] +func (r ApiGetPamProvidersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetPamProvidersRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /PamProviders request context +func (r ApiGetPamProvidersRequest) Execute() ([]PAMProviderResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersExecute(r) +} + +/* +Creates a new V2 GET /PamProviders request. + +# GetPamProviders Returns all PAM providers according to the provided filter and output parameters + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPamProvidersRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersRequest(ctx context.Context) ApiGetPamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetPamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 GET /PamProviders +// +// @return []PAMProviderResponse +func (a *PAMProviderApiService) GetPamProvidersExecute(r ApiGetPamProvidersRequest) ([]PAMProviderResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMProviderResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /PamProviders/{id} +type ApiGetPamProvidersByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /PamProviders/{id} request context +func (r ApiGetPamProvidersByIdRequest) Execute() (*PAMProviderResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersByIdExecute(r) +} + +/* +Creates a new V2 GET /PamProviders/{id} request. + +# GetPamProvidersById Returns a single PAM Provider that matches the associated id + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider + @return ApiGetPamProvidersByIdRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersByIdRequest(ctx context.Context, id int32) ApiGetPamProvidersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetPamProvidersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V2 GET /PamProviders/{id} +// +// @return PAMProviderResponse +func (a *PAMProviderApiService) GetPamProvidersByIdExecute(r ApiGetPamProvidersByIdRequest) (*PAMProviderResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /PamProviders/Types +type ApiGetPamProvidersTypesRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersTypesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersTypesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersTypesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersTypesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /PamProviders/Types request context +func (r ApiGetPamProvidersTypesRequest) Execute() ([]PAMProviderTypeResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersTypesExecute(r) +} + +/* +Creates a new V2 GET /PamProviders/Types request. + +# GetPamProvidersTypes Returns all PAM provider types in the Keyfactor instance + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPamProvidersTypesRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersTypesRequest(ctx context.Context) ApiGetPamProvidersTypesRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetPamProvidersTypesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 GET /PamProviders/Types +// +// @return []PAMProviderTypeResponse +func (a *PAMProviderApiService) GetPamProvidersTypesExecute(r ApiGetPamProvidersTypesRequest) ([]PAMProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /PamProviders/Types/{id} +type ApiGetPamProvidersTypesByIdRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetPamProvidersTypesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetPamProvidersTypesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetPamProvidersTypesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetPamProvidersTypesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /PamProviders/Types/{id} request context +func (r ApiGetPamProvidersTypesByIdRequest) Execute() ([]PAMProviderTypeResponse, *http.Response, error) { + return r.ApiService.GetPamProvidersTypesByIdExecute(r) +} + +/* +Creates a new V2 GET /PamProviders/Types/{id} request. + +# GetPamProvidersTypesById Returns PAM provider Type for a specific PAM provider + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider + @return ApiGetPamProvidersTypesByIdRequest +*/ +func (a *PAMProviderApiService) NewGetPamProvidersTypesByIdRequest(ctx context.Context, id int32) ApiGetPamProvidersTypesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetPamProvidersTypesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V2 GET /PamProviders/Types/{id} +// +// @return []PAMProviderTypeResponse +func (a *PAMProviderApiService) GetPamProvidersTypesByIdExecute(r ApiGetPamProvidersTypesByIdRequest) ([]PAMProviderTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PAMProviderTypeResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders/Types/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id < 0 { + return localVarReturnValue, nil, reportError("id must be greater than 0") + } + if r.id > 2147483647 { + return localVarReturnValue, nil, reportError("id must be less than 2147483647") + } + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 PUT /PamProviders +type ApiUpdatePamProvidersRequest struct { + ctx context.Context + ApiService *PAMProviderApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + pAMProviderUpdateRequest *PAMProviderUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdatePamProvidersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdatePamProvidersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdatePamProvidersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdatePamProvidersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// PAM provider properties to be used +func (r ApiUpdatePamProvidersRequest) PAMProviderUpdateRequest(pAMProviderUpdateRequest PAMProviderUpdateRequest) ApiUpdatePamProvidersRequest { + r.pAMProviderUpdateRequest = &pAMProviderUpdateRequest + return r +} + +// Executes the V2 PUT /PamProviders request context +func (r ApiUpdatePamProvidersRequest) Execute() (*PAMProviderResponse, *http.Response, error) { + return r.ApiService.UpdatePamProvidersExecute(r) +} + +/* +Creates a new V2 PUT /PamProviders request. + +# UpdatePamProviders Updates an existing PAM provider according to the provided properties + +### PAM Provider Data Types ### +| Value | Description | +|--------------------|---------------------------| +| 1 | string | +| 2 | secret | + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePamProvidersRequest +*/ +func (a *PAMProviderApiService) NewUpdatePamProvidersRequest(ctx context.Context) ApiUpdatePamProvidersRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiUpdatePamProvidersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 PUT /PamProviders +// +// @return PAMProviderResponse +func (a *PAMProviderApiService) UpdatePamProvidersExecute(r ApiUpdatePamProvidersRequest) (*PAMProviderResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PAMProviderResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/PamProviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.pAMProviderUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v2/api_security_roles.go b/v24/api/keyfactor/v2/api_security_roles.go new file mode 100644 index 0000000..20bcbdf --- /dev/null +++ b/v24/api/keyfactor/v2/api_security_roles.go @@ -0,0 +1,657 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// SecurityRolesApiService SecurityRolesApi service +type SecurityRolesApiService service + +// Request for V2 POST /Security/Roles +type ApiCreateSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolesSecurityRoleCreationRequest *SecuritySecurityRolesSecurityRoleCreationRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiCreateSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCreateSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiCreateSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCreateSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security Role Creation Request +func (r ApiCreateSecurityRolesRequest) SecuritySecurityRolesSecurityRoleCreationRequest(securitySecurityRolesSecurityRoleCreationRequest SecuritySecurityRolesSecurityRoleCreationRequest) ApiCreateSecurityRolesRequest { + r.securitySecurityRolesSecurityRoleCreationRequest = &securitySecurityRolesSecurityRoleCreationRequest + return r +} + +// Executes the V2 POST /Security/Roles request context +func (r ApiCreateSecurityRolesRequest) Execute() (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.CreateSecurityRolesExecute(r) +} + +/* +Creates a new V2 POST /Security/Roles request. + +CreateSecurityRoles Adds a new security role to the system. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSecurityRolesRequest +*/ +func (a *SecurityRolesApiService) NewCreateSecurityRolesRequest(ctx context.Context) ApiCreateSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiCreateSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 POST /Security/Roles +// +// @return SecuritySecurityRolesSecurityRoleResponse +func (a *SecurityRolesApiService) CreateSecurityRolesExecute(r ApiCreateSecurityRolesRequest) (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolesSecurityRoleCreationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /Security/Roles +type ApiGetSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSecurityRolesRequest) QueryString(queryString string) ApiGetSecurityRolesRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSecurityRolesRequest) PageReturned(pageReturned int32) ApiGetSecurityRolesRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSecurityRolesRequest) ReturnLimit(returnLimit int32) ApiGetSecurityRolesRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSecurityRolesRequest) SortField(sortField string) ApiGetSecurityRolesRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSecurityRolesRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSecurityRolesRequest { + r.sortAscending = &sortAscending + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /Security/Roles request context +func (r ApiGetSecurityRolesRequest) Execute() ([]SecuritySecurityRolesSecurityRoleQueryResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesExecute(r) +} + +/* +Creates a new V2 GET /Security/Roles request. + +GetSecurityRoles Returns all security roles according to the provided filter and output parameters. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSecurityRolesRequest +*/ +func (a *SecurityRolesApiService) NewGetSecurityRolesRequest(ctx context.Context) ApiGetSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 GET /Security/Roles +// +// @return []SecuritySecurityRolesSecurityRoleQueryResponse +func (a *SecurityRolesApiService) GetSecurityRolesExecute(r ApiGetSecurityRolesRequest) ([]SecuritySecurityRolesSecurityRoleQueryResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SecuritySecurityRolesSecurityRoleQueryResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /Security/Roles/{id} +type ApiGetSecurityRolesByIdRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSecurityRolesByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSecurityRolesByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSecurityRolesByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSecurityRolesByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /Security/Roles/{id} request context +func (r ApiGetSecurityRolesByIdRequest) Execute() (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.GetSecurityRolesByIdExecute(r) +} + +/* +Creates a new V2 GET /Security/Roles/{id} request. + +GetSecurityRolesById Returns a single security role that matches the id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiGetSecurityRolesByIdRequest +*/ +func (a *SecurityRolesApiService) NewGetSecurityRolesByIdRequest(ctx context.Context, id int32) ApiGetSecurityRolesByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetSecurityRolesByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V2 GET /Security/Roles/{id} +// +// @return SecuritySecurityRolesSecurityRoleResponse +func (a *SecurityRolesApiService) GetSecurityRolesByIdExecute(r ApiGetSecurityRolesByIdRequest) (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 PUT /Security/Roles +type ApiUpdateSecurityRolesRequest struct { + ctx context.Context + ApiService *SecurityRolesApiService + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string + securitySecurityRolesSecurityRoleUpdateRequest *SecuritySecurityRolesSecurityRoleUpdateRequest +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiUpdateSecurityRolesRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiUpdateSecurityRolesRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiUpdateSecurityRolesRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiUpdateSecurityRolesRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Security Role Update Request +func (r ApiUpdateSecurityRolesRequest) SecuritySecurityRolesSecurityRoleUpdateRequest(securitySecurityRolesSecurityRoleUpdateRequest SecuritySecurityRolesSecurityRoleUpdateRequest) ApiUpdateSecurityRolesRequest { + r.securitySecurityRolesSecurityRoleUpdateRequest = &securitySecurityRolesSecurityRoleUpdateRequest + return r +} + +// Executes the V2 PUT /Security/Roles request context +func (r ApiUpdateSecurityRolesRequest) Execute() (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + return r.ApiService.UpdateSecurityRolesExecute(r) +} + +/* +Creates a new V2 PUT /Security/Roles request. + +UpdateSecurityRoles Updates an existing security role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateSecurityRolesRequest +*/ +func (a *SecurityRolesApiService) NewUpdateSecurityRolesRequest(ctx context.Context) ApiUpdateSecurityRolesRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiUpdateSecurityRolesRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 PUT /Security/Roles +// +// @return SecuritySecurityRolesSecurityRoleResponse +func (a *SecurityRolesApiService) UpdateSecurityRolesExecute(r ApiUpdateSecurityRolesRequest) (*SecuritySecurityRolesSecurityRoleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SecuritySecurityRolesSecurityRoleResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/Security/Roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/json", "text/json", "application/*+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.securitySecurityRolesSecurityRoleUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v2/api_user.go b/v24/api/keyfactor/v2/api_user.go new file mode 100644 index 0000000..874cbc4 --- /dev/null +++ b/v24/api/keyfactor/v2/api_user.go @@ -0,0 +1,371 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// UserApiService UserApi service +type UserApiService service + +// Request for V2 GET /SSH/Users +type ApiGetSSHUsersRequest struct { + ctx context.Context + ApiService *UserApiService + xKeyfactorRequestedWith *string + queryString *string + pageReturned *int32 + returnLimit *int32 + sortField *string + sortAscending *KeyfactorCommonQueryableExtensionsSortOrder + showOwnedAccess *bool + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHUsersRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHUsersRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +func (r ApiGetSSHUsersRequest) QueryString(queryString string) ApiGetSSHUsersRequest { + r.queryString = &queryString + return r +} + +func (r ApiGetSSHUsersRequest) PageReturned(pageReturned int32) ApiGetSSHUsersRequest { + r.pageReturned = &pageReturned + return r +} + +func (r ApiGetSSHUsersRequest) ReturnLimit(returnLimit int32) ApiGetSSHUsersRequest { + r.returnLimit = &returnLimit + return r +} + +func (r ApiGetSSHUsersRequest) SortField(sortField string) ApiGetSSHUsersRequest { + r.sortField = &sortField + return r +} + +func (r ApiGetSSHUsersRequest) SortAscending(sortAscending KeyfactorCommonQueryableExtensionsSortOrder) ApiGetSSHUsersRequest { + r.sortAscending = &sortAscending + return r +} + +// Whether or not to return only logons that have access to servers the requesting user owns +func (r ApiGetSSHUsersRequest) ShowOwnedAccess(showOwnedAccess bool) ApiGetSSHUsersRequest { + r.showOwnedAccess = &showOwnedAccess + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHUsersRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHUsersRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /SSH/Users request context +func (r ApiGetSSHUsersRequest) Execute() ([]CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + return r.ApiService.GetSSHUsersExecute(r) +} + +/* +Creates a new V2 GET /SSH/Users request. + +GetSSHUsers Returns users matching the criteria from the provided query parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSSHUsersRequest +*/ +func (a *UserApiService) NewGetSSHUsersRequest(ctx context.Context) ApiGetSSHUsersRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetSSHUsersRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + } +} + +// Executes the API request V2 GET /SSH/Users +// +// @return []CSSCMSDataModelModelsSSHUsersSshUserAccessResponse +func (a *UserApiService) GetSSHUsersExecute(r ApiGetSSHUsersRequest) ([]CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + if r.queryString != nil { + parameterAddToQuery(localVarQueryParams, "QueryString", r.queryString, "") + } + if r.pageReturned != nil { + parameterAddToQuery(localVarQueryParams, "PageReturned", r.pageReturned, "") + } + if r.returnLimit != nil { + parameterAddToQuery(localVarQueryParams, "ReturnLimit", r.returnLimit, "") + } + if r.sortField != nil { + parameterAddToQuery(localVarQueryParams, "SortField", r.sortField, "") + } + if r.sortAscending != nil { + parameterAddToQuery(localVarQueryParams, "SortAscending", r.sortAscending, "") + } + if r.showOwnedAccess != nil { + parameterAddToQuery(localVarQueryParams, "showOwnedAccess", r.showOwnedAccess, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// Request for V2 GET /SSH/Users/{id} +type ApiGetSSHUsersByIdRequest struct { + ctx context.Context + ApiService *UserApiService + id int32 + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string +} + +// Type of the request [XMLHttpRequest, APIClient] +func (r ApiGetSSHUsersByIdRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiGetSSHUsersByIdRequest { + r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith + return r +} + +// Desired version of the api, if not provided defaults to v1 +func (r ApiGetSSHUsersByIdRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiGetSSHUsersByIdRequest { + r.xKeyfactorApiVersion = &xKeyfactorApiVersion + return r +} + +// Executes the V2 GET /SSH/Users/{id} request context +func (r ApiGetSSHUsersByIdRequest) Execute() (*CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + return r.ApiService.GetSSHUsersByIdExecute(r) +} + +/* +Creates a new V2 GET /SSH/Users/{id} request. + +GetSSHUsersById Looks up information about an existing SSH user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Id of the SSH user to retrieve. + @return ApiGetSSHUsersByIdRequest +*/ +func (a *UserApiService) NewGetSSHUsersByIdRequest(ctx context.Context, id int32) ApiGetSSHUsersByIdRequest { + + requestedWith := "APIClient" + apiVersion := "2" + + return ApiGetSSHUsersByIdRequest{ + ApiService: a, + ctx: ctx, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &apiVersion, + + id: id, + } +} + +// Executes the API request V2 GET /SSH/Users/{id} +// +// @return CSSCMSDataModelModelsSSHUsersSshUserAccessResponse +func (a *UserApiService) GetSSHUsersByIdExecute(r ApiGetSSHUsersByIdRequest) (*CSSCMSDataModelModelsSSHUsersSshUserAccessResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + ) + + apiBasePath := a.client.AuthClient.GetServerConfig().APIPath + if apiBasePath == "" { + apiBasePath = "/KeyfactorAPI" + } + + if r.xKeyfactorRequestedWith == nil { + requestedWith := "APIClient" + r.xKeyfactorRequestedWith = &requestedWith + } + + if r.xKeyfactorApiVersion == nil { + apiVersion := "2" + r.xKeyfactorApiVersion = &apiVersion + } + + localVarPath := apiBasePath + "/SSH/Users/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.xKeyfactorRequestedWith == nil { + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json", "text/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xKeyfactorApiVersion != nil { + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") + } + parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/v24/api/keyfactor/v2/client.go b/v24/api/keyfactor/v2/client.go new file mode 100644 index 0000000..3056804 --- /dev/null +++ b/v24/api/keyfactor/v2/client.go @@ -0,0 +1,878 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "bytes" + "context" + "crypto/tls" + "crypto/x509" + "encoding/json" + "encoding/pem" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the Keyfactor API Reference and Utility API v2 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + AuthClient AuthConfig + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + CertificateApi *CertificateApiService + + EnrollmentApi *EnrollmentApiService + + PAMProviderApi *PAMProviderApiService + + SecurityRolesApi *SecurityRolesApiService + + UserApi *UserApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *auth_providers.Server) (*APIClient, error) { + var err error + + authConfig, err := buildHttpClientV2(cfg) + if err != nil { + return nil, err + } + + c := &APIClient{} + c.AuthClient = authConfig + c.common.client = c + + // API Services + c.CertificateApi = (*CertificateApiService)(&c.common) + c.EnrollmentApi = (*EnrollmentApiService)(&c.common) + c.PAMProviderApi = (*PAMProviderApiService)(&c.common) + c.SecurityRolesApi = (*SecurityRolesApiService)(&c.common) + c.UserApi = (*UserApiService)(&c.common) + + return c, nil +} + +// Define an interface that both CommandConfigOauth and CommandAuthConfigBasic implement +type AuthConfig interface { + Authenticate() error + GetHttpClient() (*http.Client, error) + GetServerConfig() *auth_providers.Server +} + +func buildHttpClientV2(cfg *auth_providers.Server) (AuthConfig, error) { + clientAuthType := cfg.GetAuthType() + + baseConfig := auth_providers.CommandAuthConfig{ + CommandHostName: cfg.Host, + CommandPort: cfg.Port, + CommandAPIPath: cfg.APIPath, + CommandCACert: cfg.CACertPath, + SkipVerify: cfg.SkipTLSVerify, + } + + if clientAuthType == "basic" { + basicCfg := auth_providers.CommandAuthConfigBasic{ + CommandAuthConfig: baseConfig, + Username: cfg.Username, + Password: cfg.Password, + Domain: cfg.Domain, + } + aErr := basicCfg.Authenticate() + if aErr != nil { + return nil, aErr + } + _, cErr := basicCfg.GetHttpClient() + if cErr != nil { + return nil, cErr + } + return &basicCfg, nil + } else if clientAuthType == "oauth" { + oauthCfg := auth_providers.CommandConfigOauth{ + CommandAuthConfig: baseConfig, + ClientID: cfg.ClientID, + ClientSecret: cfg.ClientSecret, + TokenURL: cfg.OAuthTokenUrl, + } + aErr := oauthCfg.Authenticate() + if aErr != nil { + return nil, aErr + } + _, cErr := oauthCfg.GetHttpClient() + if cErr != nil { + return nil, cErr + } + return &oauthCfg, nil + } else { + if clientAuthType == "" { + return nil, fmt.Errorf("invalid or missing authentication configuration") + } + return nil, fmt.Errorf("unsupported auth type '%s'", clientAuthType) + } +} + +func buildHttpClient(config *Configuration) (*http.Client, error) { + // Configure new TLS object + tlsConfig := &tls.Config{ + Renegotiation: tls.RenegotiateOnceAsClient, + } + + // Load the CA certificate + caChain, err := findCaCertificate(config) + if err != nil { + return nil, err + } + + // Add the CA certificate to the TLS config, if any CA certificate were found + if len(caChain) > 0 { + tlsConfig.RootCAs = x509.NewCertPool() + for _, caCert := range caChain { + tlsConfig.RootCAs.AddCert(caCert) + } + + // Add the pool to the TLS config + tlsConfig.ClientCAs = tlsConfig.RootCAs + } + + // Configure HTTP transports with TLS config + customTransport := http.DefaultTransport.(*http.Transport).Clone() + customTransport.TLSClientConfig = tlsConfig + customTransport.TLSHandshakeTimeout = 10 * time.Second + + // Build new HTTP object to communicate with EJBCA + customHttpClient := http.DefaultClient + customHttpClient.Transport = customTransport + customHttpClient.Timeout = 10 * time.Second + + return customHttpClient, nil +} + +func debugMessage(isDebug bool, message string, args ...interface{}) { + if isDebug { + log.Printf(message+"\n", args...) + } +} + +func cleanHostname(hostname string) (string, error) { + if hostname == "" { + return "", errors.New("KEYFACTOR_HOSTNAME cannot be empty") + } + + // When parsing a hostname without a scheme, Go will assume it is a path. + if !strings.HasPrefix(hostname, "http://") && !strings.HasPrefix(hostname, "https://") { + hostname = "http://" + hostname + } + + if u, err := url.Parse(hostname); err == nil { + return u.Host, nil + } else { + fmt.Errorf("%s is not a valid URL: %s", hostname, err) + return "", err + } +} + +func findCaCertificate(config *Configuration) ([]*x509.Certificate, error) { + // Load CA certificate + if config.caCertificates != nil { + return config.caCertificates, nil + } + + // If no CA certificate path is specified, return nil since the default CA certificates will be used + if config.CaCertificatePath == "" { + return nil, nil + } + + // Read and parse the passed certificate file which should contain the CA certificate and chain + debugMessage(config.Debug, "Reading CA certificate from %s", config.CaCertificatePath) + buf, err := ioutil.ReadFile(config.CaCertificatePath) + if err != nil { + return nil, err + } + // Decode the PEM encoded certificates into a slice of PEM blocks + chainBlocks, _, err := decodePEMBytes(buf, config.Debug) + if err != nil { + return nil, err + } + if len(chainBlocks) <= 0 { + return nil, fmt.Errorf("didn't find certificate in file at path %s", config.CaCertificatePath) + } + + caChain := []*x509.Certificate{} + for _, block := range chainBlocks { + // Parse the PEM block into an x509 certificate + cert, err := x509.ParseCertificate(block.Bytes) + if err != nil { + return nil, err + } + + caChain = append(caChain, cert) + } + + return caChain, nil +} + +func decodePEMBytes(buf []byte, isDebug bool) ([]*pem.Block, []byte, error) { + var privKey []byte + var certificates []*pem.Block + var block *pem.Block + for { + block, buf = pem.Decode(buf) + if block == nil { + break + } else if strings.Contains(block.Type, "PRIVATE KEY") { + privKey = pem.EncodeToMemory(block) + } else { + certificates = append(certificates, block) + } + debugMessage(isDebug, "Found PEM block of type %s", block.Type) + } + return certificates, privKey, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToQuery adds the provided object to the url query supporting deep object syntax +func parameterAddToQuery(queryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToQuery(queryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToQuery(queryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + parameterAddToQuery(queryParams, keyPrefix, arrayValue.Interface(), collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToQuery(queryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToQuery(queryParams, keyPrefix, v.Elem().Interface(), collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := queryParams.(type) { + case url.Values: + valuesMap.Add(keyPrefix, value) + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + + if c.AuthClient == nil { + return nil, errors.New("invalid or missing client configuration") + } + + var httpClient *http.Client + var err error + + httpClient, err = c.AuthClient.GetHttpClient() + + //if c.AuthClient. { + // dump, err := httputil.DumpRequestOut(request, true) + // if err != nil { + // return nil, err + // } + // log.Printf("\n%s\n", string(dump)) + //} + + resp, err := httpClient.Do(request) + if err != nil { + return resp, err + } + + //if c.AuthClient.Debug { + // dump, err := httputil.DumpResponse(resp, true) + // if err != nil { + // return resp, err + // } + // log.Printf("\n%s\n", string(dump)) + //} + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *auth_providers.Server { + if c.AuthClient == nil { + return nil + } + return c.AuthClient.GetServerConfig() + +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + serverConfig := c.GetConfig() + if serverConfig.Host != "" { + if serverConfig.Port > 0 && serverConfig.Port <= 65535 { + url.Host = fmt.Sprintf("%s:%d", serverConfig.Host, serverConfig.Port) + } else { + url.Host = serverConfig.Host + } + } + + // Override request scheme + url.Scheme = "https" + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + //localVarRequest.Header.Add("User-Agent", c.AuthClient.U) + localVarRequest.Header.Add("User-Agent", "OpenAPI-Generator/1.0.0/go") + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + // localVarRequest.SetBasicAuth(c.cfg.BasicAuth.UserName, c.cfg.BasicAuth.Password) + + // for header, value := range c.cfg.DefaultHeader { + // localVarRequest.Header.Add(header, value) + //} + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + + // status title (detail) + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/v24/api/keyfactor/v2/config.yml b/v24/api/keyfactor/v2/config.yml new file mode 100644 index 0000000..92bb998 --- /dev/null +++ b/v24/api/keyfactor/v2/config.yml @@ -0,0 +1,38 @@ +additionalProperties: + licenseHeader: |- + Copyright 2023 Keyfactor + 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. + environmentVariables: + - name: KEYFACTOR_HOSTNAME + goVarName: envCommandHostname + description: "Hostname of the Keyfactor Command instance. Does not include the protocol (http/https) or API suffix (/KeyfactorAPI)" + required: true + - name: KEYFACTOR_USERNAME + goVarName: envCommandUsername + description: "Username of the Keyfactor Command user using the API" + required: true + - name: KEYFACTOR_PASSWORD + goVarName: envCommandPassword + description: "Password of the Keyfactor Command user using the API" + required: true + - name: KEYFACTOR_DOMAIN + goVarName: envCommandDomain + description: "Domain of the Keyfactor Command user using the API, if using Active Directory authentication" + required: false + - name: KEYFACTOR_API_PATH + goVarName: envCommandApiPath + description: "Path to the Keyfactor Command API. Defaults to /KeyfactorAPI" + required: false + defaultValue: "/KeyfactorAPI" + - name: KEYFACTOR_LOG_LEVEL + goVarName: envCommandLogLevel + description: "Log level for the Keyfactor Command API client. Defaults to info" + required: false + defaultValue: "error" diff --git a/v24/api/keyfactor/v2/configuration.go b/v24/api/keyfactor/v2/configuration.go new file mode 100644 index 0000000..20f79fe --- /dev/null +++ b/v24/api/keyfactor/v2/configuration.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "crypto/x509" + "fmt" + "net/http" + "os" + "strings" + + kfauth "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") + + EnvCommandHostname = kfauth.EnvKeyfactorHostName + EnvCommandUsername = kfauth.EnvKeyfactorUsername + EnvCommandPassword = kfauth.EnvKeyfactorPassword + EnvCommandDomain = kfauth.EnvKeyfactorDomain + EnvCommandApiPath = kfauth.EnvKeyfactorAPIPath +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"username,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + BasicAuth BasicAuth `json:"basicAuth,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + CaCertificatePath string `json:"caCertificatePath,omitempty"` + APIPath string `json:"apiPath,omitempty"` + Domain string `json:"domain,omitempty"` + HTTPClient *http.Client + caCertificates []*x509.Certificate +} + +func ValidateConfiguration(configuration *Configuration) []error { + var errs []error + if configuration.Host == "" { + errs = append(errs, fmt.Errorf("hostname cannot be empty")) + } + if configuration.BasicAuth.UserName == "" { + errs = append(errs, fmt.Errorf("username cannot be empty")) + } + if configuration.BasicAuth.Password == "" { + errs = append(errs, fmt.Errorf("password cannot be empty")) + } + + if configuration.CaCertificatePath != "" { + if _, err := os.Stat(configuration.CaCertificatePath); os.IsNotExist(err) { + errs = append(errs, fmt.Errorf("caCertificatePath does not exist: %s", configuration.CaCertificatePath)) + } + } + + if configuration.APIPath == "" { + configuration.APIPath = "/KeyfactorAPI" + } + + if configuration.Domain == "" && configuration.BasicAuth.UserName != "" && (!strings.Contains(configuration.BasicAuth.UserName, "@") && !strings.Contains(configuration.BasicAuth.UserName, "\\")) { + errs = append(errs, fmt.Errorf("domain cannot be empty when username does not contain a domain or a slash (\\) or an at (@) symbol")) + } + + return errs +} + +// GetEnvConfig returns a map of environment variables +func GetEnvConfiguration() map[string]string { + config := make(map[string]string) + return config +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration(config map[string]string) (*Configuration, error) { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + } + + var ( + hostname string + ) + confHost := config["host"] + confUser := config["username"] + confPass := config["password"] + confDomain := config["domain"] + confCaPath := config["caCertificatePath"] + confAPIPath := config["apiPath"] + + // Get hostname from environment variable + if confHost == "" { + hostname = os.Getenv(EnvCommandHostname) + } else { + hostname = confHost + } + + if hostname != "" { + if hostnameCleaned, err := cleanHostname(hostname); err == nil { + cfg.Host = hostnameCleaned + } + } + + // Get username from environment variable + if confUser == "" { + cfg.BasicAuth.UserName = os.Getenv(EnvCommandUsername) + } else { + cfg.BasicAuth.UserName = confUser + } + + if confDomain != "" { + if cfg.BasicAuth.UserName != "" && !strings.Contains(cfg.BasicAuth.UserName, confDomain) { + cfg.BasicAuth.UserName = cfg.BasicAuth.UserName + "@" + confDomain + } + } else { + cfg.Domain = os.Getenv(EnvCommandDomain) + if cfg.BasicAuth.UserName != "" && !strings.Contains(cfg.BasicAuth.UserName, cfg.Domain) && cfg.Domain != "" && !strings.Contains(cfg.BasicAuth.UserName, "@") { + cfg.BasicAuth.UserName = cfg.BasicAuth.UserName + "@" + cfg.Domain + } + } + + // Get password from environment variable + if confPass == "" { + cfg.BasicAuth.Password = os.Getenv(EnvCommandPassword) + } else { + cfg.BasicAuth.Password = confPass + } + + // Get caCertificatePath from environment variable + if confCaPath == "" { + cfg.CaCertificatePath = os.Getenv("KEYFACTOR_CA_CERTIFICATE_PATH") + } else { + cfg.CaCertificatePath = confCaPath + } + + // Get apiPath from environment variable + if confAPIPath == "" { + cfg.APIPath = os.Getenv(EnvCommandApiPath) + } else { + cfg.APIPath = confAPIPath + } + + errs := ValidateConfiguration(cfg) + if len(errs) > 0 { + outputString := "Configuration errors:\n" + for _, err := range errs { + outputString += fmt.Sprintf(" - %s\n", err) + } + return nil, fmt.Errorf(outputString) + } + + return cfg, nil +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +func (c *Configuration) SetCaCertificates(caCertificates []*x509.Certificate) { + if caCertificates != nil { + c.caCertificates = caCertificates + } +} diff --git a/v24/api/keyfactor/v2/docs/CSSCMSCoreEnumsClaimType.md b/v24/api/keyfactor/v2/docs/CSSCMSCoreEnumsClaimType.md new file mode 100644 index 0000000..6e84cac --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSCoreEnumsClaimType.md @@ -0,0 +1,23 @@ +# CSSCMSCoreEnumsClaimType + +## Enum + + +* `User` (value: `0`) + +* `Group` (value: `1`) + +* `Computer` (value: `2`) + +* `OAuthOid` (value: `3`) + +* `OAuthRole` (value: `4`) + +* `OAuthSubject` (value: `5`) + +* `OAuthClientId` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelEnumsPamParameterDataType.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelEnumsPamParameterDataType.md new file mode 100644 index 0000000..1ed4b87 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelEnumsPamParameterDataType.md @@ -0,0 +1,13 @@ +# CSSCMSDataModelEnumsPamParameterDataType + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md new file mode 100644 index 0000000..d6f9f42 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsPkcs12CertificateResponse.md @@ -0,0 +1,458 @@ +# CSSCMSDataModelModelsPkcs12CertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **NullableString** | | [optional] +**KeyfactorId** | Pointer to **int32** | | [optional] +**Pkcs12Blob** | Pointer to **NullableString** | | [optional] +**Password** | Pointer to **NullableString** | | [optional] +**WorkflowInstanceId** | Pointer to **string** | | [optional] +**WorkflowReferenceId** | Pointer to **int64** | | [optional] +**StoreIdsInvalidForRenewal** | Pointer to **[]string** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**RequestDisposition** | Pointer to **NullableString** | | [optional] +**DispositionMessage** | Pointer to **NullableString** | | [optional] +**EnrollmentContext** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPkcs12CertificateResponse + +`func NewCSSCMSDataModelModelsPkcs12CertificateResponse() *CSSCMSDataModelModelsPkcs12CertificateResponse` + +NewCSSCMSDataModelModelsPkcs12CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults + +`func NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs12CertificateResponse` + +NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### SetSerialNumberNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumberNil(b bool)` + + SetSerialNumberNil sets the value for SerialNumber to be an explicit nil + +### UnsetSerialNumber +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetSerialNumber()` + +UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +### GetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### SetThumbprintNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprintNil(b bool)` + + SetThumbprintNil sets the value for Thumbprint to be an explicit nil + +### UnsetThumbprint +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetThumbprint()` + +UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +### GetKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorId() int32` + +GetKeyfactorId returns the KeyfactorId field if non-nil, zero value otherwise. + +### GetKeyfactorIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool)` + +GetKeyfactorIdOk returns a tuple with the KeyfactorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorId(v int32)` + +SetKeyfactorId sets KeyfactorId field to given value. + +### HasKeyfactorId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorId() bool` + +HasKeyfactorId returns a boolean if a field has been set. + +### GetPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12Blob() string` + +GetPkcs12Blob returns the Pkcs12Blob field if non-nil, zero value otherwise. + +### GetPkcs12BlobOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool)` + +GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12Blob(v string)` + +SetPkcs12Blob sets Pkcs12Blob field to given value. + +### HasPkcs12Blob + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPkcs12Blob() bool` + +HasPkcs12Blob returns a boolean if a field has been set. + +### SetPkcs12BlobNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12BlobNil(b bool)` + + SetPkcs12BlobNil sets the value for Pkcs12Blob to be an explicit nil + +### UnsetPkcs12Blob +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPkcs12Blob()` + +UnsetPkcs12Blob ensures that no value is present for Pkcs12Blob, not even an explicit nil +### GetPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceId() string` + +GetWorkflowInstanceId returns the WorkflowInstanceId field if non-nil, zero value otherwise. + +### GetWorkflowInstanceIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool)` + +GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowInstanceId(v string)` + +SetWorkflowInstanceId sets WorkflowInstanceId field to given value. + +### HasWorkflowInstanceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowInstanceId() bool` + +HasWorkflowInstanceId returns a boolean if a field has been set. + +### GetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceId() int64` + +GetWorkflowReferenceId returns the WorkflowReferenceId field if non-nil, zero value otherwise. + +### GetWorkflowReferenceIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool)` + +GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowReferenceId(v int64)` + +SetWorkflowReferenceId sets WorkflowReferenceId field to given value. + +### HasWorkflowReferenceId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowReferenceId() bool` + +HasWorkflowReferenceId returns a boolean if a field has been set. + +### GetStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewal() []string` + +GetStoreIdsInvalidForRenewal returns the StoreIdsInvalidForRenewal field if non-nil, zero value otherwise. + +### GetStoreIdsInvalidForRenewalOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewalOk() (*[]string, bool)` + +GetStoreIdsInvalidForRenewalOk returns a tuple with the StoreIdsInvalidForRenewal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewal(v []string)` + +SetStoreIdsInvalidForRenewal sets StoreIdsInvalidForRenewal field to given value. + +### HasStoreIdsInvalidForRenewal + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasStoreIdsInvalidForRenewal() bool` + +HasStoreIdsInvalidForRenewal returns a boolean if a field has been set. + +### SetStoreIdsInvalidForRenewalNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewalNil(b bool)` + + SetStoreIdsInvalidForRenewalNil sets the value for StoreIdsInvalidForRenewal to be an explicit nil + +### UnsetStoreIdsInvalidForRenewal +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetStoreIdsInvalidForRenewal()` + +UnsetStoreIdsInvalidForRenewal ensures that no value is present for StoreIdsInvalidForRenewal, not even an explicit nil +### GetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### SetRequestDispositionNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDispositionNil(b bool)` + + SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil + +### UnsetRequestDisposition +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetRequestDisposition()` + +UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +### GetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### SetDispositionMessageNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessageNil(b bool)` + + SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil + +### UnsetDispositionMessage +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetDispositionMessage()` + +UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +### GetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string` + +GetEnrollmentContext returns the EnrollmentContext field if non-nil, zero value otherwise. + +### GetEnrollmentContextOk + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool)` + +GetEnrollmentContextOk returns a tuple with the EnrollmentContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string)` + +SetEnrollmentContext sets EnrollmentContext field to given value. + +### HasEnrollmentContext + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasEnrollmentContext() bool` + +HasEnrollmentContext returns a boolean if a field has been set. + +### SetEnrollmentContextNil + +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContextNil(b bool)` + + SetEnrollmentContextNil sets the value for EnrollmentContext to be an explicit nil + +### UnsetEnrollmentContext +`func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetEnrollmentContext()` + +UnsetEnrollmentContext ensures that no value is present for EnrollmentContext, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderType.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderType.md new file mode 100644 index 0000000..0d9bb98 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderType.md @@ -0,0 +1,128 @@ +# CSSCMSDataModelModelsProviderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**ProviderTypeParams** | Pointer to [**[]CSSCMSDataModelModelsProviderTypeParam**](CSSCMSDataModelModelsProviderTypeParam.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderType + +`func NewCSSCMSDataModelModelsProviderType() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderType instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeWithDefaults() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderTypeWithDefaults instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderType) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderType) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsProviderType) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsProviderType) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParams() []CSSCMSDataModelModelsProviderTypeParam` + +GetProviderTypeParams returns the ProviderTypeParams field if non-nil, zero value otherwise. + +### GetProviderTypeParamsOk + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParamsOk() (*[]CSSCMSDataModelModelsProviderTypeParam, bool)` + +GetProviderTypeParamsOk returns a tuple with the ProviderTypeParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParams(v []CSSCMSDataModelModelsProviderTypeParam)` + +SetProviderTypeParams sets ProviderTypeParams field to given value. + +### HasProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) HasProviderTypeParams() bool` + +HasProviderTypeParams returns a boolean if a field has been set. + +### SetProviderTypeParamsNil + +`func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParamsNil(b bool)` + + SetProviderTypeParamsNil sets the value for ProviderTypeParams to be an explicit nil + +### UnsetProviderTypeParams +`func (o *CSSCMSDataModelModelsProviderType) UnsetProviderTypeParams()` + +UnsetProviderTypeParams ensures that no value is present for ProviderTypeParams, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderTypeParam.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderTypeParam.md new file mode 100644 index 0000000..620b06b --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsProviderTypeParam.md @@ -0,0 +1,206 @@ +# CSSCMSDataModelModelsProviderTypeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] +**ProviderType** | Pointer to [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderTypeParam + +`func NewCSSCMSDataModelModelsProviderTypeParam() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParam instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeParamWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeParamWithDefaults() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParamWithDefaults instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + +### GetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md new file mode 100644 index 0000000..bec594d --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHKeysKeyResponse.md @@ -0,0 +1,396 @@ +# CSSCMSDataModelModelsSSHKeysKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Fingerprint** | Pointer to **NullableString** | | [optional] +**PublicKey** | Pointer to **NullableString** | | [optional] +**PrivateKey** | Pointer to **NullableString** | | [optional] +**KeyType** | Pointer to **NullableString** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**CreationDate** | Pointer to **NullableTime** | | [optional] +**StaleDate** | Pointer to **NullableTime** | | [optional] +**Email** | Pointer to **NullableString** | | [optional] +**Comments** | Pointer to **[]string** | | [optional] +**LogonCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHKeysKeyResponse + +`func NewCSSCMSDataModelModelsSSHKeysKeyResponse() *CSSCMSDataModelModelsSSHKeysKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyResponse` + +NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprint() string` + +GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. + +### GetFingerprintOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool)` + +GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprint(v string)` + +SetFingerprint sets Fingerprint field to given value. + +### HasFingerprint + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasFingerprint() bool` + +HasFingerprint returns a boolean if a field has been set. + +### SetFingerprintNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprintNil(b bool)` + + SetFingerprintNil sets the value for Fingerprint to be an explicit nil + +### UnsetFingerprint +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetFingerprint()` + +UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +### GetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### SetPublicKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKeyNil(b bool)` + + SetPublicKeyNil sets the value for PublicKey to be an explicit nil + +### UnsetPublicKey +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPublicKey()` + +UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +### GetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### SetPrivateKeyNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKeyNil(b bool)` + + SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil + +### UnsetPrivateKey +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPrivateKey()` + +UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +### GetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDate() time.Time` + +GetCreationDate returns the CreationDate field if non-nil, zero value otherwise. + +### GetCreationDateOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool)` + +GetCreationDateOk returns a tuple with the CreationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDate(v time.Time)` + +SetCreationDate sets CreationDate field to given value. + +### HasCreationDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasCreationDate() bool` + +HasCreationDate returns a boolean if a field has been set. + +### SetCreationDateNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDateNil(b bool)` + + SetCreationDateNil sets the value for CreationDate to be an explicit nil + +### UnsetCreationDate +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetCreationDate()` + +UnsetCreationDate ensures that no value is present for CreationDate, not even an explicit nil +### GetStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDate() time.Time` + +GetStaleDate returns the StaleDate field if non-nil, zero value otherwise. + +### GetStaleDateOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool)` + +GetStaleDateOk returns a tuple with the StaleDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDate(v time.Time)` + +SetStaleDate sets StaleDate field to given value. + +### HasStaleDate + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasStaleDate() bool` + +HasStaleDate returns a boolean if a field has been set. + +### SetStaleDateNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDateNil(b bool)` + + SetStaleDateNil sets the value for StaleDate to be an explicit nil + +### UnsetStaleDate +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetStaleDate()` + +UnsetStaleDate ensures that no value is present for StaleDate, not even an explicit nil +### GetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetComments() []string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCommentsOk() (*[]string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetComments(v []string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### SetCommentsNil + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCommentsNil(b bool)` + + SetCommentsNil sets the value for Comments to be an explicit nil + +### UnsetComments +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetComments()` + +UnsetComments ensures that no value is present for Comments, not even an explicit nil +### GetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCount() int32` + +GetLogonCount returns the LogonCount field if non-nil, zero value otherwise. + +### GetLogonCountOk + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool)` + +GetLogonCountOk returns a tuple with the LogonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetLogonCount(v int32)` + +SetLogonCount sets LogonCount field to given value. + +### HasLogonCount + +`func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasLogonCount() bool` + +HasLogonCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md new file mode 100644 index 0000000..cbdb080 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHLogonsLogonResponse.md @@ -0,0 +1,216 @@ +# CSSCMSDataModelModelsSSHLogonsLogonResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LastLogon** | Pointer to **NullableTime** | | [optional] +**Server** | Pointer to [**CSSCMSDataModelModelsSSHServersServerResponse**](CSSCMSDataModelModelsSSHServersServerResponse.md) | | [optional] +**KeyCount** | Pointer to **int32** | | [optional] +**Access** | Pointer to [**[]CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHLogonsLogonResponse + +`func NewCSSCMSDataModelModelsSSHLogonsLogonResponse() *CSSCMSDataModelModelsSSHLogonsLogonResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonResponse` + +NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogon() time.Time` + +GetLastLogon returns the LastLogon field if non-nil, zero value otherwise. + +### GetLastLogonOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool)` + +GetLastLogonOk returns a tuple with the LastLogon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time)` + +SetLastLogon sets LastLogon field to given value. + +### HasLastLogon + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasLastLogon() bool` + +HasLastLogon returns a boolean if a field has been set. + +### SetLastLogonNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogonNil(b bool)` + + SetLastLogonNil sets the value for LastLogon to be an explicit nil + +### UnsetLastLogon +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetLastLogon()` + +UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +### GetServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServer() CSSCMSDataModelModelsSSHServersServerResponse` + +GetServer returns the Server field if non-nil, zero value otherwise. + +### GetServerOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServerOk() (*CSSCMSDataModelModelsSSHServersServerResponse, bool)` + +GetServerOk returns a tuple with the Server field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetServer(v CSSCMSDataModelModelsSSHServersServerResponse)` + +SetServer sets Server field to given value. + +### HasServer + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasServer() bool` + +HasServer returns a boolean if a field has been set. + +### GetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCount() int32` + +GetKeyCount returns the KeyCount field if non-nil, zero value otherwise. + +### GetKeyCountOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool)` + +GetKeyCountOk returns a tuple with the KeyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetKeyCount(v int32)` + +SetKeyCount sets KeyCount field to given value. + +### HasKeyCount + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasKeyCount() bool` + +HasKeyCount returns a boolean if a field has been set. + +### GetAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccess() []CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccessOk() (*[]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccess(v []CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### SetAccessNil + +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccessNil(b bool)` + + SetAccessNil sets the value for Access to be an explicit nil + +### UnsetAccess +`func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetAccess()` + +UnsetAccess ensures that no value is present for Access, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHServersServerResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHServersServerResponse.md new file mode 100644 index 0000000..34399a6 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHServersServerResponse.md @@ -0,0 +1,360 @@ +# CSSCMSDataModelModelsSSHServersServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableInt32** | | [optional] +**AgentId** | Pointer to **NullableString** | | [optional] +**Hostname** | Pointer to **NullableString** | | [optional] +**ServerGroupId** | Pointer to **NullableString** | | [optional] +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] +**Owner** | Pointer to [**CSSCMSDataModelModelsSSHUsersSshUserResponse**](CSSCMSDataModelModelsSSHUsersSshUserResponse.md) | | [optional] +**GroupName** | Pointer to **NullableString** | | [optional] +**Orchestrator** | Pointer to **NullableString** | | [optional] +**Port** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHServersServerResponse + +`func NewCSSCMSDataModelModelsSSHServersServerResponse() *CSSCMSDataModelModelsSSHServersServerResponse` + +NewCSSCMSDataModelModelsSSHServersServerResponse instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults() *CSSCMSDataModelModelsSSHServersServerResponse` + +NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### SetHostnameNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostnameNil(b bool)` + + SetHostnameNil sets the value for Hostname to be an explicit nil + +### UnsetHostname +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetHostname()` + +UnsetHostname ensures that no value is present for Hostname, not even an explicit nil +### GetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + +### HasServerGroupId + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasServerGroupId() bool` + +HasServerGroupId returns a boolean if a field has been set. + +### SetServerGroupIdNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupIdNil(b bool)` + + SetServerGroupIdNil sets the value for ServerGroupId to be an explicit nil + +### UnsetServerGroupId +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetServerGroupId()` + +UnsetServerGroupId ensures that no value is present for ServerGroupId, not even an explicit nil +### GetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### SetGroupNameNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupNameNil(b bool)` + + SetGroupNameNil sets the value for GroupName to be an explicit nil + +### UnsetGroupName +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetGroupName()` + +UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +### GetOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestrator() string` + +GetOrchestrator returns the Orchestrator field if non-nil, zero value otherwise. + +### GetOrchestratorOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool)` + +GetOrchestratorOk returns a tuple with the Orchestrator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestrator(v string)` + +SetOrchestrator sets Orchestrator field to given value. + +### HasOrchestrator + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOrchestrator() bool` + +HasOrchestrator returns a boolean if a field has been set. + +### SetOrchestratorNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestratorNil(b bool)` + + SetOrchestratorNil sets the value for Orchestrator to be an explicit nil + +### UnsetOrchestrator +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetOrchestrator()` + +UnsetOrchestrator ensures that no value is present for Orchestrator, not even an explicit nil +### GetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### SetPortNil + +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPortNil(b bool)` + + SetPortNil sets the value for Port to be an explicit nil + +### UnsetPort +`func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetPort()` + +UnsetPort ensures that no value is present for Port, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md new file mode 100644 index 0000000..ddda357 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md @@ -0,0 +1,180 @@ +# CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**Access** | Pointer to [**[]CSSCMSDataModelModelsSSHLogonsLogonResponse**](CSSCMSDataModelModelsSSHLogonsLogonResponse.md) | | [optional] +**IsGroup** | Pointer to **bool** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse + +`func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccess() []CSSCMSDataModelModelsSSHLogonsLogonResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccessOk() (*[]CSSCMSDataModelModelsSSHLogonsLogonResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccess(v []CSSCMSDataModelModelsSSHLogonsLogonResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### SetAccessNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccessNil(b bool)` + + SetAccessNil sets the value for Access to be an explicit nil + +### UnsetAccess +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetAccess()` + +UnsetAccess ensures that no value is present for Access, not even an explicit nil +### GetIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool` + +GetIsGroup returns the IsGroup field if non-nil, zero value otherwise. + +### GetIsGroupOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool)` + +GetIsGroupOk returns a tuple with the IsGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool)` + +SetIsGroup sets IsGroup field to given value. + +### HasIsGroup + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool` + +HasIsGroup returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md new file mode 100644 index 0000000..ade0eae --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CSSCMSDataModelModelsSSHUsersSshUserResponse.md @@ -0,0 +1,154 @@ +# CSSCMSDataModelModelsSSHUsersSshUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**CSSCMSDataModelModelsSSHKeysKeyResponse**](CSSCMSDataModelModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **NullableString** | | [optional] +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsSSHUsersSshUserResponse + +`func NewCSSCMSDataModelModelsSSHUsersSshUserResponse() *CSSCMSDataModelModelsSSHUsersSshUserResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults + +`func NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserResponse` + +NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### SetUsernameNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsernameNil(b bool)` + + SetUsernameNil sets the value for Username to be an explicit nil + +### UnsetUsername +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetUsername()` + +UnsetUsername ensures that no value is present for Username, not even an explicit nil +### GetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + +### SetLogonIdsNil + +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIdsNil(b bool)` + + SetLogonIdsNil sets the value for LogonIds to be an explicit nil + +### UnsetLogonIds +`func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetLogonIds()` + +UnsetLogonIds ensures that no value is present for LogonIds, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CertificateApi.md b/v24/api/keyfactor/v2/docs/CertificateApi.md new file mode 100644 index 0000000..f5ae8e4 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CertificateApi.md @@ -0,0 +1,83 @@ +# \CertificateApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCertificatesIdentityAuditById**](CertificateApi.md#GetCertificatesIdentityAuditById) | **GET** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate + + + +## GetCertificatesIdentityAuditById + +> []CertificatesCertificateIdentityAuditResponse2 NewGetCertificatesIdentityAuditByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Audit identity permissions for certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate being checked + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + collectionId := int32(56) // int32 | An optional parameter for the collectin Id the certificate is in. Defaults to no collection (optional) (default to 0) + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.NewGetCertificatesIdentityAuditByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.GetCertificatesIdentityAuditById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificatesIdentityAuditById`: []CertificatesCertificateIdentityAuditResponse2 + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.GetCertificatesIdentityAuditById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate being checked | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCertificatesIdentityAuditByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **collectionId** | **int32** | An optional parameter for the collectin Id the certificate is in. Defaults to no collection | [default to 0] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CertificatesCertificateIdentityAuditResponse2**](CertificatesCertificateIdentityAuditResponse2.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2.md b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2.md new file mode 100644 index 0000000..c7543ea --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2.md @@ -0,0 +1,92 @@ +# CertificatesCertificateIdentityAuditResponse2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | Pointer to [**CertificatesCertificateIdentityAuditResponse2IdentityResponse**](CertificatesCertificateIdentityAuditResponse2IdentityResponse.md) | | [optional] +**Permissions** | Pointer to [**[]CertificatesCertificateIdentityAuditResponse2CertificatePermission**](CertificatesCertificateIdentityAuditResponse2CertificatePermission.md) | Permissions granted to the account represented by the audit reponse on the specified certifcate. | [optional] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponse2 + +`func NewCertificatesCertificateIdentityAuditResponse2() *CertificatesCertificateIdentityAuditResponse2` + +NewCertificatesCertificateIdentityAuditResponse2 instantiates a new CertificatesCertificateIdentityAuditResponse2 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponse2WithDefaults + +`func NewCertificatesCertificateIdentityAuditResponse2WithDefaults() *CertificatesCertificateIdentityAuditResponse2` + +NewCertificatesCertificateIdentityAuditResponse2WithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentity + +`func (o *CertificatesCertificateIdentityAuditResponse2) GetIdentity() CertificatesCertificateIdentityAuditResponse2IdentityResponse` + +GetIdentity returns the Identity field if non-nil, zero value otherwise. + +### GetIdentityOk + +`func (o *CertificatesCertificateIdentityAuditResponse2) GetIdentityOk() (*CertificatesCertificateIdentityAuditResponse2IdentityResponse, bool)` + +GetIdentityOk returns a tuple with the Identity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentity + +`func (o *CertificatesCertificateIdentityAuditResponse2) SetIdentity(v CertificatesCertificateIdentityAuditResponse2IdentityResponse)` + +SetIdentity sets Identity field to given value. + +### HasIdentity + +`func (o *CertificatesCertificateIdentityAuditResponse2) HasIdentity() bool` + +HasIdentity returns a boolean if a field has been set. + +### GetPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse2) GetPermissions() []CertificatesCertificateIdentityAuditResponse2CertificatePermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *CertificatesCertificateIdentityAuditResponse2) GetPermissionsOk() (*[]CertificatesCertificateIdentityAuditResponse2CertificatePermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse2) SetPermissions(v []CertificatesCertificateIdentityAuditResponse2CertificatePermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *CertificatesCertificateIdentityAuditResponse2) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *CertificatesCertificateIdentityAuditResponse2) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *CertificatesCertificateIdentityAuditResponse2) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2CertificatePermission.md b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2CertificatePermission.md new file mode 100644 index 0000000..54c7f99 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2CertificatePermission.md @@ -0,0 +1,102 @@ +# CertificatesCertificateIdentityAuditResponse2CertificatePermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | The name of the permission | [optional] +**GrantedBy** | Pointer to **[]string** | A list of roles or collections that grant the given permission | [optional] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponse2CertificatePermission + +`func NewCertificatesCertificateIdentityAuditResponse2CertificatePermission() *CertificatesCertificateIdentityAuditResponse2CertificatePermission` + +NewCertificatesCertificateIdentityAuditResponse2CertificatePermission instantiates a new CertificatesCertificateIdentityAuditResponse2CertificatePermission object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponse2CertificatePermissionWithDefaults + +`func NewCertificatesCertificateIdentityAuditResponse2CertificatePermissionWithDefaults() *CertificatesCertificateIdentityAuditResponse2CertificatePermission` + +NewCertificatesCertificateIdentityAuditResponse2CertificatePermissionWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2CertificatePermission object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetGrantedBy() []string` + +GetGrantedBy returns the GrantedBy field if non-nil, zero value otherwise. + +### GetGrantedByOk + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetGrantedByOk() (*[]string, bool)` + +GetGrantedByOk returns a tuple with the GrantedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetGrantedBy(v []string)` + +SetGrantedBy sets GrantedBy field to given value. + +### HasGrantedBy + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) HasGrantedBy() bool` + +HasGrantedBy returns a boolean if a field has been set. + +### SetGrantedByNil + +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetGrantedByNil(b bool)` + + SetGrantedByNil sets the value for GrantedBy to be an explicit nil + +### UnsetGrantedBy +`func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) UnsetGrantedBy()` + +UnsetGrantedBy ensures that no value is present for GrantedBy, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityProvider.md b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityProvider.md new file mode 100644 index 0000000..d3b22f0 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityProvider.md @@ -0,0 +1,92 @@ +# CertificatesCertificateIdentityAuditResponse2IdentityProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The Id of the provider. | [optional] +**Name** | Pointer to **NullableString** | The name of the provider. | [optional] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponse2IdentityProvider + +`func NewCertificatesCertificateIdentityAuditResponse2IdentityProvider() *CertificatesCertificateIdentityAuditResponse2IdentityProvider` + +NewCertificatesCertificateIdentityAuditResponse2IdentityProvider instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponse2IdentityProviderWithDefaults + +`func NewCertificatesCertificateIdentityAuditResponse2IdentityProviderWithDefaults() *CertificatesCertificateIdentityAuditResponse2IdentityProvider` + +NewCertificatesCertificateIdentityAuditResponse2IdentityProviderWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityResponse.md b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityResponse.md new file mode 100644 index 0000000..0099e5f --- /dev/null +++ b/v24/api/keyfactor/v2/docs/CertificatesCertificateIdentityAuditResponse2IdentityResponse.md @@ -0,0 +1,190 @@ +# CertificatesCertificateIdentityAuditResponse2IdentityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | The Id of the identity. | [optional] +**Description** | Pointer to **NullableString** | The description of the identity. | [optional] +**ClaimType** | Pointer to **NullableString** | The claim type of the identity. | [optional] +**ClaimValue** | Pointer to **NullableString** | The claim value of the identity. | [optional] +**Provider** | Pointer to [**CertificatesCertificateIdentityAuditResponse2IdentityProvider**](CertificatesCertificateIdentityAuditResponse2IdentityProvider.md) | | [optional] + +## Methods + +### NewCertificatesCertificateIdentityAuditResponse2IdentityResponse + +`func NewCertificatesCertificateIdentityAuditResponse2IdentityResponse() *CertificatesCertificateIdentityAuditResponse2IdentityResponse` + +NewCertificatesCertificateIdentityAuditResponse2IdentityResponse instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCertificatesCertificateIdentityAuditResponse2IdentityResponseWithDefaults + +`func NewCertificatesCertificateIdentityAuditResponse2IdentityResponseWithDefaults() *CertificatesCertificateIdentityAuditResponse2IdentityResponse` + +NewCertificatesCertificateIdentityAuditResponse2IdentityResponseWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDescription + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetClaimType + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimType() string` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimTypeOk() (*string, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimType(v string)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### SetClaimTypeNil + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimTypeNil(b bool)` + + SetClaimTypeNil sets the value for ClaimType to be an explicit nil + +### UnsetClaimType +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetClaimType()` + +UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +### GetClaimValue + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProvider + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetProvider() CertificatesCertificateIdentityAuditResponse2IdentityProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetProviderOk() (*CertificatesCertificateIdentityAuditResponse2IdentityProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetProvider(v CertificatesCertificateIdentityAuditResponse2IdentityProvider)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/EnrollmentApi.md b/v24/api/keyfactor/v2/docs/EnrollmentApi.md new file mode 100644 index 0000000..f79edfc --- /dev/null +++ b/v24/api/keyfactor/v2/docs/EnrollmentApi.md @@ -0,0 +1,81 @@ +# \EnrollmentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEnrollmentPFX**](EnrollmentApi.md#CreateEnrollmentPFX) | **POST** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request + + + +## CreateEnrollmentPFX + +> EnrollmentPFXEnrollmentManagementResponse NewCreateEnrollmentPFXRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentWithStoresRequest(enrollmentPFXEnrollmentWithStoresRequest).Execute() + +Performs a PFX Enrollment based upon the provided request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xCertificateformat := "PFX" // string | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + enrollmentPFXEnrollmentWithStoresRequest := *openapiclient.NewEnrollmentPFXEnrollmentWithStoresRequest() // EnrollmentPFXEnrollmentWithStoresRequest | The information needed to perform the PFX Enrollment (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.NewCreateEnrollmentPFXRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).XKeyfactorApiVersion(xKeyfactorApiVersion).EnrollmentPFXEnrollmentWithStoresRequest(enrollmentPFXEnrollmentWithStoresRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.CreateEnrollmentPFX``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEnrollmentPFX`: EnrollmentPFXEnrollmentManagementResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.CreateEnrollmentPFX`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEnrollmentPFXRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xCertificateformat** | **string** | Desired format [PFX, ZIP, PEM, JKS, STORE, REPLACE] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **enrollmentPFXEnrollmentWithStoresRequest** | [**EnrollmentPFXEnrollmentWithStoresRequest**](EnrollmentPFXEnrollmentWithStoresRequest.md) | The information needed to perform the PFX Enrollment | + +### Return type + +[**EnrollmentPFXEnrollmentManagementResponse**](EnrollmentPFXEnrollmentManagementResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v2/docs/EnrollmentManagementStoreRequest.md b/v24/api/keyfactor/v2/docs/EnrollmentManagementStoreRequest.md new file mode 100644 index 0000000..c651858 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/EnrollmentManagementStoreRequest.md @@ -0,0 +1,154 @@ +# EnrollmentManagementStoreRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | Pointer to **string** | | [optional] +**Alias** | Pointer to **NullableString** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewEnrollmentManagementStoreRequest + +`func NewEnrollmentManagementStoreRequest() *EnrollmentManagementStoreRequest` + +NewEnrollmentManagementStoreRequest instantiates a new EnrollmentManagementStoreRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentManagementStoreRequestWithDefaults + +`func NewEnrollmentManagementStoreRequestWithDefaults() *EnrollmentManagementStoreRequest` + +NewEnrollmentManagementStoreRequestWithDefaults instantiates a new EnrollmentManagementStoreRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreId + +`func (o *EnrollmentManagementStoreRequest) GetStoreId() string` + +GetStoreId returns the StoreId field if non-nil, zero value otherwise. + +### GetStoreIdOk + +`func (o *EnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool)` + +GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreId + +`func (o *EnrollmentManagementStoreRequest) SetStoreId(v string)` + +SetStoreId sets StoreId field to given value. + +### HasStoreId + +`func (o *EnrollmentManagementStoreRequest) HasStoreId() bool` + +HasStoreId returns a boolean if a field has been set. + +### GetAlias + +`func (o *EnrollmentManagementStoreRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *EnrollmentManagementStoreRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *EnrollmentManagementStoreRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *EnrollmentManagementStoreRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### SetAliasNil + +`func (o *EnrollmentManagementStoreRequest) SetAliasNil(b bool)` + + SetAliasNil sets the value for Alias to be an explicit nil + +### UnsetAlias +`func (o *EnrollmentManagementStoreRequest) UnsetAlias()` + +UnsetAlias ensures that no value is present for Alias, not even an explicit nil +### GetOverwrite + +`func (o *EnrollmentManagementStoreRequest) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *EnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *EnrollmentManagementStoreRequest) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *EnrollmentManagementStoreRequest) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *EnrollmentManagementStoreRequest) GetProperties() map[string]interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *EnrollmentManagementStoreRequest) GetPropertiesOk() (*map[string]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *EnrollmentManagementStoreRequest) SetProperties(v map[string]interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *EnrollmentManagementStoreRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### SetPropertiesNil + +`func (o *EnrollmentManagementStoreRequest) SetPropertiesNil(b bool)` + + SetPropertiesNil sets the value for Properties to be an explicit nil + +### UnsetProperties +`func (o *EnrollmentManagementStoreRequest) UnsetProperties()` + +UnsetProperties ensures that no value is present for Properties, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentManagementResponse.md b/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentManagementResponse.md new file mode 100644 index 0000000..d0954c3 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentManagementResponse.md @@ -0,0 +1,128 @@ +# EnrollmentPFXEnrollmentManagementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessfulStores** | Pointer to **[]string** | | [optional] +**CertificateInformation** | Pointer to [**CSSCMSDataModelModelsPkcs12CertificateResponse**](CSSCMSDataModelModelsPkcs12CertificateResponse.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewEnrollmentPFXEnrollmentManagementResponse + +`func NewEnrollmentPFXEnrollmentManagementResponse() *EnrollmentPFXEnrollmentManagementResponse` + +NewEnrollmentPFXEnrollmentManagementResponse instantiates a new EnrollmentPFXEnrollmentManagementResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentPFXEnrollmentManagementResponseWithDefaults + +`func NewEnrollmentPFXEnrollmentManagementResponseWithDefaults() *EnrollmentPFXEnrollmentManagementResponse` + +NewEnrollmentPFXEnrollmentManagementResponseWithDefaults instantiates a new EnrollmentPFXEnrollmentManagementResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccessfulStores + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetSuccessfulStores() []string` + +GetSuccessfulStores returns the SuccessfulStores field if non-nil, zero value otherwise. + +### GetSuccessfulStoresOk + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetSuccessfulStoresOk() (*[]string, bool)` + +GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccessfulStores + +`func (o *EnrollmentPFXEnrollmentManagementResponse) SetSuccessfulStores(v []string)` + +SetSuccessfulStores sets SuccessfulStores field to given value. + +### HasSuccessfulStores + +`func (o *EnrollmentPFXEnrollmentManagementResponse) HasSuccessfulStores() bool` + +HasSuccessfulStores returns a boolean if a field has been set. + +### SetSuccessfulStoresNil + +`func (o *EnrollmentPFXEnrollmentManagementResponse) SetSuccessfulStoresNil(b bool)` + + SetSuccessfulStoresNil sets the value for SuccessfulStores to be an explicit nil + +### UnsetSuccessfulStores +`func (o *EnrollmentPFXEnrollmentManagementResponse) UnsetSuccessfulStores()` + +UnsetSuccessfulStores ensures that no value is present for SuccessfulStores, not even an explicit nil +### GetCertificateInformation + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs12CertificateResponse` + +GetCertificateInformation returns the CertificateInformation field if non-nil, zero value otherwise. + +### GetCertificateInformationOk + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs12CertificateResponse, bool)` + +GetCertificateInformationOk returns a tuple with the CertificateInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateInformation + +`func (o *EnrollmentPFXEnrollmentManagementResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs12CertificateResponse)` + +SetCertificateInformation sets CertificateInformation field to given value. + +### HasCertificateInformation + +`func (o *EnrollmentPFXEnrollmentManagementResponse) HasCertificateInformation() bool` + +HasCertificateInformation returns a boolean if a field has been set. + +### GetMetadata + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *EnrollmentPFXEnrollmentManagementResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *EnrollmentPFXEnrollmentManagementResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *EnrollmentPFXEnrollmentManagementResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *EnrollmentPFXEnrollmentManagementResponse) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *EnrollmentPFXEnrollmentManagementResponse) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentWithStoresRequest.md b/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentWithStoresRequest.md new file mode 100644 index 0000000..f33038d --- /dev/null +++ b/v24/api/keyfactor/v2/docs/EnrollmentPFXEnrollmentWithStoresRequest.md @@ -0,0 +1,808 @@ +# EnrollmentPFXEnrollmentWithStoresRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | Pointer to [**[]EnrollmentManagementStoreRequest**](EnrollmentManagementStoreRequest.md) | A list of certificate stores a successfully issued PKCS12 should be installed into. | [optional] +**CustomFriendlyName** | Pointer to **NullableString** | The Friendly name of the issued certificate | [optional] +**Password** | Pointer to **NullableString** | The custom password for the resulting Private key | [optional] +**Subject** | Pointer to **NullableString** | The certificte's subject | [optional] +**IncludeChain** | Pointer to **bool** | An option to include the certificate chain in the response | [optional] +**IncludeSubjectHeader** | Pointer to **bool** | An option to remove the subject header comment in pem file | [optional] +**RenewalCertificateId** | Pointer to **NullableInt32** | An optional Id of a certificate being renewed | [optional] +**CertificateAuthority** | Pointer to **NullableString** | The Certifcate Authority configuration in the format hostname\\logicalname | [optional] +**Metadata** | Pointer to **map[string]interface{}** | The metadata to be assigned to the certificate after issuance | [optional] +**AdditionalEnrollmentFields** | Pointer to **map[string]interface{}** | Any Additional Enrollment Fields to be included in the request | [optional] +**Timestamp** | Pointer to **time.Time** | A timestamp to help ensure a legitimate request | [optional] +**Template** | Pointer to **NullableString** | The template for the certificate | [optional] +**SANs** | Pointer to **map[string][]string** | Any Subject Alternative Names to be included in the request | [optional] +**InstallIntoExistingCertificateStores** | Pointer to **bool** | Allows the new certificate to be installed into all certificate stores the renewed certificate is currently installed into. | [optional] +**JobTime** | Pointer to **NullableTime** | The time any management jobs should be scheduled. | [optional] +**ChainOrder** | Pointer to **NullableString** | The order of the certificates in the certificate chain | [optional] +**UseLegacyEncryption** | Pointer to **NullableBool** | | [optional] +**KeyType** | Pointer to **NullableString** | Certificate key type [RSA, ECC] | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**Curve** | Pointer to **NullableString** | The curve being used that will be sent in when the Key Algorithm is of type ECC | [optional] +**MicrosoftTargetCSP** | Pointer to **NullableString** | Optionally pass a microsoft cryptographic service provider to the generated certificate | [optional] +**OwnerRoleId** | Pointer to **NullableInt32** | Id or name of the security role that will have ownership of the generated certificate | [optional] +**OwnerRoleName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewEnrollmentPFXEnrollmentWithStoresRequest + +`func NewEnrollmentPFXEnrollmentWithStoresRequest() *EnrollmentPFXEnrollmentWithStoresRequest` + +NewEnrollmentPFXEnrollmentWithStoresRequest instantiates a new EnrollmentPFXEnrollmentWithStoresRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEnrollmentPFXEnrollmentWithStoresRequestWithDefaults + +`func NewEnrollmentPFXEnrollmentWithStoresRequestWithDefaults() *EnrollmentPFXEnrollmentWithStoresRequest` + +NewEnrollmentPFXEnrollmentWithStoresRequestWithDefaults instantiates a new EnrollmentPFXEnrollmentWithStoresRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetStores() []EnrollmentManagementStoreRequest` + +GetStores returns the Stores field if non-nil, zero value otherwise. + +### GetStoresOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetStoresOk() (*[]EnrollmentManagementStoreRequest, bool)` + +GetStoresOk returns a tuple with the Stores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetStores(v []EnrollmentManagementStoreRequest)` + +SetStores sets Stores field to given value. + +### HasStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasStores() bool` + +HasStores returns a boolean if a field has been set. + +### SetStoresNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetStoresNil(b bool)` + + SetStoresNil sets the value for Stores to be an explicit nil + +### UnsetStores +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetStores()` + +UnsetStores ensures that no value is present for Stores, not even an explicit nil +### GetCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCustomFriendlyName() string` + +GetCustomFriendlyName returns the CustomFriendlyName field if non-nil, zero value otherwise. + +### GetCustomFriendlyNameOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCustomFriendlyNameOk() (*string, bool)` + +GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCustomFriendlyName(v string)` + +SetCustomFriendlyName sets CustomFriendlyName field to given value. + +### HasCustomFriendlyName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCustomFriendlyName() bool` + +HasCustomFriendlyName returns a boolean if a field has been set. + +### SetCustomFriendlyNameNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCustomFriendlyNameNil(b bool)` + + SetCustomFriendlyNameNil sets the value for CustomFriendlyName to be an explicit nil + +### UnsetCustomFriendlyName +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCustomFriendlyName()` + +UnsetCustomFriendlyName ensures that no value is present for CustomFriendlyName, not even an explicit nil +### GetPassword + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetSubject + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### SetSubjectNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSubjectNil(b bool)` + + SetSubjectNil sets the value for Subject to be an explicit nil + +### UnsetSubject +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetSubject()` + +UnsetSubject ensures that no value is present for Subject, not even an explicit nil +### GetIncludeChain + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeSubjectHeader() bool` + +GetIncludeSubjectHeader returns the IncludeSubjectHeader field if non-nil, zero value otherwise. + +### GetIncludeSubjectHeaderOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeSubjectHeaderOk() (*bool, bool)` + +GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetIncludeSubjectHeader(v bool)` + +SetIncludeSubjectHeader sets IncludeSubjectHeader field to given value. + +### HasIncludeSubjectHeader + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasIncludeSubjectHeader() bool` + +HasIncludeSubjectHeader returns a boolean if a field has been set. + +### GetRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetRenewalCertificateId() int32` + +GetRenewalCertificateId returns the RenewalCertificateId field if non-nil, zero value otherwise. + +### GetRenewalCertificateIdOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetRenewalCertificateIdOk() (*int32, bool)` + +GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetRenewalCertificateId(v int32)` + +SetRenewalCertificateId sets RenewalCertificateId field to given value. + +### HasRenewalCertificateId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasRenewalCertificateId() bool` + +HasRenewalCertificateId returns a boolean if a field has been set. + +### SetRenewalCertificateIdNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetRenewalCertificateIdNil(b bool)` + + SetRenewalCertificateIdNil sets the value for RenewalCertificateId to be an explicit nil + +### UnsetRenewalCertificateId +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetRenewalCertificateId()` + +UnsetRenewalCertificateId ensures that no value is present for RenewalCertificateId, not even an explicit nil +### GetCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### SetCertificateAuthorityNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCertificateAuthorityNil(b bool)` + + SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil + +### UnsetCertificateAuthority +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCertificateAuthority()` + +UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +### GetMetadata + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetAdditionalEnrollmentFields() map[string]interface{}` + +GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field if non-nil, zero value otherwise. + +### GetAdditionalEnrollmentFieldsOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetAdditionalEnrollmentFieldsOk() (*map[string]interface{}, bool)` + +GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetAdditionalEnrollmentFields(v map[string]interface{})` + +SetAdditionalEnrollmentFields sets AdditionalEnrollmentFields field to given value. + +### HasAdditionalEnrollmentFields + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasAdditionalEnrollmentFields() bool` + +HasAdditionalEnrollmentFields returns a boolean if a field has been set. + +### SetAdditionalEnrollmentFieldsNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetAdditionalEnrollmentFieldsNil(b bool)` + + SetAdditionalEnrollmentFieldsNil sets the value for AdditionalEnrollmentFields to be an explicit nil + +### UnsetAdditionalEnrollmentFields +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetAdditionalEnrollmentFields()` + +UnsetAdditionalEnrollmentFields ensures that no value is present for AdditionalEnrollmentFields, not even an explicit nil +### GetTimestamp + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetTemplate + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### SetTemplateNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTemplateNil(b bool)` + + SetTemplateNil sets the value for Template to be an explicit nil + +### UnsetTemplate +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetTemplate()` + +UnsetTemplate ensures that no value is present for Template, not even an explicit nil +### GetSANs + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### SetSANsNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSANsNil(b bool)` + + SetSANsNil sets the value for SANs to be an explicit nil + +### UnsetSANs +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetSANs()` + +UnsetSANs ensures that no value is present for SANs, not even an explicit nil +### GetInstallIntoExistingCertificateStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetInstallIntoExistingCertificateStores() bool` + +GetInstallIntoExistingCertificateStores returns the InstallIntoExistingCertificateStores field if non-nil, zero value otherwise. + +### GetInstallIntoExistingCertificateStoresOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetInstallIntoExistingCertificateStoresOk() (*bool, bool)` + +GetInstallIntoExistingCertificateStoresOk returns a tuple with the InstallIntoExistingCertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallIntoExistingCertificateStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetInstallIntoExistingCertificateStores(v bool)` + +SetInstallIntoExistingCertificateStores sets InstallIntoExistingCertificateStores field to given value. + +### HasInstallIntoExistingCertificateStores + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasInstallIntoExistingCertificateStores() bool` + +HasInstallIntoExistingCertificateStores returns a boolean if a field has been set. + +### GetJobTime + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetJobTime() time.Time` + +GetJobTime returns the JobTime field if non-nil, zero value otherwise. + +### GetJobTimeOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetJobTimeOk() (*time.Time, bool)` + +GetJobTimeOk returns a tuple with the JobTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTime + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetJobTime(v time.Time)` + +SetJobTime sets JobTime field to given value. + +### HasJobTime + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasJobTime() bool` + +HasJobTime returns a boolean if a field has been set. + +### SetJobTimeNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetJobTimeNil(b bool)` + + SetJobTimeNil sets the value for JobTime to be an explicit nil + +### UnsetJobTime +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetJobTime()` + +UnsetJobTime ensures that no value is present for JobTime, not even an explicit nil +### GetChainOrder + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetChainOrder() string` + +GetChainOrder returns the ChainOrder field if non-nil, zero value otherwise. + +### GetChainOrderOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetChainOrderOk() (*string, bool)` + +GetChainOrderOk returns a tuple with the ChainOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainOrder + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetChainOrder(v string)` + +SetChainOrder sets ChainOrder field to given value. + +### HasChainOrder + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasChainOrder() bool` + +HasChainOrder returns a boolean if a field has been set. + +### SetChainOrderNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetChainOrderNil(b bool)` + + SetChainOrderNil sets the value for ChainOrder to be an explicit nil + +### UnsetChainOrder +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetChainOrder()` + +UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +### GetUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetUseLegacyEncryption() bool` + +GetUseLegacyEncryption returns the UseLegacyEncryption field if non-nil, zero value otherwise. + +### GetUseLegacyEncryptionOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetUseLegacyEncryptionOk() (*bool, bool)` + +GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetUseLegacyEncryption(v bool)` + +SetUseLegacyEncryption sets UseLegacyEncryption field to given value. + +### HasUseLegacyEncryption + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasUseLegacyEncryption() bool` + +HasUseLegacyEncryption returns a boolean if a field has been set. + +### SetUseLegacyEncryptionNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetUseLegacyEncryptionNil(b bool)` + + SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil + +### UnsetUseLegacyEncryption +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetUseLegacyEncryption()` + +UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +### GetKeyType + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### SetKeyTypeNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyTypeNil(b bool)` + + SetKeyTypeNil sets the value for KeyType to be an explicit nil + +### UnsetKeyType +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetKeyType()` + +UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +### GetKeyLength + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCurve + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMicrosoftTargetCSP() string` + +GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field if non-nil, zero value otherwise. + +### GetMicrosoftTargetCSPOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMicrosoftTargetCSPOk() (*string, bool)` + +GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMicrosoftTargetCSP(v string)` + +SetMicrosoftTargetCSP sets MicrosoftTargetCSP field to given value. + +### HasMicrosoftTargetCSP + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasMicrosoftTargetCSP() bool` + +HasMicrosoftTargetCSP returns a boolean if a field has been set. + +### SetMicrosoftTargetCSPNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMicrosoftTargetCSPNil(b bool)` + + SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil + +### UnsetMicrosoftTargetCSP +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetMicrosoftTargetCSP()` + +UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +### GetOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleId() int32` + +GetOwnerRoleId returns the OwnerRoleId field if non-nil, zero value otherwise. + +### GetOwnerRoleIdOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleIdOk() (*int32, bool)` + +GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleId(v int32)` + +SetOwnerRoleId sets OwnerRoleId field to given value. + +### HasOwnerRoleId + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasOwnerRoleId() bool` + +HasOwnerRoleId returns a boolean if a field has been set. + +### SetOwnerRoleIdNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleIdNil(b bool)` + + SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil + +### UnsetOwnerRoleId +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetOwnerRoleId()` + +UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +### GetOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleName() string` + +GetOwnerRoleName returns the OwnerRoleName field if non-nil, zero value otherwise. + +### GetOwnerRoleNameOk + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleNameOk() (*string, bool)` + +GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleName(v string)` + +SetOwnerRoleName sets OwnerRoleName field to given value. + +### HasOwnerRoleName + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasOwnerRoleName() bool` + +HasOwnerRoleName returns a boolean if a field has been set. + +### SetOwnerRoleNameNil + +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleNameNil(b bool)` + + SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil + +### UnsetOwnerRoleName +`func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetOwnerRoleName()` + +UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonQueryableExtensionsSortOrder.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonQueryableExtensionsSortOrder.md new file mode 100644 index 0000000..e8b68c2 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonQueryableExtensionsSortOrder.md @@ -0,0 +1,13 @@ +# KeyfactorCommonQueryableExtensionsSortOrder + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md new file mode 100644 index 0000000..9115f38 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md @@ -0,0 +1,196 @@ +# KeyfactorCommonSchedulingKeyfactorSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Immediate** | Pointer to **NullableBool** | | [optional] +**Interval** | Pointer to [**KeyfactorCommonSchedulingModelsIntervalModel**](KeyfactorCommonSchedulingModelsIntervalModel.md) | | [optional] +**Daily** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] +**Weekly** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**Monthly** | Pointer to [**KeyfactorCommonSchedulingModelsMonthlyModel**](KeyfactorCommonSchedulingModelsMonthlyModel.md) | | [optional] +**ExactlyOnce** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingKeyfactorSchedule + +`func NewKeyfactorCommonSchedulingKeyfactorSchedule() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorSchedule instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults + +`func NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediate() bool` + +GetImmediate returns the Immediate field if non-nil, zero value otherwise. + +### GetImmediateOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediateOk() (*bool, bool)` + +GetImmediateOk returns a tuple with the Immediate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediate(v bool)` + +SetImmediate sets Immediate field to given value. + +### HasImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasImmediate() bool` + +HasImmediate returns a boolean if a field has been set. + +### SetImmediateNil + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediateNil(b bool)` + + SetImmediateNil sets the value for Immediate to be an explicit nil + +### UnsetImmediate +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) UnsetImmediate()` + +UnsetImmediate ensures that no value is present for Immediate, not even an explicit nil +### GetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetInterval() KeyfactorCommonSchedulingModelsIntervalModel` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetIntervalOk() (*KeyfactorCommonSchedulingModelsIntervalModel, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetInterval(v KeyfactorCommonSchedulingModelsIntervalModel)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDaily() KeyfactorCommonSchedulingModelsTimeModel` + +GetDaily returns the Daily field if non-nil, zero value otherwise. + +### GetDailyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDailyOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetDailyOk returns a tuple with the Daily field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetDaily(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetDaily sets Daily field to given value. + +### HasDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasDaily() bool` + +HasDaily returns a boolean if a field has been set. + +### GetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeekly() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetWeekly returns the Weekly field if non-nil, zero value otherwise. + +### GetWeeklyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeeklyOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetWeeklyOk returns a tuple with the Weekly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetWeekly(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetWeekly sets Weekly field to given value. + +### HasWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasWeekly() bool` + +HasWeekly returns a boolean if a field has been set. + +### GetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthly() KeyfactorCommonSchedulingModelsMonthlyModel` + +GetMonthly returns the Monthly field if non-nil, zero value otherwise. + +### GetMonthlyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthlyOk() (*KeyfactorCommonSchedulingModelsMonthlyModel, bool)` + +GetMonthlyOk returns a tuple with the Monthly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetMonthly(v KeyfactorCommonSchedulingModelsMonthlyModel)` + +SetMonthly sets Monthly field to given value. + +### HasMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasMonthly() bool` + +HasMonthly returns a boolean if a field has been set. + +### GetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnce() KeyfactorCommonSchedulingModelsTimeModel` + +GetExactlyOnce returns the ExactlyOnce field if non-nil, zero value otherwise. + +### GetExactlyOnceOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnceOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetExactlyOnceOk returns a tuple with the ExactlyOnce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetExactlyOnce(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetExactlyOnce sets ExactlyOnce field to given value. + +### HasExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasExactlyOnce() bool` + +HasExactlyOnce returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsIntervalModel.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsIntervalModel.md new file mode 100644 index 0000000..6fab59c --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsIntervalModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsIntervalModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Minutes** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsIntervalModel + +`func NewKeyfactorCommonSchedulingModelsIntervalModel() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModel instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutes() int32` + +GetMinutes returns the Minutes field if non-nil, zero value otherwise. + +### GetMinutesOk + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutesOk() (*int32, bool)` + +GetMinutesOk returns a tuple with the Minutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) SetMinutes(v int32)` + +SetMinutes sets Minutes field to given value. + +### HasMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) HasMinutes() bool` + +HasMinutes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md new file mode 100644 index 0000000..76015a9 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md @@ -0,0 +1,82 @@ +# KeyfactorCommonSchedulingModelsMonthlyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | Pointer to **int32** | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsMonthlyModel + +`func NewKeyfactorCommonSchedulingModelsMonthlyModel() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModel instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDay() int32` + +GetDay returns the Day field if non-nil, zero value otherwise. + +### GetDayOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDayOk() (*int32, bool)` + +GetDayOk returns a tuple with the Day field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetDay(v int32)` + +SetDay sets Day field to given value. + +### HasDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasDay() bool` + +HasDay returns a boolean if a field has been set. + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsTimeModel.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsTimeModel.md new file mode 100644 index 0000000..7381cf7 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsTimeModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsTimeModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsTimeModel + +`func NewKeyfactorCommonSchedulingModelsTimeModel() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModel instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md new file mode 100644 index 0000000..6f3c7ae --- /dev/null +++ b/v24/api/keyfactor/v2/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md @@ -0,0 +1,92 @@ +# KeyfactorCommonSchedulingModelsWeeklyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Days** | Pointer to [**[]SystemDayOfWeek**](SystemDayOfWeek.md) | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsWeeklyModel + +`func NewKeyfactorCommonSchedulingModelsWeeklyModel() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModel instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDays() []SystemDayOfWeek` + +GetDays returns the Days field if non-nil, zero value otherwise. + +### GetDaysOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDaysOk() (*[]SystemDayOfWeek, bool)` + +GetDaysOk returns a tuple with the Days field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDays(v []SystemDayOfWeek)` + +SetDays sets Days field to given value. + +### HasDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasDays() bool` + +HasDays returns a boolean if a field has been set. + +### SetDaysNil + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDaysNil(b bool)` + + SetDaysNil sets the value for Days to be an explicit nil + +### UnsetDays +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) UnsetDays()` + +UnsetDays ensures that no value is present for Days, not even an explicit nil +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMPamProviderTypeParamValueResponse.md b/v24/api/keyfactor/v2/docs/PAMPamProviderTypeParamValueResponse.md new file mode 100644 index 0000000..0c25418 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMPamProviderTypeParamValueResponse.md @@ -0,0 +1,190 @@ +# PAMPamProviderTypeParamValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**ProviderTypeParam** | Pointer to [**PAMProviderTypeParameterResponse**](PAMProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewPAMPamProviderTypeParamValueResponse + +`func NewPAMPamProviderTypeParamValueResponse() *PAMPamProviderTypeParamValueResponse` + +NewPAMPamProviderTypeParamValueResponse instantiates a new PAMPamProviderTypeParamValueResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMPamProviderTypeParamValueResponseWithDefaults + +`func NewPAMPamProviderTypeParamValueResponseWithDefaults() *PAMPamProviderTypeParamValueResponse` + +NewPAMPamProviderTypeParamValueResponseWithDefaults instantiates a new PAMPamProviderTypeParamValueResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMPamProviderTypeParamValueResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMPamProviderTypeParamValueResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMPamProviderTypeParamValueResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *PAMPamProviderTypeParamValueResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PAMPamProviderTypeParamValueResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PAMPamProviderTypeParamValueResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PAMPamProviderTypeParamValueResponse) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *PAMPamProviderTypeParamValueResponse) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *PAMPamProviderTypeParamValueResponse) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParam() PAMProviderTypeParameterResponse` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParamOk() (*PAMProviderTypeParameterResponse, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) SetProviderTypeParam(v PAMProviderTypeParameterResponse)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *PAMPamProviderTypeParamValueResponse) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderApi.md b/v24/api/keyfactor/v2/docs/PAMProviderApi.md new file mode 100644 index 0000000..7e17988 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderApi.md @@ -0,0 +1,590 @@ +# \PAMProviderApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreatePamProviders**](PAMProviderApi.md#CreatePamProviders) | **POST** /PamProviders | Creates a new PAM provider with the associated properties +[**CreatePamProvidersTypes**](PAMProviderApi.md#CreatePamProvidersTypes) | **POST** /PamProviders/Types | Creates a new PAM provider type with the associated properties +[**DeletePamProvidersById**](PAMProviderApi.md#DeletePamProvidersById) | **DELETE** /PamProviders/{id} | Deletes a PAM Provider +[**GetPamProviders**](PAMProviderApi.md#GetPamProviders) | **GET** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +[**GetPamProvidersById**](PAMProviderApi.md#GetPamProvidersById) | **GET** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +[**GetPamProvidersTypes**](PAMProviderApi.md#GetPamProvidersTypes) | **GET** /PamProviders/Types | Returns all PAM provider types in the Keyfactor instance +[**GetPamProvidersTypesById**](PAMProviderApi.md#GetPamProvidersTypesById) | **GET** /PamProviders/Types/{id} | Returns PAM provider Type for a specific PAM provider +[**UpdatePamProviders**](PAMProviderApi.md#UpdatePamProviders) | **PUT** /PamProviders | Updates an existing PAM provider according to the provided properties + + + +## CreatePamProviders + +> PAMProviderResponse NewCreatePamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderCreateRequest(pAMProviderCreateRequest).Execute() + +Creates a new PAM provider with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderCreateRequest := *openapiclient.NewPAMProviderCreateRequest("Name_example", *openapiclient.NewPAMProviderCreateRequestProviderType()) // PAMProviderCreateRequest | PAM provider properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewCreatePamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderCreateRequest(pAMProviderCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.CreatePamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePamProviders`: PAMProviderResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.CreatePamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderCreateRequest** | [**PAMProviderCreateRequest**](PAMProviderCreateRequest.md) | PAM provider properties to be used | + +### Return type + +[**PAMProviderResponse**](PAMProviderResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreatePamProvidersTypes + +> PAMProviderTypeResponse NewCreatePamProvidersTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest).Execute() + +Creates a new PAM provider type with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderTypeCreateRequest := *openapiclient.NewPAMProviderTypeCreateRequest("Name_example") // PAMProviderTypeCreateRequest | PAM provider type properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewCreatePamProvidersTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderTypeCreateRequest(pAMProviderTypeCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.CreatePamProvidersTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePamProvidersTypes`: PAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.CreatePamProvidersTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreatePamProvidersTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderTypeCreateRequest** | [**PAMProviderTypeCreateRequest**](PAMProviderTypeCreateRequest.md) | PAM provider type properties to be used | + +### Return type + +[**PAMProviderTypeResponse**](PAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeletePamProvidersById + +> NewDeletePamProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a PAM Provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider to be deleted + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewDeletePamProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.DeletePamProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeletePamProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProviders + +> []PAMProviderResponse NewGetPamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM providers according to the provided filter and output parameters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + returnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sortField := "sortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | Field sort direction [0=ascending, 1=descending] (optional) + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProviders`: []PAMProviderResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pageReturned** | **int32** | The current page within the result set to be returned | + **returnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | Field sort direction [0=ascending, 1=descending] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMProviderResponse**](PAMProviderResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersById + +> PAMProviderResponse NewGetPamProvidersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single PAM Provider that matches the associated id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProvidersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersById`: PAMProviderResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProvidersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**PAMProviderResponse**](PAMProviderResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersTypes + +> []PAMProviderTypeResponse NewGetPamProvidersTypesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM provider types in the Keyfactor instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersTypesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProvidersTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersTypes`: []PAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProvidersTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMProviderTypeResponse**](PAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPamProvidersTypesById + +> []PAMProviderTypeResponse NewGetPamProvidersTypesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns PAM provider Type for a specific PAM provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewGetPamProvidersTypesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.GetPamProvidersTypesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPamProvidersTypesById`: []PAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.GetPamProvidersTypesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPamProvidersTypesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]PAMProviderTypeResponse**](PAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdatePamProviders + +> PAMProviderResponse NewUpdatePamProvidersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderUpdateRequest(pAMProviderUpdateRequest).Execute() + +Updates an existing PAM provider according to the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + pAMProviderUpdateRequest := *openapiclient.NewPAMProviderUpdateRequest(int32(123), "Name_example", false) // PAMProviderUpdateRequest | PAM provider properties to be used (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.NewUpdatePamProvidersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PAMProviderUpdateRequest(pAMProviderUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.UpdatePamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePamProviders`: PAMProviderResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.UpdatePamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdatePamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **pAMProviderUpdateRequest** | [**PAMProviderUpdateRequest**](PAMProviderUpdateRequest.md) | PAM provider properties to be used | + +### Return type + +[**PAMProviderResponse**](PAMProviderResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderCreateRequest.md b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequest.md new file mode 100644 index 0000000..1ebf074 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequest.md @@ -0,0 +1,196 @@ +# PAMProviderCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Remote** | Pointer to **bool** | | [optional] +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | [**PAMProviderCreateRequestProviderType**](PAMProviderCreateRequestProviderType.md) | | +**ProviderTypeParamValues** | Pointer to [**[]PAMProviderCreateRequestTypeParamValue**](PAMProviderCreateRequestTypeParamValue.md) | | [optional] +**SecuredAreaId** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPAMProviderCreateRequest + +`func NewPAMProviderCreateRequest(name string, providerType PAMProviderCreateRequestProviderType, ) *PAMProviderCreateRequest` + +NewPAMProviderCreateRequest instantiates a new PAMProviderCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestWithDefaults + +`func NewPAMProviderCreateRequestWithDefaults() *PAMProviderCreateRequest` + +NewPAMProviderCreateRequestWithDefaults instantiates a new PAMProviderCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRemote + +`func (o *PAMProviderCreateRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderCreateRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderCreateRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *PAMProviderCreateRequest) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetArea + +`func (o *PAMProviderCreateRequest) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *PAMProviderCreateRequest) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *PAMProviderCreateRequest) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *PAMProviderCreateRequest) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *PAMProviderCreateRequest) GetProviderType() PAMProviderCreateRequestProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *PAMProviderCreateRequest) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *PAMProviderCreateRequest) SetProviderType(v PAMProviderCreateRequestProviderType)` + +SetProviderType sets ProviderType field to given value. + + +### GetProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderCreateRequest) GetProviderTypeParamValuesOk() (*[]PAMProviderCreateRequestTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderCreateRequest) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderCreateRequest) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderCreateRequest) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetSecuredAreaId + +`func (o *PAMProviderCreateRequest) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *PAMProviderCreateRequest) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *PAMProviderCreateRequest) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *PAMProviderCreateRequest) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + +### SetSecuredAreaIdNil + +`func (o *PAMProviderCreateRequest) SetSecuredAreaIdNil(b bool)` + + SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil + +### UnsetSecuredAreaId +`func (o *PAMProviderCreateRequest) UnsetSecuredAreaId()` + +UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderType.md b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderType.md new file mode 100644 index 0000000..1b8472a --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderType.md @@ -0,0 +1,56 @@ +# PAMProviderCreateRequestProviderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewPAMProviderCreateRequestProviderType + +`func NewPAMProviderCreateRequestProviderType() *PAMProviderCreateRequestProviderType` + +NewPAMProviderCreateRequestProviderType instantiates a new PAMProviderCreateRequestProviderType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestProviderTypeWithDefaults + +`func NewPAMProviderCreateRequestProviderTypeWithDefaults() *PAMProviderCreateRequestProviderType` + +NewPAMProviderCreateRequestProviderTypeWithDefaults instantiates a new PAMProviderCreateRequestProviderType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestProviderType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestProviderType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestProviderType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestProviderType) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderTypeParam.md b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderTypeParam.md new file mode 100644 index 0000000..3d0852f --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestProviderTypeParam.md @@ -0,0 +1,154 @@ +# PAMProviderCreateRequestProviderTypeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderCreateRequestProviderTypeParam + +`func NewPAMProviderCreateRequestProviderTypeParam() *PAMProviderCreateRequestProviderTypeParam` + +NewPAMProviderCreateRequestProviderTypeParam instantiates a new PAMProviderCreateRequestProviderTypeParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestProviderTypeParamWithDefaults + +`func NewPAMProviderCreateRequestProviderTypeParamWithDefaults() *PAMProviderCreateRequestProviderTypeParam` + +NewPAMProviderCreateRequestProviderTypeParamWithDefaults instantiates a new PAMProviderCreateRequestProviderTypeParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderCreateRequestProviderTypeParam) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderCreateRequestProviderTypeParam) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderCreateRequestProviderTypeParam) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestTypeParamValue.md b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestTypeParamValue.md new file mode 100644 index 0000000..3f3eb15 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderCreateRequestTypeParamValue.md @@ -0,0 +1,190 @@ +# PAMProviderCreateRequestTypeParamValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **NullableString** | | [optional] +**InstanceId** | Pointer to **NullableInt32** | | [optional] +**InstanceGuid** | Pointer to **NullableString** | | [optional] +**ProviderTypeParam** | Pointer to [**PAMProviderCreateRequestProviderTypeParam**](PAMProviderCreateRequestProviderTypeParam.md) | | [optional] + +## Methods + +### NewPAMProviderCreateRequestTypeParamValue + +`func NewPAMProviderCreateRequestTypeParamValue() *PAMProviderCreateRequestTypeParamValue` + +NewPAMProviderCreateRequestTypeParamValue instantiates a new PAMProviderCreateRequestTypeParamValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderCreateRequestTypeParamValueWithDefaults + +`func NewPAMProviderCreateRequestTypeParamValueWithDefaults() *PAMProviderCreateRequestTypeParamValue` + +NewPAMProviderCreateRequestTypeParamValueWithDefaults instantiates a new PAMProviderCreateRequestTypeParamValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderCreateRequestTypeParamValue) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderCreateRequestTypeParamValue) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderCreateRequestTypeParamValue) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *PAMProviderCreateRequestTypeParamValue) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PAMProviderCreateRequestTypeParamValue) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PAMProviderCreateRequestTypeParamValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### SetValueNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetValueNil(b bool)` + + SetValueNil sets the value for Value to be an explicit nil + +### UnsetValue +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetValue()` + +UnsetValue ensures that no value is present for Value, not even an explicit nil +### GetInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### SetInstanceIdNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceIdNil(b bool)` + + SetInstanceIdNil sets the value for InstanceId to be an explicit nil + +### UnsetInstanceId +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceId()` + +UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +### GetInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### SetInstanceGuidNil + +`func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuidNil(b bool)` + + SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil + +### UnsetInstanceGuid +`func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceGuid()` + +UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +### GetProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParam() PAMProviderCreateRequestProviderTypeParam` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParamOk() (*PAMProviderCreateRequestProviderTypeParam, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) SetProviderTypeParam(v PAMProviderCreateRequestProviderTypeParam)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *PAMProviderCreateRequestTypeParamValue) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderResponse.md b/v24/api/keyfactor/v2/docs/PAMProviderResponse.md new file mode 100644 index 0000000..7b9a861 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderResponse.md @@ -0,0 +1,180 @@ +# PAMProviderResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**ProviderType** | Pointer to [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | [optional] +**ProviderTypeParamValues** | Pointer to [**[]PAMPamProviderTypeParamValueResponse**](PAMPamProviderTypeParamValueResponse.md) | | [optional] +**Remote** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderResponse + +`func NewPAMProviderResponse() *PAMProviderResponse` + +NewPAMProviderResponse instantiates a new PAMProviderResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderResponseWithDefaults + +`func NewPAMProviderResponseWithDefaults() *PAMProviderResponse` + +NewPAMProviderResponseWithDefaults instantiates a new PAMProviderResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetProviderType + +`func (o *PAMProviderResponse) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *PAMProviderResponse) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *PAMProviderResponse) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *PAMProviderResponse) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + +### GetProviderTypeParamValues + +`func (o *PAMProviderResponse) GetProviderTypeParamValues() []PAMPamProviderTypeParamValueResponse` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderResponse) GetProviderTypeParamValuesOk() (*[]PAMPamProviderTypeParamValueResponse, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderResponse) SetProviderTypeParamValues(v []PAMPamProviderTypeParamValueResponse)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderResponse) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderResponse) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderResponse) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil +### GetRemote + +`func (o *PAMProviderResponse) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderResponse) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderResponse) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *PAMProviderResponse) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderTypeCreateRequest.md b/v24/api/keyfactor/v2/docs/PAMProviderTypeCreateRequest.md new file mode 100644 index 0000000..18d2f7f --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderTypeCreateRequest.md @@ -0,0 +1,87 @@ +# PAMProviderTypeCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Parameters** | Pointer to [**[]PAMProviderTypeParameterCreateRequest**](PAMProviderTypeParameterCreateRequest.md) | | [optional] + +## Methods + +### NewPAMProviderTypeCreateRequest + +`func NewPAMProviderTypeCreateRequest(name string, ) *PAMProviderTypeCreateRequest` + +NewPAMProviderTypeCreateRequest instantiates a new PAMProviderTypeCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeCreateRequestWithDefaults + +`func NewPAMProviderTypeCreateRequestWithDefaults() *PAMProviderTypeCreateRequest` + +NewPAMProviderTypeCreateRequestWithDefaults instantiates a new PAMProviderTypeCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderTypeCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetParameters + +`func (o *PAMProviderTypeCreateRequest) GetParameters() []PAMProviderTypeParameterCreateRequest` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PAMProviderTypeCreateRequest) GetParametersOk() (*[]PAMProviderTypeParameterCreateRequest, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PAMProviderTypeCreateRequest) SetParameters(v []PAMProviderTypeParameterCreateRequest)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PAMProviderTypeCreateRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *PAMProviderTypeCreateRequest) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *PAMProviderTypeCreateRequest) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterCreateRequest.md b/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterCreateRequest.md new file mode 100644 index 0000000..a66728f --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterCreateRequest.md @@ -0,0 +1,139 @@ +# PAMProviderTypeParameterCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderTypeParameterCreateRequest + +`func NewPAMProviderTypeParameterCreateRequest(name string, ) *PAMProviderTypeParameterCreateRequest` + +NewPAMProviderTypeParameterCreateRequest instantiates a new PAMProviderTypeParameterCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeParameterCreateRequestWithDefaults + +`func NewPAMProviderTypeParameterCreateRequestWithDefaults() *PAMProviderTypeParameterCreateRequest` + +NewPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new PAMProviderTypeParameterCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PAMProviderTypeParameterCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeParameterCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderTypeParameterCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderTypeParameterCreateRequest) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderTypeParameterCreateRequest) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *PAMProviderTypeParameterCreateRequest) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *PAMProviderTypeParameterCreateRequest) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *PAMProviderTypeParameterCreateRequest) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterResponse.md b/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterResponse.md new file mode 100644 index 0000000..8c00c4f --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderTypeParameterResponse.md @@ -0,0 +1,180 @@ +# PAMProviderTypeParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] +**DataType** | Pointer to [**CSSCMSDataModelEnumsPamParameterDataType**](CSSCMSDataModelEnumsPamParameterDataType.md) | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewPAMProviderTypeParameterResponse + +`func NewPAMProviderTypeParameterResponse() *PAMProviderTypeParameterResponse` + +NewPAMProviderTypeParameterResponse instantiates a new PAMProviderTypeParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeParameterResponseWithDefaults + +`func NewPAMProviderTypeParameterResponseWithDefaults() *PAMProviderTypeParameterResponse` + +NewPAMProviderTypeParameterResponseWithDefaults instantiates a new PAMProviderTypeParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderTypeParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderTypeParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderTypeParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderTypeParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderTypeParameterResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeParameterResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeParameterResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderTypeParameterResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderTypeParameterResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderTypeParameterResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDisplayName + +`func (o *PAMProviderTypeParameterResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PAMProviderTypeParameterResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PAMProviderTypeParameterResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *PAMProviderTypeParameterResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *PAMProviderTypeParameterResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +### GetDataType + +`func (o *PAMProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsPamParameterDataType` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *PAMProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *PAMProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *PAMProviderTypeParameterResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *PAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *PAMProviderTypeParameterResponse) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderTypeResponse.md b/v24/api/keyfactor/v2/docs/PAMProviderTypeResponse.md new file mode 100644 index 0000000..3d57671 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderTypeResponse.md @@ -0,0 +1,128 @@ +# PAMProviderTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Parameters** | Pointer to [**[]PAMProviderTypeParameterResponse**](PAMProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewPAMProviderTypeResponse + +`func NewPAMProviderTypeResponse() *PAMProviderTypeResponse` + +NewPAMProviderTypeResponse instantiates a new PAMProviderTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderTypeResponseWithDefaults + +`func NewPAMProviderTypeResponseWithDefaults() *PAMProviderTypeResponse` + +NewPAMProviderTypeResponseWithDefaults instantiates a new PAMProviderTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PAMProviderTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *PAMProviderTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PAMProviderTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PAMProviderTypeResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PAMProviderTypeResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetParameters + +`func (o *PAMProviderTypeResponse) GetParameters() []PAMProviderTypeParameterResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PAMProviderTypeResponse) GetParametersOk() (*[]PAMProviderTypeParameterResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PAMProviderTypeResponse) SetParameters(v []PAMProviderTypeParameterResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PAMProviderTypeResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *PAMProviderTypeResponse) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *PAMProviderTypeResponse) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/PAMProviderUpdateRequest.md b/v24/api/keyfactor/v2/docs/PAMProviderUpdateRequest.md new file mode 100644 index 0000000..437b27d --- /dev/null +++ b/v24/api/keyfactor/v2/docs/PAMProviderUpdateRequest.md @@ -0,0 +1,129 @@ +# PAMProviderUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Remote** | **bool** | | +**ProviderTypeParamValues** | Pointer to [**[]PAMProviderCreateRequestTypeParamValue**](PAMProviderCreateRequestTypeParamValue.md) | | [optional] + +## Methods + +### NewPAMProviderUpdateRequest + +`func NewPAMProviderUpdateRequest(id int32, name string, remote bool, ) *PAMProviderUpdateRequest` + +NewPAMProviderUpdateRequest instantiates a new PAMProviderUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPAMProviderUpdateRequestWithDefaults + +`func NewPAMProviderUpdateRequestWithDefaults() *PAMProviderUpdateRequest` + +NewPAMProviderUpdateRequestWithDefaults instantiates a new PAMProviderUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PAMProviderUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PAMProviderUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PAMProviderUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *PAMProviderUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PAMProviderUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PAMProviderUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRemote + +`func (o *PAMProviderUpdateRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *PAMProviderUpdateRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *PAMProviderUpdateRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + + +### GetProviderTypeParamValues + +`func (o *PAMProviderUpdateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *PAMProviderUpdateRequest) GetProviderTypeParamValuesOk() (*[]PAMProviderCreateRequestTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *PAMProviderUpdateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *PAMProviderUpdateRequest) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### SetProviderTypeParamValuesNil + +`func (o *PAMProviderUpdateRequest) SetProviderTypeParamValuesNil(b bool)` + + SetProviderTypeParamValuesNil sets the value for ProviderTypeParamValues to be an explicit nil + +### UnsetProviderTypeParamValues +`func (o *PAMProviderUpdateRequest) UnsetProviderTypeParamValues()` + +UnsetProviderTypeParamValues ensures that no value is present for ProviderTypeParamValues, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md new file mode 100644 index 0000000..9934363 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md @@ -0,0 +1,128 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**AuthenticationScheme** | Pointer to **NullableString** | | [optional] +**DisplayName** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationScheme() string` + +GetAuthenticationScheme returns the AuthenticationScheme field if non-nil, zero value otherwise. + +### GetAuthenticationSchemeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationSchemeOk() (*string, bool)` + +GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationScheme(v string)` + +SetAuthenticationScheme sets AuthenticationScheme field to given value. + +### HasAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasAuthenticationScheme() bool` + +HasAuthenticationScheme returns a boolean if a field has been set. + +### SetAuthenticationSchemeNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationSchemeNil(b bool)` + + SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil + +### UnsetAuthenticationScheme +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetAuthenticationScheme()` + +UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +### GetDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### SetDisplayNameNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayNameNil(b bool)` + + SetDisplayNameNil sets the value for DisplayName to be an explicit nil + +### UnsetDisplayName +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetDisplayName()` + +UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md new file mode 100644 index 0000000..e0b038e --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md @@ -0,0 +1,114 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClaimType** | [**CSSCMSCoreEnumsClaimType**](CSSCMSCoreEnumsClaimType.md) | | +**ClaimValue** | **string** | | +**ProviderAuthenticationScheme** | **string** | | +**Description** | **string** | | + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest(claimType CSSCMSCoreEnumsClaimType, claimValue string, providerAuthenticationScheme string, description string, ) *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequestWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimType() CSSCMSCoreEnumsClaimType` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetClaimType(v CSSCMSCoreEnumsClaimType)` + +SetClaimType sets ClaimType field to given value. + + +### GetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + + +### GetProviderAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetProviderAuthenticationScheme() string` + +GetProviderAuthenticationScheme returns the ProviderAuthenticationScheme field if non-nil, zero value otherwise. + +### GetProviderAuthenticationSchemeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetProviderAuthenticationSchemeOk() (*string, bool)` + +GetProviderAuthenticationSchemeOk returns a tuple with the ProviderAuthenticationScheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAuthenticationScheme + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetProviderAuthenticationScheme(v string)` + +SetProviderAuthenticationScheme sets ProviderAuthenticationScheme field to given value. + + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md new file mode 100644 index 0000000..11f1068 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md @@ -0,0 +1,190 @@ +# SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**ClaimType** | Pointer to **NullableString** | | [optional] +**ClaimValue** | Pointer to **NullableString** | | [optional] +**Provider** | Pointer to [**SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse.md) | | [optional] + +## Methods + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults + +`func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimType() string` + +GetClaimType returns the ClaimType field if non-nil, zero value otherwise. + +### GetClaimTypeOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimTypeOk() (*string, bool)` + +GetClaimTypeOk returns a tuple with the ClaimType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimType(v string)` + +SetClaimType sets ClaimType field to given value. + +### HasClaimType + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimType() bool` + +HasClaimType returns a boolean if a field has been set. + +### SetClaimTypeNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimTypeNil(b bool)` + + SetClaimTypeNil sets the value for ClaimType to be an explicit nil + +### UnsetClaimType +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimType()` + +UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +### GetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValue() string` + +GetClaimValue returns the ClaimValue field if non-nil, zero value otherwise. + +### GetClaimValueOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValueOk() (*string, bool)` + +GetClaimValueOk returns a tuple with the ClaimValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValue(v string)` + +SetClaimValue sets ClaimValue field to given value. + +### HasClaimValue + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimValue() bool` + +HasClaimValue returns a boolean if a field has been set. + +### SetClaimValueNil + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValueNil(b bool)` + + SetClaimValueNil sets the value for ClaimValue to be an explicit nil + +### UnsetClaimValue +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimValue()` + +UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +### GetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecurityRolesApi.md b/v24/api/keyfactor/v2/docs/SecurityRolesApi.md new file mode 100644 index 0000000..cd1d5cb --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecurityRolesApi.md @@ -0,0 +1,296 @@ +# \SecurityRolesApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecurityRoles**](SecurityRolesApi.md#CreateSecurityRoles) | **POST** /Security/Roles | Adds a new security role to the system. +[**GetSecurityRoles**](SecurityRolesApi.md#GetSecurityRoles) | **GET** /Security/Roles | Returns all security roles according to the provided filter and output parameters. +[**GetSecurityRolesById**](SecurityRolesApi.md#GetSecurityRolesById) | **GET** /Security/Roles/{id} | Returns a single security role that matches the id. +[**UpdateSecurityRoles**](SecurityRolesApi.md#UpdateSecurityRoles) | **PUT** /Security/Roles | Updates an existing security role. + + + +## CreateSecurityRoles + +> SecuritySecurityRolesSecurityRoleResponse NewCreateSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolesSecurityRoleCreationRequest(securitySecurityRolesSecurityRoleCreationRequest).Execute() + +Adds a new security role to the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolesSecurityRoleCreationRequest := *openapiclient.NewSecuritySecurityRolesSecurityRoleCreationRequest("Name_example", "Description_example", "PermissionSetId_example") // SecuritySecurityRolesSecurityRoleCreationRequest | Security Role Creation Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewCreateSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolesSecurityRoleCreationRequest(securitySecurityRolesSecurityRoleCreationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.CreateSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecurityRoles`: SecuritySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.CreateSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolesSecurityRoleCreationRequest** | [**SecuritySecurityRolesSecurityRoleCreationRequest**](SecuritySecurityRolesSecurityRoleCreationRequest.md) | Security Role Creation Request | + +### Return type + +[**SecuritySecurityRolesSecurityRoleResponse**](SecuritySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRoles + +> []SecuritySecurityRolesSecurityRoleQueryResponse NewGetSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all security roles according to the provided filter and output parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewGetSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.GetSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRoles`: []SecuritySecurityRolesSecurityRoleQueryResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.GetSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]SecuritySecurityRolesSecurityRoleQueryResponse**](SecuritySecurityRolesSecurityRoleQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSecurityRolesById + +> SecuritySecurityRolesSecurityRoleResponse NewGetSecurityRolesByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewGetSecurityRolesByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.GetSecurityRolesById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecurityRolesById`: SecuritySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.GetSecurityRolesById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecurityRolesByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**SecuritySecurityRolesSecurityRoleResponse**](SecuritySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateSecurityRoles + +> SecuritySecurityRolesSecurityRoleResponse NewUpdateSecurityRolesRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolesSecurityRoleUpdateRequest(securitySecurityRolesSecurityRoleUpdateRequest).Execute() + +Updates an existing security role. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + securitySecurityRolesSecurityRoleUpdateRequest := *openapiclient.NewSecuritySecurityRolesSecurityRoleUpdateRequest(int32(123), "Name_example", "Description_example", "PermissionSetId_example") // SecuritySecurityRolesSecurityRoleUpdateRequest | Security Role Update Request (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.NewUpdateSecurityRolesRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SecuritySecurityRolesSecurityRoleUpdateRequest(securitySecurityRolesSecurityRoleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.UpdateSecurityRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSecurityRoles`: SecuritySecurityRolesSecurityRoleResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.UpdateSecurityRoles`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSecurityRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + **securitySecurityRolesSecurityRoleUpdateRequest** | [**SecuritySecurityRolesSecurityRoleUpdateRequest**](SecuritySecurityRolesSecurityRoleUpdateRequest.md) | Security Role Update Request | + +### Return type + +[**SecuritySecurityRolesSecurityRoleResponse**](SecuritySecurityRolesSecurityRoleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleCreationRequest.md b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleCreationRequest.md new file mode 100644 index 0000000..2ac7cd4 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleCreationRequest.md @@ -0,0 +1,201 @@ +# SecuritySecurityRolesSecurityRoleCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the security role to create | +**Description** | **string** | The description to be used on the created security role | +**EmailAddress** | Pointer to **NullableString** | The email address to be used on the created security role | [optional] +**PermissionSetId** | **string** | The Id of the permission set this role is in. | +**Permissions** | Pointer to **[]string** | The permissions to include in the role. These must be supplied in the format of access control strings such as \"/security/modify/\". | [optional] +**Claims** | Pointer to [**[]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest**](SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md) | The claim definitions to assign to the created role | [optional] + +## Methods + +### NewSecuritySecurityRolesSecurityRoleCreationRequest + +`func NewSecuritySecurityRolesSecurityRoleCreationRequest(name string, description string, permissionSetId string, ) *SecuritySecurityRolesSecurityRoleCreationRequest` + +NewSecuritySecurityRolesSecurityRoleCreationRequest instantiates a new SecuritySecurityRolesSecurityRoleCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults + +`func NewSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults() *SecuritySecurityRolesSecurityRoleCreationRequest` + +NewSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + + +### GetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil +### GetClaims + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetClaimsOk() (*[]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + +### SetClaimsNil + +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetClaimsNil(b bool)` + + SetClaimsNil sets the value for Claims to be an explicit nil + +### UnsetClaims +`func (o *SecuritySecurityRolesSecurityRoleCreationRequest) UnsetClaims()` + +UnsetClaims ensures that no value is present for Claims, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleQueryResponse.md b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleQueryResponse.md new file mode 100644 index 0000000..6af48e3 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleQueryResponse.md @@ -0,0 +1,206 @@ +# SecuritySecurityRolesSecurityRoleQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**EmailAddress** | Pointer to **NullableString** | | [optional] +**Immutable** | Pointer to **bool** | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] +**ClaimsCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewSecuritySecurityRolesSecurityRoleQueryResponse + +`func NewSecuritySecurityRolesSecurityRoleQueryResponse() *SecuritySecurityRolesSecurityRoleQueryResponse` + +NewSecuritySecurityRolesSecurityRoleQueryResponse instantiates a new SecuritySecurityRolesSecurityRoleQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolesSecurityRoleQueryResponseWithDefaults + +`func NewSecuritySecurityRolesSecurityRoleQueryResponseWithDefaults() *SecuritySecurityRolesSecurityRoleQueryResponse` + +NewSecuritySecurityRolesSecurityRoleQueryResponseWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetImmutable + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetImmutable() bool` + +GetImmutable returns the Immutable field if non-nil, zero value otherwise. + +### GetImmutableOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetImmutableOk() (*bool, bool)` + +GetImmutableOk returns a tuple with the Immutable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmutable + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetImmutable(v bool)` + +SetImmutable sets Immutable field to given value. + +### HasImmutable + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasImmutable() bool` + +HasImmutable returns a boolean if a field has been set. + +### GetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetClaimsCount + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetClaimsCount() int32` + +GetClaimsCount returns the ClaimsCount field if non-nil, zero value otherwise. + +### GetClaimsCountOk + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetClaimsCountOk() (*int32, bool)` + +GetClaimsCountOk returns a tuple with the ClaimsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsCount + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetClaimsCount(v int32)` + +SetClaimsCount sets ClaimsCount field to given value. + +### HasClaimsCount + +`func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasClaimsCount() bool` + +HasClaimsCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleResponse.md b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleResponse.md new file mode 100644 index 0000000..76f4e77 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleResponse.md @@ -0,0 +1,288 @@ +# SecuritySecurityRolesSecurityRoleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**EmailAddress** | Pointer to **NullableString** | | [optional] +**Immutable** | Pointer to **bool** | | [optional] +**PermissionSetId** | Pointer to **string** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] +**Claims** | Pointer to [**[]SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse**](SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse.md) | | [optional] + +## Methods + +### NewSecuritySecurityRolesSecurityRoleResponse + +`func NewSecuritySecurityRolesSecurityRoleResponse() *SecuritySecurityRolesSecurityRoleResponse` + +NewSecuritySecurityRolesSecurityRoleResponse instantiates a new SecuritySecurityRolesSecurityRoleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolesSecurityRoleResponseWithDefaults + +`func NewSecuritySecurityRolesSecurityRoleResponseWithDefaults() *SecuritySecurityRolesSecurityRoleResponse` + +NewSecuritySecurityRolesSecurityRoleResponseWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetImmutable + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetImmutable() bool` + +GetImmutable returns the Immutable field if non-nil, zero value otherwise. + +### GetImmutableOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetImmutableOk() (*bool, bool)` + +GetImmutableOk returns a tuple with the Immutable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmutable + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetImmutable(v bool)` + +SetImmutable sets Immutable field to given value. + +### HasImmutable + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasImmutable() bool` + +HasImmutable returns a boolean if a field has been set. + +### GetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + +### HasPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasPermissionSetId() bool` + +HasPermissionSetId returns a boolean if a field has been set. + +### GetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil +### GetClaims + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *SecuritySecurityRolesSecurityRoleResponse) GetClaimsOk() (*[]SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *SecuritySecurityRolesSecurityRoleResponse) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + +### SetClaimsNil + +`func (o *SecuritySecurityRolesSecurityRoleResponse) SetClaimsNil(b bool)` + + SetClaimsNil sets the value for Claims to be an explicit nil + +### UnsetClaims +`func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetClaims()` + +UnsetClaims ensures that no value is present for Claims, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleUpdateRequest.md b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleUpdateRequest.md new file mode 100644 index 0000000..76424e7 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SecuritySecurityRolesSecurityRoleUpdateRequest.md @@ -0,0 +1,222 @@ +# SecuritySecurityRolesSecurityRoleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | The Keyfactor identifier of the role to update | +**Name** | **string** | The new name of the security role | +**Description** | **string** | The new description to be used for the security role | +**EmailAddress** | Pointer to **NullableString** | The new email address to be used for the security role | [optional] +**PermissionSetId** | **string** | | +**Permissions** | Pointer to **[]string** | The complete list of permissions to include in the role. These must be supplied in the format of access control strings such as \"/security/modify/\". | [optional] +**Claims** | Pointer to [**[]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest**](SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest.md) | The complete list of claim definitions to assign to the role | [optional] + +## Methods + +### NewSecuritySecurityRolesSecurityRoleUpdateRequest + +`func NewSecuritySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string, permissionSetId string, ) *SecuritySecurityRolesSecurityRoleUpdateRequest` + +NewSecuritySecurityRolesSecurityRoleUpdateRequest instantiates a new SecuritySecurityRolesSecurityRoleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults + +`func NewSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults() *SecuritySecurityRolesSecurityRoleUpdateRequest` + +NewSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### SetEmailAddressNil + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetEmailAddressNil(b bool)` + + SetEmailAddressNil sets the value for EmailAddress to be an explicit nil + +### UnsetEmailAddress +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) UnsetEmailAddress()` + +UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +### GetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetId() string` + +GetPermissionSetId returns the PermissionSetId field if non-nil, zero value otherwise. + +### GetPermissionSetIdOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetIdOk() (*string, bool)` + +GetPermissionSetIdOk returns a tuple with the PermissionSetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionSetId + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissionSetId(v string)` + +SetPermissionSetId sets PermissionSetId field to given value. + + +### GetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### SetPermissionsNil + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissionsNil(b bool)` + + SetPermissionsNil sets the value for Permissions to be an explicit nil + +### UnsetPermissions +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) UnsetPermissions()` + +UnsetPermissions ensures that no value is present for Permissions, not even an explicit nil +### GetClaims + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest` + +GetClaims returns the Claims field if non-nil, zero value otherwise. + +### GetClaimsOk + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetClaimsOk() (*[]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest, bool)` + +GetClaimsOk returns a tuple with the Claims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaims + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest)` + +SetClaims sets Claims field to given value. + +### HasClaims + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasClaims() bool` + +HasClaims returns a boolean if a field has been set. + +### SetClaimsNil + +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetClaimsNil(b bool)` + + SetClaimsNil sets the value for Claims to be an explicit nil + +### UnsetClaims +`func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) UnsetClaims()` + +UnsetClaims ensures that no value is present for Claims, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/SystemDayOfWeek.md b/v24/api/keyfactor/v2/docs/SystemDayOfWeek.md new file mode 100644 index 0000000..f13e918 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/SystemDayOfWeek.md @@ -0,0 +1,23 @@ +# SystemDayOfWeek + +## Enum + + +* `Sunday` (value: `0`) + +* `Monday` (value: `1`) + +* `Tuesday` (value: `2`) + +* `Wednesday` (value: `3`) + +* `Thursday` (value: `4`) + +* `Friday` (value: `5`) + +* `Saturday` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v24/api/keyfactor/v2/docs/UserApi.md b/v24/api/keyfactor/v2/docs/UserApi.md new file mode 100644 index 0000000..b5390c9 --- /dev/null +++ b/v24/api/keyfactor/v2/docs/UserApi.md @@ -0,0 +1,160 @@ +# \UserApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSSHUsers**](UserApi.md#GetSSHUsers) | **GET** /SSH/Users | Returns users matching the criteria from the provided query parameters +[**GetSSHUsersById**](UserApi.md#GetSSHUsersById) | **GET** /SSH/Users/{id} | Looks up information about an existing SSH user. + + + +## GetSSHUsers + +> []CSSCMSDataModelModelsSSHUsersSshUserAccessResponse NewGetSSHUsersRequest(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns users matching the criteria from the provided query parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + queryString := "queryString_example" // string | (optional) + pageReturned := int32(56) // int32 | (optional) + returnLimit := int32(56) // int32 | (optional) + sortField := "sortField_example" // string | (optional) + sortAscending := openapiclient.Keyfactor.Common.QueryableExtensions.SortOrder(0) // KeyfactorCommonQueryableExtensionsSortOrder | (optional) + showOwnedAccess := true // bool | Whether or not to return only logons that have access to servers the requesting user owns (optional) (default to false) + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewGetSSHUsersRequest(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).QueryString(queryString).PageReturned(pageReturned).ReturnLimit(returnLimit).SortField(sortField).SortAscending(sortAscending).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.GetSSHUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHUsers`: []CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.GetSSHUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **queryString** | **string** | | + **pageReturned** | **int32** | | + **returnLimit** | **int32** | | + **sortField** | **string** | | + **sortAscending** | [**KeyfactorCommonQueryableExtensionsSortOrder**](KeyfactorCommonQueryableExtensionsSortOrder.md) | | + **showOwnedAccess** | **bool** | Whether or not to return only logons that have access to servers the requesting user owns | [default to false] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**[]CSSCMSDataModelModelsSSHUsersSshUserAccessResponse**](CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSSHUsersById + +> CSSCMSDataModelModelsSSHUsersSshUserAccessResponse NewGetSSHUsersByIdRequest(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Looks up information about an existing SSH user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the SSH user to retrieve. + xKeyfactorRequestedWith := "APIClient" // string | Type of the request [XMLHttpRequest, APIClient] + xKeyfactorApiVersion := "2" // string | Desired version of the api, if not provided defaults to v1 (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.NewGetSSHUsersByIdRequest(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.GetSSHUsersById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSSHUsersById`: CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.GetSSHUsersById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the SSH user to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSSHUsersByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | + +### Return type + +[**CSSCMSDataModelModelsSSHUsersSshUserAccessResponse**](CSSCMSDataModelModelsSSHUsersSshUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v24/api/keyfactor/v2/git_push.sh b/v24/api/keyfactor/v2/git_push.sh new file mode 100644 index 0000000..729673e --- /dev/null +++ b/v24/api/keyfactor/v2/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="Keyfactor" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="keyfactor-go-client-sdk" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2.go b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2.go new file mode 100644 index 0000000..128dd80 --- /dev/null +++ b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponse2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponse2{} + +// CertificatesCertificateIdentityAuditResponse2 Represents an account with a list of permission granted to it on a given certificate by either a role or collection. Used for the V2 endpoint. +type CertificatesCertificateIdentityAuditResponse2 struct { + Identity *CertificatesCertificateIdentityAuditResponse2IdentityResponse `json:"Identity,omitempty"` + // Permissions granted to the account represented by the audit reponse on the specified certifcate. + Permissions []CertificatesCertificateIdentityAuditResponse2CertificatePermission `json:"Permissions,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponse2 instantiates a new CertificatesCertificateIdentityAuditResponse2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponse2() *CertificatesCertificateIdentityAuditResponse2 { + this := CertificatesCertificateIdentityAuditResponse2{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponse2WithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponse2WithDefaults() *CertificatesCertificateIdentityAuditResponse2 { + this := CertificatesCertificateIdentityAuditResponse2{} + return &this +} + +// GetIdentity returns the Identity field value if set, zero value otherwise. +func (o *CertificatesCertificateIdentityAuditResponse2) GetIdentity() CertificatesCertificateIdentityAuditResponse2IdentityResponse { + if o == nil || isNil(o.Identity) { + var ret CertificatesCertificateIdentityAuditResponse2IdentityResponse + return ret + } + return *o.Identity +} + +// GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateIdentityAuditResponse2) GetIdentityOk() (*CertificatesCertificateIdentityAuditResponse2IdentityResponse, bool) { + if o == nil || isNil(o.Identity) { + return nil, false + } + return o.Identity, true +} + +// HasIdentity returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2) HasIdentity() bool { + if o != nil && !isNil(o.Identity) { + return true + } + + return false +} + +// SetIdentity gets a reference to the given CertificatesCertificateIdentityAuditResponse2IdentityResponse and assigns it to the Identity field. +func (o *CertificatesCertificateIdentityAuditResponse2) SetIdentity(v CertificatesCertificateIdentityAuditResponse2IdentityResponse) { + o.Identity = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2) GetPermissions() []CertificatesCertificateIdentityAuditResponse2CertificatePermission { + if o == nil { + var ret []CertificatesCertificateIdentityAuditResponse2CertificatePermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2) GetPermissionsOk() ([]CertificatesCertificateIdentityAuditResponse2CertificatePermission, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []CertificatesCertificateIdentityAuditResponse2CertificatePermission and assigns it to the Permissions field. +func (o *CertificatesCertificateIdentityAuditResponse2) SetPermissions(v []CertificatesCertificateIdentityAuditResponse2CertificatePermission) { + o.Permissions = v +} + +func (o CertificatesCertificateIdentityAuditResponse2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponse2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Identity) { + toSerialize["Identity"] = o.Identity + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponse2 struct { + value *CertificatesCertificateIdentityAuditResponse2 + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2) Get() *CertificatesCertificateIdentityAuditResponse2 { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2) Set(val *CertificatesCertificateIdentityAuditResponse2) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponse2(val *CertificatesCertificateIdentityAuditResponse2) *NullableCertificatesCertificateIdentityAuditResponse2 { + return &NullableCertificatesCertificateIdentityAuditResponse2{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_certificate_permission.go b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_certificate_permission.go new file mode 100644 index 0000000..0406a55 --- /dev/null +++ b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_certificate_permission.go @@ -0,0 +1,184 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponse2CertificatePermission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponse2CertificatePermission{} + +// CertificatesCertificateIdentityAuditResponse2CertificatePermission Represents a permission granted to an account for a certificate +type CertificatesCertificateIdentityAuditResponse2CertificatePermission struct { + // The name of the permission + Name NullableString `json:"Name,omitempty"` + // A list of roles or collections that grant the given permission + GrantedBy []string `json:"GrantedBy,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponse2CertificatePermission instantiates a new CertificatesCertificateIdentityAuditResponse2CertificatePermission object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponse2CertificatePermission() *CertificatesCertificateIdentityAuditResponse2CertificatePermission { + this := CertificatesCertificateIdentityAuditResponse2CertificatePermission{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponse2CertificatePermissionWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2CertificatePermission object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponse2CertificatePermissionWithDefaults() *CertificatesCertificateIdentityAuditResponse2CertificatePermission { + this := CertificatesCertificateIdentityAuditResponse2CertificatePermission{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) UnsetName() { + o.Name.Unset() +} + +// GetGrantedBy returns the GrantedBy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetGrantedBy() []string { + if o == nil { + var ret []string + return ret + } + return o.GrantedBy +} + +// GetGrantedByOk returns a tuple with the GrantedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) GetGrantedByOk() ([]string, bool) { + if o == nil || isNil(o.GrantedBy) { + return nil, false + } + return o.GrantedBy, true +} + +// HasGrantedBy returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) HasGrantedBy() bool { + if o != nil && isNil(o.GrantedBy) { + return true + } + + return false +} + +// SetGrantedBy gets a reference to the given []string and assigns it to the GrantedBy field. +func (o *CertificatesCertificateIdentityAuditResponse2CertificatePermission) SetGrantedBy(v []string) { + o.GrantedBy = v +} + +func (o CertificatesCertificateIdentityAuditResponse2CertificatePermission) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponse2CertificatePermission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.GrantedBy != nil { + toSerialize["GrantedBy"] = o.GrantedBy + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission struct { + value *CertificatesCertificateIdentityAuditResponse2CertificatePermission + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) Get() *CertificatesCertificateIdentityAuditResponse2CertificatePermission { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) Set(val *CertificatesCertificateIdentityAuditResponse2CertificatePermission) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponse2CertificatePermission(val *CertificatesCertificateIdentityAuditResponse2CertificatePermission) *NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission { + return &NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2CertificatePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_provider.go b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_provider.go new file mode 100644 index 0000000..e07e20e --- /dev/null +++ b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_provider.go @@ -0,0 +1,183 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponse2IdentityProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponse2IdentityProvider{} + +// CertificatesCertificateIdentityAuditResponse2IdentityProvider struct for CertificatesCertificateIdentityAuditResponse2IdentityProvider +type CertificatesCertificateIdentityAuditResponse2IdentityProvider struct { + // The Id of the provider. + Id *string `json:"Id,omitempty"` + // The name of the provider. + Name NullableString `json:"Name,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponse2IdentityProvider instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponse2IdentityProvider() *CertificatesCertificateIdentityAuditResponse2IdentityProvider { + this := CertificatesCertificateIdentityAuditResponse2IdentityProvider{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponse2IdentityProviderWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponse2IdentityProviderWithDefaults() *CertificatesCertificateIdentityAuditResponse2IdentityProvider { + this := CertificatesCertificateIdentityAuditResponse2IdentityProvider{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityProvider) UnsetName() { + o.Name.Unset() +} + +func (o CertificatesCertificateIdentityAuditResponse2IdentityProvider) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponse2IdentityProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider struct { + value *CertificatesCertificateIdentityAuditResponse2IdentityProvider + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) Get() *CertificatesCertificateIdentityAuditResponse2IdentityProvider { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) Set(val *CertificatesCertificateIdentityAuditResponse2IdentityProvider) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponse2IdentityProvider(val *CertificatesCertificateIdentityAuditResponse2IdentityProvider) *NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider { + return &NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_response.go b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_response.go new file mode 100644 index 0000000..c41d1e5 --- /dev/null +++ b/v24/api/keyfactor/v2/model_certificates_certificate_identity_audit_response2_identity_response.go @@ -0,0 +1,315 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CertificatesCertificateIdentityAuditResponse2IdentityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CertificatesCertificateIdentityAuditResponse2IdentityResponse{} + +// CertificatesCertificateIdentityAuditResponse2IdentityResponse struct for CertificatesCertificateIdentityAuditResponse2IdentityResponse +type CertificatesCertificateIdentityAuditResponse2IdentityResponse struct { + // The Id of the identity. + Id *int32 `json:"Id,omitempty"` + // The description of the identity. + Description NullableString `json:"Description,omitempty"` + // The claim type of the identity. + ClaimType NullableString `json:"ClaimType,omitempty"` + // The claim value of the identity. + ClaimValue NullableString `json:"ClaimValue,omitempty"` + Provider *CertificatesCertificateIdentityAuditResponse2IdentityProvider `json:"Provider,omitempty"` +} + +// NewCertificatesCertificateIdentityAuditResponse2IdentityResponse instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCertificatesCertificateIdentityAuditResponse2IdentityResponse() *CertificatesCertificateIdentityAuditResponse2IdentityResponse { + this := CertificatesCertificateIdentityAuditResponse2IdentityResponse{} + return &this +} + +// NewCertificatesCertificateIdentityAuditResponse2IdentityResponseWithDefaults instantiates a new CertificatesCertificateIdentityAuditResponse2IdentityResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCertificatesCertificateIdentityAuditResponse2IdentityResponseWithDefaults() *CertificatesCertificateIdentityAuditResponse2IdentityResponse { + this := CertificatesCertificateIdentityAuditResponse2IdentityResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetId(v int32) { + o.Id = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimType() string { + if o == nil || isNil(o.ClaimType.Get()) { + var ret string + return ret + } + return *o.ClaimType.Get() +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimType.Get(), o.ClaimType.IsSet() +} + +// HasClaimType returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasClaimType() bool { + if o != nil && o.ClaimType.IsSet() { + return true + } + + return false +} + +// SetClaimType gets a reference to the given NullableString and assigns it to the ClaimType field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimType(v string) { + o.ClaimType.Set(&v) +} + +// SetClaimTypeNil sets the value for ClaimType to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimTypeNil() { + o.ClaimType.Set(nil) +} + +// UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetClaimType() { + o.ClaimType.Unset() +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetProvider() CertificatesCertificateIdentityAuditResponse2IdentityProvider { + if o == nil || isNil(o.Provider) { + var ret CertificatesCertificateIdentityAuditResponse2IdentityProvider + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) GetProviderOk() (*CertificatesCertificateIdentityAuditResponse2IdentityProvider, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given CertificatesCertificateIdentityAuditResponse2IdentityProvider and assigns it to the Provider field. +func (o *CertificatesCertificateIdentityAuditResponse2IdentityResponse) SetProvider(v CertificatesCertificateIdentityAuditResponse2IdentityProvider) { + o.Provider = &v +} + +func (o CertificatesCertificateIdentityAuditResponse2IdentityResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CertificatesCertificateIdentityAuditResponse2IdentityResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.ClaimType.IsSet() { + toSerialize["ClaimType"] = o.ClaimType.Get() + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + return toSerialize, nil +} + +type NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse struct { + value *CertificatesCertificateIdentityAuditResponse2IdentityResponse + isSet bool +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) Get() *CertificatesCertificateIdentityAuditResponse2IdentityResponse { + return v.value +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) Set(val *CertificatesCertificateIdentityAuditResponse2IdentityResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesCertificateIdentityAuditResponse2IdentityResponse(val *CertificatesCertificateIdentityAuditResponse2IdentityResponse) *NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse { + return &NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse{value: val, isSet: true} +} + +func (v NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesCertificateIdentityAuditResponse2IdentityResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_core_enums_claim_type.go b/v24/api/keyfactor/v2/model_css_cms_core_enums_claim_type.go new file mode 100644 index 0000000..6d7159f --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_core_enums_claim_type.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSCoreEnumsClaimType the model 'CSSCMSCoreEnumsClaimType' +type CSSCMSCoreEnumsClaimType int32 + +// List of CSS.CMS.Core.Enums.ClaimType +const ( + CSSCMSCOREENUMSCLAIMTYPE_User CSSCMSCoreEnumsClaimType = 0 + CSSCMSCOREENUMSCLAIMTYPE_Group CSSCMSCoreEnumsClaimType = 1 + CSSCMSCOREENUMSCLAIMTYPE_Computer CSSCMSCoreEnumsClaimType = 2 + CSSCMSCOREENUMSCLAIMTYPE_OAuthOid CSSCMSCoreEnumsClaimType = 3 + CSSCMSCOREENUMSCLAIMTYPE_OAuthRole CSSCMSCoreEnumsClaimType = 4 + CSSCMSCOREENUMSCLAIMTYPE_OAuthSubject CSSCMSCoreEnumsClaimType = 5 + CSSCMSCOREENUMSCLAIMTYPE_OAuthClientId CSSCMSCoreEnumsClaimType = 6 +) + +func ParseCSSCMSCoreEnumsClaimType(s string) (*CSSCMSCoreEnumsClaimType, error) { + var claimType CSSCMSCoreEnumsClaimType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSCoreEnumsClaimType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSCoreEnumsClaimType{ + "User": CSSCMSCOREENUMSCLAIMTYPE_User, + "Group": CSSCMSCOREENUMSCLAIMTYPE_Group, + "Computer": CSSCMSCOREENUMSCLAIMTYPE_Computer, + "OAuthOid": CSSCMSCOREENUMSCLAIMTYPE_OAuthOid, + "OAuthRole": CSSCMSCOREENUMSCLAIMTYPE_OAuthRole, + "OAuthSubject": CSSCMSCOREENUMSCLAIMTYPE_OAuthSubject, + "OAuthClientId": CSSCMSCOREENUMSCLAIMTYPE_OAuthClientId, + } + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSCoreEnumsClaimType. Value: %s ", s)) +} + +// All allowed values of CSSCMSCoreEnumsClaimType enum +var AllowedCSSCMSCoreEnumsClaimTypeEnumValues = []CSSCMSCoreEnumsClaimType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *CSSCMSCoreEnumsClaimType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSCoreEnumsClaimType(value) + for _, existing := range AllowedCSSCMSCoreEnumsClaimTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSCoreEnumsClaimType", value) +} + +// NewCSSCMSCoreEnumsClaimTypeFromValue returns a pointer to a valid CSSCMSCoreEnumsClaimType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSCoreEnumsClaimTypeFromValue(v int32) (*CSSCMSCoreEnumsClaimType, error) { + ev := CSSCMSCoreEnumsClaimType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSCoreEnumsClaimType: valid values are %v", v, AllowedCSSCMSCoreEnumsClaimTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSCoreEnumsClaimType) IsValid() bool { + for _, existing := range AllowedCSSCMSCoreEnumsClaimTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Core.Enums.ClaimType value +func (v CSSCMSCoreEnumsClaimType) Ptr() *CSSCMSCoreEnumsClaimType { + return &v +} + +type NullableCSSCMSCoreEnumsClaimType struct { + value *CSSCMSCoreEnumsClaimType + isSet bool +} + +func (v NullableCSSCMSCoreEnumsClaimType) Get() *CSSCMSCoreEnumsClaimType { + return v.value +} + +func (v *NullableCSSCMSCoreEnumsClaimType) Set(val *CSSCMSCoreEnumsClaimType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSCoreEnumsClaimType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSCoreEnumsClaimType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSCoreEnumsClaimType(val *CSSCMSCoreEnumsClaimType) *NullableCSSCMSCoreEnumsClaimType { + return &NullableCSSCMSCoreEnumsClaimType{value: val, isSet: true} +} + +func (v NullableCSSCMSCoreEnumsClaimType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSCoreEnumsClaimType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_enums_pam_parameter_data_type.go b/v24/api/keyfactor/v2/model_css_cms_data_model_enums_pam_parameter_data_type.go new file mode 100644 index 0000000..2ad70be --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_enums_pam_parameter_data_type.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// CSSCMSDataModelEnumsPamParameterDataType the model 'CSSCMSDataModelEnumsPamParameterDataType' +type CSSCMSDataModelEnumsPamParameterDataType int32 + +// List of CSS.CMS.Data.Model.Enums.PamParameterDataType +const ( + CSSCMSDATAMODELENUMSPAMPARAMETERDATATYPE__1 CSSCMSDataModelEnumsPamParameterDataType = 1 + CSSCMSDATAMODELENUMSPAMPARAMETERDATATYPE__2 CSSCMSDataModelEnumsPamParameterDataType = 2 +) + +func ParseCSSCMSDataModelEnumsPamParameterDataType(s string) (*CSSCMSDataModelEnumsPamParameterDataType, error) { + var claimType CSSCMSDataModelEnumsPamParameterDataType + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *CSSCMSDataModelEnumsPamParameterDataType) Parse(s string) error { + var stringsToEnum = map[string]CSSCMSDataModelEnumsPamParameterDataType{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum CSSCMSDataModelEnumsPamParameterDataType. Value: %s ", s)) +} + +// All allowed values of CSSCMSDataModelEnumsPamParameterDataType enum +var AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues = []CSSCMSDataModelEnumsPamParameterDataType{ + 1, + 2, +} + +func (v *CSSCMSDataModelEnumsPamParameterDataType) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CSSCMSDataModelEnumsPamParameterDataType(value) + for _, existing := range AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CSSCMSDataModelEnumsPamParameterDataType", value) +} + +// NewCSSCMSDataModelEnumsPamParameterDataTypeFromValue returns a pointer to a valid CSSCMSDataModelEnumsPamParameterDataType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCSSCMSDataModelEnumsPamParameterDataTypeFromValue(v int32) (*CSSCMSDataModelEnumsPamParameterDataType, error) { + ev := CSSCMSDataModelEnumsPamParameterDataType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CSSCMSDataModelEnumsPamParameterDataType: valid values are %v", v, AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CSSCMSDataModelEnumsPamParameterDataType) IsValid() bool { + for _, existing := range AllowedCSSCMSDataModelEnumsPamParameterDataTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CSS.CMS.Data.Model.Enums.PamParameterDataType value +func (v CSSCMSDataModelEnumsPamParameterDataType) Ptr() *CSSCMSDataModelEnumsPamParameterDataType { + return &v +} + +type NullableCSSCMSDataModelEnumsPamParameterDataType struct { + value *CSSCMSDataModelEnumsPamParameterDataType + isSet bool +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) Get() *CSSCMSDataModelEnumsPamParameterDataType { + return v.value +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) Set(val *CSSCMSDataModelEnumsPamParameterDataType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelEnumsPamParameterDataType(val *CSSCMSDataModelEnumsPamParameterDataType) *NullableCSSCMSDataModelEnumsPamParameterDataType { + return &NullableCSSCMSDataModelEnumsPamParameterDataType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelEnumsPamParameterDataType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelEnumsPamParameterDataType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_pkcs12_certificate_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_pkcs12_certificate_response.go new file mode 100644 index 0000000..b875af8 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_pkcs12_certificate_response.go @@ -0,0 +1,645 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsPkcs12CertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsPkcs12CertificateResponse{} + +// CSSCMSDataModelModelsPkcs12CertificateResponse struct for CSSCMSDataModelModelsPkcs12CertificateResponse +type CSSCMSDataModelModelsPkcs12CertificateResponse struct { + SerialNumber NullableString `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint NullableString `json:"Thumbprint,omitempty"` + KeyfactorId *int32 `json:"KeyfactorId,omitempty"` + Pkcs12Blob NullableString `json:"Pkcs12Blob,omitempty"` + Password NullableString `json:"Password,omitempty"` + WorkflowInstanceId *string `json:"WorkflowInstanceId,omitempty"` + WorkflowReferenceId *int64 `json:"WorkflowReferenceId,omitempty"` + StoreIdsInvalidForRenewal []string `json:"StoreIdsInvalidForRenewal,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + RequestDisposition NullableString `json:"RequestDisposition,omitempty"` + DispositionMessage NullableString `json:"DispositionMessage,omitempty"` + EnrollmentContext map[string]string `json:"EnrollmentContext,omitempty"` +} + +// NewCSSCMSDataModelModelsPkcs12CertificateResponse instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsPkcs12CertificateResponse() *CSSCMSDataModelModelsPkcs12CertificateResponse { + this := CSSCMSDataModelModelsPkcs12CertificateResponse{} + return &this +} + +// NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults instantiates a new CSSCMSDataModelModelsPkcs12CertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsPkcs12CertificateResponseWithDefaults() *CSSCMSDataModelModelsPkcs12CertificateResponse { + this := CSSCMSDataModelModelsPkcs12CertificateResponse{} + return &this +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber.Get()) { + var ret string + return ret + } + return *o.SerialNumber.Get() +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SerialNumber.Get(), o.SerialNumber.IsSet() +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasSerialNumber() bool { + if o != nil && o.SerialNumber.IsSet() { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given NullableString and assigns it to the SerialNumber field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumber(v string) { + o.SerialNumber.Set(&v) +} + +// SetSerialNumberNil sets the value for SerialNumber to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetSerialNumberNil() { + o.SerialNumber.Set(nil) +} + +// UnsetSerialNumber ensures that no value is present for SerialNumber, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetSerialNumber() { + o.SerialNumber.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint.Get()) { + var ret string + return ret + } + return *o.Thumbprint.Get() +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Thumbprint.Get(), o.Thumbprint.IsSet() +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasThumbprint() bool { + if o != nil && o.Thumbprint.IsSet() { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given NullableString and assigns it to the Thumbprint field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprint(v string) { + o.Thumbprint.Set(&v) +} + +// SetThumbprintNil sets the value for Thumbprint to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetThumbprintNil() { + o.Thumbprint.Set(nil) +} + +// UnsetThumbprint ensures that no value is present for Thumbprint, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetThumbprint() { + o.Thumbprint.Unset() +} + +// GetKeyfactorId returns the KeyfactorId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorId() int32 { + if o == nil || isNil(o.KeyfactorId) { + var ret int32 + return ret + } + return *o.KeyfactorId +} + +// GetKeyfactorIdOk returns a tuple with the KeyfactorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorId) { + return nil, false + } + return o.KeyfactorId, true +} + +// HasKeyfactorId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorId() bool { + if o != nil && !isNil(o.KeyfactorId) { + return true + } + + return false +} + +// SetKeyfactorId gets a reference to the given int32 and assigns it to the KeyfactorId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorId(v int32) { + o.KeyfactorId = &v +} + +// GetPkcs12Blob returns the Pkcs12Blob field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12Blob() string { + if o == nil || isNil(o.Pkcs12Blob.Get()) { + var ret string + return ret + } + return *o.Pkcs12Blob.Get() +} + +// GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Pkcs12Blob.Get(), o.Pkcs12Blob.IsSet() +} + +// HasPkcs12Blob returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPkcs12Blob() bool { + if o != nil && o.Pkcs12Blob.IsSet() { + return true + } + + return false +} + +// SetPkcs12Blob gets a reference to the given NullableString and assigns it to the Pkcs12Blob field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12Blob(v string) { + o.Pkcs12Blob.Set(&v) +} + +// SetPkcs12BlobNil sets the value for Pkcs12Blob to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPkcs12BlobNil() { + o.Pkcs12Blob.Set(nil) +} + +// UnsetPkcs12Blob ensures that no value is present for Pkcs12Blob, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPkcs12Blob() { + o.Pkcs12Blob.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetPassword() { + o.Password.Unset() +} + +// GetWorkflowInstanceId returns the WorkflowInstanceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceId() string { + if o == nil || isNil(o.WorkflowInstanceId) { + var ret string + return ret + } + return *o.WorkflowInstanceId +} + +// GetWorkflowInstanceIdOk returns a tuple with the WorkflowInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowInstanceIdOk() (*string, bool) { + if o == nil || isNil(o.WorkflowInstanceId) { + return nil, false + } + return o.WorkflowInstanceId, true +} + +// HasWorkflowInstanceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowInstanceId() bool { + if o != nil && !isNil(o.WorkflowInstanceId) { + return true + } + + return false +} + +// SetWorkflowInstanceId gets a reference to the given string and assigns it to the WorkflowInstanceId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowInstanceId(v string) { + o.WorkflowInstanceId = &v +} + +// GetWorkflowReferenceId returns the WorkflowReferenceId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceId() int64 { + if o == nil || isNil(o.WorkflowReferenceId) { + var ret int64 + return ret + } + return *o.WorkflowReferenceId +} + +// GetWorkflowReferenceIdOk returns a tuple with the WorkflowReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetWorkflowReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.WorkflowReferenceId) { + return nil, false + } + return o.WorkflowReferenceId, true +} + +// HasWorkflowReferenceId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasWorkflowReferenceId() bool { + if o != nil && !isNil(o.WorkflowReferenceId) { + return true + } + + return false +} + +// SetWorkflowReferenceId gets a reference to the given int64 and assigns it to the WorkflowReferenceId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetWorkflowReferenceId(v int64) { + o.WorkflowReferenceId = &v +} + +// GetStoreIdsInvalidForRenewal returns the StoreIdsInvalidForRenewal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewal() []string { + if o == nil { + var ret []string + return ret + } + return o.StoreIdsInvalidForRenewal +} + +// GetStoreIdsInvalidForRenewalOk returns a tuple with the StoreIdsInvalidForRenewal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetStoreIdsInvalidForRenewalOk() ([]string, bool) { + if o == nil || isNil(o.StoreIdsInvalidForRenewal) { + return nil, false + } + return o.StoreIdsInvalidForRenewal, true +} + +// HasStoreIdsInvalidForRenewal returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasStoreIdsInvalidForRenewal() bool { + if o != nil && isNil(o.StoreIdsInvalidForRenewal) { + return true + } + + return false +} + +// SetStoreIdsInvalidForRenewal gets a reference to the given []string and assigns it to the StoreIdsInvalidForRenewal field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetStoreIdsInvalidForRenewal(v []string) { + o.StoreIdsInvalidForRenewal = v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition.Get()) { + var ret string + return ret + } + return *o.RequestDisposition.Get() +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RequestDisposition.Get(), o.RequestDisposition.IsSet() +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasRequestDisposition() bool { + if o != nil && o.RequestDisposition.IsSet() { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given NullableString and assigns it to the RequestDisposition field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDisposition(v string) { + o.RequestDisposition.Set(&v) +} + +// SetRequestDispositionNil sets the value for RequestDisposition to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetRequestDispositionNil() { + o.RequestDisposition.Set(nil) +} + +// UnsetRequestDisposition ensures that no value is present for RequestDisposition, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetRequestDisposition() { + o.RequestDisposition.Unset() +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage.Get()) { + var ret string + return ret + } + return *o.DispositionMessage.Get() +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DispositionMessage.Get(), o.DispositionMessage.IsSet() +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasDispositionMessage() bool { + if o != nil && o.DispositionMessage.IsSet() { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given NullableString and assigns it to the DispositionMessage field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessage(v string) { + o.DispositionMessage.Set(&v) +} + +// SetDispositionMessageNil sets the value for DispositionMessage to be an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetDispositionMessageNil() { + o.DispositionMessage.Set(nil) +} + +// UnsetDispositionMessage ensures that no value is present for DispositionMessage, not even an explicit nil +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) UnsetDispositionMessage() { + o.DispositionMessage.Unset() +} + +// GetEnrollmentContext returns the EnrollmentContext field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.EnrollmentContext +} + +// GetEnrollmentContextOk returns a tuple with the EnrollmentContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool) { + if o == nil || isNil(o.EnrollmentContext) { + return nil, false + } + return &o.EnrollmentContext, true +} + +// HasEnrollmentContext returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) HasEnrollmentContext() bool { + if o != nil && isNil(o.EnrollmentContext) { + return true + } + + return false +} + +// SetEnrollmentContext gets a reference to the given map[string]string and assigns it to the EnrollmentContext field. +func (o *CSSCMSDataModelModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string) { + o.EnrollmentContext = v +} + +func (o CSSCMSDataModelModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsPkcs12CertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SerialNumber.IsSet() { + toSerialize["SerialNumber"] = o.SerialNumber.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.Thumbprint.IsSet() { + toSerialize["Thumbprint"] = o.Thumbprint.Get() + } + if !isNil(o.KeyfactorId) { + toSerialize["KeyfactorId"] = o.KeyfactorId + } + if o.Pkcs12Blob.IsSet() { + toSerialize["Pkcs12Blob"] = o.Pkcs12Blob.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if !isNil(o.WorkflowInstanceId) { + toSerialize["WorkflowInstanceId"] = o.WorkflowInstanceId + } + if !isNil(o.WorkflowReferenceId) { + toSerialize["WorkflowReferenceId"] = o.WorkflowReferenceId + } + if o.StoreIdsInvalidForRenewal != nil { + toSerialize["StoreIdsInvalidForRenewal"] = o.StoreIdsInvalidForRenewal + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if o.RequestDisposition.IsSet() { + toSerialize["RequestDisposition"] = o.RequestDisposition.Get() + } + if o.DispositionMessage.IsSet() { + toSerialize["DispositionMessage"] = o.DispositionMessage.Get() + } + if o.EnrollmentContext != nil { + toSerialize["EnrollmentContext"] = o.EnrollmentContext + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsPkcs12CertificateResponse struct { + value *CSSCMSDataModelModelsPkcs12CertificateResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Get() *CSSCMSDataModelModelsPkcs12CertificateResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Set(val *CSSCMSDataModelModelsPkcs12CertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsPkcs12CertificateResponse(val *CSSCMSDataModelModelsPkcs12CertificateResponse) *NullableCSSCMSDataModelModelsPkcs12CertificateResponse { + return &NullableCSSCMSDataModelModelsPkcs12CertificateResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsPkcs12CertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type.go new file mode 100644 index 0000000..fd63b5d --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsProviderType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsProviderType{} + +// CSSCMSDataModelModelsProviderType struct for CSSCMSDataModelModelsProviderType +type CSSCMSDataModelModelsProviderType struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + ProviderTypeParams []CSSCMSDataModelModelsProviderTypeParam `json:"ProviderTypeParams,omitempty"` +} + +// NewCSSCMSDataModelModelsProviderType instantiates a new CSSCMSDataModelModelsProviderType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsProviderType() *CSSCMSDataModelModelsProviderType { + this := CSSCMSDataModelModelsProviderType{} + return &this +} + +// NewCSSCMSDataModelModelsProviderTypeWithDefaults instantiates a new CSSCMSDataModelModelsProviderType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsProviderTypeWithDefaults() *CSSCMSDataModelModelsProviderType { + this := CSSCMSDataModelModelsProviderType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderType) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderType) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CSSCMSDataModelModelsProviderType) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderType) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsProviderType) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsProviderType) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderType) UnsetName() { + o.Name.Unset() +} + +// GetProviderTypeParams returns the ProviderTypeParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParams() []CSSCMSDataModelModelsProviderTypeParam { + if o == nil { + var ret []CSSCMSDataModelModelsProviderTypeParam + return ret + } + return o.ProviderTypeParams +} + +// GetProviderTypeParamsOk returns a tuple with the ProviderTypeParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParamsOk() ([]CSSCMSDataModelModelsProviderTypeParam, bool) { + if o == nil || isNil(o.ProviderTypeParams) { + return nil, false + } + return o.ProviderTypeParams, true +} + +// HasProviderTypeParams returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderType) HasProviderTypeParams() bool { + if o != nil && isNil(o.ProviderTypeParams) { + return true + } + + return false +} + +// SetProviderTypeParams gets a reference to the given []CSSCMSDataModelModelsProviderTypeParam and assigns it to the ProviderTypeParams field. +func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParams(v []CSSCMSDataModelModelsProviderTypeParam) { + o.ProviderTypeParams = v +} + +func (o CSSCMSDataModelModelsProviderType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsProviderType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.ProviderTypeParams != nil { + toSerialize["ProviderTypeParams"] = o.ProviderTypeParams + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsProviderType struct { + value *CSSCMSDataModelModelsProviderType + isSet bool +} + +func (v NullableCSSCMSDataModelModelsProviderType) Get() *CSSCMSDataModelModelsProviderType { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsProviderType) Set(val *CSSCMSDataModelModelsProviderType) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsProviderType) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsProviderType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsProviderType(val *CSSCMSDataModelModelsProviderType) *NullableCSSCMSDataModelModelsProviderType { + return &NullableCSSCMSDataModelModelsProviderType{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsProviderType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsProviderType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type_param.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type_param.go new file mode 100644 index 0000000..346834b --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_provider_type_param.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsProviderTypeParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsProviderTypeParam{} + +// CSSCMSDataModelModelsProviderTypeParam struct for CSSCMSDataModelModelsProviderTypeParam +type CSSCMSDataModelModelsProviderTypeParam struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` + ProviderType *CSSCMSDataModelModelsProviderType `json:"ProviderType,omitempty"` +} + +// NewCSSCMSDataModelModelsProviderTypeParam instantiates a new CSSCMSDataModelModelsProviderTypeParam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsProviderTypeParam() *CSSCMSDataModelModelsProviderTypeParam { + this := CSSCMSDataModelModelsProviderTypeParam{} + return &this +} + +// NewCSSCMSDataModelModelsProviderTypeParamWithDefaults instantiates a new CSSCMSDataModelModelsProviderTypeParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsProviderTypeParamWithDefaults() *CSSCMSDataModelModelsProviderTypeParam { + this := CSSCMSDataModelModelsProviderTypeParam{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderTypeParam) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderTypeParam) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *CSSCMSDataModelModelsProviderTypeParam) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderType() CSSCMSDataModelModelsProviderType { + if o == nil || isNil(o.ProviderType) { + var ret CSSCMSDataModelModelsProviderType + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool) { + if o == nil || isNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsProviderTypeParam) HasProviderType() bool { + if o != nil && !isNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given CSSCMSDataModelModelsProviderType and assigns it to the ProviderType field. +func (o *CSSCMSDataModelModelsProviderTypeParam) SetProviderType(v CSSCMSDataModelModelsProviderType) { + o.ProviderType = &v +} + +func (o CSSCMSDataModelModelsProviderTypeParam) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsProviderTypeParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + if !isNil(o.ProviderType) { + toSerialize["ProviderType"] = o.ProviderType + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsProviderTypeParam struct { + value *CSSCMSDataModelModelsProviderTypeParam + isSet bool +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) Get() *CSSCMSDataModelModelsProviderTypeParam { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) Set(val *CSSCMSDataModelModelsProviderTypeParam) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsProviderTypeParam(val *CSSCMSDataModelModelsProviderTypeParam) *NullableCSSCMSDataModelModelsProviderTypeParam { + return &NullableCSSCMSDataModelModelsProviderTypeParam{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsProviderTypeParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsProviderTypeParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_keys_key_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_keys_key_response.go new file mode 100644 index 0000000..d81c005 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_keys_key_response.go @@ -0,0 +1,573 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHKeysKeyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHKeysKeyResponse{} + +// CSSCMSDataModelModelsSSHKeysKeyResponse struct for CSSCMSDataModelModelsSSHKeysKeyResponse +type CSSCMSDataModelModelsSSHKeysKeyResponse struct { + Id *int32 `json:"Id,omitempty"` + Fingerprint NullableString `json:"Fingerprint,omitempty"` + PublicKey NullableString `json:"PublicKey,omitempty"` + PrivateKey NullableString `json:"PrivateKey,omitempty"` + KeyType NullableString `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + CreationDate NullableTime `json:"CreationDate,omitempty"` + StaleDate NullableTime `json:"StaleDate,omitempty"` + Email NullableString `json:"Email,omitempty"` + Comments []string `json:"Comments,omitempty"` + LogonCount *int32 `json:"LogonCount,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHKeysKeyResponse instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHKeysKeyResponse() *CSSCMSDataModelModelsSSHKeysKeyResponse { + this := CSSCMSDataModelModelsSSHKeysKeyResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHKeysKeyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHKeysKeyResponseWithDefaults() *CSSCMSDataModelModelsSSHKeysKeyResponse { + this := CSSCMSDataModelModelsSSHKeysKeyResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetId(v int32) { + o.Id = &v +} + +// GetFingerprint returns the Fingerprint field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprint() string { + if o == nil || isNil(o.Fingerprint.Get()) { + var ret string + return ret + } + return *o.Fingerprint.Get() +} + +// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Fingerprint.Get(), o.Fingerprint.IsSet() +} + +// HasFingerprint returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasFingerprint() bool { + if o != nil && o.Fingerprint.IsSet() { + return true + } + + return false +} + +// SetFingerprint gets a reference to the given NullableString and assigns it to the Fingerprint field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprint(v string) { + o.Fingerprint.Set(&v) +} + +// SetFingerprintNil sets the value for Fingerprint to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetFingerprintNil() { + o.Fingerprint.Set(nil) +} + +// UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetFingerprint() { + o.Fingerprint.Unset() +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKey() string { + if o == nil || isNil(o.PublicKey.Get()) { + var ret string + return ret + } + return *o.PublicKey.Get() +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey.Get(), o.PublicKey.IsSet() +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPublicKey() bool { + if o != nil && o.PublicKey.IsSet() { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKey(v string) { + o.PublicKey.Set(&v) +} + +// SetPublicKeyNil sets the value for PublicKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPublicKeyNil() { + o.PublicKey.Set(nil) +} + +// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPublicKey() { + o.PublicKey.Unset() +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey.Get()) { + var ret string + return ret + } + return *o.PrivateKey.Get() +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrivateKey.Get(), o.PrivateKey.IsSet() +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasPrivateKey() bool { + if o != nil && o.PrivateKey.IsSet() { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given NullableString and assigns it to the PrivateKey field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKey(v string) { + o.PrivateKey.Set(&v) +} + +// SetPrivateKeyNil sets the value for PrivateKey to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetPrivateKeyNil() { + o.PrivateKey.Set(nil) +} + +// UnsetPrivateKey ensures that no value is present for PrivateKey, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetPrivateKey() { + o.PrivateKey.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCreationDate returns the CreationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDate() time.Time { + if o == nil || isNil(o.CreationDate.Get()) { + var ret time.Time + return ret + } + return *o.CreationDate.Get() +} + +// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CreationDate.Get(), o.CreationDate.IsSet() +} + +// HasCreationDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasCreationDate() bool { + if o != nil && o.CreationDate.IsSet() { + return true + } + + return false +} + +// SetCreationDate gets a reference to the given NullableTime and assigns it to the CreationDate field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDate(v time.Time) { + o.CreationDate.Set(&v) +} + +// SetCreationDateNil sets the value for CreationDate to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetCreationDateNil() { + o.CreationDate.Set(nil) +} + +// UnsetCreationDate ensures that no value is present for CreationDate, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetCreationDate() { + o.CreationDate.Unset() +} + +// GetStaleDate returns the StaleDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDate() time.Time { + if o == nil || isNil(o.StaleDate.Get()) { + var ret time.Time + return ret + } + return *o.StaleDate.Get() +} + +// GetStaleDateOk returns a tuple with the StaleDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.StaleDate.Get(), o.StaleDate.IsSet() +} + +// HasStaleDate returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasStaleDate() bool { + if o != nil && o.StaleDate.IsSet() { + return true + } + + return false +} + +// SetStaleDate gets a reference to the given NullableTime and assigns it to the StaleDate field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDate(v time.Time) { + o.StaleDate.Set(&v) +} + +// SetStaleDateNil sets the value for StaleDate to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetStaleDateNil() { + o.StaleDate.Set(nil) +} + +// UnsetStaleDate ensures that no value is present for StaleDate, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetStaleDate() { + o.StaleDate.Unset() +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmail() string { + if o == nil || isNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmail(v string) { + o.Email.Set(&v) +} + +// SetEmailNil sets the value for Email to be an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) UnsetEmail() { + o.Email.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetComments() []string { + if o == nil { + var ret []string + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetCommentsOk() ([]string, bool) { + if o == nil || isNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasComments() bool { + if o != nil && isNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []string and assigns it to the Comments field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetComments(v []string) { + o.Comments = v +} + +// GetLogonCount returns the LogonCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCount() int32 { + if o == nil || isNil(o.LogonCount) { + var ret int32 + return ret + } + return *o.LogonCount +} + +// GetLogonCountOk returns a tuple with the LogonCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool) { + if o == nil || isNil(o.LogonCount) { + return nil, false + } + return o.LogonCount, true +} + +// HasLogonCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) HasLogonCount() bool { + if o != nil && !isNil(o.LogonCount) { + return true + } + + return false +} + +// SetLogonCount gets a reference to the given int32 and assigns it to the LogonCount field. +func (o *CSSCMSDataModelModelsSSHKeysKeyResponse) SetLogonCount(v int32) { + o.LogonCount = &v +} + +func (o CSSCMSDataModelModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHKeysKeyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Fingerprint.IsSet() { + toSerialize["Fingerprint"] = o.Fingerprint.Get() + } + if o.PublicKey.IsSet() { + toSerialize["PublicKey"] = o.PublicKey.Get() + } + if o.PrivateKey.IsSet() { + toSerialize["PrivateKey"] = o.PrivateKey.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.CreationDate.IsSet() { + toSerialize["CreationDate"] = o.CreationDate.Get() + } + if o.StaleDate.IsSet() { + toSerialize["StaleDate"] = o.StaleDate.Get() + } + if o.Email.IsSet() { + toSerialize["Email"] = o.Email.Get() + } + if o.Comments != nil { + toSerialize["Comments"] = o.Comments + } + if !isNil(o.LogonCount) { + toSerialize["LogonCount"] = o.LogonCount + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHKeysKeyResponse struct { + value *CSSCMSDataModelModelsSSHKeysKeyResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Get() *CSSCMSDataModelModelsSSHKeysKeyResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Set(val *CSSCMSDataModelModelsSSHKeysKeyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHKeysKeyResponse(val *CSSCMSDataModelModelsSSHKeysKeyResponse) *NullableCSSCMSDataModelModelsSSHKeysKeyResponse { + return &NullableCSSCMSDataModelModelsSSHKeysKeyResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHKeysKeyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_logons_logon_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_logons_logon_response.go new file mode 100644 index 0000000..227ffd3 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_logons_logon_response.go @@ -0,0 +1,338 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the CSSCMSDataModelModelsSSHLogonsLogonResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHLogonsLogonResponse{} + +// CSSCMSDataModelModelsSSHLogonsLogonResponse struct for CSSCMSDataModelModelsSSHLogonsLogonResponse +type CSSCMSDataModelModelsSSHLogonsLogonResponse struct { + Id *int32 `json:"Id,omitempty"` + Username NullableString `json:"Username,omitempty"` + LastLogon NullableTime `json:"LastLogon,omitempty"` + Server *CSSCMSDataModelModelsSSHServersServerResponse `json:"Server,omitempty"` + KeyCount *int32 `json:"KeyCount,omitempty"` + Access []CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Access,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonResponse instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHLogonsLogonResponse() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHLogonsLogonResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHLogonsLogonResponseWithDefaults() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + this := CSSCMSDataModelModelsSSHLogonsLogonResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetId(v int32) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLastLogon returns the LastLogon field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogon() time.Time { + if o == nil || isNil(o.LastLogon.Get()) { + var ret time.Time + return ret + } + return *o.LastLogon.Get() +} + +// GetLastLogonOk returns a tuple with the LastLogon field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogon.Get(), o.LastLogon.IsSet() +} + +// HasLastLogon returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasLastLogon() bool { + if o != nil && o.LastLogon.IsSet() { + return true + } + + return false +} + +// SetLastLogon gets a reference to the given NullableTime and assigns it to the LastLogon field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time) { + o.LastLogon.Set(&v) +} + +// SetLastLogonNil sets the value for LastLogon to be an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetLastLogonNil() { + o.LastLogon.Set(nil) +} + +// UnsetLastLogon ensures that no value is present for LastLogon, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) UnsetLastLogon() { + o.LastLogon.Unset() +} + +// GetServer returns the Server field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServer() CSSCMSDataModelModelsSSHServersServerResponse { + if o == nil || isNil(o.Server) { + var ret CSSCMSDataModelModelsSSHServersServerResponse + return ret + } + return *o.Server +} + +// GetServerOk returns a tuple with the Server field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetServerOk() (*CSSCMSDataModelModelsSSHServersServerResponse, bool) { + if o == nil || isNil(o.Server) { + return nil, false + } + return o.Server, true +} + +// HasServer returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasServer() bool { + if o != nil && !isNil(o.Server) { + return true + } + + return false +} + +// SetServer gets a reference to the given CSSCMSDataModelModelsSSHServersServerResponse and assigns it to the Server field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetServer(v CSSCMSDataModelModelsSSHServersServerResponse) { + o.Server = &v +} + +// GetKeyCount returns the KeyCount field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCount() int32 { + if o == nil || isNil(o.KeyCount) { + var ret int32 + return ret + } + return *o.KeyCount +} + +// GetKeyCountOk returns a tuple with the KeyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool) { + if o == nil || isNil(o.KeyCount) { + return nil, false + } + return o.KeyCount, true +} + +// HasKeyCount returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasKeyCount() bool { + if o != nil && !isNil(o.KeyCount) { + return true + } + + return false +} + +// SetKeyCount gets a reference to the given int32 and assigns it to the KeyCount field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetKeyCount(v int32) { + o.KeyCount = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccess() []CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) GetAccessOk() ([]CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) HasAccess() bool { + if o != nil && isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Access field. +func (o *CSSCMSDataModelModelsSSHLogonsLogonResponse) SetAccess(v []CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Access = v +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHLogonsLogonResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.LastLogon.IsSet() { + toSerialize["LastLogon"] = o.LastLogon.Get() + } + if !isNil(o.Server) { + toSerialize["Server"] = o.Server + } + if !isNil(o.KeyCount) { + toSerialize["KeyCount"] = o.KeyCount + } + if o.Access != nil { + toSerialize["Access"] = o.Access + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHLogonsLogonResponse struct { + value *CSSCMSDataModelModelsSSHLogonsLogonResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Get() *CSSCMSDataModelModelsSSHLogonsLogonResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Set(val *CSSCMSDataModelModelsSSHLogonsLogonResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHLogonsLogonResponse(val *CSSCMSDataModelModelsSSHLogonsLogonResponse) *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse { + return &NullableCSSCMSDataModelModelsSSHLogonsLogonResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHLogonsLogonResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_servers_server_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_servers_server_response.go new file mode 100644 index 0000000..8197be8 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_servers_server_response.go @@ -0,0 +1,535 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHServersServerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHServersServerResponse{} + +// CSSCMSDataModelModelsSSHServersServerResponse struct for CSSCMSDataModelModelsSSHServersServerResponse +type CSSCMSDataModelModelsSSHServersServerResponse struct { + Id NullableInt32 `json:"Id,omitempty"` + AgentId NullableString `json:"AgentId,omitempty"` + Hostname NullableString `json:"Hostname,omitempty"` + ServerGroupId NullableString `json:"ServerGroupId,omitempty"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + Owner *CSSCMSDataModelModelsSSHUsersSshUserResponse `json:"Owner,omitempty"` + GroupName NullableString `json:"GroupName,omitempty"` + Orchestrator NullableString `json:"Orchestrator,omitempty"` + Port NullableInt32 `json:"Port,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHServersServerResponse instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHServersServerResponse() *CSSCMSDataModelModelsSSHServersServerResponse { + this := CSSCMSDataModelModelsSSHServersServerResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHServersServerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHServersServerResponseWithDefaults() *CSSCMSDataModelModelsSSHServersServerResponse { + this := CSSCMSDataModelModelsSSHServersServerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetId() int32 { + if o == nil || isNil(o.Id.Get()) { + var ret int32 + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableInt32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetId(v int32) { + o.Id.Set(&v) +} + +// SetIdNil sets the value for Id to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetId() { + o.Id.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentId(v string) { + o.AgentId.Set(&v) +} + +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetHostname returns the Hostname field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostname() string { + if o == nil || isNil(o.Hostname.Get()) { + var ret string + return ret + } + return *o.Hostname.Get() +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Hostname.Get(), o.Hostname.IsSet() +} + +// HasHostname returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasHostname() bool { + if o != nil && o.Hostname.IsSet() { + return true + } + + return false +} + +// SetHostname gets a reference to the given NullableString and assigns it to the Hostname field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostname(v string) { + o.Hostname.Set(&v) +} + +// SetHostnameNil sets the value for Hostname to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetHostnameNil() { + o.Hostname.Set(nil) +} + +// UnsetHostname ensures that no value is present for Hostname, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetHostname() { + o.Hostname.Unset() +} + +// GetServerGroupId returns the ServerGroupId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupId() string { + if o == nil || isNil(o.ServerGroupId.Get()) { + var ret string + return ret + } + return *o.ServerGroupId.Get() +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ServerGroupId.Get(), o.ServerGroupId.IsSet() +} + +// HasServerGroupId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasServerGroupId() bool { + if o != nil && o.ServerGroupId.IsSet() { + return true + } + + return false +} + +// SetServerGroupId gets a reference to the given NullableString and assigns it to the ServerGroupId field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupId(v string) { + o.ServerGroupId.Set(&v) +} + +// SetServerGroupIdNil sets the value for ServerGroupId to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetServerGroupIdNil() { + o.ServerGroupId.Set(nil) +} + +// UnsetServerGroupId ensures that no value is present for ServerGroupId, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetServerGroupId() { + o.ServerGroupId.Unset() +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwner() CSSCMSDataModelModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Owner) { + var ret CSSCMSDataModelModelsSSHUsersSshUserResponse + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOwnerOk() (*CSSCMSDataModelModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given CSSCMSDataModelModelsSSHUsersSshUserResponse and assigns it to the Owner field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOwner(v CSSCMSDataModelModelsSSHUsersSshUserResponse) { + o.Owner = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName.Get()) { + var ret string + return ret + } + return *o.GroupName.Get() +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.GroupName.Get(), o.GroupName.IsSet() +} + +// HasGroupName returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasGroupName() bool { + if o != nil && o.GroupName.IsSet() { + return true + } + + return false +} + +// SetGroupName gets a reference to the given NullableString and assigns it to the GroupName field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupName(v string) { + o.GroupName.Set(&v) +} + +// SetGroupNameNil sets the value for GroupName to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetGroupNameNil() { + o.GroupName.Set(nil) +} + +// UnsetGroupName ensures that no value is present for GroupName, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetGroupName() { + o.GroupName.Unset() +} + +// GetOrchestrator returns the Orchestrator field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestrator() string { + if o == nil || isNil(o.Orchestrator.Get()) { + var ret string + return ret + } + return *o.Orchestrator.Get() +} + +// GetOrchestratorOk returns a tuple with the Orchestrator field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Orchestrator.Get(), o.Orchestrator.IsSet() +} + +// HasOrchestrator returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasOrchestrator() bool { + if o != nil && o.Orchestrator.IsSet() { + return true + } + + return false +} + +// SetOrchestrator gets a reference to the given NullableString and assigns it to the Orchestrator field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestrator(v string) { + o.Orchestrator.Set(&v) +} + +// SetOrchestratorNil sets the value for Orchestrator to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetOrchestratorNil() { + o.Orchestrator.Set(nil) +} + +// UnsetOrchestrator ensures that no value is present for Orchestrator, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetOrchestrator() { + o.Orchestrator.Unset() +} + +// GetPort returns the Port field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPort() int32 { + if o == nil || isNil(o.Port.Get()) { + var ret int32 + return ret + } + return *o.Port.Get() +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHServersServerResponse) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Port.Get(), o.Port.IsSet() +} + +// HasPort returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) HasPort() bool { + if o != nil && o.Port.IsSet() { + return true + } + + return false +} + +// SetPort gets a reference to the given NullableInt32 and assigns it to the Port field. +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPort(v int32) { + o.Port.Set(&v) +} + +// SetPortNil sets the value for Port to be an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) SetPortNil() { + o.Port.Set(nil) +} + +// UnsetPort ensures that no value is present for Port, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHServersServerResponse) UnsetPort() { + o.Port.Unset() +} + +func (o CSSCMSDataModelModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHServersServerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["Id"] = o.Id.Get() + } + if o.AgentId.IsSet() { + toSerialize["AgentId"] = o.AgentId.Get() + } + if o.Hostname.IsSet() { + toSerialize["Hostname"] = o.Hostname.Get() + } + if o.ServerGroupId.IsSet() { + toSerialize["ServerGroupId"] = o.ServerGroupId.Get() + } + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.Owner) { + toSerialize["Owner"] = o.Owner + } + if o.GroupName.IsSet() { + toSerialize["GroupName"] = o.GroupName.Get() + } + if o.Orchestrator.IsSet() { + toSerialize["Orchestrator"] = o.Orchestrator.Get() + } + if o.Port.IsSet() { + toSerialize["Port"] = o.Port.Get() + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHServersServerResponse struct { + value *CSSCMSDataModelModelsSSHServersServerResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) Get() *CSSCMSDataModelModelsSSHServersServerResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) Set(val *CSSCMSDataModelModelsSSHServersServerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHServersServerResponse(val *CSSCMSDataModelModelsSSHServersServerResponse) *NullableCSSCMSDataModelModelsSSHServersServerResponse { + return &NullableCSSCMSDataModelModelsSSHServersServerResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHServersServerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go new file mode 100644 index 0000000..aea8556 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_access_response.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + +// CSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct for CSSCMSDataModelModelsSSHUsersSshUserAccessResponse +type CSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *CSSCMSDataModelModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username NullableString `json:"Username,omitempty"` + Access []CSSCMSDataModelModelsSSHLogonsLogonResponse `json:"Access,omitempty"` + IsGroup *bool `json:"IsGroup,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponse() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserAccessResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret CSSCMSDataModelModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given CSSCMSDataModelModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetAccess returns the Access field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccess() []CSSCMSDataModelModelsSSHLogonsLogonResponse { + if o == nil { + var ret []CSSCMSDataModelModelsSSHLogonsLogonResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetAccessOk() ([]CSSCMSDataModelModelsSSHLogonsLogonResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasAccess() bool { + if o != nil && isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []CSSCMSDataModelModelsSSHLogonsLogonResponse and assigns it to the Access field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetAccess(v []CSSCMSDataModelModelsSSHLogonsLogonResponse) { + o.Access = v +} + +// GetIsGroup returns the IsGroup field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool { + if o == nil || isNil(o.IsGroup) { + var ret bool + return ret + } + return *o.IsGroup +} + +// GetIsGroupOk returns a tuple with the IsGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool) { + if o == nil || isNil(o.IsGroup) { + return nil, false + } + return o.IsGroup, true +} + +// HasIsGroup returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool { + if o != nil && !isNil(o.IsGroup) { + return true + } + + return false +} + +// SetIsGroup gets a reference to the given bool and assigns it to the IsGroup field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool) { + o.IsGroup = &v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.Access != nil { + toSerialize["Access"] = o.Access + } + if !isNil(o.IsGroup) { + toSerialize["IsGroup"] = o.IsGroup + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse struct { + value *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Get() *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Set(val *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse(val *CSSCMSDataModelModelsSSHUsersSshUserAccessResponse) *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_response.go b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_response.go new file mode 100644 index 0000000..7827f40 --- /dev/null +++ b/v24/api/keyfactor/v2/model_css_cms_data_model_models_ssh_users_ssh_user_response.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the CSSCMSDataModelModelsSSHUsersSshUserResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CSSCMSDataModelModelsSSHUsersSshUserResponse{} + +// CSSCMSDataModelModelsSSHUsersSshUserResponse struct for CSSCMSDataModelModelsSSHUsersSshUserResponse +type CSSCMSDataModelModelsSSHUsersSshUserResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *CSSCMSDataModelModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username NullableString `json:"Username,omitempty"` + LogonIds []int32 `json:"LogonIds,omitempty"` +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserResponse instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCSSCMSDataModelModelsSSHUsersSshUserResponse() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserResponse{} + return &this +} + +// NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults instantiates a new CSSCMSDataModelModelsSSHUsersSshUserResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCSSCMSDataModelModelsSSHUsersSshUserResponseWithDefaults() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + this := CSSCMSDataModelModelsSSHUsersSshUserResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKey() CSSCMSDataModelModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret CSSCMSDataModelModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetKeyOk() (*CSSCMSDataModelModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given CSSCMSDataModelModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetKey(v CSSCMSDataModelModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsername() string { + if o == nil || isNil(o.Username.Get()) { + var ret string + return ret + } + return *o.Username.Get() +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Username.Get(), o.Username.IsSet() +} + +// HasUsername returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasUsername() bool { + if o != nil && o.Username.IsSet() { + return true + } + + return false +} + +// SetUsername gets a reference to the given NullableString and assigns it to the Username field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsername(v string) { + o.Username.Set(&v) +} + +// SetUsernameNil sets the value for Username to be an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetUsernameNil() { + o.Username.Set(nil) +} + +// UnsetUsername ensures that no value is present for Username, not even an explicit nil +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) UnsetUsername() { + o.Username.Unset() +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIds() []int32 { + if o == nil { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) HasLogonIds() bool { + if o != nil && isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *CSSCMSDataModelModelsSSHUsersSshUserResponse) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CSSCMSDataModelModelsSSHUsersSshUserResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if o.Username.IsSet() { + toSerialize["Username"] = o.Username.Get() + } + if o.LogonIds != nil { + toSerialize["LogonIds"] = o.LogonIds + } + return toSerialize, nil +} + +type NullableCSSCMSDataModelModelsSSHUsersSshUserResponse struct { + value *CSSCMSDataModelModelsSSHUsersSshUserResponse + isSet bool +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Get() *CSSCMSDataModelModelsSSHUsersSshUserResponse { + return v.value +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Set(val *CSSCMSDataModelModelsSSHUsersSshUserResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCSSCMSDataModelModelsSSHUsersSshUserResponse(val *CSSCMSDataModelModelsSSHUsersSshUserResponse) *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse { + return &NullableCSSCMSDataModelModelsSSHUsersSshUserResponse{value: val, isSet: true} +} + +func (v NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCSSCMSDataModelModelsSSHUsersSshUserResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_enrollment_management_store_request.go b/v24/api/keyfactor/v2/model_enrollment_management_store_request.go new file mode 100644 index 0000000..9a695c0 --- /dev/null +++ b/v24/api/keyfactor/v2/model_enrollment_management_store_request.go @@ -0,0 +1,254 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the EnrollmentManagementStoreRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentManagementStoreRequest{} + +// EnrollmentManagementStoreRequest struct for EnrollmentManagementStoreRequest +type EnrollmentManagementStoreRequest struct { + StoreId *string `json:"StoreId,omitempty"` + Alias NullableString `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties map[string]interface{} `json:"Properties,omitempty"` +} + +// NewEnrollmentManagementStoreRequest instantiates a new EnrollmentManagementStoreRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentManagementStoreRequest() *EnrollmentManagementStoreRequest { + this := EnrollmentManagementStoreRequest{} + return &this +} + +// NewEnrollmentManagementStoreRequestWithDefaults instantiates a new EnrollmentManagementStoreRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentManagementStoreRequestWithDefaults() *EnrollmentManagementStoreRequest { + this := EnrollmentManagementStoreRequest{} + return &this +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreRequest) GetStoreId() string { + if o == nil || isNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool) { + if o == nil || isNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasStoreId() bool { + if o != nil && !isNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *EnrollmentManagementStoreRequest) SetStoreId(v string) { + o.StoreId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreRequest) GetAlias() string { + if o == nil || isNil(o.Alias.Get()) { + var ret string + return ret + } + return *o.Alias.Get() +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreRequest) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Alias.Get(), o.Alias.IsSet() +} + +// HasAlias returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasAlias() bool { + if o != nil && o.Alias.IsSet() { + return true + } + + return false +} + +// SetAlias gets a reference to the given NullableString and assigns it to the Alias field. +func (o *EnrollmentManagementStoreRequest) SetAlias(v string) { + o.Alias.Set(&v) +} + +// SetAliasNil sets the value for Alias to be an explicit nil +func (o *EnrollmentManagementStoreRequest) SetAliasNil() { + o.Alias.Set(nil) +} + +// UnsetAlias ensures that no value is present for Alias, not even an explicit nil +func (o *EnrollmentManagementStoreRequest) UnsetAlias() { + o.Alias.Unset() +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *EnrollmentManagementStoreRequest) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *EnrollmentManagementStoreRequest) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentManagementStoreRequest) GetProperties() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentManagementStoreRequest) GetPropertiesOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return map[string]interface{}{}, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *EnrollmentManagementStoreRequest) HasProperties() bool { + if o != nil && isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]interface{} and assigns it to the Properties field. +func (o *EnrollmentManagementStoreRequest) SetProperties(v map[string]interface{}) { + o.Properties = v +} + +func (o EnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentManagementStoreRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreId) { + toSerialize["StoreId"] = o.StoreId + } + if o.Alias.IsSet() { + toSerialize["Alias"] = o.Alias.Get() + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if o.Properties != nil { + toSerialize["Properties"] = o.Properties + } + return toSerialize, nil +} + +type NullableEnrollmentManagementStoreRequest struct { + value *EnrollmentManagementStoreRequest + isSet bool +} + +func (v NullableEnrollmentManagementStoreRequest) Get() *EnrollmentManagementStoreRequest { + return v.value +} + +func (v *NullableEnrollmentManagementStoreRequest) Set(val *EnrollmentManagementStoreRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentManagementStoreRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentManagementStoreRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentManagementStoreRequest(val *EnrollmentManagementStoreRequest) *NullableEnrollmentManagementStoreRequest { + return &NullableEnrollmentManagementStoreRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentManagementStoreRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_management_response.go b/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_management_response.go new file mode 100644 index 0000000..b2434e9 --- /dev/null +++ b/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_management_response.go @@ -0,0 +1,208 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the EnrollmentPFXEnrollmentManagementResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentPFXEnrollmentManagementResponse{} + +// EnrollmentPFXEnrollmentManagementResponse struct for EnrollmentPFXEnrollmentManagementResponse +type EnrollmentPFXEnrollmentManagementResponse struct { + SuccessfulStores []string `json:"SuccessfulStores,omitempty"` + CertificateInformation *CSSCMSDataModelModelsPkcs12CertificateResponse `json:"CertificateInformation,omitempty"` + Metadata map[string]string `json:"Metadata,omitempty"` +} + +// NewEnrollmentPFXEnrollmentManagementResponse instantiates a new EnrollmentPFXEnrollmentManagementResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentPFXEnrollmentManagementResponse() *EnrollmentPFXEnrollmentManagementResponse { + this := EnrollmentPFXEnrollmentManagementResponse{} + return &this +} + +// NewEnrollmentPFXEnrollmentManagementResponseWithDefaults instantiates a new EnrollmentPFXEnrollmentManagementResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentPFXEnrollmentManagementResponseWithDefaults() *EnrollmentPFXEnrollmentManagementResponse { + this := EnrollmentPFXEnrollmentManagementResponse{} + return &this +} + +// GetSuccessfulStores returns the SuccessfulStores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentManagementResponse) GetSuccessfulStores() []string { + if o == nil { + var ret []string + return ret + } + return o.SuccessfulStores +} + +// GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentManagementResponse) GetSuccessfulStoresOk() ([]string, bool) { + if o == nil || isNil(o.SuccessfulStores) { + return nil, false + } + return o.SuccessfulStores, true +} + +// HasSuccessfulStores returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentManagementResponse) HasSuccessfulStores() bool { + if o != nil && isNil(o.SuccessfulStores) { + return true + } + + return false +} + +// SetSuccessfulStores gets a reference to the given []string and assigns it to the SuccessfulStores field. +func (o *EnrollmentPFXEnrollmentManagementResponse) SetSuccessfulStores(v []string) { + o.SuccessfulStores = v +} + +// GetCertificateInformation returns the CertificateInformation field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentManagementResponse) GetCertificateInformation() CSSCMSDataModelModelsPkcs12CertificateResponse { + if o == nil || isNil(o.CertificateInformation) { + var ret CSSCMSDataModelModelsPkcs12CertificateResponse + return ret + } + return *o.CertificateInformation +} + +// GetCertificateInformationOk returns a tuple with the CertificateInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentManagementResponse) GetCertificateInformationOk() (*CSSCMSDataModelModelsPkcs12CertificateResponse, bool) { + if o == nil || isNil(o.CertificateInformation) { + return nil, false + } + return o.CertificateInformation, true +} + +// HasCertificateInformation returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentManagementResponse) HasCertificateInformation() bool { + if o != nil && !isNil(o.CertificateInformation) { + return true + } + + return false +} + +// SetCertificateInformation gets a reference to the given CSSCMSDataModelModelsPkcs12CertificateResponse and assigns it to the CertificateInformation field. +func (o *EnrollmentPFXEnrollmentManagementResponse) SetCertificateInformation(v CSSCMSDataModelModelsPkcs12CertificateResponse) { + o.CertificateInformation = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentManagementResponse) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentManagementResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentManagementResponse) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *EnrollmentPFXEnrollmentManagementResponse) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o EnrollmentPFXEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentPFXEnrollmentManagementResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SuccessfulStores != nil { + toSerialize["SuccessfulStores"] = o.SuccessfulStores + } + if !isNil(o.CertificateInformation) { + toSerialize["CertificateInformation"] = o.CertificateInformation + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableEnrollmentPFXEnrollmentManagementResponse struct { + value *EnrollmentPFXEnrollmentManagementResponse + isSet bool +} + +func (v NullableEnrollmentPFXEnrollmentManagementResponse) Get() *EnrollmentPFXEnrollmentManagementResponse { + return v.value +} + +func (v *NullableEnrollmentPFXEnrollmentManagementResponse) Set(val *EnrollmentPFXEnrollmentManagementResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentPFXEnrollmentManagementResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentPFXEnrollmentManagementResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentPFXEnrollmentManagementResponse(val *EnrollmentPFXEnrollmentManagementResponse) *NullableEnrollmentPFXEnrollmentManagementResponse { + return &NullableEnrollmentPFXEnrollmentManagementResponse{value: val, isSet: true} +} + +func (v NullableEnrollmentPFXEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentPFXEnrollmentManagementResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_with_stores_request.go b/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_with_stores_request.go new file mode 100644 index 0000000..08be11d --- /dev/null +++ b/v24/api/keyfactor/v2/model_enrollment_pfx_enrollment_with_stores_request.go @@ -0,0 +1,1105 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the EnrollmentPFXEnrollmentWithStoresRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnrollmentPFXEnrollmentWithStoresRequest{} + +// EnrollmentPFXEnrollmentWithStoresRequest struct for EnrollmentPFXEnrollmentWithStoresRequest +type EnrollmentPFXEnrollmentWithStoresRequest struct { + // A list of certificate stores a successfully issued PKCS12 should be installed into. + Stores []EnrollmentManagementStoreRequest `json:"Stores,omitempty"` + // The Friendly name of the issued certificate + CustomFriendlyName NullableString `json:"CustomFriendlyName,omitempty"` + // The custom password for the resulting Private key + Password NullableString `json:"Password,omitempty"` + // The certificte's subject + Subject NullableString `json:"Subject,omitempty"` + // An option to include the certificate chain in the response + IncludeChain *bool `json:"IncludeChain,omitempty"` + // An option to remove the subject header comment in pem file + IncludeSubjectHeader *bool `json:"IncludeSubjectHeader,omitempty"` + // An optional Id of a certificate being renewed + RenewalCertificateId NullableInt32 `json:"RenewalCertificateId,omitempty"` + // The Certifcate Authority configuration in the format hostname\\logicalname + CertificateAuthority NullableString `json:"CertificateAuthority,omitempty"` + // The metadata to be assigned to the certificate after issuance + Metadata map[string]interface{} `json:"Metadata,omitempty"` + // Any Additional Enrollment Fields to be included in the request + AdditionalEnrollmentFields map[string]interface{} `json:"AdditionalEnrollmentFields,omitempty"` + // A timestamp to help ensure a legitimate request + Timestamp *time.Time `json:"Timestamp,omitempty"` + // The template for the certificate + Template NullableString `json:"Template,omitempty"` + // Any Subject Alternative Names to be included in the request + SANs map[string][]string `json:"SANs,omitempty"` + // Allows the new certificate to be installed into all certificate stores the renewed certificate is currently installed into. + InstallIntoExistingCertificateStores *bool `json:"InstallIntoExistingCertificateStores,omitempty"` + // The time any management jobs should be scheduled. + JobTime NullableTime `json:"JobTime,omitempty"` + // The order of the certificates in the certificate chain + ChainOrder NullableString `json:"ChainOrder,omitempty"` + UseLegacyEncryption NullableBool `json:"UseLegacyEncryption,omitempty"` + // Certificate key type [RSA, ECC] + KeyType NullableString `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + // The curve being used that will be sent in when the Key Algorithm is of type ECC + Curve NullableString `json:"Curve,omitempty"` + // Optionally pass a microsoft cryptographic service provider to the generated certificate + MicrosoftTargetCSP NullableString `json:"MicrosoftTargetCSP,omitempty"` + // Id or name of the security role that will have ownership of the generated certificate + OwnerRoleId NullableInt32 `json:"OwnerRoleId,omitempty"` + OwnerRoleName NullableString `json:"OwnerRoleName,omitempty"` +} + +// NewEnrollmentPFXEnrollmentWithStoresRequest instantiates a new EnrollmentPFXEnrollmentWithStoresRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEnrollmentPFXEnrollmentWithStoresRequest() *EnrollmentPFXEnrollmentWithStoresRequest { + this := EnrollmentPFXEnrollmentWithStoresRequest{} + return &this +} + +// NewEnrollmentPFXEnrollmentWithStoresRequestWithDefaults instantiates a new EnrollmentPFXEnrollmentWithStoresRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEnrollmentPFXEnrollmentWithStoresRequestWithDefaults() *EnrollmentPFXEnrollmentWithStoresRequest { + this := EnrollmentPFXEnrollmentWithStoresRequest{} + return &this +} + +// GetStores returns the Stores field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetStores() []EnrollmentManagementStoreRequest { + if o == nil { + var ret []EnrollmentManagementStoreRequest + return ret + } + return o.Stores +} + +// GetStoresOk returns a tuple with the Stores field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetStoresOk() ([]EnrollmentManagementStoreRequest, bool) { + if o == nil || isNil(o.Stores) { + return nil, false + } + return o.Stores, true +} + +// HasStores returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasStores() bool { + if o != nil && isNil(o.Stores) { + return true + } + + return false +} + +// SetStores gets a reference to the given []EnrollmentManagementStoreRequest and assigns it to the Stores field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetStores(v []EnrollmentManagementStoreRequest) { + o.Stores = v +} + +// GetCustomFriendlyName returns the CustomFriendlyName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCustomFriendlyName() string { + if o == nil || isNil(o.CustomFriendlyName.Get()) { + var ret string + return ret + } + return *o.CustomFriendlyName.Get() +} + +// GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCustomFriendlyNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CustomFriendlyName.Get(), o.CustomFriendlyName.IsSet() +} + +// HasCustomFriendlyName returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCustomFriendlyName() bool { + if o != nil && o.CustomFriendlyName.IsSet() { + return true + } + + return false +} + +// SetCustomFriendlyName gets a reference to the given NullableString and assigns it to the CustomFriendlyName field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCustomFriendlyName(v string) { + o.CustomFriendlyName.Set(&v) +} + +// SetCustomFriendlyNameNil sets the value for CustomFriendlyName to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCustomFriendlyNameNil() { + o.CustomFriendlyName.Set(nil) +} + +// UnsetCustomFriendlyName ensures that no value is present for CustomFriendlyName, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCustomFriendlyName() { + o.CustomFriendlyName.Unset() +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetPassword() string { + if o == nil || isNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetPassword(v string) { + o.Password.Set(&v) +} + +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetPassword() { + o.Password.Unset() +} + +// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSubject() string { + if o == nil || isNil(o.Subject.Get()) { + var ret string + return ret + } + return *o.Subject.Get() +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Subject.Get(), o.Subject.IsSet() +} + +// HasSubject returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasSubject() bool { + if o != nil && o.Subject.IsSet() { + return true + } + + return false +} + +// SetSubject gets a reference to the given NullableString and assigns it to the Subject field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSubject(v string) { + o.Subject.Set(&v) +} + +// SetSubjectNil sets the value for Subject to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSubjectNil() { + o.Subject.Set(nil) +} + +// UnsetSubject ensures that no value is present for Subject, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetSubject() { + o.Subject.Unset() +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetIncludeSubjectHeader returns the IncludeSubjectHeader field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeSubjectHeader() bool { + if o == nil || isNil(o.IncludeSubjectHeader) { + var ret bool + return ret + } + return *o.IncludeSubjectHeader +} + +// GetIncludeSubjectHeaderOk returns a tuple with the IncludeSubjectHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetIncludeSubjectHeaderOk() (*bool, bool) { + if o == nil || isNil(o.IncludeSubjectHeader) { + return nil, false + } + return o.IncludeSubjectHeader, true +} + +// HasIncludeSubjectHeader returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasIncludeSubjectHeader() bool { + if o != nil && !isNil(o.IncludeSubjectHeader) { + return true + } + + return false +} + +// SetIncludeSubjectHeader gets a reference to the given bool and assigns it to the IncludeSubjectHeader field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetIncludeSubjectHeader(v bool) { + o.IncludeSubjectHeader = &v +} + +// GetRenewalCertificateId returns the RenewalCertificateId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetRenewalCertificateId() int32 { + if o == nil || isNil(o.RenewalCertificateId.Get()) { + var ret int32 + return ret + } + return *o.RenewalCertificateId.Get() +} + +// GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetRenewalCertificateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RenewalCertificateId.Get(), o.RenewalCertificateId.IsSet() +} + +// HasRenewalCertificateId returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasRenewalCertificateId() bool { + if o != nil && o.RenewalCertificateId.IsSet() { + return true + } + + return false +} + +// SetRenewalCertificateId gets a reference to the given NullableInt32 and assigns it to the RenewalCertificateId field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetRenewalCertificateId(v int32) { + o.RenewalCertificateId.Set(&v) +} + +// SetRenewalCertificateIdNil sets the value for RenewalCertificateId to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetRenewalCertificateIdNil() { + o.RenewalCertificateId.Set(nil) +} + +// UnsetRenewalCertificateId ensures that no value is present for RenewalCertificateId, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetRenewalCertificateId() { + o.RenewalCertificateId.Unset() +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority.Get()) { + var ret string + return ret + } + return *o.CertificateAuthority.Get() +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CertificateAuthority.Get(), o.CertificateAuthority.IsSet() +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCertificateAuthority() bool { + if o != nil && o.CertificateAuthority.IsSet() { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given NullableString and assigns it to the CertificateAuthority field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority.Set(&v) +} + +// SetCertificateAuthorityNil sets the value for CertificateAuthority to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCertificateAuthorityNil() { + o.CertificateAuthority.Set(nil) +} + +// UnsetCertificateAuthority ensures that no value is present for CertificateAuthority, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCertificateAuthority() { + o.CertificateAuthority.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMetadata() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasMetadata() bool { + if o != nil && isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetAdditionalEnrollmentFields() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.AdditionalEnrollmentFields +} + +// GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetAdditionalEnrollmentFieldsOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + return map[string]interface{}{}, false + } + return o.AdditionalEnrollmentFields, true +} + +// HasAdditionalEnrollmentFields returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasAdditionalEnrollmentFields() bool { + if o != nil && isNil(o.AdditionalEnrollmentFields) { + return true + } + + return false +} + +// SetAdditionalEnrollmentFields gets a reference to the given map[string]interface{} and assigns it to the AdditionalEnrollmentFields field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetAdditionalEnrollmentFields(v map[string]interface{}) { + o.AdditionalEnrollmentFields = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTemplate() string { + if o == nil || isNil(o.Template.Get()) { + var ret string + return ret + } + return *o.Template.Get() +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Template.Get(), o.Template.IsSet() +} + +// HasTemplate returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasTemplate() bool { + if o != nil && o.Template.IsSet() { + return true + } + + return false +} + +// SetTemplate gets a reference to the given NullableString and assigns it to the Template field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTemplate(v string) { + o.Template.Set(&v) +} + +// SetTemplateNil sets the value for Template to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetTemplateNil() { + o.Template.Set(nil) +} + +// UnsetTemplate ensures that no value is present for Template, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetTemplate() { + o.Template.Unset() +} + +// GetSANs returns the SANs field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSANs() map[string][]string { + if o == nil { + var ret map[string][]string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return &o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasSANs() bool { + if o != nil && isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetSANs(v map[string][]string) { + o.SANs = v +} + +// GetInstallIntoExistingCertificateStores returns the InstallIntoExistingCertificateStores field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetInstallIntoExistingCertificateStores() bool { + if o == nil || isNil(o.InstallIntoExistingCertificateStores) { + var ret bool + return ret + } + return *o.InstallIntoExistingCertificateStores +} + +// GetInstallIntoExistingCertificateStoresOk returns a tuple with the InstallIntoExistingCertificateStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetInstallIntoExistingCertificateStoresOk() (*bool, bool) { + if o == nil || isNil(o.InstallIntoExistingCertificateStores) { + return nil, false + } + return o.InstallIntoExistingCertificateStores, true +} + +// HasInstallIntoExistingCertificateStores returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasInstallIntoExistingCertificateStores() bool { + if o != nil && !isNil(o.InstallIntoExistingCertificateStores) { + return true + } + + return false +} + +// SetInstallIntoExistingCertificateStores gets a reference to the given bool and assigns it to the InstallIntoExistingCertificateStores field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetInstallIntoExistingCertificateStores(v bool) { + o.InstallIntoExistingCertificateStores = &v +} + +// GetJobTime returns the JobTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetJobTime() time.Time { + if o == nil || isNil(o.JobTime.Get()) { + var ret time.Time + return ret + } + return *o.JobTime.Get() +} + +// GetJobTimeOk returns a tuple with the JobTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetJobTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.JobTime.Get(), o.JobTime.IsSet() +} + +// HasJobTime returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasJobTime() bool { + if o != nil && o.JobTime.IsSet() { + return true + } + + return false +} + +// SetJobTime gets a reference to the given NullableTime and assigns it to the JobTime field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetJobTime(v time.Time) { + o.JobTime.Set(&v) +} + +// SetJobTimeNil sets the value for JobTime to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetJobTimeNil() { + o.JobTime.Set(nil) +} + +// UnsetJobTime ensures that no value is present for JobTime, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetJobTime() { + o.JobTime.Unset() +} + +// GetChainOrder returns the ChainOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetChainOrder() string { + if o == nil || isNil(o.ChainOrder.Get()) { + var ret string + return ret + } + return *o.ChainOrder.Get() +} + +// GetChainOrderOk returns a tuple with the ChainOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetChainOrderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ChainOrder.Get(), o.ChainOrder.IsSet() +} + +// HasChainOrder returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasChainOrder() bool { + if o != nil && o.ChainOrder.IsSet() { + return true + } + + return false +} + +// SetChainOrder gets a reference to the given NullableString and assigns it to the ChainOrder field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetChainOrder(v string) { + o.ChainOrder.Set(&v) +} + +// SetChainOrderNil sets the value for ChainOrder to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetChainOrderNil() { + o.ChainOrder.Set(nil) +} + +// UnsetChainOrder ensures that no value is present for ChainOrder, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetChainOrder() { + o.ChainOrder.Unset() +} + +// GetUseLegacyEncryption returns the UseLegacyEncryption field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetUseLegacyEncryption() bool { + if o == nil || isNil(o.UseLegacyEncryption.Get()) { + var ret bool + return ret + } + return *o.UseLegacyEncryption.Get() +} + +// GetUseLegacyEncryptionOk returns a tuple with the UseLegacyEncryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetUseLegacyEncryptionOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.UseLegacyEncryption.Get(), o.UseLegacyEncryption.IsSet() +} + +// HasUseLegacyEncryption returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasUseLegacyEncryption() bool { + if o != nil && o.UseLegacyEncryption.IsSet() { + return true + } + + return false +} + +// SetUseLegacyEncryption gets a reference to the given NullableBool and assigns it to the UseLegacyEncryption field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetUseLegacyEncryption(v bool) { + o.UseLegacyEncryption.Set(&v) +} + +// SetUseLegacyEncryptionNil sets the value for UseLegacyEncryption to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetUseLegacyEncryptionNil() { + o.UseLegacyEncryption.Set(nil) +} + +// UnsetUseLegacyEncryption ensures that no value is present for UseLegacyEncryption, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetUseLegacyEncryption() { + o.UseLegacyEncryption.Unset() +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyType() string { + if o == nil || isNil(o.KeyType.Get()) { + var ret string + return ret + } + return *o.KeyType.Get() +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.KeyType.Get(), o.KeyType.IsSet() +} + +// HasKeyType returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasKeyType() bool { + if o != nil && o.KeyType.IsSet() { + return true + } + + return false +} + +// SetKeyType gets a reference to the given NullableString and assigns it to the KeyType field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyType(v string) { + o.KeyType.Set(&v) +} + +// SetKeyTypeNil sets the value for KeyType to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyTypeNil() { + o.KeyType.Set(nil) +} + +// UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetKeyType() { + o.KeyType.Unset() +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetCurve() { + o.Curve.Unset() +} + +// GetMicrosoftTargetCSP returns the MicrosoftTargetCSP field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMicrosoftTargetCSP() string { + if o == nil || isNil(o.MicrosoftTargetCSP.Get()) { + var ret string + return ret + } + return *o.MicrosoftTargetCSP.Get() +} + +// GetMicrosoftTargetCSPOk returns a tuple with the MicrosoftTargetCSP field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetMicrosoftTargetCSPOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MicrosoftTargetCSP.Get(), o.MicrosoftTargetCSP.IsSet() +} + +// HasMicrosoftTargetCSP returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasMicrosoftTargetCSP() bool { + if o != nil && o.MicrosoftTargetCSP.IsSet() { + return true + } + + return false +} + +// SetMicrosoftTargetCSP gets a reference to the given NullableString and assigns it to the MicrosoftTargetCSP field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMicrosoftTargetCSP(v string) { + o.MicrosoftTargetCSP.Set(&v) +} + +// SetMicrosoftTargetCSPNil sets the value for MicrosoftTargetCSP to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetMicrosoftTargetCSPNil() { + o.MicrosoftTargetCSP.Set(nil) +} + +// UnsetMicrosoftTargetCSP ensures that no value is present for MicrosoftTargetCSP, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetMicrosoftTargetCSP() { + o.MicrosoftTargetCSP.Unset() +} + +// GetOwnerRoleId returns the OwnerRoleId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleId() int32 { + if o == nil || isNil(o.OwnerRoleId.Get()) { + var ret int32 + return ret + } + return *o.OwnerRoleId.Get() +} + +// GetOwnerRoleIdOk returns a tuple with the OwnerRoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleId.Get(), o.OwnerRoleId.IsSet() +} + +// HasOwnerRoleId returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasOwnerRoleId() bool { + if o != nil && o.OwnerRoleId.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleId gets a reference to the given NullableInt32 and assigns it to the OwnerRoleId field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleId(v int32) { + o.OwnerRoleId.Set(&v) +} + +// SetOwnerRoleIdNil sets the value for OwnerRoleId to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleIdNil() { + o.OwnerRoleId.Set(nil) +} + +// UnsetOwnerRoleId ensures that no value is present for OwnerRoleId, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetOwnerRoleId() { + o.OwnerRoleId.Unset() +} + +// GetOwnerRoleName returns the OwnerRoleName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleName() string { + if o == nil || isNil(o.OwnerRoleName.Get()) { + var ret string + return ret + } + return *o.OwnerRoleName.Get() +} + +// GetOwnerRoleNameOk returns a tuple with the OwnerRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EnrollmentPFXEnrollmentWithStoresRequest) GetOwnerRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OwnerRoleName.Get(), o.OwnerRoleName.IsSet() +} + +// HasOwnerRoleName returns a boolean if a field has been set. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) HasOwnerRoleName() bool { + if o != nil && o.OwnerRoleName.IsSet() { + return true + } + + return false +} + +// SetOwnerRoleName gets a reference to the given NullableString and assigns it to the OwnerRoleName field. +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleName(v string) { + o.OwnerRoleName.Set(&v) +} + +// SetOwnerRoleNameNil sets the value for OwnerRoleName to be an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) SetOwnerRoleNameNil() { + o.OwnerRoleName.Set(nil) +} + +// UnsetOwnerRoleName ensures that no value is present for OwnerRoleName, not even an explicit nil +func (o *EnrollmentPFXEnrollmentWithStoresRequest) UnsetOwnerRoleName() { + o.OwnerRoleName.Unset() +} + +func (o EnrollmentPFXEnrollmentWithStoresRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnrollmentPFXEnrollmentWithStoresRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Stores != nil { + toSerialize["Stores"] = o.Stores + } + if o.CustomFriendlyName.IsSet() { + toSerialize["CustomFriendlyName"] = o.CustomFriendlyName.Get() + } + if o.Password.IsSet() { + toSerialize["Password"] = o.Password.Get() + } + if o.Subject.IsSet() { + toSerialize["Subject"] = o.Subject.Get() + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.IncludeSubjectHeader) { + toSerialize["IncludeSubjectHeader"] = o.IncludeSubjectHeader + } + if o.RenewalCertificateId.IsSet() { + toSerialize["RenewalCertificateId"] = o.RenewalCertificateId.Get() + } + if o.CertificateAuthority.IsSet() { + toSerialize["CertificateAuthority"] = o.CertificateAuthority.Get() + } + if o.Metadata != nil { + toSerialize["Metadata"] = o.Metadata + } + if o.AdditionalEnrollmentFields != nil { + toSerialize["AdditionalEnrollmentFields"] = o.AdditionalEnrollmentFields + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if o.Template.IsSet() { + toSerialize["Template"] = o.Template.Get() + } + if o.SANs != nil { + toSerialize["SANs"] = o.SANs + } + if !isNil(o.InstallIntoExistingCertificateStores) { + toSerialize["InstallIntoExistingCertificateStores"] = o.InstallIntoExistingCertificateStores + } + if o.JobTime.IsSet() { + toSerialize["JobTime"] = o.JobTime.Get() + } + if o.ChainOrder.IsSet() { + toSerialize["ChainOrder"] = o.ChainOrder.Get() + } + if o.UseLegacyEncryption.IsSet() { + toSerialize["UseLegacyEncryption"] = o.UseLegacyEncryption.Get() + } + if o.KeyType.IsSet() { + toSerialize["KeyType"] = o.KeyType.Get() + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if o.MicrosoftTargetCSP.IsSet() { + toSerialize["MicrosoftTargetCSP"] = o.MicrosoftTargetCSP.Get() + } + if o.OwnerRoleId.IsSet() { + toSerialize["OwnerRoleId"] = o.OwnerRoleId.Get() + } + if o.OwnerRoleName.IsSet() { + toSerialize["OwnerRoleName"] = o.OwnerRoleName.Get() + } + return toSerialize, nil +} + +type NullableEnrollmentPFXEnrollmentWithStoresRequest struct { + value *EnrollmentPFXEnrollmentWithStoresRequest + isSet bool +} + +func (v NullableEnrollmentPFXEnrollmentWithStoresRequest) Get() *EnrollmentPFXEnrollmentWithStoresRequest { + return v.value +} + +func (v *NullableEnrollmentPFXEnrollmentWithStoresRequest) Set(val *EnrollmentPFXEnrollmentWithStoresRequest) { + v.value = val + v.isSet = true +} + +func (v NullableEnrollmentPFXEnrollmentWithStoresRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableEnrollmentPFXEnrollmentWithStoresRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnrollmentPFXEnrollmentWithStoresRequest(val *EnrollmentPFXEnrollmentWithStoresRequest) *NullableEnrollmentPFXEnrollmentWithStoresRequest { + return &NullableEnrollmentPFXEnrollmentWithStoresRequest{value: val, isSet: true} +} + +func (v NullableEnrollmentPFXEnrollmentWithStoresRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnrollmentPFXEnrollmentWithStoresRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_queryable_extensions_sort_order.go b/v24/api/keyfactor/v2/model_keyfactor_common_queryable_extensions_sort_order.go new file mode 100644 index 0000000..178dd16 --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_queryable_extensions_sort_order.go @@ -0,0 +1,142 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// KeyfactorCommonQueryableExtensionsSortOrder the model 'KeyfactorCommonQueryableExtensionsSortOrder' +type KeyfactorCommonQueryableExtensionsSortOrder int32 + +// List of Keyfactor.Common.QueryableExtensions.SortOrder +const ( + KEYFACTORCOMMONQUERYABLEEXTENSIONSSORTORDER__0 KeyfactorCommonQueryableExtensionsSortOrder = 0 + KEYFACTORCOMMONQUERYABLEEXTENSIONSSORTORDER__1 KeyfactorCommonQueryableExtensionsSortOrder = 1 +) + +func ParseKeyfactorCommonQueryableExtensionsSortOrder(s string) (*KeyfactorCommonQueryableExtensionsSortOrder, error) { + var claimType KeyfactorCommonQueryableExtensionsSortOrder + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *KeyfactorCommonQueryableExtensionsSortOrder) Parse(s string) error { + var stringsToEnum = map[string]KeyfactorCommonQueryableExtensionsSortOrder{} + + return errors.New(fmt.Sprintf("Parse could not be completed. The length of string maps is %d", len(stringsToEnum))) + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum KeyfactorCommonQueryableExtensionsSortOrder. Value: %s ", s)) +} + +// All allowed values of KeyfactorCommonQueryableExtensionsSortOrder enum +var AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues = []KeyfactorCommonQueryableExtensionsSortOrder{ + 0, + 1, +} + +func (v *KeyfactorCommonQueryableExtensionsSortOrder) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := KeyfactorCommonQueryableExtensionsSortOrder(value) + for _, existing := range AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid KeyfactorCommonQueryableExtensionsSortOrder", value) +} + +// NewKeyfactorCommonQueryableExtensionsSortOrderFromValue returns a pointer to a valid KeyfactorCommonQueryableExtensionsSortOrder +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewKeyfactorCommonQueryableExtensionsSortOrderFromValue(v int32) (*KeyfactorCommonQueryableExtensionsSortOrder, error) { + ev := KeyfactorCommonQueryableExtensionsSortOrder(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for KeyfactorCommonQueryableExtensionsSortOrder: valid values are %v", v, AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v KeyfactorCommonQueryableExtensionsSortOrder) IsValid() bool { + for _, existing := range AllowedKeyfactorCommonQueryableExtensionsSortOrderEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Keyfactor.Common.QueryableExtensions.SortOrder value +func (v KeyfactorCommonQueryableExtensionsSortOrder) Ptr() *KeyfactorCommonQueryableExtensionsSortOrder { + return &v +} + +type NullableKeyfactorCommonQueryableExtensionsSortOrder struct { + value *KeyfactorCommonQueryableExtensionsSortOrder + isSet bool +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) Get() *KeyfactorCommonQueryableExtensionsSortOrder { + return v.value +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) Set(val *KeyfactorCommonQueryableExtensionsSortOrder) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonQueryableExtensionsSortOrder(val *KeyfactorCommonQueryableExtensionsSortOrder) *NullableKeyfactorCommonQueryableExtensionsSortOrder { + return &NullableKeyfactorCommonQueryableExtensionsSortOrder{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonQueryableExtensionsSortOrder) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonQueryableExtensionsSortOrder) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_keyfactor_schedule.go b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_keyfactor_schedule.go new file mode 100644 index 0000000..3a1a33a --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_keyfactor_schedule.go @@ -0,0 +1,325 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the KeyfactorCommonSchedulingKeyfactorSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingKeyfactorSchedule{} + +// KeyfactorCommonSchedulingKeyfactorSchedule struct for KeyfactorCommonSchedulingKeyfactorSchedule +type KeyfactorCommonSchedulingKeyfactorSchedule struct { + Immediate NullableBool `json:"Immediate,omitempty"` + Interval *KeyfactorCommonSchedulingModelsIntervalModel `json:"Interval,omitempty"` + Daily *KeyfactorCommonSchedulingModelsTimeModel `json:"Daily,omitempty"` + Weekly *KeyfactorCommonSchedulingModelsWeeklyModel `json:"Weekly,omitempty"` + Monthly *KeyfactorCommonSchedulingModelsMonthlyModel `json:"Monthly,omitempty"` + ExactlyOnce *KeyfactorCommonSchedulingModelsTimeModel `json:"ExactlyOnce,omitempty"` +} + +// NewKeyfactorCommonSchedulingKeyfactorSchedule instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingKeyfactorSchedule() *KeyfactorCommonSchedulingKeyfactorSchedule { + this := KeyfactorCommonSchedulingKeyfactorSchedule{} + return &this +} + +// NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults() *KeyfactorCommonSchedulingKeyfactorSchedule { + this := KeyfactorCommonSchedulingKeyfactorSchedule{} + return &this +} + +// GetImmediate returns the Immediate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediate() bool { + if o == nil || isNil(o.Immediate.Get()) { + var ret bool + return ret + } + return *o.Immediate.Get() +} + +// GetImmediateOk returns a tuple with the Immediate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediateOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Immediate.Get(), o.Immediate.IsSet() +} + +// HasImmediate returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasImmediate() bool { + if o != nil && o.Immediate.IsSet() { + return true + } + + return false +} + +// SetImmediate gets a reference to the given NullableBool and assigns it to the Immediate field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediate(v bool) { + o.Immediate.Set(&v) +} + +// SetImmediateNil sets the value for Immediate to be an explicit nil +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediateNil() { + o.Immediate.Set(nil) +} + +// UnsetImmediate ensures that no value is present for Immediate, not even an explicit nil +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) UnsetImmediate() { + o.Immediate.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetInterval() KeyfactorCommonSchedulingModelsIntervalModel { + if o == nil || isNil(o.Interval) { + var ret KeyfactorCommonSchedulingModelsIntervalModel + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetIntervalOk() (*KeyfactorCommonSchedulingModelsIntervalModel, bool) { + if o == nil || isNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasInterval() bool { + if o != nil && !isNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given KeyfactorCommonSchedulingModelsIntervalModel and assigns it to the Interval field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetInterval(v KeyfactorCommonSchedulingModelsIntervalModel) { + o.Interval = &v +} + +// GetDaily returns the Daily field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDaily() KeyfactorCommonSchedulingModelsTimeModel { + if o == nil || isNil(o.Daily) { + var ret KeyfactorCommonSchedulingModelsTimeModel + return ret + } + return *o.Daily +} + +// GetDailyOk returns a tuple with the Daily field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDailyOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool) { + if o == nil || isNil(o.Daily) { + return nil, false + } + return o.Daily, true +} + +// HasDaily returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasDaily() bool { + if o != nil && !isNil(o.Daily) { + return true + } + + return false +} + +// SetDaily gets a reference to the given KeyfactorCommonSchedulingModelsTimeModel and assigns it to the Daily field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetDaily(v KeyfactorCommonSchedulingModelsTimeModel) { + o.Daily = &v +} + +// GetWeekly returns the Weekly field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeekly() KeyfactorCommonSchedulingModelsWeeklyModel { + if o == nil || isNil(o.Weekly) { + var ret KeyfactorCommonSchedulingModelsWeeklyModel + return ret + } + return *o.Weekly +} + +// GetWeeklyOk returns a tuple with the Weekly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeeklyOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool) { + if o == nil || isNil(o.Weekly) { + return nil, false + } + return o.Weekly, true +} + +// HasWeekly returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasWeekly() bool { + if o != nil && !isNil(o.Weekly) { + return true + } + + return false +} + +// SetWeekly gets a reference to the given KeyfactorCommonSchedulingModelsWeeklyModel and assigns it to the Weekly field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetWeekly(v KeyfactorCommonSchedulingModelsWeeklyModel) { + o.Weekly = &v +} + +// GetMonthly returns the Monthly field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthly() KeyfactorCommonSchedulingModelsMonthlyModel { + if o == nil || isNil(o.Monthly) { + var ret KeyfactorCommonSchedulingModelsMonthlyModel + return ret + } + return *o.Monthly +} + +// GetMonthlyOk returns a tuple with the Monthly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthlyOk() (*KeyfactorCommonSchedulingModelsMonthlyModel, bool) { + if o == nil || isNil(o.Monthly) { + return nil, false + } + return o.Monthly, true +} + +// HasMonthly returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasMonthly() bool { + if o != nil && !isNil(o.Monthly) { + return true + } + + return false +} + +// SetMonthly gets a reference to the given KeyfactorCommonSchedulingModelsMonthlyModel and assigns it to the Monthly field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetMonthly(v KeyfactorCommonSchedulingModelsMonthlyModel) { + o.Monthly = &v +} + +// GetExactlyOnce returns the ExactlyOnce field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnce() KeyfactorCommonSchedulingModelsTimeModel { + if o == nil || isNil(o.ExactlyOnce) { + var ret KeyfactorCommonSchedulingModelsTimeModel + return ret + } + return *o.ExactlyOnce +} + +// GetExactlyOnceOk returns a tuple with the ExactlyOnce field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnceOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool) { + if o == nil || isNil(o.ExactlyOnce) { + return nil, false + } + return o.ExactlyOnce, true +} + +// HasExactlyOnce returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasExactlyOnce() bool { + if o != nil && !isNil(o.ExactlyOnce) { + return true + } + + return false +} + +// SetExactlyOnce gets a reference to the given KeyfactorCommonSchedulingModelsTimeModel and assigns it to the ExactlyOnce field. +func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetExactlyOnce(v KeyfactorCommonSchedulingModelsTimeModel) { + o.ExactlyOnce = &v +} + +func (o KeyfactorCommonSchedulingKeyfactorSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingKeyfactorSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Immediate.IsSet() { + toSerialize["Immediate"] = o.Immediate.Get() + } + if !isNil(o.Interval) { + toSerialize["Interval"] = o.Interval + } + if !isNil(o.Daily) { + toSerialize["Daily"] = o.Daily + } + if !isNil(o.Weekly) { + toSerialize["Weekly"] = o.Weekly + } + if !isNil(o.Monthly) { + toSerialize["Monthly"] = o.Monthly + } + if !isNil(o.ExactlyOnce) { + toSerialize["ExactlyOnce"] = o.ExactlyOnce + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingKeyfactorSchedule struct { + value *KeyfactorCommonSchedulingKeyfactorSchedule + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) Get() *KeyfactorCommonSchedulingKeyfactorSchedule { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) Set(val *KeyfactorCommonSchedulingKeyfactorSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingKeyfactorSchedule(val *KeyfactorCommonSchedulingKeyfactorSchedule) *NullableKeyfactorCommonSchedulingKeyfactorSchedule { + return &NullableKeyfactorCommonSchedulingKeyfactorSchedule{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingKeyfactorSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingKeyfactorSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_interval_model.go b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_interval_model.go new file mode 100644 index 0000000..267f224 --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_interval_model.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the KeyfactorCommonSchedulingModelsIntervalModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsIntervalModel{} + +// KeyfactorCommonSchedulingModelsIntervalModel struct for KeyfactorCommonSchedulingModelsIntervalModel +type KeyfactorCommonSchedulingModelsIntervalModel struct { + Minutes *int32 `json:"Minutes,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsIntervalModel instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsIntervalModel() *KeyfactorCommonSchedulingModelsIntervalModel { + this := KeyfactorCommonSchedulingModelsIntervalModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults() *KeyfactorCommonSchedulingModelsIntervalModel { + this := KeyfactorCommonSchedulingModelsIntervalModel{} + return &this +} + +// GetMinutes returns the Minutes field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutes() int32 { + if o == nil || isNil(o.Minutes) { + var ret int32 + return ret + } + return *o.Minutes +} + +// GetMinutesOk returns a tuple with the Minutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutesOk() (*int32, bool) { + if o == nil || isNil(o.Minutes) { + return nil, false + } + return o.Minutes, true +} + +// HasMinutes returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) HasMinutes() bool { + if o != nil && !isNil(o.Minutes) { + return true + } + + return false +} + +// SetMinutes gets a reference to the given int32 and assigns it to the Minutes field. +func (o *KeyfactorCommonSchedulingModelsIntervalModel) SetMinutes(v int32) { + o.Minutes = &v +} + +func (o KeyfactorCommonSchedulingModelsIntervalModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsIntervalModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Minutes) { + toSerialize["Minutes"] = o.Minutes + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsIntervalModel struct { + value *KeyfactorCommonSchedulingModelsIntervalModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) Get() *KeyfactorCommonSchedulingModelsIntervalModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) Set(val *KeyfactorCommonSchedulingModelsIntervalModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsIntervalModel(val *KeyfactorCommonSchedulingModelsIntervalModel) *NullableKeyfactorCommonSchedulingModelsIntervalModel { + return &NullableKeyfactorCommonSchedulingModelsIntervalModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsIntervalModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsIntervalModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_monthly_model.go b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_monthly_model.go new file mode 100644 index 0000000..e542684 --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_monthly_model.go @@ -0,0 +1,171 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsMonthlyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsMonthlyModel{} + +// KeyfactorCommonSchedulingModelsMonthlyModel struct for KeyfactorCommonSchedulingModelsMonthlyModel +type KeyfactorCommonSchedulingModelsMonthlyModel struct { + Day *int32 `json:"Day,omitempty"` + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsMonthlyModel instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsMonthlyModel() *KeyfactorCommonSchedulingModelsMonthlyModel { + this := KeyfactorCommonSchedulingModelsMonthlyModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults() *KeyfactorCommonSchedulingModelsMonthlyModel { + this := KeyfactorCommonSchedulingModelsMonthlyModel{} + return &this +} + +// GetDay returns the Day field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDay() int32 { + if o == nil || isNil(o.Day) { + var ret int32 + return ret + } + return *o.Day +} + +// GetDayOk returns a tuple with the Day field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDayOk() (*int32, bool) { + if o == nil || isNil(o.Day) { + return nil, false + } + return o.Day, true +} + +// HasDay returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasDay() bool { + if o != nil && !isNil(o.Day) { + return true + } + + return false +} + +// SetDay gets a reference to the given int32 and assigns it to the Day field. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetDay(v int32) { + o.Day = &v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsMonthlyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsMonthlyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Day) { + toSerialize["Day"] = o.Day + } + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsMonthlyModel struct { + value *KeyfactorCommonSchedulingModelsMonthlyModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) Get() *KeyfactorCommonSchedulingModelsMonthlyModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) Set(val *KeyfactorCommonSchedulingModelsMonthlyModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsMonthlyModel(val *KeyfactorCommonSchedulingModelsMonthlyModel) *NullableKeyfactorCommonSchedulingModelsMonthlyModel { + return &NullableKeyfactorCommonSchedulingModelsMonthlyModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsMonthlyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsMonthlyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_time_model.go b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_time_model.go new file mode 100644 index 0000000..84cb708 --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_time_model.go @@ -0,0 +1,135 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsTimeModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsTimeModel{} + +// KeyfactorCommonSchedulingModelsTimeModel struct for KeyfactorCommonSchedulingModelsTimeModel +type KeyfactorCommonSchedulingModelsTimeModel struct { + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsTimeModel instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsTimeModel() *KeyfactorCommonSchedulingModelsTimeModel { + this := KeyfactorCommonSchedulingModelsTimeModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults() *KeyfactorCommonSchedulingModelsTimeModel { + this := KeyfactorCommonSchedulingModelsTimeModel{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsTimeModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsTimeModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsTimeModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsTimeModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsTimeModel struct { + value *KeyfactorCommonSchedulingModelsTimeModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) Get() *KeyfactorCommonSchedulingModelsTimeModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) Set(val *KeyfactorCommonSchedulingModelsTimeModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsTimeModel(val *KeyfactorCommonSchedulingModelsTimeModel) *NullableKeyfactorCommonSchedulingModelsTimeModel { + return &NullableKeyfactorCommonSchedulingModelsTimeModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsTimeModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsTimeModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_weekly_model.go b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_weekly_model.go new file mode 100644 index 0000000..e871919 --- /dev/null +++ b/v24/api/keyfactor/v2/model_keyfactor_common_scheduling_models_weekly_model.go @@ -0,0 +1,172 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorCommonSchedulingModelsWeeklyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorCommonSchedulingModelsWeeklyModel{} + +// KeyfactorCommonSchedulingModelsWeeklyModel struct for KeyfactorCommonSchedulingModelsWeeklyModel +type KeyfactorCommonSchedulingModelsWeeklyModel struct { + Days []SystemDayOfWeek `json:"Days,omitempty"` + Time *time.Time `json:"Time,omitempty"` +} + +// NewKeyfactorCommonSchedulingModelsWeeklyModel instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorCommonSchedulingModelsWeeklyModel() *KeyfactorCommonSchedulingModelsWeeklyModel { + this := KeyfactorCommonSchedulingModelsWeeklyModel{} + return &this +} + +// NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults() *KeyfactorCommonSchedulingModelsWeeklyModel { + this := KeyfactorCommonSchedulingModelsWeeklyModel{} + return &this +} + +// GetDays returns the Days field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDays() []SystemDayOfWeek { + if o == nil { + var ret []SystemDayOfWeek + return ret + } + return o.Days +} + +// GetDaysOk returns a tuple with the Days field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDaysOk() ([]SystemDayOfWeek, bool) { + if o == nil || isNil(o.Days) { + return nil, false + } + return o.Days, true +} + +// HasDays returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasDays() bool { + if o != nil && isNil(o.Days) { + return true + } + + return false +} + +// SetDays gets a reference to the given []SystemDayOfWeek and assigns it to the Days field. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDays(v []SystemDayOfWeek) { + o.Days = v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTime() time.Time { + if o == nil || isNil(o.Time) { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.Time) { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasTime() bool { + if o != nil && !isNil(o.Time) { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetTime(v time.Time) { + o.Time = &v +} + +func (o KeyfactorCommonSchedulingModelsWeeklyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorCommonSchedulingModelsWeeklyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Days != nil { + toSerialize["Days"] = o.Days + } + if !isNil(o.Time) { + toSerialize["Time"] = o.Time + } + return toSerialize, nil +} + +type NullableKeyfactorCommonSchedulingModelsWeeklyModel struct { + value *KeyfactorCommonSchedulingModelsWeeklyModel + isSet bool +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) Get() *KeyfactorCommonSchedulingModelsWeeklyModel { + return v.value +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) Set(val *KeyfactorCommonSchedulingModelsWeeklyModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorCommonSchedulingModelsWeeklyModel(val *KeyfactorCommonSchedulingModelsWeeklyModel) *NullableKeyfactorCommonSchedulingModelsWeeklyModel { + return &NullableKeyfactorCommonSchedulingModelsWeeklyModel{value: val, isSet: true} +} + +func (v NullableKeyfactorCommonSchedulingModelsWeeklyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorCommonSchedulingModelsWeeklyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_pam_provider_type_param_value_response.go b/v24/api/keyfactor/v2/model_pam_pam_provider_type_param_value_response.go new file mode 100644 index 0000000..36b30e9 --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_pam_provider_type_param_value_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMPamProviderTypeParamValueResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMPamProviderTypeParamValueResponse{} + +// PAMPamProviderTypeParamValueResponse struct for PAMPamProviderTypeParamValueResponse +type PAMPamProviderTypeParamValueResponse struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + ProviderTypeParam *PAMProviderTypeParameterResponse `json:"ProviderTypeParam,omitempty"` +} + +// NewPAMPamProviderTypeParamValueResponse instantiates a new PAMPamProviderTypeParamValueResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMPamProviderTypeParamValueResponse() *PAMPamProviderTypeParamValueResponse { + this := PAMPamProviderTypeParamValueResponse{} + return &this +} + +// NewPAMPamProviderTypeParamValueResponseWithDefaults instantiates a new PAMPamProviderTypeParamValueResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMPamProviderTypeParamValueResponseWithDefaults() *PAMPamProviderTypeParamValueResponse { + this := PAMPamProviderTypeParamValueResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMPamProviderTypeParamValueResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMPamProviderTypeParamValueResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMPamProviderTypeParamValueResponse) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *PAMPamProviderTypeParamValueResponse) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetValue() { + o.Value.Unset() +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMPamProviderTypeParamValueResponse) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *PAMPamProviderTypeParamValueResponse) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProviderTypeParam returns the ProviderTypeParam field value if set, zero value otherwise. +func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParam() PAMProviderTypeParameterResponse { + if o == nil || isNil(o.ProviderTypeParam) { + var ret PAMProviderTypeParameterResponse + return ret + } + return *o.ProviderTypeParam +} + +// GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMPamProviderTypeParamValueResponse) GetProviderTypeParamOk() (*PAMProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.ProviderTypeParam) { + return nil, false + } + return o.ProviderTypeParam, true +} + +// HasProviderTypeParam returns a boolean if a field has been set. +func (o *PAMPamProviderTypeParamValueResponse) HasProviderTypeParam() bool { + if o != nil && !isNil(o.ProviderTypeParam) { + return true + } + + return false +} + +// SetProviderTypeParam gets a reference to the given PAMProviderTypeParameterResponse and assigns it to the ProviderTypeParam field. +func (o *PAMPamProviderTypeParamValueResponse) SetProviderTypeParam(v PAMProviderTypeParameterResponse) { + o.ProviderTypeParam = &v +} + +func (o PAMPamProviderTypeParamValueResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMPamProviderTypeParamValueResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if !isNil(o.ProviderTypeParam) { + toSerialize["ProviderTypeParam"] = o.ProviderTypeParam + } + return toSerialize, nil +} + +type NullablePAMPamProviderTypeParamValueResponse struct { + value *PAMPamProviderTypeParamValueResponse + isSet bool +} + +func (v NullablePAMPamProviderTypeParamValueResponse) Get() *PAMPamProviderTypeParamValueResponse { + return v.value +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) Set(val *PAMPamProviderTypeParamValueResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMPamProviderTypeParamValueResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMPamProviderTypeParamValueResponse(val *PAMPamProviderTypeParamValueResponse) *NullablePAMPamProviderTypeParamValueResponse { + return &NullablePAMPamProviderTypeParamValueResponse{value: val, isSet: true} +} + +func (v NullablePAMPamProviderTypeParamValueResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMPamProviderTypeParamValueResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_create_request.go b/v24/api/keyfactor/v2/model_pam_provider_create_request.go new file mode 100644 index 0000000..895590e --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_create_request.go @@ -0,0 +1,308 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequest{} + +// PAMProviderCreateRequest struct for PAMProviderCreateRequest +type PAMProviderCreateRequest struct { + Name string `json:"Name"` + Remote *bool `json:"Remote,omitempty"` + Area *int32 `json:"Area,omitempty"` + ProviderType PAMProviderCreateRequestProviderType `json:"ProviderType"` + ProviderTypeParamValues []PAMProviderCreateRequestTypeParamValue `json:"ProviderTypeParamValues,omitempty"` + SecuredAreaId NullableInt32 `json:"SecuredAreaId,omitempty"` +} + +// NewPAMProviderCreateRequest instantiates a new PAMProviderCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequest(name string, providerType PAMProviderCreateRequestProviderType) *PAMProviderCreateRequest { + this := PAMProviderCreateRequest{} + this.Name = name + this.ProviderType = providerType + return &this +} + +// NewPAMProviderCreateRequestWithDefaults instantiates a new PAMProviderCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestWithDefaults() *PAMProviderCreateRequest { + this := PAMProviderCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderCreateRequest) SetName(v string) { + o.Name = v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *PAMProviderCreateRequest) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *PAMProviderCreateRequest) SetRemote(v bool) { + o.Remote = &v +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *PAMProviderCreateRequest) GetArea() int32 { + if o == nil || isNil(o.Area) { + var ret int32 + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetAreaOk() (*int32, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given int32 and assigns it to the Area field. +func (o *PAMProviderCreateRequest) SetArea(v int32) { + o.Area = &v +} + +// GetProviderType returns the ProviderType field value +func (o *PAMProviderCreateRequest) GetProviderType() PAMProviderCreateRequestProviderType { + if o == nil { + var ret PAMProviderCreateRequestProviderType + return ret + } + + return o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequest) GetProviderTypeOk() (*PAMProviderCreateRequestProviderType, bool) { + if o == nil { + return nil, false + } + return &o.ProviderType, true +} + +// SetProviderType sets field value +func (o *PAMProviderCreateRequest) SetProviderType(v PAMProviderCreateRequestProviderType) { + o.ProviderType = v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue { + if o == nil { + var ret []PAMProviderCreateRequestTypeParamValue + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequest) GetProviderTypeParamValuesOk() ([]PAMProviderCreateRequestTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMProviderCreateRequestTypeParamValue and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderCreateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue) { + o.ProviderTypeParamValues = v +} + +// GetSecuredAreaId returns the SecuredAreaId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequest) GetSecuredAreaId() int32 { + if o == nil || isNil(o.SecuredAreaId.Get()) { + var ret int32 + return ret + } + return *o.SecuredAreaId.Get() +} + +// GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequest) GetSecuredAreaIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SecuredAreaId.Get(), o.SecuredAreaId.IsSet() +} + +// HasSecuredAreaId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequest) HasSecuredAreaId() bool { + if o != nil && o.SecuredAreaId.IsSet() { + return true + } + + return false +} + +// SetSecuredAreaId gets a reference to the given NullableInt32 and assigns it to the SecuredAreaId field. +func (o *PAMProviderCreateRequest) SetSecuredAreaId(v int32) { + o.SecuredAreaId.Set(&v) +} + +// SetSecuredAreaIdNil sets the value for SecuredAreaId to be an explicit nil +func (o *PAMProviderCreateRequest) SetSecuredAreaIdNil() { + o.SecuredAreaId.Set(nil) +} + +// UnsetSecuredAreaId ensures that no value is present for SecuredAreaId, not even an explicit nil +func (o *PAMProviderCreateRequest) UnsetSecuredAreaId() { + o.SecuredAreaId.Unset() +} + +func (o PAMProviderCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + toSerialize["ProviderType"] = o.ProviderType + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if o.SecuredAreaId.IsSet() { + toSerialize["SecuredAreaId"] = o.SecuredAreaId.Get() + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequest struct { + value *PAMProviderCreateRequest + isSet bool +} + +func (v NullablePAMProviderCreateRequest) Get() *PAMProviderCreateRequest { + return v.value +} + +func (v *NullablePAMProviderCreateRequest) Set(val *PAMProviderCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequest(val *PAMProviderCreateRequest) *NullablePAMProviderCreateRequest { + return &NullablePAMProviderCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type.go b/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type.go new file mode 100644 index 0000000..d6a4a4b --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type.go @@ -0,0 +1,134 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestProviderType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestProviderType{} + +// PAMProviderCreateRequestProviderType struct for PAMProviderCreateRequestProviderType +type PAMProviderCreateRequestProviderType struct { + Id *string `json:"Id,omitempty"` +} + +// NewPAMProviderCreateRequestProviderType instantiates a new PAMProviderCreateRequestProviderType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestProviderType() *PAMProviderCreateRequestProviderType { + this := PAMProviderCreateRequestProviderType{} + return &this +} + +// NewPAMProviderCreateRequestProviderTypeWithDefaults instantiates a new PAMProviderCreateRequestProviderType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestProviderTypeWithDefaults() *PAMProviderCreateRequestProviderType { + this := PAMProviderCreateRequestProviderType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderType) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderType) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderType) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *PAMProviderCreateRequestProviderType) SetId(v string) { + o.Id = &v +} + +func (o PAMProviderCreateRequestProviderType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestProviderType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestProviderType struct { + value *PAMProviderCreateRequestProviderType + isSet bool +} + +func (v NullablePAMProviderCreateRequestProviderType) Get() *PAMProviderCreateRequestProviderType { + return v.value +} + +func (v *NullablePAMProviderCreateRequestProviderType) Set(val *PAMProviderCreateRequestProviderType) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestProviderType) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestProviderType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestProviderType(val *PAMProviderCreateRequestProviderType) *NullablePAMProviderCreateRequestProviderType { + return &NullablePAMProviderCreateRequestProviderType{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestProviderType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestProviderType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type_param.go b/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type_param.go new file mode 100644 index 0000000..3971fbb --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_create_request_provider_type_param.go @@ -0,0 +1,264 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestProviderTypeParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestProviderTypeParam{} + +// PAMProviderCreateRequestProviderTypeParam struct for PAMProviderCreateRequestProviderTypeParam +type PAMProviderCreateRequestProviderTypeParam struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderCreateRequestProviderTypeParam instantiates a new PAMProviderCreateRequestProviderTypeParam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestProviderTypeParam() *PAMProviderCreateRequestProviderTypeParam { + this := PAMProviderCreateRequestProviderTypeParam{} + return &this +} + +// NewPAMProviderCreateRequestProviderTypeParamWithDefaults instantiates a new PAMProviderCreateRequestProviderTypeParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestProviderTypeParamWithDefaults() *PAMProviderCreateRequestProviderTypeParam { + this := PAMProviderCreateRequestProviderTypeParam{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderTypeParam) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestProviderTypeParam) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestProviderTypeParam) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestProviderTypeParam) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderCreateRequestProviderTypeParam) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestProviderTypeParam) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderCreateRequestProviderTypeParam) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderCreateRequestProviderTypeParam) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestProviderTypeParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestProviderTypeParam struct { + value *PAMProviderCreateRequestProviderTypeParam + isSet bool +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) Get() *PAMProviderCreateRequestProviderTypeParam { + return v.value +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) Set(val *PAMProviderCreateRequestProviderTypeParam) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestProviderTypeParam(val *PAMProviderCreateRequestProviderTypeParam) *NullablePAMProviderCreateRequestProviderTypeParam { + return &NullablePAMProviderCreateRequestProviderTypeParam{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestProviderTypeParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestProviderTypeParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_create_request_type_param_value.go b/v24/api/keyfactor/v2/model_pam_provider_create_request_type_param_value.go new file mode 100644 index 0000000..adebc9f --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_create_request_type_param_value.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderCreateRequestTypeParamValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderCreateRequestTypeParamValue{} + +// PAMProviderCreateRequestTypeParamValue struct for PAMProviderCreateRequestTypeParamValue +type PAMProviderCreateRequestTypeParamValue struct { + Id *int32 `json:"Id,omitempty"` + Value NullableString `json:"Value,omitempty"` + InstanceId NullableInt32 `json:"InstanceId,omitempty"` + InstanceGuid NullableString `json:"InstanceGuid,omitempty"` + ProviderTypeParam *PAMProviderCreateRequestProviderTypeParam `json:"ProviderTypeParam,omitempty"` +} + +// NewPAMProviderCreateRequestTypeParamValue instantiates a new PAMProviderCreateRequestTypeParamValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderCreateRequestTypeParamValue() *PAMProviderCreateRequestTypeParamValue { + this := PAMProviderCreateRequestTypeParamValue{} + return &this +} + +// NewPAMProviderCreateRequestTypeParamValueWithDefaults instantiates a new PAMProviderCreateRequestTypeParamValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderCreateRequestTypeParamValueWithDefaults() *PAMProviderCreateRequestTypeParamValue { + this := PAMProviderCreateRequestTypeParamValue{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestTypeParamValue) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestTypeParamValue) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderCreateRequestTypeParamValue) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetValue() string { + if o == nil || isNil(o.Value.Get()) { + var ret string + return ret + } + return *o.Value.Get() +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Value.Get(), o.Value.IsSet() +} + +// HasValue returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasValue() bool { + if o != nil && o.Value.IsSet() { + return true + } + + return false +} + +// SetValue gets a reference to the given NullableString and assigns it to the Value field. +func (o *PAMProviderCreateRequestTypeParamValue) SetValue(v string) { + o.Value.Set(&v) +} + +// SetValueNil sets the value for Value to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetValueNil() { + o.Value.Set(nil) +} + +// UnsetValue ensures that no value is present for Value, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetValue() { + o.Value.Unset() +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceId() int32 { + if o == nil || isNil(o.InstanceId.Get()) { + var ret int32 + return ret + } + return *o.InstanceId.Get() +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.InstanceId.Get(), o.InstanceId.IsSet() +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceId() bool { + if o != nil && o.InstanceId.IsSet() { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given NullableInt32 and assigns it to the InstanceId field. +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceId(v int32) { + o.InstanceId.Set(&v) +} + +// SetInstanceIdNil sets the value for InstanceId to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceIdNil() { + o.InstanceId.Set(nil) +} + +// UnsetInstanceId ensures that no value is present for InstanceId, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceId() { + o.InstanceId.Unset() +} + +// GetInstanceGuid returns the InstanceGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuid() string { + if o == nil || isNil(o.InstanceGuid.Get()) { + var ret string + return ret + } + return *o.InstanceGuid.Get() +} + +// GetInstanceGuidOk returns a tuple with the InstanceGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderCreateRequestTypeParamValue) GetInstanceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstanceGuid.Get(), o.InstanceGuid.IsSet() +} + +// HasInstanceGuid returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasInstanceGuid() bool { + if o != nil && o.InstanceGuid.IsSet() { + return true + } + + return false +} + +// SetInstanceGuid gets a reference to the given NullableString and assigns it to the InstanceGuid field. +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuid(v string) { + o.InstanceGuid.Set(&v) +} + +// SetInstanceGuidNil sets the value for InstanceGuid to be an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) SetInstanceGuidNil() { + o.InstanceGuid.Set(nil) +} + +// UnsetInstanceGuid ensures that no value is present for InstanceGuid, not even an explicit nil +func (o *PAMProviderCreateRequestTypeParamValue) UnsetInstanceGuid() { + o.InstanceGuid.Unset() +} + +// GetProviderTypeParam returns the ProviderTypeParam field value if set, zero value otherwise. +func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParam() PAMProviderCreateRequestProviderTypeParam { + if o == nil || isNil(o.ProviderTypeParam) { + var ret PAMProviderCreateRequestProviderTypeParam + return ret + } + return *o.ProviderTypeParam +} + +// GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderCreateRequestTypeParamValue) GetProviderTypeParamOk() (*PAMProviderCreateRequestProviderTypeParam, bool) { + if o == nil || isNil(o.ProviderTypeParam) { + return nil, false + } + return o.ProviderTypeParam, true +} + +// HasProviderTypeParam returns a boolean if a field has been set. +func (o *PAMProviderCreateRequestTypeParamValue) HasProviderTypeParam() bool { + if o != nil && !isNil(o.ProviderTypeParam) { + return true + } + + return false +} + +// SetProviderTypeParam gets a reference to the given PAMProviderCreateRequestProviderTypeParam and assigns it to the ProviderTypeParam field. +func (o *PAMProviderCreateRequestTypeParamValue) SetProviderTypeParam(v PAMProviderCreateRequestProviderTypeParam) { + o.ProviderTypeParam = &v +} + +func (o PAMProviderCreateRequestTypeParamValue) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderCreateRequestTypeParamValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Value.IsSet() { + toSerialize["Value"] = o.Value.Get() + } + if o.InstanceId.IsSet() { + toSerialize["InstanceId"] = o.InstanceId.Get() + } + if o.InstanceGuid.IsSet() { + toSerialize["InstanceGuid"] = o.InstanceGuid.Get() + } + if !isNil(o.ProviderTypeParam) { + toSerialize["ProviderTypeParam"] = o.ProviderTypeParam + } + return toSerialize, nil +} + +type NullablePAMProviderCreateRequestTypeParamValue struct { + value *PAMProviderCreateRequestTypeParamValue + isSet bool +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) Get() *PAMProviderCreateRequestTypeParamValue { + return v.value +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) Set(val *PAMProviderCreateRequestTypeParamValue) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderCreateRequestTypeParamValue(val *PAMProviderCreateRequestTypeParamValue) *NullablePAMProviderCreateRequestTypeParamValue { + return &NullablePAMProviderCreateRequestTypeParamValue{value: val, isSet: true} +} + +func (v NullablePAMProviderCreateRequestTypeParamValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderCreateRequestTypeParamValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_response.go b/v24/api/keyfactor/v2/model_pam_provider_response.go new file mode 100644 index 0000000..8dbb8aa --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_response.go @@ -0,0 +1,290 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderResponse{} + +// PAMProviderResponse struct for PAMProviderResponse +type PAMProviderResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + ProviderType *CSSCMSDataModelModelsProviderType `json:"ProviderType,omitempty"` + ProviderTypeParamValues []PAMPamProviderTypeParamValueResponse `json:"ProviderTypeParamValues,omitempty"` + Remote *bool `json:"Remote,omitempty"` +} + +// NewPAMProviderResponse instantiates a new PAMProviderResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderResponse() *PAMProviderResponse { + this := PAMProviderResponse{} + return &this +} + +// NewPAMProviderResponseWithDefaults instantiates a new PAMProviderResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderResponseWithDefaults() *PAMProviderResponse { + this := PAMProviderResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderResponse) UnsetName() { + o.Name.Unset() +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *PAMProviderResponse) GetProviderType() CSSCMSDataModelModelsProviderType { + if o == nil || isNil(o.ProviderType) { + var ret CSSCMSDataModelModelsProviderType + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponse) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool) { + if o == nil || isNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *PAMProviderResponse) HasProviderType() bool { + if o != nil && !isNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given CSSCMSDataModelModelsProviderType and assigns it to the ProviderType field. +func (o *PAMProviderResponse) SetProviderType(v CSSCMSDataModelModelsProviderType) { + o.ProviderType = &v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderResponse) GetProviderTypeParamValues() []PAMPamProviderTypeParamValueResponse { + if o == nil { + var ret []PAMPamProviderTypeParamValueResponse + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderResponse) GetProviderTypeParamValuesOk() ([]PAMPamProviderTypeParamValueResponse, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderResponse) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMPamProviderTypeParamValueResponse and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderResponse) SetProviderTypeParamValues(v []PAMPamProviderTypeParamValueResponse) { + o.ProviderTypeParamValues = v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *PAMProviderResponse) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderResponse) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *PAMProviderResponse) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *PAMProviderResponse) SetRemote(v bool) { + o.Remote = &v +} + +func (o PAMProviderResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if !isNil(o.ProviderType) { + toSerialize["ProviderType"] = o.ProviderType + } + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + return toSerialize, nil +} + +type NullablePAMProviderResponse struct { + value *PAMProviderResponse + isSet bool +} + +func (v NullablePAMProviderResponse) Get() *PAMProviderResponse { + return v.value +} + +func (v *NullablePAMProviderResponse) Set(val *PAMProviderResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderResponse(val *PAMProviderResponse) *NullablePAMProviderResponse { + return &NullablePAMProviderResponse{value: val, isSet: true} +} + +func (v NullablePAMProviderResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_type_create_request.go b/v24/api/keyfactor/v2/model_pam_provider_type_create_request.go new file mode 100644 index 0000000..4017686 --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_type_create_request.go @@ -0,0 +1,162 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeCreateRequest{} + +// PAMProviderTypeCreateRequest struct for PAMProviderTypeCreateRequest +type PAMProviderTypeCreateRequest struct { + Name string `json:"Name"` + Parameters []PAMProviderTypeParameterCreateRequest `json:"Parameters,omitempty"` +} + +// NewPAMProviderTypeCreateRequest instantiates a new PAMProviderTypeCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeCreateRequest(name string) *PAMProviderTypeCreateRequest { + this := PAMProviderTypeCreateRequest{} + this.Name = name + return &this +} + +// NewPAMProviderTypeCreateRequestWithDefaults instantiates a new PAMProviderTypeCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeCreateRequestWithDefaults() *PAMProviderTypeCreateRequest { + this := PAMProviderTypeCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderTypeCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderTypeCreateRequest) SetName(v string) { + o.Name = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeCreateRequest) GetParameters() []PAMProviderTypeParameterCreateRequest { + if o == nil { + var ret []PAMProviderTypeParameterCreateRequest + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeCreateRequest) GetParametersOk() ([]PAMProviderTypeParameterCreateRequest, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PAMProviderTypeCreateRequest) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []PAMProviderTypeParameterCreateRequest and assigns it to the Parameters field. +func (o *PAMProviderTypeCreateRequest) SetParameters(v []PAMProviderTypeParameterCreateRequest) { + o.Parameters = v +} + +func (o PAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullablePAMProviderTypeCreateRequest struct { + value *PAMProviderTypeCreateRequest + isSet bool +} + +func (v NullablePAMProviderTypeCreateRequest) Get() *PAMProviderTypeCreateRequest { + return v.value +} + +func (v *NullablePAMProviderTypeCreateRequest) Set(val *PAMProviderTypeCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeCreateRequest(val *PAMProviderTypeCreateRequest) *NullablePAMProviderTypeCreateRequest { + return &NullablePAMProviderTypeCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_type_parameter_create_request.go b/v24/api/keyfactor/v2/model_pam_provider_type_parameter_create_request.go new file mode 100644 index 0000000..e10554b --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_type_parameter_create_request.go @@ -0,0 +1,244 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeParameterCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeParameterCreateRequest{} + +// PAMProviderTypeParameterCreateRequest struct for PAMProviderTypeParameterCreateRequest +type PAMProviderTypeParameterCreateRequest struct { + Name string `json:"Name"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderTypeParameterCreateRequest instantiates a new PAMProviderTypeParameterCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeParameterCreateRequest(name string) *PAMProviderTypeParameterCreateRequest { + this := PAMProviderTypeParameterCreateRequest{} + this.Name = name + return &this +} + +// NewPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new PAMProviderTypeParameterCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeParameterCreateRequestWithDefaults() *PAMProviderTypeParameterCreateRequest { + this := PAMProviderTypeParameterCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *PAMProviderTypeParameterCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderTypeParameterCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterCreateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderTypeParameterCreateRequest) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderTypeParameterCreateRequest) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderTypeParameterCreateRequest) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterCreateRequest) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *PAMProviderTypeParameterCreateRequest) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeParameterCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderTypeParameterCreateRequest struct { + value *PAMProviderTypeParameterCreateRequest + isSet bool +} + +func (v NullablePAMProviderTypeParameterCreateRequest) Get() *PAMProviderTypeParameterCreateRequest { + return v.value +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) Set(val *PAMProviderTypeParameterCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeParameterCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeParameterCreateRequest(val *PAMProviderTypeParameterCreateRequest) *NullablePAMProviderTypeParameterCreateRequest { + return &NullablePAMProviderTypeParameterCreateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeParameterCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_type_parameter_response.go b/v24/api/keyfactor/v2/model_pam_provider_type_parameter_response.go new file mode 100644 index 0000000..c0ffda2 --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_type_parameter_response.go @@ -0,0 +1,300 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeParameterResponse{} + +// PAMProviderTypeParameterResponse struct for PAMProviderTypeParameterResponse +type PAMProviderTypeParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` + DataType *CSSCMSDataModelEnumsPamParameterDataType `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` +} + +// NewPAMProviderTypeParameterResponse instantiates a new PAMProviderTypeParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeParameterResponse() *PAMProviderTypeParameterResponse { + this := PAMProviderTypeParameterResponse{} + return &this +} + +// NewPAMProviderTypeParameterResponseWithDefaults instantiates a new PAMProviderTypeParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeParameterResponseWithDefaults() *PAMProviderTypeParameterResponse { + this := PAMProviderTypeParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *PAMProviderTypeParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderTypeParameterResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderTypeParameterResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderTypeParameterResponse) UnsetName() { + o.Name.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeParameterResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *PAMProviderTypeParameterResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *PAMProviderTypeParameterResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *PAMProviderTypeParameterResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetDataType() CSSCMSDataModelEnumsPamParameterDataType { + if o == nil || isNil(o.DataType) { + var ret CSSCMSDataModelEnumsPamParameterDataType + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetDataTypeOk() (*CSSCMSDataModelEnumsPamParameterDataType, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given CSSCMSDataModelEnumsPamParameterDataType and assigns it to the DataType field. +func (o *PAMProviderTypeParameterResponse) SetDataType(v CSSCMSDataModelEnumsPamParameterDataType) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *PAMProviderTypeParameterResponse) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *PAMProviderTypeParameterResponse) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *PAMProviderTypeParameterResponse) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o PAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + return toSerialize, nil +} + +type NullablePAMProviderTypeParameterResponse struct { + value *PAMProviderTypeParameterResponse + isSet bool +} + +func (v NullablePAMProviderTypeParameterResponse) Get() *PAMProviderTypeParameterResponse { + return v.value +} + +func (v *NullablePAMProviderTypeParameterResponse) Set(val *PAMProviderTypeParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeParameterResponse(val *PAMProviderTypeParameterResponse) *NullablePAMProviderTypeParameterResponse { + return &NullablePAMProviderTypeParameterResponse{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_type_response.go b/v24/api/keyfactor/v2/model_pam_provider_type_response.go new file mode 100644 index 0000000..0deb703 --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_type_response.go @@ -0,0 +1,218 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderTypeResponse{} + +// PAMProviderTypeResponse struct for PAMProviderTypeResponse +type PAMProviderTypeResponse struct { + Id *string `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Parameters []PAMProviderTypeParameterResponse `json:"Parameters,omitempty"` +} + +// NewPAMProviderTypeResponse instantiates a new PAMProviderTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderTypeResponse() *PAMProviderTypeResponse { + this := PAMProviderTypeResponse{} + return &this +} + +// NewPAMProviderTypeResponseWithDefaults instantiates a new PAMProviderTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderTypeResponseWithDefaults() *PAMProviderTypeResponse { + this := PAMProviderTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PAMProviderTypeResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PAMProviderTypeResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *PAMProviderTypeResponse) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *PAMProviderTypeResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PAMProviderTypeResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PAMProviderTypeResponse) UnsetName() { + o.Name.Unset() +} + +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderTypeResponse) GetParameters() []PAMProviderTypeParameterResponse { + if o == nil { + var ret []PAMProviderTypeParameterResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderTypeResponse) GetParametersOk() ([]PAMProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PAMProviderTypeResponse) HasParameters() bool { + if o != nil && isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []PAMProviderTypeParameterResponse and assigns it to the Parameters field. +func (o *PAMProviderTypeResponse) SetParameters(v []PAMProviderTypeParameterResponse) { + o.Parameters = v +} + +func (o PAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Parameters != nil { + toSerialize["Parameters"] = o.Parameters + } + return toSerialize, nil +} + +type NullablePAMProviderTypeResponse struct { + value *PAMProviderTypeResponse + isSet bool +} + +func (v NullablePAMProviderTypeResponse) Get() *PAMProviderTypeResponse { + return v.value +} + +func (v *NullablePAMProviderTypeResponse) Set(val *PAMProviderTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderTypeResponse(val *PAMProviderTypeResponse) *NullablePAMProviderTypeResponse { + return &NullablePAMProviderTypeResponse{value: val, isSet: true} +} + +func (v NullablePAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_pam_provider_update_request.go b/v24/api/keyfactor/v2/model_pam_provider_update_request.go new file mode 100644 index 0000000..12b39c9 --- /dev/null +++ b/v24/api/keyfactor/v2/model_pam_provider_update_request.go @@ -0,0 +1,216 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the PAMProviderUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PAMProviderUpdateRequest{} + +// PAMProviderUpdateRequest struct for PAMProviderUpdateRequest +type PAMProviderUpdateRequest struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Remote bool `json:"Remote"` + ProviderTypeParamValues []PAMProviderCreateRequestTypeParamValue `json:"ProviderTypeParamValues,omitempty"` +} + +// NewPAMProviderUpdateRequest instantiates a new PAMProviderUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPAMProviderUpdateRequest(id int32, name string, remote bool) *PAMProviderUpdateRequest { + this := PAMProviderUpdateRequest{} + this.Id = id + this.Name = name + this.Remote = remote + return &this +} + +// NewPAMProviderUpdateRequestWithDefaults instantiates a new PAMProviderUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPAMProviderUpdateRequestWithDefaults() *PAMProviderUpdateRequest { + this := PAMProviderUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *PAMProviderUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PAMProviderUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *PAMProviderUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PAMProviderUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetRemote returns the Remote field value +func (o *PAMProviderUpdateRequest) GetRemote() bool { + if o == nil { + var ret bool + return ret + } + + return o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value +// and a boolean to check if the value has been set. +func (o *PAMProviderUpdateRequest) GetRemoteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Remote, true +} + +// SetRemote sets field value +func (o *PAMProviderUpdateRequest) SetRemote(v bool) { + o.Remote = v +} + +// GetProviderTypeParamValues returns the ProviderTypeParamValues field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PAMProviderUpdateRequest) GetProviderTypeParamValues() []PAMProviderCreateRequestTypeParamValue { + if o == nil { + var ret []PAMProviderCreateRequestTypeParamValue + return ret + } + return o.ProviderTypeParamValues +} + +// GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PAMProviderUpdateRequest) GetProviderTypeParamValuesOk() ([]PAMProviderCreateRequestTypeParamValue, bool) { + if o == nil || isNil(o.ProviderTypeParamValues) { + return nil, false + } + return o.ProviderTypeParamValues, true +} + +// HasProviderTypeParamValues returns a boolean if a field has been set. +func (o *PAMProviderUpdateRequest) HasProviderTypeParamValues() bool { + if o != nil && isNil(o.ProviderTypeParamValues) { + return true + } + + return false +} + +// SetProviderTypeParamValues gets a reference to the given []PAMProviderCreateRequestTypeParamValue and assigns it to the ProviderTypeParamValues field. +func (o *PAMProviderUpdateRequest) SetProviderTypeParamValues(v []PAMProviderCreateRequestTypeParamValue) { + o.ProviderTypeParamValues = v +} + +func (o PAMProviderUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PAMProviderUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Remote"] = o.Remote + if o.ProviderTypeParamValues != nil { + toSerialize["ProviderTypeParamValues"] = o.ProviderTypeParamValues + } + return toSerialize, nil +} + +type NullablePAMProviderUpdateRequest struct { + value *PAMProviderUpdateRequest + isSet bool +} + +func (v NullablePAMProviderUpdateRequest) Get() *PAMProviderUpdateRequest { + return v.value +} + +func (v *NullablePAMProviderUpdateRequest) Set(val *PAMProviderUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePAMProviderUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePAMProviderUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePAMProviderUpdateRequest(val *PAMProviderUpdateRequest) *NullablePAMProviderUpdateRequest { + return &NullablePAMProviderUpdateRequest{value: val, isSet: true} +} + +func (v NullablePAMProviderUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePAMProviderUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_provider_response.go b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_provider_response.go new file mode 100644 index 0000000..5c3ac82 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_provider_response.go @@ -0,0 +1,228 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse +type SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct { + Id *string `json:"Id,omitempty"` + AuthenticationScheme NullableString `json:"AuthenticationScheme,omitempty"` + DisplayName NullableString `json:"DisplayName,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetId(v string) { + o.Id = &v +} + +// GetAuthenticationScheme returns the AuthenticationScheme field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationScheme() string { + if o == nil || isNil(o.AuthenticationScheme.Get()) { + var ret string + return ret + } + return *o.AuthenticationScheme.Get() +} + +// GetAuthenticationSchemeOk returns a tuple with the AuthenticationScheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AuthenticationScheme.Get(), o.AuthenticationScheme.IsSet() +} + +// HasAuthenticationScheme returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasAuthenticationScheme() bool { + if o != nil && o.AuthenticationScheme.IsSet() { + return true + } + + return false +} + +// SetAuthenticationScheme gets a reference to the given NullableString and assigns it to the AuthenticationScheme field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationScheme(v string) { + o.AuthenticationScheme.Set(&v) +} + +// SetAuthenticationSchemeNil sets the value for AuthenticationScheme to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetAuthenticationSchemeNil() { + o.AuthenticationScheme.Set(nil) +} + +// UnsetAuthenticationScheme ensures that no value is present for AuthenticationScheme, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetAuthenticationScheme() { + o.AuthenticationScheme.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName.Get()) { + var ret string + return ret + } + return *o.DisplayName.Get() +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayName.Get(), o.DisplayName.IsSet() +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) HasDisplayName() bool { + if o != nil && o.DisplayName.IsSet() { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayName(v string) { + o.DisplayName.Set(&v) +} + +// SetDisplayNameNil sets the value for DisplayName to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) SetDisplayNameNil() { + o.DisplayName.Set(nil) +} + +// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnsetDisplayName() { + o.DisplayName.Unset() +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.AuthenticationScheme.IsSet() { + toSerialize["AuthenticationScheme"] = o.AuthenticationScheme.Get() + } + if o.DisplayName.IsSet() { + toSerialize["DisplayName"] = o.DisplayName.Get() + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_request.go b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_request.go new file mode 100644 index 0000000..9158907 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_request.go @@ -0,0 +1,206 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest +type SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest struct { + ClaimType CSSCMSCoreEnumsClaimType `json:"ClaimType"` + ClaimValue string `json:"ClaimValue"` + ProviderAuthenticationScheme string `json:"ProviderAuthenticationScheme"` + Description string `json:"Description"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest(claimType CSSCMSCoreEnumsClaimType, claimValue string, providerAuthenticationScheme string, description string) *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest{} + this.ClaimType = claimType + this.ClaimValue = claimValue + this.ProviderAuthenticationScheme = providerAuthenticationScheme + this.Description = description + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequestWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionRequestWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest{} + return &this +} + +// GetClaimType returns the ClaimType field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimType() CSSCMSCoreEnumsClaimType { + if o == nil { + var ret CSSCMSCoreEnumsClaimType + return ret + } + + return o.ClaimType +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimTypeOk() (*CSSCMSCoreEnumsClaimType, bool) { + if o == nil { + return nil, false + } + return &o.ClaimType, true +} + +// SetClaimType sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetClaimType(v CSSCMSCoreEnumsClaimType) { + o.ClaimType = v +} + +// GetClaimValue returns the ClaimValue field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimValue() string { + if o == nil { + var ret string + return ret + } + + return o.ClaimValue +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClaimValue, true +} + +// SetClaimValue sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetClaimValue(v string) { + o.ClaimValue = v +} + +// GetProviderAuthenticationScheme returns the ProviderAuthenticationScheme field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetProviderAuthenticationScheme() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderAuthenticationScheme +} + +// GetProviderAuthenticationSchemeOk returns a tuple with the ProviderAuthenticationScheme field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetProviderAuthenticationSchemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderAuthenticationScheme, true +} + +// SetProviderAuthenticationScheme sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetProviderAuthenticationScheme(v string) { + o.ProviderAuthenticationScheme = v +} + +// GetDescription returns the Description field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) SetDescription(v string) { + o.Description = v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ClaimType"] = o.ClaimType + toSerialize["ClaimValue"] = o.ClaimValue + toSerialize["ProviderAuthenticationScheme"] = o.ProviderAuthenticationScheme + toSerialize["Description"] = o.Description + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_response.go b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_response.go new file mode 100644 index 0000000..6a3a536 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_role_claim_definitions_role_claim_definition_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + +// SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct for SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse +type SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + Description NullableString `json:"Description,omitempty"` + ClaimType NullableString `json:"ClaimType,omitempty"` + ClaimValue NullableString `json:"ClaimValue,omitempty"` + Provider *SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse `json:"Provider,omitempty"` +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + return &this +} + +// NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults instantiates a new SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecurityRoleClaimDefinitionsRoleClaimDefinitionResponseWithDefaults() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + this := SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetClaimType returns the ClaimType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimType() string { + if o == nil || isNil(o.ClaimType.Get()) { + var ret string + return ret + } + return *o.ClaimType.Get() +} + +// GetClaimTypeOk returns a tuple with the ClaimType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimType.Get(), o.ClaimType.IsSet() +} + +// HasClaimType returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimType() bool { + if o != nil && o.ClaimType.IsSet() { + return true + } + + return false +} + +// SetClaimType gets a reference to the given NullableString and assigns it to the ClaimType field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimType(v string) { + o.ClaimType.Set(&v) +} + +// SetClaimTypeNil sets the value for ClaimType to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimTypeNil() { + o.ClaimType.Set(nil) +} + +// UnsetClaimType ensures that no value is present for ClaimType, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimType() { + o.ClaimType.Unset() +} + +// GetClaimValue returns the ClaimValue field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValue() string { + if o == nil || isNil(o.ClaimValue.Get()) { + var ret string + return ret + } + return *o.ClaimValue.Get() +} + +// GetClaimValueOk returns a tuple with the ClaimValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetClaimValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimValue.Get(), o.ClaimValue.IsSet() +} + +// HasClaimValue returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasClaimValue() bool { + if o != nil && o.ClaimValue.IsSet() { + return true + } + + return false +} + +// SetClaimValue gets a reference to the given NullableString and assigns it to the ClaimValue field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValue(v string) { + o.ClaimValue.Set(&v) +} + +// SetClaimValueNil sets the value for ClaimValue to be an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetClaimValueNil() { + o.ClaimValue.Set(nil) +} + +// UnsetClaimValue ensures that no value is present for ClaimValue, not even an explicit nil +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnsetClaimValue() { + o.ClaimValue.Unset() +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProvider() SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse { + if o == nil || isNil(o.Provider) { + var ret SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) GetProviderOk() (*SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse and assigns it to the Provider field. +func (o *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) SetProvider(v SecurityRoleClaimDefinitionsRoleClaimDefinitionProviderResponse) { + o.Provider = &v +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.ClaimType.IsSet() { + toSerialize["ClaimType"] = o.ClaimType.Get() + } + if o.ClaimValue.IsSet() { + toSerialize["ClaimValue"] = o.ClaimValue.Get() + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + return toSerialize, nil +} + +type NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse struct { + value *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + isSet bool +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Get() *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + return v.value +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Set(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse(val *SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + return &NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse{value: val, isSet: true} +} + +func (v NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_security_roles_security_role_creation_request.go b/v24/api/keyfactor/v2/model_security_security_roles_security_role_creation_request.go new file mode 100644 index 0000000..b266ab3 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_security_roles_security_role_creation_request.go @@ -0,0 +1,306 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolesSecurityRoleCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolesSecurityRoleCreationRequest{} + +// SecuritySecurityRolesSecurityRoleCreationRequest struct for SecuritySecurityRolesSecurityRoleCreationRequest +type SecuritySecurityRolesSecurityRoleCreationRequest struct { + // The name of the security role to create + Name string `json:"Name"` + // The description to be used on the created security role + Description string `json:"Description"` + // The email address to be used on the created security role + EmailAddress NullableString `json:"EmailAddress,omitempty"` + // The Id of the permission set this role is in. + PermissionSetId string `json:"PermissionSetId"` + // The permissions to include in the role. These must be supplied in the format of access control strings such as \"/security/modify/\". + Permissions []string `json:"Permissions,omitempty"` + // The claim definitions to assign to the created role + Claims []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest `json:"Claims,omitempty"` +} + +// NewSecuritySecurityRolesSecurityRoleCreationRequest instantiates a new SecuritySecurityRolesSecurityRoleCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolesSecurityRoleCreationRequest(name string, description string, permissionSetId string) *SecuritySecurityRolesSecurityRoleCreationRequest { + this := SecuritySecurityRolesSecurityRoleCreationRequest{} + this.Name = name + this.Description = description + this.PermissionSetId = permissionSetId + return &this +} + +// NewSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults() *SecuritySecurityRolesSecurityRoleCreationRequest { + this := SecuritySecurityRolesSecurityRoleCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetDescription(v string) { + o.Description = v +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetPermissionSetId returns the PermissionSetId field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionSetId() string { + if o == nil { + var ret string + return ret + } + + return o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PermissionSetId, true +} + +// SetPermissionSetId sets field value +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetPermissionSetId(v string) { + o.PermissionSetId = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetClaims returns the Claims field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + if o == nil { + var ret []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest + return ret + } + return o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) GetClaimsOk() ([]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest, bool) { + if o == nil || isNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) HasClaims() bool { + if o != nil && isNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest and assigns it to the Claims field. +func (o *SecuritySecurityRolesSecurityRoleCreationRequest) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) { + o.Claims = v +} + +func (o SecuritySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolesSecurityRoleCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + toSerialize["PermissionSetId"] = o.PermissionSetId + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + if o.Claims != nil { + toSerialize["Claims"] = o.Claims + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolesSecurityRoleCreationRequest struct { + value *SecuritySecurityRolesSecurityRoleCreationRequest + isSet bool +} + +func (v NullableSecuritySecurityRolesSecurityRoleCreationRequest) Get() *SecuritySecurityRolesSecurityRoleCreationRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolesSecurityRoleCreationRequest) Set(val *SecuritySecurityRolesSecurityRoleCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolesSecurityRoleCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolesSecurityRoleCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolesSecurityRoleCreationRequest(val *SecuritySecurityRolesSecurityRoleCreationRequest) *NullableSecuritySecurityRolesSecurityRoleCreationRequest { + return &NullableSecuritySecurityRolesSecurityRoleCreationRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolesSecurityRoleCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_security_roles_security_role_query_response.go b/v24/api/keyfactor/v2/model_security_security_roles_security_role_query_response.go new file mode 100644 index 0000000..7b30dc6 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_security_roles_security_role_query_response.go @@ -0,0 +1,336 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolesSecurityRoleQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolesSecurityRoleQueryResponse{} + +// SecuritySecurityRolesSecurityRoleQueryResponse struct for SecuritySecurityRolesSecurityRoleQueryResponse +type SecuritySecurityRolesSecurityRoleQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + EmailAddress NullableString `json:"EmailAddress,omitempty"` + Immutable *bool `json:"Immutable,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` + ClaimsCount *int32 `json:"ClaimsCount,omitempty"` +} + +// NewSecuritySecurityRolesSecurityRoleQueryResponse instantiates a new SecuritySecurityRolesSecurityRoleQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolesSecurityRoleQueryResponse() *SecuritySecurityRolesSecurityRoleQueryResponse { + this := SecuritySecurityRolesSecurityRoleQueryResponse{} + return &this +} + +// NewSecuritySecurityRolesSecurityRoleQueryResponseWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolesSecurityRoleQueryResponseWithDefaults() *SecuritySecurityRolesSecurityRoleQueryResponse { + this := SecuritySecurityRolesSecurityRoleQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) UnsetName() { + o.Name.Unset() +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetImmutable returns the Immutable field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetImmutable() bool { + if o == nil || isNil(o.Immutable) { + var ret bool + return ret + } + return *o.Immutable +} + +// GetImmutableOk returns a tuple with the Immutable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetImmutableOk() (*bool, bool) { + if o == nil || isNil(o.Immutable) { + return nil, false + } + return o.Immutable, true +} + +// HasImmutable returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasImmutable() bool { + if o != nil && !isNil(o.Immutable) { + return true + } + + return false +} + +// SetImmutable gets a reference to the given bool and assigns it to the Immutable field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetImmutable(v bool) { + o.Immutable = &v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetClaimsCount returns the ClaimsCount field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetClaimsCount() int32 { + if o == nil || isNil(o.ClaimsCount) { + var ret int32 + return ret + } + return *o.ClaimsCount +} + +// GetClaimsCountOk returns a tuple with the ClaimsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) GetClaimsCountOk() (*int32, bool) { + if o == nil || isNil(o.ClaimsCount) { + return nil, false + } + return o.ClaimsCount, true +} + +// HasClaimsCount returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) HasClaimsCount() bool { + if o != nil && !isNil(o.ClaimsCount) { + return true + } + + return false +} + +// SetClaimsCount gets a reference to the given int32 and assigns it to the ClaimsCount field. +func (o *SecuritySecurityRolesSecurityRoleQueryResponse) SetClaimsCount(v int32) { + o.ClaimsCount = &v +} + +func (o SecuritySecurityRolesSecurityRoleQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolesSecurityRoleQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + if !isNil(o.Immutable) { + toSerialize["Immutable"] = o.Immutable + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if !isNil(o.ClaimsCount) { + toSerialize["ClaimsCount"] = o.ClaimsCount + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolesSecurityRoleQueryResponse struct { + value *SecuritySecurityRolesSecurityRoleQueryResponse + isSet bool +} + +func (v NullableSecuritySecurityRolesSecurityRoleQueryResponse) Get() *SecuritySecurityRolesSecurityRoleQueryResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolesSecurityRoleQueryResponse) Set(val *SecuritySecurityRolesSecurityRoleQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolesSecurityRoleQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolesSecurityRoleQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolesSecurityRoleQueryResponse(val *SecuritySecurityRolesSecurityRoleQueryResponse) *NullableSecuritySecurityRolesSecurityRoleQueryResponse { + return &NullableSecuritySecurityRolesSecurityRoleQueryResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolesSecurityRoleQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolesSecurityRoleQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_security_roles_security_role_response.go b/v24/api/keyfactor/v2/model_security_security_roles_security_role_response.go new file mode 100644 index 0000000..a10a850 --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_security_roles_security_role_response.go @@ -0,0 +1,421 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolesSecurityRoleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolesSecurityRoleResponse{} + +// SecuritySecurityRolesSecurityRoleResponse struct for SecuritySecurityRolesSecurityRoleResponse +type SecuritySecurityRolesSecurityRoleResponse struct { + Id *int32 `json:"Id,omitempty"` + Name NullableString `json:"Name,omitempty"` + Description NullableString `json:"Description,omitempty"` + EmailAddress NullableString `json:"EmailAddress,omitempty"` + Immutable *bool `json:"Immutable,omitempty"` + PermissionSetId *string `json:"PermissionSetId,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + Claims []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse `json:"Claims,omitempty"` +} + +// NewSecuritySecurityRolesSecurityRoleResponse instantiates a new SecuritySecurityRolesSecurityRoleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolesSecurityRoleResponse() *SecuritySecurityRolesSecurityRoleResponse { + this := SecuritySecurityRolesSecurityRoleResponse{} + return &this +} + +// NewSecuritySecurityRolesSecurityRoleResponseWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolesSecurityRoleResponseWithDefaults() *SecuritySecurityRolesSecurityRoleResponse { + this := SecuritySecurityRolesSecurityRoleResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleResponse) GetName() string { + if o == nil || isNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleResponse) GetDescription() string { + if o == nil || isNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetDescription() { + o.Description.Unset() +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleResponse) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleResponse) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleResponse) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetImmutable returns the Immutable field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetImmutable() bool { + if o == nil || isNil(o.Immutable) { + var ret bool + return ret + } + return *o.Immutable +} + +// GetImmutableOk returns a tuple with the Immutable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetImmutableOk() (*bool, bool) { + if o == nil || isNil(o.Immutable) { + return nil, false + } + return o.Immutable, true +} + +// HasImmutable returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasImmutable() bool { + if o != nil && !isNil(o.Immutable) { + return true + } + + return false +} + +// SetImmutable gets a reference to the given bool and assigns it to the Immutable field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetImmutable(v bool) { + o.Immutable = &v +} + +// GetPermissionSetId returns the PermissionSetId field value if set, zero value otherwise. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionSetId() string { + if o == nil || isNil(o.PermissionSetId) { + var ret string + return ret + } + return *o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionSetIdOk() (*string, bool) { + if o == nil || isNil(o.PermissionSetId) { + return nil, false + } + return o.PermissionSetId, true +} + +// HasPermissionSetId returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasPermissionSetId() bool { + if o != nil && !isNil(o.PermissionSetId) { + return true + } + + return false +} + +// SetPermissionSetId gets a reference to the given string and assigns it to the PermissionSetId field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetPermissionSetId(v string) { + o.PermissionSetId = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleResponse) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetPermissions(v []string) { + o.Permissions = v +} + +// GetClaims returns the Claims field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleResponse) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse { + if o == nil { + var ret []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse + return ret + } + return o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleResponse) GetClaimsOk() ([]SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse, bool) { + if o == nil || isNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleResponse) HasClaims() bool { + if o != nil && isNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse and assigns it to the Claims field. +func (o *SecuritySecurityRolesSecurityRoleResponse) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionResponse) { + o.Claims = v +} + +func (o SecuritySecurityRolesSecurityRoleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolesSecurityRoleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.Name.IsSet() { + toSerialize["Name"] = o.Name.Get() + } + if o.Description.IsSet() { + toSerialize["Description"] = o.Description.Get() + } + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + if !isNil(o.Immutable) { + toSerialize["Immutable"] = o.Immutable + } + if !isNil(o.PermissionSetId) { + toSerialize["PermissionSetId"] = o.PermissionSetId + } + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + if o.Claims != nil { + toSerialize["Claims"] = o.Claims + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolesSecurityRoleResponse struct { + value *SecuritySecurityRolesSecurityRoleResponse + isSet bool +} + +func (v NullableSecuritySecurityRolesSecurityRoleResponse) Get() *SecuritySecurityRolesSecurityRoleResponse { + return v.value +} + +func (v *NullableSecuritySecurityRolesSecurityRoleResponse) Set(val *SecuritySecurityRolesSecurityRoleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolesSecurityRoleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolesSecurityRoleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolesSecurityRoleResponse(val *SecuritySecurityRolesSecurityRoleResponse) *NullableSecuritySecurityRolesSecurityRoleResponse { + return &NullableSecuritySecurityRolesSecurityRoleResponse{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolesSecurityRoleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolesSecurityRoleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_security_security_roles_security_role_update_request.go b/v24/api/keyfactor/v2/model_security_security_roles_security_role_update_request.go new file mode 100644 index 0000000..5f6d91d --- /dev/null +++ b/v24/api/keyfactor/v2/model_security_security_roles_security_role_update_request.go @@ -0,0 +1,333 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" +) + +// checks if the SecuritySecurityRolesSecurityRoleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SecuritySecurityRolesSecurityRoleUpdateRequest{} + +// SecuritySecurityRolesSecurityRoleUpdateRequest struct for SecuritySecurityRolesSecurityRoleUpdateRequest +type SecuritySecurityRolesSecurityRoleUpdateRequest struct { + // The Keyfactor identifier of the role to update + Id int32 `json:"Id"` + // The new name of the security role + Name string `json:"Name"` + // The new description to be used for the security role + Description string `json:"Description"` + // The new email address to be used for the security role + EmailAddress NullableString `json:"EmailAddress,omitempty"` + PermissionSetId string `json:"PermissionSetId"` + // The complete list of permissions to include in the role. These must be supplied in the format of access control strings such as \"/security/modify/\". + Permissions []string `json:"Permissions,omitempty"` + // The complete list of claim definitions to assign to the role + Claims []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest `json:"Claims,omitempty"` +} + +// NewSecuritySecurityRolesSecurityRoleUpdateRequest instantiates a new SecuritySecurityRolesSecurityRoleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecuritySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string, permissionSetId string) *SecuritySecurityRolesSecurityRoleUpdateRequest { + this := SecuritySecurityRolesSecurityRoleUpdateRequest{} + this.Id = id + this.Name = name + this.Description = description + this.PermissionSetId = permissionSetId + return &this +} + +// NewSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new SecuritySecurityRolesSecurityRoleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults() *SecuritySecurityRolesSecurityRoleUpdateRequest { + this := SecuritySecurityRolesSecurityRoleUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetEmailAddress() string { + if o == nil || isNil(o.EmailAddress.Get()) { + var ret string + return ret + } + return *o.EmailAddress.Get() +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetEmailAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EmailAddress.Get(), o.EmailAddress.IsSet() +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasEmailAddress() bool { + if o != nil && o.EmailAddress.IsSet() { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given NullableString and assigns it to the EmailAddress field. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetEmailAddress(v string) { + o.EmailAddress.Set(&v) +} + +// SetEmailAddressNil sets the value for EmailAddress to be an explicit nil +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetEmailAddressNil() { + o.EmailAddress.Set(nil) +} + +// UnsetEmailAddress ensures that no value is present for EmailAddress, not even an explicit nil +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) UnsetEmailAddress() { + o.EmailAddress.Unset() +} + +// GetPermissionSetId returns the PermissionSetId field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetId() string { + if o == nil { + var ret string + return ret + } + + return o.PermissionSetId +} + +// GetPermissionSetIdOk returns a tuple with the PermissionSetId field value +// and a boolean to check if the value has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionSetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PermissionSetId, true +} + +// SetPermissionSetId sets field value +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissionSetId(v string) { + o.PermissionSetId = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string { + if o == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool { + if o != nil && isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetClaims returns the Claims field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetClaims() []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest { + if o == nil { + var ret []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest + return ret + } + return o.Claims +} + +// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) GetClaimsOk() ([]SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest, bool) { + if o == nil || isNil(o.Claims) { + return nil, false + } + return o.Claims, true +} + +// HasClaims returns a boolean if a field has been set. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) HasClaims() bool { + if o != nil && isNil(o.Claims) { + return true + } + + return false +} + +// SetClaims gets a reference to the given []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest and assigns it to the Claims field. +func (o *SecuritySecurityRolesSecurityRoleUpdateRequest) SetClaims(v []SecurityRoleClaimDefinitionsRoleClaimDefinitionRequest) { + o.Claims = v +} + +func (o SecuritySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SecuritySecurityRolesSecurityRoleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if o.EmailAddress.IsSet() { + toSerialize["EmailAddress"] = o.EmailAddress.Get() + } + toSerialize["PermissionSetId"] = o.PermissionSetId + if o.Permissions != nil { + toSerialize["Permissions"] = o.Permissions + } + if o.Claims != nil { + toSerialize["Claims"] = o.Claims + } + return toSerialize, nil +} + +type NullableSecuritySecurityRolesSecurityRoleUpdateRequest struct { + value *SecuritySecurityRolesSecurityRoleUpdateRequest + isSet bool +} + +func (v NullableSecuritySecurityRolesSecurityRoleUpdateRequest) Get() *SecuritySecurityRolesSecurityRoleUpdateRequest { + return v.value +} + +func (v *NullableSecuritySecurityRolesSecurityRoleUpdateRequest) Set(val *SecuritySecurityRolesSecurityRoleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSecuritySecurityRolesSecurityRoleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSecuritySecurityRolesSecurityRoleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSecuritySecurityRolesSecurityRoleUpdateRequest(val *SecuritySecurityRolesSecurityRoleUpdateRequest) *NullableSecuritySecurityRolesSecurityRoleUpdateRequest { + return &NullableSecuritySecurityRolesSecurityRoleUpdateRequest{value: val, isSet: true} +} + +func (v NullableSecuritySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSecuritySecurityRolesSecurityRoleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/model_system_day_of_week.go b/v24/api/keyfactor/v2/model_system_day_of_week.go new file mode 100644 index 0000000..bf9ae58 --- /dev/null +++ b/v24/api/keyfactor/v2/model_system_day_of_week.go @@ -0,0 +1,158 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "errors" + "fmt" +) + +// SystemDayOfWeek the model 'SystemDayOfWeek' +type SystemDayOfWeek int32 + +// List of System.DayOfWeek +const ( + SYSTEMDAYOFWEEK_Sunday SystemDayOfWeek = 0 + SYSTEMDAYOFWEEK_Monday SystemDayOfWeek = 1 + SYSTEMDAYOFWEEK_Tuesday SystemDayOfWeek = 2 + SYSTEMDAYOFWEEK_Wednesday SystemDayOfWeek = 3 + SYSTEMDAYOFWEEK_Thursday SystemDayOfWeek = 4 + SYSTEMDAYOFWEEK_Friday SystemDayOfWeek = 5 + SYSTEMDAYOFWEEK_Saturday SystemDayOfWeek = 6 +) + +func ParseSystemDayOfWeek(s string) (*SystemDayOfWeek, error) { + var claimType SystemDayOfWeek + err := claimType.Parse(s) + if err != nil { + return nil, err + } + return &claimType, err +} + +func (c *SystemDayOfWeek) Parse(s string) error { + var stringsToEnum = map[string]SystemDayOfWeek{ + "Sunday": SYSTEMDAYOFWEEK_Sunday, + "Monday": SYSTEMDAYOFWEEK_Monday, + "Tuesday": SYSTEMDAYOFWEEK_Tuesday, + "Wednesday": SYSTEMDAYOFWEEK_Wednesday, + "Thursday": SYSTEMDAYOFWEEK_Thursday, + "Friday": SYSTEMDAYOFWEEK_Friday, + "Saturday": SYSTEMDAYOFWEEK_Saturday, + } + + if val, ok := stringsToEnum[s]; ok { + *c = val + return nil + } + return errors.New(fmt.Sprintf("Could not map to enum SystemDayOfWeek. Value: %s ", s)) +} + +// All allowed values of SystemDayOfWeek enum +var AllowedSystemDayOfWeekEnumValues = []SystemDayOfWeek{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *SystemDayOfWeek) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SystemDayOfWeek(value) + for _, existing := range AllowedSystemDayOfWeekEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SystemDayOfWeek", value) +} + +// NewSystemDayOfWeekFromValue returns a pointer to a valid SystemDayOfWeek +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSystemDayOfWeekFromValue(v int32) (*SystemDayOfWeek, error) { + ev := SystemDayOfWeek(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SystemDayOfWeek: valid values are %v", v, AllowedSystemDayOfWeekEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SystemDayOfWeek) IsValid() bool { + for _, existing := range AllowedSystemDayOfWeekEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to System.DayOfWeek value +func (v SystemDayOfWeek) Ptr() *SystemDayOfWeek { + return &v +} + +type NullableSystemDayOfWeek struct { + value *SystemDayOfWeek + isSet bool +} + +func (v NullableSystemDayOfWeek) Get() *SystemDayOfWeek { + return v.value +} + +func (v *NullableSystemDayOfWeek) Set(val *SystemDayOfWeek) { + v.value = val + v.isSet = true +} + +func (v NullableSystemDayOfWeek) IsSet() bool { + return v.isSet +} + +func (v *NullableSystemDayOfWeek) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSystemDayOfWeek(val *SystemDayOfWeek) *NullableSystemDayOfWeek { + return &NullableSystemDayOfWeek{value: val, isSet: true} +} + +func (v NullableSystemDayOfWeek) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSystemDayOfWeek) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v24/api/keyfactor/v2/response.go b/v24/api/keyfactor/v2/response.go new file mode 100644 index 0000000..f953764 --- /dev/null +++ b/v24/api/keyfactor/v2/response.go @@ -0,0 +1,57 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/v24/api/keyfactor/v2/utils.go b/v24/api/keyfactor/v2/utils.go new file mode 100644 index 0000000..088dbad --- /dev/null +++ b/v24/api/keyfactor/v2/utils.go @@ -0,0 +1,357 @@ +/* +Copyright 2025 Keyfactor +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 +thespecific language governing permissions and limitations under the +License. + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +Keyfactor Command Version: 24.4.2 + +API version: 2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2 + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// isNil checks if an input is nil +func isNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/v24/client.go b/v24/client.go new file mode 100644 index 0000000..11190c0 --- /dev/null +++ b/v24/client.go @@ -0,0 +1,30 @@ +package keyfactor + +import ( + "github.com/Keyfactor/keyfactor-auth-client-go/auth_providers" + v1 "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v1" + v2 "github.com/Keyfactor/keyfactor-go-client-sdk/v24/api/keyfactor/v2" +) + +type APIClient struct { + V1 *v1.APIClient + V2 *v2.APIClient +} + +func NewAPIClient(cfg *auth_providers.Server) (*APIClient, error) { + var err error + + clientV1, err := v1.NewAPIClient(cfg) + if err != nil { + return nil, err + } + clientV2, err := v2.NewAPIClient(cfg) + if err != nil { + return nil, err + } + + return &APIClient{ + V1: clientV1, + V2: clientV2, + }, nil +} diff --git a/v24/go.mod b/v24/go.mod new file mode 100644 index 0000000..216dadf --- /dev/null +++ b/v24/go.mod @@ -0,0 +1,26 @@ +module github.com/Keyfactor/keyfactor-go-client-sdk/v24 + +go 1.22 + +toolchain go1.24.0 + +require github.com/Keyfactor/keyfactor-auth-client-go v1.1.0-rc.8 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.3.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect + golang.org/x/crypto v0.28.0 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/oauth2 v0.24.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/text v0.19.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect +) diff --git a/v24/go.sum b/v24/go.sum new file mode 100644 index 0000000..ba2f2cd --- /dev/null +++ b/v24/go.sum @@ -0,0 +1,66 @@ +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 h1:JZg6HRh6W6U4OLl6lk7BZ7BLisIzM9dG1R50zUk9C/M= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod h1:YL1xnZ6QejvQHWJrX/AvhFl4WW4rqHVoKspWNVwFk0M= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 h1:B/dfvscEQtew9dVuoxqxrUKKv8Ih2f55PydknDamU+g= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0/go.mod h1:fiPSssYvltE08HJchL04dOy+RD4hgrjph0cwGGMntdI= +github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0 h1:+m0M/LFxN43KvULkDNfdXOgrjtg6UYJPFBJyuEcRCAw= +github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0/go.mod h1:PwOyop78lveYMRs6oCxjiVyBdyCgIYH6XHIVZO9/SFQ= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.3.0 h1:WLUIpeyv04H0RCcQHaA4TNoyrQ39Ox7V+re+iaqzTe0= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.3.0/go.mod h1:hd8hTTIY3VmUVPRHNH7GVCHO3SHgXkJKZHReby/bnUQ= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0 h1:eXnN9kaS8TiDwXjoie3hMRLuwdUBUMW9KRgOqB3mCaw= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v1.1.0/go.mod h1:XIpam8wumeZ5rVMuhdDQLMfIPDf1WO3IzrCRO3e3e3o= +github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= +github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= +github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1 h1:gUDtaZk8heteyfdmv+pcfHvhR9llnh7c7GMwZ8RVG04= +github.com/AzureAD/microsoft-authentication-library-for-go v1.3.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= +github.com/Keyfactor/keyfactor-auth-client-go v1.1.0-rc.8 h1:JtA7UwqCSsqBUc0shlEBk+g2xNMorxwQHtknCY7hcUg= +github.com/Keyfactor/keyfactor-auth-client-go v1.1.0-rc.8/go.mod h1:dUIVnqWpPiYkGqKMYQi6Z98fqzQdkZ1KHvJpCoSLQ2s= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs= +github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6/go.mod h1:3VeWNIJaW+O5xpRQbPp0Ybqu1vJd/pm7s2F473HRrkw= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4= +github.com/redis/go-redis/v9 v9.6.1/go.mod h1:0C0c6ycQsdpVNQpxb1njEQIqkx5UcsM8FJCQLgE9+RA= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE= +golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=